/* Vybe marketing site: type-led editorial layout. Hairlines for structure;
   one soft shadow, reserved for the floating mobile nav sheet. */

/* Tokens. Light is default; dark via system or <html data-theme>.
   Names stay semantic ("paper"/"ink") in both themes. */
:root {
  /* Cool neutrals; warm paper reads as printed stock, not #fff. */
  --ink:        #16181c;
  --ink-soft:   #3c4148;
  --ink-mute:   #61676d;
  --paper:      #f7f6f3;
  --paper-warm: #efece5;
  --paper-pure: #fdfcfa;
  --hairline:   #e1ded6;
  --hairline-strong: #cbc7bd;

  /* App primary as graphic accent only; -deep carries readable accents. */
  --mint:       #00d4aa;
  --mint-deep:  #05614f;
  --mint-wash:  #dcf5ee;


  --shadow-sheet: 0 1px 2px rgba(22, 24, 28, 0.06),
                  0 12px 28px -12px rgba(22, 24, 28, 0.18);
  --masthead-bg: color-mix(in srgb, var(--paper) 88%, transparent);
  --phone-rim: #05060a;

  --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;
  --space-10: 8rem;

  --measure: 66ch;
  --edge: clamp(1.25rem, 5vw, 5rem);
  --shell: 78rem;

  --radius: 10px;
  --radius-lg: 18px;

  --t-fast: 120ms;
  --t-base: 180ms;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-num: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  /* One documented z-scale. Nothing outside this list gets a z-index. */
  --z-sticky: 10;
  --z-sheet: 20;
  --z-skip: 30;
}

/* System preference, unless the visitor chose light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  /* Off-black surfaces; mint stays legible so --mint-deep is the bright value. */
  --ink:        #e9e7e2;
  --ink-soft:   #b6bbc1;
  --ink-mute:   #949aa1;
  --paper:      #101215;
  --paper-warm: #171a1e;
  --paper-pure: #1a1d22;
  --hairline:   #282c32;
  --hairline-strong: #3a3f46;

  --mint:       #00d4aa;
  --mint-deep:  #3fe3c1;
  --mint-wash:  #10312a;


  --shadow-sheet: 0 1px 2px rgba(0, 0, 0, 0.5),
                  0 14px 30px -12px rgba(0, 0, 0, 0.7);
  --masthead-bg: color-mix(in srgb, var(--paper) 90%, transparent);
  /* Near-black device body would vanish, so the rim carries the silhouette. */
  --phone-rim: #3d434b;
  }
}

/* Explicit choice always wins over the system preference. */
:root[data-theme="dark"] {
  /* Off-black surfaces; mint stays legible so --mint-deep is the bright value. */
  --ink:        #e9e7e2;
  --ink-soft:   #b6bbc1;
  --ink-mute:   #949aa1;
  --paper:      #101215;
  --paper-warm: #171a1e;
  --paper-pure: #1a1d22;
  --hairline:   #282c32;
  --hairline-strong: #3a3f46;

  --mint:       #00d4aa;
  --mint-deep:  #3fe3c1;
  --mint-wash:  #10312a;


  --shadow-sheet: 0 1px 2px rgba(0, 0, 0, 0.5),
                  0 14px 30px -12px rgba(0, 0, 0, 0.7);
  --masthead-bg: color-mix(in srgb, var(--paper) 90%, transparent);
  /* Near-black device body would vanish, so the rim carries the silhouette. */
  --phone-rim: #3d434b;
  }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- type scale (5 steps) -------------------------------------- */
