/* CUTS SaaS design tokens and base: shared by the sales page, checkout and return pages.
   Page-specific styles live in landing.css / checkout.css and build on these names. */

@font-face {
  font-family: 'FbTypograph2';
  src: url('../FbTypograph2-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FbTypograph2';
  src: url('../FbTypograph2-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Hebrew';
  src: url('fonts/plex-hebrew-400-he.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Plex Hebrew';
  src: url('fonts/plex-hebrew-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plex Hebrew';
  src: url('fonts/plex-hebrew-500-he.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Plex Hebrew';
  src: url('fonts/plex-hebrew-500-latin.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plex Hebrew';
  src: url('fonts/plex-hebrew-600-he.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Plex Hebrew';
  src: url('fonts/plex-hebrew-600-latin.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* color */
  --c-yellow: #FFDE1F;
  --c-yellow-deep: #F2CF00;
  --c-black: #101010;
  --c-charcoal: #272727;
  --c-raised: #1B1B1B;
  --c-raised-2: #222222;
  --c-white: #FFFFFF;
  --c-paper: #F6F6F3;
  --c-gray: #A1A1A1;          /* secondary text on dark only */
  --c-ink-2: #55554F;         /* secondary text on light (AA on paper and white) */
  --c-line-dark: rgba(255, 255, 255, 0.12);
  --c-line-light: rgba(16, 16, 16, 0.12);
  --c-ok: #3DDC84;
  --c-wait: #FFB020;
  --c-fail: #FF5A4F;
  --c-info: #7AB8FF;

  /* type */
  --font-display: 'FbTypograph2', 'Plex Hebrew', system-ui, sans-serif;
  --font-text: 'Plex Hebrew', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --fs-display-xl: clamp(3.1rem, 1.6rem + 7.4vw, 9.25rem);
  --fs-display-l: clamp(2.4rem, 1.45rem + 4.6vw, 6rem);
  --fs-display-m: clamp(1.6rem, 1.25rem + 1.6vw, 2.75rem);
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;
  --lh-display: 0.92;
  --lh-body: 1.65;

  /* space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --gutter: 16px;
  --section-pad: clamp(80px, 12vw, 176px);
  --max: 1320px;

  /* shape */
  --r-control: 4px;
  --r-window: 14px;
  --r-media: 22px;
  --shadow-float: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-paper: 0 24px 60px -28px rgba(16, 16, 16, 0.35), 0 0 0 1px rgba(16, 16, 16, 0.08);

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-cut: cubic-bezier(0.87, 0, 0.13, 1);
  --dur-fast: 160ms;
  --dur-mid: 380ms;

  /* layers */
  --z-nav: 50;
  --z-sticky-cta: 40;
  --z-sheet: 60;
  --z-strip: 70;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 40px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
  /* No scroll-behavior: smooth here. ScrollTrigger's refreshes as the page loads put back
     the scroll position they measured, which cut a smooth jump to /#pricing short: Chromium
     came to rest at the top in seven loads out of ten. */
}

body {
  margin: 0;
  background: var(--c-black);
  color: var(--c-white);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: 'kern';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
video { background: var(--c-raised); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--c-yellow);
  color: var(--c-black);
  font-weight: 600;
  border-radius: var(--r-control);
  text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

:focus-visible {
  outline: 3px solid var(--c-yellow);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-light :focus-visible,
.on-light:focus-visible {
  outline-color: var(--c-black);
}

/* layout */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-pad);
}
.section--paper { background: var(--c-paper); color: var(--c-black); }
.section--white { background: var(--c-white); color: var(--c-black); }
.section--black { background: var(--c-black); color: var(--c-white); }
.section--charcoal { background: var(--c-charcoal); color: var(--c-white); }

/* type */
.display-xl,
.display-l,
.display-m {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: var(--lh-display);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.display-xl { font-size: var(--fs-display-xl); }
.display-l { font-size: var(--fs-display-l); line-height: 0.95; }
.display-m { font-size: var(--fs-display-m); line-height: 1.05; font-weight: 700; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  max-width: 58ch;
}
.section--black .lead,
.section--charcoal .lead { color: #D4D4D0; }
.section--paper .lead,
.section--white .lead { color: var(--c-ink-2); }

.text-muted-dark { color: var(--c-gray); }
.text-muted-light { color: var(--c-ink-2); }
.is-yellow { color: var(--c-yellow); }
.nums { font-variant-numeric: tabular-nums; }

/* The cut mark: a short yellow stroke before an eyebrow. Not a label style; it is the brand's
   cut, repeated small. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.eyebrow::before {
  content: '';
  inline-size: 28px;
  block-size: 2px;
  background: var(--c-yellow);
  flex: none;
}
.section--paper .eyebrow,
.section--white .eyebrow { color: var(--c-ink-2); }
.section--paper .eyebrow::before,
.section--white .eyebrow::before { background: var(--c-black); }
.section--black .eyebrow,
.section--charcoal .eyebrow { color: var(--c-gray); }

/* yellow fill behind black text: how yellow appears on light backgrounds */
.mark {
  background: linear-gradient(transparent 58%, var(--c-yellow) 58%, var(--c-yellow) 92%, transparent 92%);
  padding-inline: 0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* buttons */
.btn {
  --btn-bg: var(--c-yellow);
  --btn-fg: var(--c-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: 0 var(--space-6);
  border: 0;
  border-radius: var(--r-control);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast) ease, transform var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease;
}
.btn:hover { background: var(--c-yellow-deep); }
.btn:active { transform: translateY(1px); }
.btn[aria-disabled='true'],
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.on-light .btn--ghost:hover,
.section--paper .btn--ghost:hover,
.section--white .btn--ghost:hover { background: rgba(16, 16, 16, 0.06); }

.btn--dark {
  --btn-bg: var(--c-black);
  --btn-fg: var(--c-white);
}
.btn--dark:hover { background: #2A2A2A; }

.btn--small { min-height: 40px; padding: 0 var(--space-4); font-size: var(--fs-small); }
.btn--block { width: 100%; }

.btn .btn__arrow { font-family: var(--font-text); font-weight: 500; }

/* availability badges (from saas_catalog statuses) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.18em 0.6em;
  border-radius: 999px;
  font-size: var(--fs-micro);
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: middle;
}
.badge::before {
  content: '';
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge--live { background: rgba(61, 220, 132, 0.14); color: #0F7A42; }
.badge--soon { background: rgba(255, 176, 32, 0.16); color: #8A5A00; }
.badge--planned { background: rgba(16, 16, 16, 0.07); color: var(--c-ink-2); }
.section--black .badge--live,
.section--charcoal .badge--live,
.on-dark .badge--live { background: rgba(61, 220, 132, 0.14); color: #6BF0A7; }
.section--black .badge--soon,
.section--charcoal .badge--soon,
.on-dark .badge--soon { background: rgba(255, 176, 32, 0.16); color: #FFC659; }
.section--black .badge--planned,
.section--charcoal .badge--planned,
.on-dark .badge--planned { background: rgba(255, 255, 255, 0.08); color: var(--c-gray); }

/* preview strip (sandbox mode) */
.preview-strip {
  position: relative;
  z-index: var(--z-strip);
  padding: 0.45rem var(--gutter);
  background: var(--c-yellow);
  color: var(--c-black);
  font-size: var(--fs-small);
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}

/* launch-requirement marker (preview only) */
.launch-req {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.1em 0.5em;
  border: 1px dashed currentColor;
  border-radius: var(--r-control);
  font-size: var(--fs-micro);
  font-weight: 600;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