h1 {
  font-size: clamp(2.75rem, 7.2vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 680;
  margin: 0;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 660;
  margin: 0;
  text-wrap: balance;
}
h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 640;
  margin: 0;
}
p { margin: 0; max-width: var(--measure); }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 640;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint-deep);
  margin: 0;
}
.lede {
  font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-soft);
  letter-spacing: -0.008em;
}
.muted { color: var(--ink-mute); }
.small { font-size: 0.9375rem; line-height: 1.55; }
.fine  { font-size: 0.8125rem; line-height: 1.5; color: var(--ink-mute); }
.num   { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

a { color: var(--mint-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--mint-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---- layout ---------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--edge);
}
.skip {
  position: absolute;
  left: -9999px;
  z-index: var(--z-skip);
}
.skip:focus {
  left: var(--space-4);
  top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
}

/* ---- header ---------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  isolation: isolate;
  z-index: var(--z-sticky);
  background: var(--masthead-bg);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.masthead__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: 64px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.5rem;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { text-decoration: none; }
.wordmark__mark { display: block; width: 22px; height: 22px; }

.nav { display: flex; align-items: center; gap: var(--space-6); margin-left: auto; }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 520;
  transition: color var(--t-fast) var(--ease-out);
}
.nav__link:hover { color: var(--ink); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 560;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out);
}
.nav__toggle:hover { background: var(--paper-warm); border-color: var(--ink-mute); }
.nav__toggle:active { background: var(--hairline); }

/* ---- buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 580;
  line-height: 1;
  min-height: 44px;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              color var(--t-base) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn--outline:hover { border-color: var(--ink); background: var(--paper-warm); }

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---- hero ------------------------------------------------------ */
.hero { padding-block: clamp(var(--space-7), 8vw, var(--space-10)) var(--space-8); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(var(--space-6), 5vw, var(--space-9));
  align-items: center;
}
.hero__copy > * + * { margin-top: var(--space-5); }
.hero__copy .eyebrow + h1 { margin-top: var(--space-4); }
.hero h1 em {
  font-style: normal;
  /* The one place the brand mint touches type: a hand-drawn underline,
     not a color swap, so contrast never depends on the accent. */
  background-image: linear-gradient(var(--mint), var(--mint));
  background-repeat: no-repeat;
  background-size: 100% 0.28em;
  background-position: 0 88%;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.hero__note { margin-top: var(--space-4); }
/* The secondary hero action is a plain text link, not a second button, so
   the hero keeps exactly one primary action. It still gets a full tap
   target on touch screens. */
.hero__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 560;
  white-space: nowrap;
}

/* ---- phone (drawn, no raster assets) --------------------------- */
.phone {
  isolation: isolate;
  position: relative;
  width: min(300px, 78%);
  margin-inline: auto;
  aspect-ratio: 300 / 610;
  /* The device body is a fixed near-black in both themes: a phone is a
     physical object, so it should not repaint with the page. */
  background: #16181c;
  border-radius: 40px;
  padding: 9px;
  border: 1px solid var(--phone-rim);
}
.phone__screen {
  position: relative;
  height: 100%;
  background: var(--paper-pure);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone__notch {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 22px;
  background: #16181c;
  border-radius: 999px;
}
.phone__top {
  padding: 34px var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
/* Mockup text never wraps: at 360px the phone is ~223px wide and wrapped
   lines push later cards into a mid-word clip against the fixed screen. */
.phone__title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phone__top .post__when { flex: none; }
.phone__body { padding: var(--space-4); display: grid; gap: var(--space-3); }
.phone__tabs {
  margin-top: auto;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: var(--space-3) var(--space-2);
  gap: var(--space-2);
}
.phone__tab { height: 3px; border-radius: 999px; background: var(--hairline-strong); }
.phone__tab--on { background: var(--ink); }

.post {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--space-3);
  background: var(--paper-pure);
}
.post__head { display: flex; align-items: center; gap: var(--space-2); }
.post__head > span:last-child,
.phone__row > span:last-child { min-width: 0; }
.post__who, .post__when {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}
.post__avatar {
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--mint-wash);
  border: 1px solid var(--mint);
  flex: none;
}
.post__who { font-size: 0.75rem; font-weight: 640; }
.post__when { font-size: 0.6875rem; color: var(--ink-mute); }
.post__line {
  height: 7px;
  border-radius: 999px;
  background: var(--paper-warm);
  margin-top: var(--space-3);
}
.post__line--short { width: 58%; }
.post__stat {
  margin-top: var(--space-3);
  display: flex;
  gap: var(--space-4);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.post__stat span { white-space: nowrap; }
.ring {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  border-radius: 999px;
  border: 5px solid var(--mint-wash);
  border-top-color: var(--mint);
  border-right-color: var(--mint);
  font-size: 0.8125rem;
  font-weight: 700;
}
.phone__row { display: flex; align-items: center; gap: var(--space-3); }

/* ---- sections -------------------------------------------------- */
.section { padding-block: clamp(var(--space-8), 9vw, var(--space-10)); }
.section--tight { padding-block: clamp(var(--space-7), 6vw, var(--space-8)); }
.section__head { max-width: 46rem; }
.section__head > * + * { margin-top: var(--space-4); }
/* Statement opener: display-scale claim, left-aligned, room to breathe. */
.statement { max-width: 62rem; }
.statement > * + * { margin-top: var(--space-5); }
.statement h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.statement .lede { max-width: 44rem; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(var(--space-5), 5vw, var(--space-9));
  align-items: start;
  padding-block: var(--space-8);
  border-top: 1px solid var(--hairline);
}
.feature:nth-child(even) .feature__copy { order: 2; }
.feature__copy > * + * { margin-top: var(--space-4); }
.feature__copy h2 {
  font-size: 1.1875rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 640;
}
.feature__copy h3 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 660;
}
.feature__index {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  color: var(--ink-mute);
}
.feature__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-3);
}
.feature__list li {
  position: relative;
  padding-left: var(--space-5);
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 2px;
  background: var(--mint);
}

/* A panel is structure, so it gets a hairline and no shadow. */
.panel {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--paper-pure);
  padding: clamp(var(--space-5), 3vw, var(--space-7));
}
.panel__rows { display: grid; gap: var(--space-4); }
.panel__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--hairline);
}
.panel__row:last-child { border-bottom: 0; padding-bottom: 0; }
.panel__label { font-size: 0.9375rem; font-weight: 560; }
.panel__value {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ---- faq -------------------------------------------------------- */
.faq { max-width: 52rem; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-5) var(--space-6) var(--space-5) 0;
  font-size: 1.0625rem;
  font-weight: 580;
  letter-spacing: -0.012em;
  position: relative;
  transition: color var(--t-fast) var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--mint-deep); }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--ink-mute);
  border-bottom: 2px solid var(--ink-mute);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--t-base) var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq__answer { padding: 0 var(--space-6) var(--space-5) 0; }
.faq__answer p + p { margin-top: var(--space-3); }

/* ---- cta -------------------------------------------------------- */
.cta__inner {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--paper-warm);
  padding: clamp(var(--space-6), 5vw, var(--space-8));
  display: grid;
  gap: var(--space-5);
  max-width: 54rem;
}
.cta__inner > p { max-width: 48ch; }

/* ---- footer ----------------------------------------------------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding-block: var(--space-8) var(--space-6);
  margin-top: var(--space-7);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
.footer__brand > p { margin-top: var(--space-3); font-size: 0.875rem; color: var(--ink-mute); max-width: 30ch; }
.footer h2 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-mute); font-weight: 640; }
.footer ul { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-1); }
.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--t-fast) var(--ease-out);
}
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__base {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: baseline;
}

/* ---- legal/long-form pages -------------------------------------- */
.doc { padding-block: var(--space-8) var(--space-9); }
.doc__head { border-bottom: 1px solid var(--hairline); padding-bottom: var(--space-6); }
.doc__head h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.doc__meta { margin-top: var(--space-4); }
.doc__body { max-width: var(--measure); margin-top: var(--space-7); }
.doc__body h2 {
  font-size: 1.375rem;
  letter-spacing: -0.018em;
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--hairline);
}
.doc__body h3 { margin-top: var(--space-6); font-size: 1.0625rem; }
.doc__body p, .doc__body ul, .doc__body ol { margin-top: var(--space-4); }
.doc__body ul, .doc__body ol { padding-left: var(--space-5); color: var(--ink-soft); }
.doc__body li + li { margin-top: var(--space-2); }
.doc__body strong { font-weight: 640; color: var(--ink); }
.doc__toc {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--space-5);
  background: var(--paper-pure);
  margin-top: var(--space-6);
}
.doc__toc ol { margin: var(--space-3) 0 0; padding-left: 1.25rem; columns: 2; column-gap: var(--space-6); }
.doc__toc li { margin-top: var(--space-2); break-inside: avoid; }
.doc__toc a { font-size: 0.9375rem; }
.callout {
  margin-top: var(--space-5);
  border-left: 3px solid var(--mint);
  background: var(--mint-wash);
  padding: var(--space-4) var(--space-5);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p { color: var(--ink); }

/* ---- scroll reveal (opt-in, transform+opacity only) ------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 340ms var(--ease-out), transform 340ms var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:active { transform: none; }
  .btn--solid::after { transition: none; }
  .masthead { backdrop-filter: none; background: var(--paper); }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---- showcase polish ------------------------------------------------ */
/* Rank badges for leaderboard rows. Fixed mint-on-ink for first place
   clears contrast in both themes; other places use surface tokens. */
.rank {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding-inline: 0.3rem;
  margin-right: var(--space-2);
  border-radius: 0.45rem;
  background: var(--paper-warm);
  border: 1px solid var(--hairline);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  vertical-align: baseline;
}
.rank--first {
  background: var(--mint);
  border-color: var(--mint);
  color: #04241d;
}

/* Presence dot for live rows. Pulses gently unless the visitor asked
   for reduced motion, in which case it sits still. */
.live-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: var(--space-2);
  border-radius: 999px;
  background: var(--mint);
  vertical-align: baseline;
}
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: pulse 2.2s ease-out infinite; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Nudge on the primary action. The slash keeps the arrow decorative
   for assistive technology. */
.btn--solid::after {
  content: "→" / "";
  display: inline-block;
  transition: transform var(--t-fast) var(--ease-out);
}
.btn--solid:hover::after { transform: translateX(3px); }

/* Open FAQ rows keep the hover colour so the state stays visible. */
.faq details[open] summary { color: var(--mint-deep); }

/* The sticky masthead covers anchored jumps, so every target yields. */
[id] { scroll-margin-top: calc(64px + var(--space-4)); }



/* ---- ticker --------------------------------------------------- */
.ticker {
  border-block: 1px solid var(--hairline);
  background: var(--paper-pure);
  overflow: hidden;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: tick 30s linear infinite;
}
.ticker__group { display: flex; }
.ticker__group span {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-5) var(--space-4) 0;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 640;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ticker__group span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--mint);
  flex: none;
}
@keyframes tick { to { transform: translateX(-50%); } }
.ticker__track.is-paused { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* ---- bento ------------------------------------------------------ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-7);
}
.bento__cell {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--paper-pure);
  padding: clamp(var(--space-5), 3vw, var(--space-6));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
  grid-column: span 2;
  transition: border-color var(--t-base) var(--ease-out);
}
.bento__cell:hover { border-color: var(--hairline-strong); }
.bento__cell--lg { grid-column: span 4; }
.bento__cell--wide { grid-column: span 6; }
.bento__kick {
  font-family: var(--font-num);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-deep);
}
.bento__cell h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 680;
}
.bento__cell p { font-size: 0.9375rem; color: var(--ink-soft); }
.bento__fig { margin-top: auto; padding-top: var(--space-2); }
.bento__fig .panel__rows { gap: var(--space-3); }
.bento__fig .panel__row { padding-bottom: var(--space-3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.chips li {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  background: var(--paper);
  white-space: nowrap;
}

/* ---- stack ------------------------------------------------------ */
.stack { display: grid; gap: var(--space-4); margin-top: var(--space-7); }
.stack__card {
  position: sticky;
  background: var(--paper-pure);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-5), 4vw, var(--space-7));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(var(--space-4), 3vw, var(--space-6));
  align-items: start;
}
.stack__card:nth-child(1) { top: calc(64px + var(--space-4)); }
.stack__card:nth-child(2) { top: calc(64px + var(--space-5)); }
.stack__card:nth-child(3) { top: calc(64px + var(--space-6)); }
.stack__n {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--mint-deep);
}
.stack__card h3 {
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  letter-spacing: -0.024em;
  line-height: 1.14;
  font-weight: 680;
}
.stack__card p { font-size: 0.9375rem; color: var(--ink-soft); margin-top: var(--space-3); max-width: 52ch; }

/* ---- responsive ------------------------------------------------- */
@media (max-width: 62rem) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .phone { width: min(260px, 62%); }
  .feature,
  .feature:nth-child(even) .feature__copy { grid-template-columns: 1fr; order: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--lg { grid-column: span 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .doc__toc ol { columns: 1; }
}

@media (max-width: 44rem) {
  .nav { display: none; }
  .nav__toggle { display: inline-flex; }

  /* Mobile nav is the one element that truly floats, so it is the one
     element with a shadow. */
  .masthead--open .nav {
    display: grid;
    position: absolute;
    isolation: isolate;
    z-index: var(--z-sheet);
    inset-inline: var(--edge);
    top: calc(64px + var(--space-2));
    background: var(--paper-pure);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    gap: var(--space-1);
    box-shadow: var(--shadow-sheet);
  }
  .masthead--open .nav__link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    font-size: 1rem;
  }
  .masthead--open .nav__link:hover { background: var(--paper-warm); }
  .masthead--open .nav .btn { margin-top: var(--space-2); }

  /* Tighten the mockup so its cards end on a card boundary instead of
     clipping mid-word against the fixed-aspect screen. */
  .phone__body { gap: var(--space-2); padding: var(--space-3); }
  .phone .post { padding: var(--space-2) var(--space-3); }
  .phone .post__line, .phone .post__stat { margin-top: var(--space-2); }
  .phone .ring { width: 52px; height: 52px; }
  .phone__top { padding-top: 28px; }
  .phone .post:last-child { display: none; }

  .bento { grid-template-columns: 1fr; }
  .bento__cell--lg { grid-column: span 1; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .footer__base { gap: var(--space-2); }
}

@media print {
  .masthead, .footer__grid, .cta__inner, .nav__toggle { display: none; }
  body { background: #fff; color: #000; }
}

/* ---- small utilities ------------------------------------------- */
/* These exist so no page needs an inline style attribute, which lets the
   site ship a CSP without style-src 'unsafe-inline'. */
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mt-0 { margin-top: 0; }
.h1--sub { font-size: clamp(2.25rem, 5.4vw, 3.75rem); }
.eyebrow--bare { border: 0; margin: 0; padding: 0; }

/* ---- masthead actions + icon button ---------------------------- */
.masthead__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: var(--space-5);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              background-color var(--t-fast) var(--ease-out);
}
.icon-btn:hover { color: var(--ink); border-color: var(--hairline-strong); background: var(--paper-warm); }
.icon-btn:active { background: var(--hairline); }
.icon-btn svg { width: 18px; height: 18px; display: block; }

/* Show the icon for the theme you would switch TO, so the control reads as
   an action rather than a status. */
.icon-btn__moon { display: none; }
:root[data-theme="dark"] .icon-btn__sun { display: none; }
:root[data-theme="dark"] .icon-btn__moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn__sun { display: none; }
  :root:not([data-theme="light"]) .icon-btn__moon { display: block; }
}
/* An explicit light choice always shows the sun, whatever the system says. */
:root[data-theme="light"] .icon-btn__sun { display: block; }
:root[data-theme="light"] .icon-btn__moon { display: none; }

/* The toggle is hidden until the script can make it work, so it is never a
   dead control for a visitor with JavaScript blocked. */
.no-js .icon-btn { display: none; }
