/* ============================================================
   LiveHost marketing site: the lhv2 design system

   Hand-written CSS, served as written; the @font-face rules live in
   lhv2-fonts.css. Dark sections are the machine (technology), light
   sections the people (talent), and pages alternate between the two.

   Contents
      1. Tokens                      18. Live footage
      2. Base                        19. Figures
      3. Layout                      20. Roster
      4. Type                        21. Phones and app downloads
      5. Buttons and links           22. FAQ
      6. Live pill and pulse         23. CTA band
      7. Header and navigation       24. Forms
      8. Logo wall                   25. Footer
      9. Scroll reveal               26. Host apply block
     10. Hero                        27. Developer API
     11. Section heads               28. Auth pages
     12. Product UI mock             29. Apply wizard
     13. Doors                       30. Legal pages
     14. Feature rows                31. Utilities
     15. Spec list                   32. Motion
     16. Steps                       33. Phones and touch
     17. Moment and stage

   A breakpoint that belongs to one component sits with it; section 33 is
   the site-wide phone pass and comes after everything it adjusts.
   ============================================================ */

/* ============================================================
   1. Tokens
   ============================================================ */

:root {
  /* Brand palette: four colours carry everything (brand guidelines). The
     restraint is the point: confidence comes from weight and space. */
  --ink:         #14130e;  /* primary text & marks */
  --cream:       #f4f1e6;  /* primary background */
  --sand:        #efebdc;  /* alt / section surface */
  --stone:       #8a8676;  /* secondary text only */

  /* Warm derivatives of ink: surfaces and rules on dark */
  --ink-1:       #1a1912;
  --ink-2:       #1c1b14;
  --ink-3:       #23211a;
  --line:        #2c2a20;
  --line-soft:   #262418;

  /* Warm derivatives of cream: surfaces and rules on light */
  --paper:       #f4f1e6;
  --paper-2:     #fbf9f1;
  --paper-line:  #e4dfcf;
  --paper-ink:   #14130e;
  --paper-mute:  #57543f;

  /* Type on dark */
  --cream-dim:   #c9c4b2;
  --cream-hover: #e9e4d2;
  --mute:        #8a8676;  /* stone */

  /* Emphasis is tonal, never chromatic */
  --accent:      #f4f1e6;
  --accent-lo:   #8a8676;
  --accent-dim:  rgba(244, 241, 230, .07);

  /* Functional status only: product UI, never brand chrome */
  --live:        #e1503a;
  --win:         #7fa067;
  --fix:         #e1503a;
  --watch:       #c08a2e;

  --font:         'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Albert Sans', 'Figtree', sans-serif;  /* the public site's heading face */
  --mono:         'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --maxw: 1280px;

  /* Type: seven steps, and nothing on a page sits between them. Sizes below
     --t-small exist only inside .app product mocks, where dense UI type is
     authentic and is the point. */
  --t-display: clamp(38px, 5vw,   70px);  /* one per page, the hero */
  --t-title:   clamp(29px, 3.3vw, 43px);  /* h2 and the stat figures */
  --t-sub:     clamp(20px, 1.7vw, 25px);  /* h3, statements */
  --t-lede:    clamp(17px, 1.3vw, 19px);  /* supporting line, names */
  --t-body:    16px;
  --t-small:   14px;
  --t-micro:   11px;                      /* the single mono label */
  /* The ladder is 70 / 43 / 25 / 19 / 16 / 14 / 11 at the widest step and
     38 / 29 / 20 / 17 / 16 / 14 / 11 on a phone: 1.63x display to title and
     1.72x title to sub, so the hero is unmistakably the loudest object and a
     section head can never read as a second hero (a step near 1.4x lets it).
     The display face stops at h3; below 28px it only reads as heavy bold, so
     lead-ins are the body face at 600. */

  /* Spacing: one rhythm. Every margin and pad on a page comes from this
     list or from a section token below. */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 40px;
  --s-5: 64px;
  --s-6: 96px;
  --s-7: 136px;

  /* Section weights: three, so a utility row and a product moment never
     get identical air. */
  --sect-tight: clamp(52px, 5vw,  72px);
  --sect:       clamp(64px, 6vw,  96px);
  --sect-open:  clamp(80px, 8vw, 124px);

  /* Page frame */
  --gutter: clamp(24px, 4.6vw, 64px);
  --hdr-h:  74px;

  /* Physical light: one model, used everywhere depth is real. The light
     source is directly above; on ink the rim does the work, on paper the
     shadow does. */
  --rim:      inset 0 0 0 1px rgba(244, 241, 230, .1);
  --rim-ink:  inset 0 0 0 1px rgba(20, 19, 14, .07);
  --contact:  0 1px 0 rgba(0, 0, 0, .5);
  --lift:     0 48px 96px -38px rgba(0, 0, 0, .9);
  --lift-ink: 0 40px 84px -36px rgba(20, 19, 14, .3);
}

/* ============================================================
   2. Base
   ============================================================ */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  /* Most CTAs are in-page anchors: each jump lands its heading below the
     sticky header, not under it. */
  scroll-padding-top: calc(var(--hdr-h) + 28px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* clip, not hidden: a hidden body becomes a scroll container under the menu lock and
     the sticky header drops back to the page top. hidden stays as the fallback. */
  overflow-x: hidden;
  overflow-x: clip;
}

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
/* ol as well as ul: .steps and .spec are ordered lists, and the native
   counter would compete with their mono data-n marker. */
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--cream); color: var(--ink); }
/* Cream on ink, ink on paper: the ring is always the strongest tonal step
   available. Stone is only 3.2:1 on paper, too faint for a focus ring. */
:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
  border-radius: 4px;
}
.paper :focus-visible,
.door-light :focus-visible { outline-color: var(--ink); }

/* ============================================================
   3. Layout
   ============================================================ */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-narrow { max-width: 940px; }

.sect { padding: var(--sect) 0; position: relative; }
.sect-sm { padding: var(--sect-tight) 0; }
.sect-lg { padding: var(--sect-open) 0; }

/* Light sections — the human half of the story */
.paper {
  background: var(--paper);
  color: var(--paper-ink);
}
.paper h2 .dim, .paper h3 .dim { color: var(--stone); }

.hair { border-top: 1px solid var(--line); }
.paper .hair { border-top: 1px solid var(--paper-line); }

/* ============================================================
   4. Type
   ============================================================ */

/* The signature: heavy lowercase grotesque, tight, with a trailing period.
   h1 is the hero's voice, one per page; h2 and h3 share its face at heavier
   weights and keep the lowercase and the period. */
h1, h2, h3, .display {
  text-transform: lowercase;
  text-wrap: balance; /* the trailing period never orphans */
  font-optical-sizing: auto;
}
h1, .display { font-family: var(--font-display); font-weight: 400; }
h2, h3 { font-family: var(--font-display); font-weight: 500; }

h1, .h1 {
  font-size: var(--t-display);
  letter-spacing: -.045em;
  line-height: 1.04;
  max-width: 15ch;
}
h2, .h2 {
  font-size: var(--t-title);
  letter-spacing: -.035em;
  line-height: 1.08;
  max-width: 18ch;
}
h3, .h3 {
  font-size: var(--t-sub);
  font-weight: 600; /* weight joins size in carrying the step */
  letter-spacing: -.025em;
  line-height: 1.14;
  max-width: 22ch;
}
.h4 {
  font-family: var(--font);
  font-size: var(--t-lede);
  font-weight: 700;
  text-transform: lowercase; /* one family, one case */
  letter-spacing: -.018em;
  line-height: 1.14;
}

/* The mark. Kept only as the final glyph of a heading, one per
   heading — never wrapping a comma, a question mark or a plus.
   Ink-only, so the class earns its place as optical correction. */
.dot { color: inherit; margin-left: -.06em; }
h1 .dot, h2 .dot { margin-left: -.09em; }
.dim { color: var(--mute); } /* one use per page maximum */

.lede {
  font-size: var(--t-lede);
  line-height: 1.5;
  color: var(--cream-dim);
  max-width: 46ch; /* deliberately tight: a four-sentence lede cannot fit */
  font-weight: 400;
}
.paper .lede { color: var(--paper-mute); }

/* One mono label size for every label role in this list. */
.tag, .kicker, .field label, .foot .foot-h, .foot-base, .live-pill, .live-badge,
.host-body span, .apply-note {
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .14em; /* wider tracking turns words into texture */
  text-transform: uppercase;
}
.tag { color: var(--mute); }
/* Absorbs the trailing letter-space so a centred mono caption centres optically. */
.tag.center { margin-right: -.14em; }

/* Mono's second role: it sets content (code), not only labels. */
code, pre, .code {
  font-family: var(--mono);
  font-size: var(--t-small);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-variant-ligatures: none;
  font-feature-settings: 'liga' 0, 'calt' 0;
}

.num {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.04em; /* one tracking for every figure */
  line-height: .9;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

/* No ornament before a kicker: the brand's mark is the period. Two kickers
   per page at most, and only where the label carries what the headline
   cannot ("DATA API / V1", "BETA"). */
.kicker {
  color: var(--stone);
  display: block;
  margin: 0 0 var(--s-2);
  margin-left: -.02em;
}
.paper .kicker { color: var(--paper-mute); }

/* ============================================================
   5. Buttons and links
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 26px;
  border-radius: 100px;
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: -.01em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .25s, border-color .25s, color .25s, transform .18s var(--ease);
}
/* Nothing lifts: a floating hover is the most recognisable template
   interaction there is. */
.btn:hover { transform: none; }
.btn:active { transform: scale(.985); }
/* Set by lhv2.js on submit: one press per post. */
.btn[aria-busy="true"] { opacity: .6; cursor: progress; pointer-events: none; }

.btn-accent {
  background: var(--cream);
  color: var(--ink);
}
.btn-accent:hover { background: var(--cream); filter: brightness(.93); }
.paper .btn-accent { background: var(--ink); color: var(--cream); }
.paper .btn-accent:hover { background: #2c2a20; filter: none; }

.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: var(--cream); filter: brightness(.93); }

.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: #2c2a20; }

.btn-ghost {
  border-color: var(--line);
  color: var(--cream);
  background: transparent;
}
.btn-ghost:hover { border-color: #45412f; background: rgba(244, 241, 230, .04); }
.paper .btn-ghost { border-color: var(--paper-line); color: var(--paper-ink); }
.paper .btn-ghost:hover { border-color: #cfc8b4; background: rgba(20, 19, 14, .03); }

.btn-lg { height: 56px; padding: 0 32px; font-size: var(--t-body); }
.btn-sm { height: 40px; padding: 0 18px; font-size: var(--t-small); }

/* Audience kicker inside a button: who the door is for, before what it does. */
.btn-k {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1;
  opacity: .62;
  padding-right: 10px;
  border-right: 1px solid color-mix(in srgb, currentColor 35%, transparent);
}
.btn-lg .btn-k { font-size: 10.5px; }
.btn-sm .btn-k { padding-right: 8px; }

/* Sign in is a link, not a third pill: the two pills are the two audiences. */
.nav-signin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cream-dim);
  font-size: var(--t-small);
  font-weight: 500;
  margin-right: 6px;
  transition: color .2s;
}
.nav-signin:hover { color: var(--cream); }
.nav-signin svg { transition: transform .3s var(--ease); }
.nav-signin:hover svg { transform: translateX(3px); }

.btn-arrow svg { transition: transform .3s var(--ease); }
.btn-arrow:hover svg { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--cream);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: gap .3s var(--ease);
}
.link-arrow:hover { gap: 13px; }
.paper .link-arrow { color: var(--ink); border-bottom-color: var(--paper-line); }

/* ============================================================
   6. Live pill and pulse
   ============================================================ */

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  flex: none;
  position: relative;
  box-shadow: 0 0 0 0 rgba(225, 80, 58, .6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(225, 80, 58, .55); }
  70% { box-shadow: 0 0 0 9px rgba(225, 80, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 80, 58, 0); }
}

/* Status colour is product UI only (brand guidelines): the red pulse is
   hidden in brand chrome such as the pills and the hero, and shows only
   inside .app mocks. */
.live-pill .pulse,
.hero .pulse { display: none; }
.app .pulse { display: block; }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 13px 0 11px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: rgba(244, 241, 230, .025);
  color: var(--cream-dim);
}

/* ============================================================
   7. Header and navigation
   ============================================================ */

.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 19, 14, .74);
  /* kept gentle: a stronger saturate tints the cream mark in front of it */
  backdrop-filter: saturate(120%) blur(20px);
  -webkit-backdrop-filter: saturate(120%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.hdr.stuck { border-bottom-color: var(--line); background: rgba(20, 19, 14, .93); }

.nav {
  height: var(--hdr-h);
  display: flex;
  align-items: center;
  gap: 34px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Horizontal lockup (brand guidelines): mark + wordmark, with the gap
   equal to half the mark's width. Never recoloured, never split. */
.mark {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.mark-badge { width: 28px; height: 28px; flex: none; }
.mark-word { width: 106px; height: auto; flex: none; }

/* The compact footer keeps the nav-size lockup. */
.foot:not(.foot-compact) .mark { gap: 16px; margin-bottom: 18px; }
.foot:not(.foot-compact) .mark-badge { width: 32px; height: 32px; }
.foot:not(.foot-compact) .mark-word { width: 120px; }

/* Stays above the 90px wordmark minimum at every width */
@media (max-width: 420px) { .mark-word { width: 96px; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-right: auto;
  font-size: var(--t-small);
  font-weight: 500;
}
.nav-links a {
  color: var(--cream-dim);
  transition: color .2s;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--cream); }
.nav-links a[aria-current]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--cream);
  border-radius: 2px;
}

/* The audience pair is set like the pill kickers, so nav and CTAs read as one system. */
.nav-links a.nav-k {
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav-sep {
  width: 1px;
  height: 14px;
  background: var(--line);
  margin: 0 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--cream);
  margin: 3px auto;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Collapses on a grid track so it opens instead of appearing. */
.mobile-menu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s var(--ease);
}
.mobile-menu.open { grid-template-rows: 1fr; }
.mobile-menu-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 var(--gutter);
  /* Closed, the links leave the tab order; the delay lets the close animate. */
  visibility: hidden;
  transition: visibility 0s .32s;
}
.mobile-menu.open .mobile-menu-inner {
  border-top: 1px solid var(--line);
  padding: 10px var(--gutter) var(--s-3);
  visibility: visible;
  transition: none;
}
/* html only: locking body too makes it a scroll container and un-sticks the header. */
html.menu-open { overflow: hidden; }
.mobile-menu a {
  padding: 14px 0;
  font-size: var(--t-lede);
  font-weight: 600;
  letter-spacing: -.02em;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu .btn { margin-top: 18px; border-bottom-color: transparent; }

/* The desktop nav needs ~1082px, so the menu takes over at the hero's own 1080 breakpoint. */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
  }
  .nav-actions .btn-ghost, .nav-actions .nav-signin { display: none; }
  .nav-links, .nav-actions { margin-right: 0; }
  .nav-actions { margin-left: auto; }
  .nav { justify-content: space-between; gap: 14px; }
  .btn-sm { height: 44px; padding: 0 18px; }
  /* The menu reads as a panel, not a dropdown pushing the page. */
  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--hdr-h));
    overflow-y: auto;
    background: var(--ink);
  }
  .mobile-menu.open .mobile-menu-inner {
    padding-bottom: max(var(--s-4), env(safe-area-inset-bottom));
    /* the inner box is what the grid row shrinks, so it is what scrolls on a short screen */
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
/* Phones: the header pill drops its kicker (the menu carries it) so mark, pill
   and toggle fit. Mark 138 + gap + "Book a demo" + gap + 44px toggle +
   gutters = 372px; below that the CTA lives in the menu. */
@media (max-width: 640px) { .nav-actions .btn-k { display: none; } }
@media (max-width: 372px) { .nav-actions { display: none; } }

/* ============================================================
   8. Logo wall
   ============================================================ */

/* Client logo wall. It scrolls by design: two identical halves make the
   loop seamless, and the mask fades the edges so logos enter and leave
   rather than pop. The count is the wall's own label, on its left edge,
   not a caption floating above it. */
.wall { display: flex; align-items: center; gap: var(--s-4); }
.wall-label {
  display: block;
  flex: none;
  width: 150px;
  margin: 0;
  padding-right: var(--s-3);
  border-right: 1px solid var(--line);
  line-height: 1.6;
}
.wall .marquee { flex: 1; min-width: 0; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: slide 42s linear infinite;
  animation-delay: -9s;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-half {
  display: flex;
  align-items: center;
  gap: 60px;
  padding-right: 60px;
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Files are trimmed to their own artwork, so a shared height and width cap
   is what keeps a tall stacked mark and a long wordmark at equal weight. */
.marquee-half img {
  max-height: 38px;
  max-width: 140px;
  width: auto;
  height: auto;
  flex: none;
  opacity: .8;
  transition: opacity .3s var(--ease);
}
.marquee:hover .marquee-half img { opacity: 1; }
.marquee-half img[src*="azio"] { max-width: 180px; }

@media (max-width: 640px) {
  .marquee-half { gap: 38px; padding-right: 38px; }
  .marquee-half img { max-height: 30px; max-width: 108px; }
  .marquee-half img[src*="azio"] { max-width: 138px; }
}

/* ============================================================
   9. Scroll reveal
   ============================================================ */

/* Scoped to html.js: with JavaScript off, nothing is ever hidden. The motion
   budget goes on headings, lists and the one or two objects per page that
   matter, and each settles 10px rather than sliding. */
html.js .rv {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
html.js .rv.in { opacity: 1; transform: none; }
html.js .rv.rv-2 { transition-delay: .07s; }   /* outranks the shorthand above, which resets the delay */

/* .rv-rows: a list arrives row by row. The container holds still and its
   direct children settle in sequence; the delay rides --rv-d so a row's own
   transitions (the roster card's shadow) keep no delay. */
html.js .rv.rv-rows { opacity: 1; transform: none; transition: none; }
html.js .rv-rows > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--ease) var(--rv-d, 0s), transform .6s var(--ease) var(--rv-d, 0s);
}
html.js .rv-rows > .host {
  transition:
    opacity .5s var(--ease) var(--rv-d, 0s),
    transform .6s var(--ease) var(--rv-d, 0s),
    box-shadow .4s var(--ease);
}
html.js .rv-rows.in > * { opacity: 1; transform: none; }
html.js .rv-rows > :nth-child(2) { --rv-d: .045s; }
html.js .rv-rows > :nth-child(3) { --rv-d: .09s; }
html.js .rv-rows > :nth-child(4) { --rv-d: .135s; }
html.js .rv-rows > :nth-child(5) { --rv-d: .18s; }
html.js .rv-rows > :nth-child(n+6) { --rv-d: .225s; }
/* The signal cards are the product moment: they get the slower beat. */
html.js .signals.rv-rows > :nth-child(2) { --rv-d: .09s; }
html.js .signals.rv-rows > :nth-child(3) { --rv-d: .18s; }
html.js .signals.rv-rows > :nth-child(4) { --rv-d: .27s; }
html.js .signals.rv-rows > :nth-child(5) { --rv-d: .36s; }
html.js .signals.rv-rows > :nth-child(n+6) { --rv-d: .45s; }

/* Same-origin page loads cross-fade where supported: these pages load in
   full, so this is the only page-to-page transition. */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  html.js .rv { opacity: 1; transform: none; transition: none; }
  html.js .rv-rows > * { opacity: 1; transform: none; transition: none; }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
  .pulse { animation: none !important; }
  .marquee-track { animation: none; }
}

/* ============================================================
   10. Hero — the control room
   ============================================================ */

/* One live frame, not a wall of headshots. */
.hero { position: relative; padding: var(--sect-tight) 0 var(--sect); overflow: hidden; }
.hero > * { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: var(--s-7);
  align-items: center;
}
.hero h1 { margin: 0; }
.hero .lede { margin-top: var(--s-3); }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-top: var(--s-4);
}
/* Home hero: host and brand as a matched pair of cards, each as wide as the wider one. */
.hero-ctas-pair {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
}
.hero-ctas-pair > .btn { height: auto; padding-inline: 20px; border-radius: var(--r-lg); }

/* Home hero: with no pill above it the headline leads. */
.hero-lead { padding-top: var(--sect-tight); padding-bottom: var(--sect); }

/* Up to 1160 the clip column narrows to the clip: the desktop split wraps the three figures
   until ~1140, and landscape tablets keep a two-column fold. */
@media (max-width: 1160px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-5); }
}
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   11. Section heads
   ============================================================ */

.head { max-width: 640px; margin-bottom: 48px; }
.head h2 { margin-bottom: var(--s-3); }
/* A centred head centres the heading's box, not just its text. */
.head.center { margin-inline: auto; }
.head.center h2, .head.center .lede { margin-left: auto; margin-right: auto; }
.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.head-row .head { margin-bottom: 0; }
@media (max-width: 800px) {
  .head-row { flex-direction: column; align-items: flex-start; gap: 26px; }
}

/* ============================================================
   12. Product UI mock — the app made real in HTML
   ============================================================ */

/* A black shadow on ink can only darken the ground a few percent
   before it bottoms out, so on dark the lit top rim does the work and
   the shadow is nearly decorative; on paper the reverse. */
.app {
  border: 0;
  border-radius: var(--r-lg);
  background: var(--ink-1);
  overflow: hidden;
  box-shadow: var(--rim), var(--contact), 0 40px 84px -30px rgba(0, 0, 0, .9);
}
.paper .app { background: var(--paper-2); box-shadow: var(--rim-ink), var(--lift-ink); }

.app-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 15px;
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 var(--line);
  background: var(--ink-2);
}
.paper .app-bar { box-shadow: inset 0 -1px 0 var(--paper-line); }
.app-dots { display: flex; gap: 6px; flex: none; }
.app-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #37342a;
  display: block;
}
/* One line, clipped: wrapped, the pill's own border cuts through the second line. */
.app-search {
  flex: 1;
  max-width: 300px;
  height: 25px;
  border-radius: 7px;
  background: var(--ink);
  border: 1px solid var(--line-soft);
  display: block;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 23px;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-bar .live-pill { height: 24px; font-size: 9.5px; margin-left: auto; }

.app-body { display: grid; grid-template-columns: 172px 1fr; min-height: 380px; }

.app-side {
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  background: var(--ink-1);
}
.app-side .tag {
  display: block;
  padding: 0 8px;
  margin: 16px 0 8px;
  font-size: 9px;
}
.app-side .tag:first-child { margin-top: 0; }
/* Inert <span> rows — the sidebar is a picture of the product, not navigation.
   Named app-nav, not nav: a bare .nav is the real site header. */
.app-side .app-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--mute);
  cursor: default;
}
.app-side .app-nav.on { background: var(--accent-dim); color: var(--cream); }
.app-side .app-nav i {
  width: 12px;
  height: 12px;
  border-radius: 3.5px;
  background: currentColor;
  opacity: .3;
  flex: none;
}
.app-side .app-nav.on i { opacity: 1; background: var(--cream); }

.app-main { padding: 22px; min-width: 0; }
.app-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.app-title b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.app-title .tag { font-size: 9.5px; }

@media (max-width: 900px) {
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-main { padding: 16px; }
}

/* ---- Scout signal cards (win / fix / watch) ---- */

.signals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 11px;
}
.sig {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--ink-2);
  padding: 13px;
  border-top: 2px solid var(--v, var(--stone));
  min-width: 0;
}
.sig.win { --v: var(--win); }
.sig.fix { --v: var(--fix); }
.sig.watch { --v: var(--watch); }

.sig-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}
.sig-top .tag { font-size: 9px; color: var(--v); }
.sig-av {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--ink-3);
  display: grid;
  place-items: center;
  font-size: 8.5px;
  font-weight: 700;
  color: var(--cream-dim);
  flex: none;
}
/* Signal card titles are decorative text inside a product mock, not headings. */
.sig .sig-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.015em;
  margin-bottom: 8px;
  color: var(--cream);
}
.sig .num { font-size: 25px; color: var(--v); margin-bottom: 6px; }
.sig p {
  font-size: 11px;
  line-height: 1.48;
  color: var(--mute);
}
.sig-foot {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.sig-foot .v { color: var(--v); }

/* ---- Peak moments ---- */

.peaks { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.peak {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--ink-2);
  padding: 12px;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
}
@media (max-width: 372px) { .peak { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; } }
.peak-thumb {
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink-3);
  aspect-ratio: 3/4;
}
.peak-thumb img { width: 100%; height: 100%; object-fit: cover; }
.peak-when {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}
.peak-when b { font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; }
.peak-rank {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background: var(--cream);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  flex: none;
}
.peak-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.peak-stats div {
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  padding: 7px 8px;
}
.peak-stats .tag { font-size: 8.5px; display: block; margin-bottom: 2px; }
.peak-stats b { font-size: 14px; font-weight: 700; letter-spacing: -.03em; }

.hl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px;
  margin-top: 11px;
}
.hl {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--ink-2);
  padding: 10px 12px;
}
.hl b {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.035em;
}
.hl span {
  font-size: 10.5px;
  color: var(--mute);
  line-height: 1.35;
  display: block;
  margin-top: 2px;
}

.readout {
  margin-top: 11px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--stone);
  border-radius: 9px;
  background: rgba(244, 241, 230, .035);
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--cream-dim);
}

@media (max-width: 640px) { .peaks { grid-template-columns: 1fr; } }

/* ---- Comment clusters ---- */

.clusters { display: flex; flex-direction: column; gap: 3px; }
.cl { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.cl:last-child { border-bottom: 0; }
.cl-row {
  display: grid;
  grid-template-columns: 96px 1fr 64px;
  align-items: center;
  gap: 12px;
}
.cl-row > span:first-child {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.cl-bar {
  height: 7px;
  border-radius: 100px;
  background: var(--ink-3);
  overflow: hidden;
}
.cl-bar i {
  display: block;
  height: 100%;
  border-radius: 100px;
  background: var(--cream); /* flat: the palette has no gradients */
  width: var(--w, 40%);
}
.cl-row > span:last-child {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--mute);
  text-align: right;
}
.cl q {
  display: block;
  font-size: 11.5px;
  color: var(--mute);
  font-style: italic;
  margin-top: 5px;
  padding-left: 108px;
  quotes: '"' '"';
}
@media (max-width: 640px) {
  .cl-row { grid-template-columns: 76px 1fr 48px; gap: 8px; }
  .cl q { padding-left: 0; }
}

/* ---- Metric strip ---- */

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  margin-bottom: 14px;
}
.metrics div { background: var(--ink-2); padding: 12px 14px; }
.metrics .tag { font-size: 8.5px; display: block; margin-bottom: 4px; }
.metrics b { font-size: 21px; font-weight: 700; letter-spacing: -.04em; }

/* Four-tile metric strips: two clean columns on a phone rather than
   three plus a stranded fourth. */
@media (max-width: 720px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  /* A three-tile strip spans its last tile rather than leaving a hole. */
  .metrics > div:nth-child(3):last-child { grid-column: 1 / -1; }
}

/* ============================================================
   13. Doors — brands and hosts
   ============================================================ */

/* Two doors, two headlines, nothing more. */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.door {
  position: relative;
  border-radius: var(--r-xl);
  padding: var(--s-5) var(--s-4) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-height: 320px;
  transition: border-color .35s var(--ease);
}
.door-dark {
  background: var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: var(--rim);
}
.door-light {
  background: var(--paper);
  color: var(--paper-ink);
  border: 1px solid var(--paper-line);
}
.door-light .kicker { color: var(--paper-mute); }

.door > * { position: relative; z-index: 1; }
.door h3 { margin: 0; }
.door > p {
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--cream-dim);
  max-width: 34ch;
  margin: 0;
}
.door-light > p { color: var(--paper-mute); }

.door .btn { margin-top: auto; align-self: flex-start; }

/* Nothing lifts. */
.door:hover { transform: none; }
.door-dark:hover { border-color: #3b382b; }
.door-light:hover { border-color: #cfc8b4; }

@media (max-width: 900px) {
  .door { padding: var(--s-4) var(--s-3); min-height: 0; }
}
@media (max-width: 640px) { .doors { grid-template-columns: 1fr; } }

/* ============================================================
   14. Feature rows
   ============================================================ */

/* .feat only stacks its rows in the page rhythm; .moment, .stage and .spec
   carry the product. */
.feat { display: block; }
.feat + .feat { margin-top: var(--sect-tight); }

/* Feature lists are the same hairline rows as .spec: no ordinal, no gloss
   paragraph. */
.feat-points {
  margin: var(--s-4) 0 0;
  padding: 0;
  display: block;
  list-style: none;
  border-top: 1px solid var(--line);
}
.paper .feat-points, .paper .feat-points li { border-color: var(--paper-line); }
.feat-points li {
  display: block;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
.feat-points b {
  display: block;
  font-family: var(--font);
  font-size: var(--t-lede);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -.01em;
  line-height: 1.3;
}

/* ============================================================
   15. Spec list
   Used in place of 3-across icon-card grids: one statement per row, one
   line of gloss, a hairline between. No boxes, no rounded-square icons, no
   ordinals.
   ============================================================ */

.spec { border-top: 1px solid var(--line); margin: 0; list-style: none; }
.paper .spec, .paper .spec li { border-color: var(--paper-line); }
.spec li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--s-4);
  align-items: baseline;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
.spec b {
  font-family: var(--font);
  font-size: var(--t-lede);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -.01em;
  line-height: 1.3;
  color: var(--cream);
}
.paper .spec b { color: var(--paper-ink); }
.spec p {
  font-size: var(--t-small);
  line-height: 1.55;
  color: var(--mute);
  max-width: 46ch;
  margin: 0;
}
.paper .spec p { color: var(--paper-mute); }
@media (max-width: 760px) {
  .spec li { grid-template-columns: 1fr; gap: var(--s-1); }
}

/* ============================================================
   16. Steps
   The one real sequence on the site (/brands, 01–04), set as a timeline so
   the count does something the layout cannot and a sequence never reads as
   a facet list.
   Markup: <ol class="steps"><li data-n="01">…
   ============================================================ */

.steps {
  position: relative;
  padding-left: 68px;
  margin: 0;
  list-style: none;
}
.steps::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line);
}
.paper .steps::before { background: var(--paper-line); }
.steps li { position: relative; padding: var(--s-4) 0; max-width: 42ch; }
.steps li::before {
  content: attr(data-n);
  position: absolute;
  left: -68px;
  top: calc(var(--s-4) + 6px);
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--stone);
}
.steps b {
  display: block;
  font-family: var(--font);
  font-size: var(--t-lede);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -.01em;
  line-height: 1.3;
  margin-bottom: var(--s-1);
}
.steps p {
  font-size: var(--t-small);
  line-height: 1.55;
  color: var(--mute);
  margin: 0;
}
.paper .steps p { color: var(--paper-mute); }
@media (max-width: 620px) {
  .steps { padding-left: 44px; }
  .steps li::before { left: -44px; }
}

/* ============================================================
   17. Moment and stage — the product, given real space
   .moment: the input and the output in one frame (live footage left, the
   app mock right). .stage: the mock alone, full column, so its internals
   render at legible sizes instead of texture.
   ============================================================ */

.moment {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: var(--s-7);
  align-items: center;
}
.moment > .head { grid-column: 1 / -1; max-width: 20ch; margin-bottom: var(--s-2); }
/* minmax(0, …) and min-width: 0, or a nowrap line in a mock sets the column width and the page overflows. */
.moment > * { min-width: 0; }
@media (max-width: 1100px) { .moment { gap: var(--s-5); } }
@media (max-width: 1000px) {
  .moment { grid-template-columns: minmax(0, 1fr); }
}
/* /brands: on tablets the clip keeps its feature list beside it rather than standing alone. */
@media (min-width: 761px) and (max-width: 1000px) {
  .moment-spec { grid-template-columns: minmax(0, 292px) minmax(0, 1fr); gap: var(--s-4); }
  .moment-spec .spec li { grid-template-columns: 1fr; gap: var(--s-1); }
}

.stage .app { max-width: 1120px; margin: 0 auto; }
.stage .app-body { min-height: 520px; }
.stage .app-main { padding: 30px 34px; }
.stage .metrics b { font-size: 26px; }
.stage .sig .sig-title { font-size: 15px; }
.stage .sig .num { font-size: 31px; }
.stage .sig p { font-size: 12.5px; }
.stage .app-side { padding: 20px 14px; }

/* ============================================================
   18. Live footage — the strongest proof on the site
   One clip per moment, never a gallery. The clips are 480x920, 480x854,
   480x1060 and 480x998, so the frame takes its real ratio from --ar rather
   than cropping all four into one box, and desktop widths stay well under
   the 480px source so it is never upscaled there.

   <figure class="live" style="--ar: 480 / 920">
     <img class="live-poster" src="clip.jpg" alt="" width="480" height="920">
     <video src="clip.mp4" poster="clip.jpg" width="480" height="920"
            autoplay muted loop playsinline preload="metadata"></video>
     <span class="live-badge"><i></i>Live</span>
   </figure>
   ============================================================ */

.live {
  position: relative;
  width: min(292px, 100%);
  aspect-ratio: var(--ar, 480 / 920);
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: var(--rim), var(--contact), var(--lift);
}
.paper .live {
  background: var(--sand);
  box-shadow: var(--rim-ink), 0 44px 88px -38px rgba(20, 19, 14, .3);
}
.live > video,
.live > .live-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  display: block;
}
.live > .live-poster { z-index: 0; }
.live > video { z-index: 1; }

/* Reduced motion: the poster stands on its own. It is already painted
   underneath, so hiding the video needs no fallback. */
@media (prefers-reduced-motion: reduce) {
  .live > video { display: none; }
}

.live-hero { width: min(300px, 100%); margin-left: auto; }
@media (max-width: 1080px) {
  .live-hero { margin-left: 0; margin-right: auto; }
}

/* Cream-on-ink glass. No red: this is brand chrome, not product UI. */
.live-badge {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 12px;
  border-radius: 100px;
  background: rgba(20, 19, 14, .68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(244, 241, 230, .16);
  color: var(--cream);
}
.live-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cream);
  flex: none;
}

/* ============================================================
   19. Figures — the proof numbers, at title scale
   Set at h3 size, the most persuasive facts on the site read quieter than
   the headings above them; at title size over a 12px label the number
   becomes the image. No count-up.
   ============================================================ */

.figures {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-4);
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
/* Each proof number sits in its own hairline bay, so the row reads as a table of facts. */
.figures > div + div { padding-left: var(--s-4); border-left: 1px solid var(--line); }
.paper .figures { border-top-color: var(--paper-line); }
.figures div { display: flex; flex-direction: column; gap: 7px; }
.figures .num { font-size: var(--t-title); }
/* mono side-bearing vs display numeral: aligns the two left edges optically */
.figures .tag {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--cream-dim);
  margin-left: -.055em;
}
/* The plus is an annotation, not a digit — same logic as the period. */
.figures .num .plus { font-size: .56em; vertical-align: .36em; letter-spacing: 0; }

/* ============================================================
   20. Roster
   ============================================================ */

.roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 14px;
}
/* Home preview: a fixed 5-up from tablet width so the rows always fill */
@media (min-width: 701px) { .roster-preview { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* The /brands strip holds five: below the 5-up it shows four, so no card sits alone. */
@media (max-width: 700px) { .roster-strip > .host:nth-child(n+5) { display: none; } }
@media (min-width: 641px) and (max-width: 700px) { .roster-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* The card holds a person's face: it settles, it does not jump. */
.host {
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  transition: box-shadow .4s var(--ease);
}
.host:hover { transform: none; box-shadow: 0 10px 30px -18px rgba(20, 19, 14, .3); }
.host-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--sand);
}
.host-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.host:hover .host-img img { transform: scale(1.035); }
/* After the transition above, or it would win: the zoom still applies, but instantly. */
@media (prefers-reduced-motion: reduce) {
  .host-img img { transition: none; }
}
.host-body { padding: 14px 15px 16px; }
/* Names are set short (first name and initial, about 8ch), so they take
   the body size inside the 196px card without rewrapping. */
.host-body b {
  display: block;
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -.005em;
  line-height: 1.2;
  color: var(--paper-ink);
}
.host-body span { color: var(--paper-mute); }

/* ---- Filter chips ---- */

.filters { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  height: 40px;
  padding: 0 20px;
  border-radius: 100px;
  border: 1px solid var(--paper-line);
  background: transparent;
  color: var(--paper-mute);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: #cfc8b4; color: var(--paper-ink); }
.chip.on { background: var(--paper-ink); border-color: var(--paper-ink); color: var(--paper); }

.roster-empty {
  grid-column: 1 / -1;
  padding: var(--s-4) 0;
  color: var(--paper-mute);
}

/* ============================================================
   21. Phones and app downloads
   ============================================================ */

.phones {
  display: flex;
  gap: 34px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
}
.phone { width: 260px; flex: none; }
/* Four screens of one app: a row on desktop, two by two below it. */
.phones-4 { flex-wrap: wrap; }
.phones-4 .phone { width: min(230px, calc(25% - 26px)); }
@media (max-width: 1100px) {
  .phones-4 { max-width: 554px; margin-inline: auto; } /* two by two: 2 × 260 + gap, as .app-head */
  .phones-4 .phone { width: calc(50% - 17px); max-width: 260px; }
}
/* Reads as a current iPhone: thin bezel, 16/17-Pro corner proportions, the Dynamic
   Island over the real iOS status bar, side buttons. Percentages are of the screen
   width so the frame scales with the column. */
.phone-frame {
  position: relative;
  border: 0;
  border-radius: 15.5%/7.2%;
  padding: 2.4%;
  background: #262418;
  box-shadow:
    var(--rim),
    inset 0 0 0 1px rgba(244, 241, 230, .14),
    0 34px 66px -26px rgba(0, 0, 0, .88);
  line-height: 0;
}
.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 13.5%/6.2%;
  background: #000;
}
.phone-frame .island {
  position: absolute;
  top: 3.9%;
  left: 50%;
  width: 28%;
  height: 3.5%;
  transform: translateX(-50%);
  border-radius: 100px;
  background: #000;
}
/* Buttons: the volume pair on the left (one element, two stripes), power on the right. */
.phone-frame::before, .phone-frame::after {
  content: '';
  position: absolute;
  width: 1.4%;
  background: #1c1a12;
  border-radius: 2px;
}
.phone-frame::before {
  left: -1.4%;
  top: 19%;
  height: 13%;
  background: linear-gradient(to bottom, #1c1a12 0 45%, transparent 45% 55%, #1c1a12 55% 100%);
}
.phone-frame::after { right: -1.4%; top: 24%; height: 9%; }
.phone > .tag {
  text-align: center;
  display: block;
  margin-top: var(--s-3);
  margin-right: -.14em;
}
/* Stone is 3.2:1 on paper: the screen captions take the paper mute instead. */
.paper .phone > .tag { color: var(--paper-mute); }

/* The host app: its name and download over its four screens. */
.app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-4);
  flex-wrap: wrap;
  max-width: 1022px; /* the four-phone row: 4 x 230 + 3 x 34 */
  margin: 0 auto var(--s-5);
}
/* App names are product names: they keep their capitals. */
.app-head h3, .app-panel h3 { margin: 0; text-transform: none; }
/* BrandCenter: one dark panel under the host row, copy beside its screens. */
.app-panel {
  margin-top: var(--s-6);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-5);
  border-radius: var(--r-xl);
  background: var(--ink-2);
  color: var(--cream);
  box-shadow: var(--rim);
}
.app-panel :focus-visible { outline-color: var(--cream); }
.app-panel p { margin-top: var(--s-1); color: var(--cream-dim); max-width: 36ch; }
.app-panel .get-app { margin-top: var(--s-4); }
.phones-2 { flex-wrap: nowrap; gap: var(--s-3); }
.phones-2 .phone {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  max-width: 230px;
}
/* Screens not ready to show: blurred shots with a status pill across the pair. */
.phones-soon { position: relative; }
.soon-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(244, 241, 230, .18), 0 18px 40px -12px rgba(0, 0, 0, .85);
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.get-app {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
}
.get-app-qr {
  width: 104px;
  height: 104px;
  flex: none;
  border-radius: var(--r-sm);
}
.paper .get-app-qr { outline: 1px solid var(--paper-line); }
.paper .app-panel .get-app-qr { outline: 0; }
.get-app-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
}
.get-app-note { font-size: var(--t-small); color: var(--mute); }
/* Apple's artwork, unmodified: 40px minimum height, clear space a quarter of it. */
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 50px; width: auto; }
/* In a hero the host download is one outlined card. The 12px gaps are the 48px badge's
   clear space. */
.hero-ctas .get-app {
  flex-wrap: nowrap;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.hero-ctas .get-app-qr { width: 84px; height: 84px; }
.hero-ctas .get-app-body { gap: 12px; }
.hero-ctas .store-badge img { height: 48px; }
/* A pill's kicker and label as a caption: who it is for, then what it does. */
.get-app-k {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.get-app-k .btn-k { padding-right: 8px; }
@media (max-width: 1100px) { .app-head { max-width: 554px; } } /* two by two */
@media (max-width: 1000px) {
  .app-panel { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); padding: var(--s-4); }
}

/* ============================================================
   22. FAQ
   ============================================================ */

.faq { border-top: 1px solid var(--line); }
.paper .faq { border-top-color: var(--paper-line); }
.faq details { border-bottom: 1px solid var(--line); }
.paper .faq details { border-bottom-color: var(--paper-line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-3) 44px var(--s-3) 0;
  font-size: var(--t-lede);
  font-weight: 600;
  letter-spacing: -.022em;
  position: relative;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--stone); }
.paper .faq summary:hover { color: var(--paper-mute); }
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -6px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(0) rotate(45deg);
  transition: transform .3s var(--ease);
  opacity: .5;
}
/* The half-turn and its 4px optical nudge share one transform, so the whole flip eases. */
.faq details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
.faq-body { padding: 0 60px var(--s-3) 0; }
.faq-body p {
  font-size: var(--t-small);
  line-height: 1.6;
  color: var(--cream-dim);
  max-width: 56ch;
}
.paper .faq-body p { color: var(--paper-mute); }

/* ============================================================
   23. CTA band
   ============================================================ */

.cta-band {
  position: relative;
  border: 0;
  border-radius: var(--r-xl);
  background: var(--ink-2);
  padding: var(--sect-tight) var(--s-5);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--rim);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { max-width: 16ch; margin: 0 auto var(--s-3); }
.cta-band .lede { margin: 0 auto; }
.cta-band .hero-ctas { justify-content: center; }
@media (max-width: 700px) { .cta-band { padding: var(--s-4) var(--s-3); } }

/* ============================================================
   24. Forms
   ============================================================ */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
/* The demo form's bot trap: rendered, so form bots fill it, but off-screen. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field { display: flex; flex-direction: column; gap: var(--s-1); }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--mute); }
.paper .field label { color: var(--paper-mute); }
.field input, .field select, .field textarea {
  height: 50px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--ink-1);
  color: var(--cream);
  padding: 0 15px;
  font-family: var(--font);
  font-size: var(--t-body);
  transition: border-color .2s, background .2s;
  width: 100%;
}
.field textarea {
  height: 118px;
  padding: 14px 15px;
  resize: vertical;
  line-height: 1.55;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--stone);
  background: var(--ink-2);
}
/* The border swap is the pointer's cue; keyboards get the house ring back. */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}
.paper .field :focus-visible { outline-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--mute); }
.field select { appearance: none; cursor: pointer; }
.form-note { font-size: var(--t-small); color: var(--mute); line-height: 1.5; }
.paper .form-note { color: var(--paper-mute); }
.paper .form-note a { color: var(--ink); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ============================================================
   25. Footer
   ============================================================ */

.foot {
  border-top: 1px solid var(--line);
  padding: var(--s-6) 0 var(--s-4);
  background: var(--ink);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--s-5);
  padding-bottom: var(--s-5);
}
.foot-brand .mark { margin-bottom: var(--s-3); }
.foot-brand p {
  font-size: var(--t-small);
  color: var(--mute);
  line-height: 1.55;
  max-width: 34ch;
}
/* Column labels are paragraphs, not headings — the footer follows the page
   h2s, so any heading here would skip levels. */
.foot .foot-h { color: var(--mute); margin: 0 0 var(--s-2); }
.foot ul { display: flex; flex-direction: column; gap: 11px; }
.foot ul a { font-size: var(--t-small); color: var(--cream-dim); transition: color .2s; }
.foot ul a:hover { color: var(--cream); }
.foot-base {
  border-top: 1px solid var(--line);
  padding-top: var(--s-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--stone);
}
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 372px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* Compact footer (auth pages): the base row alone, so a form page is not mostly footer. */
.foot-compact { padding: var(--s-3) 0; }
.foot-compact .foot-base { border-top: 0; padding-top: 0; align-items: center; }
/* display and padding hold against the phone rule that pads every .foot-base link. */
.foot-compact .mark { display: flex; padding-inline: 0; margin-bottom: 0; }

/* ============================================================
   26. Host apply block (/hosts)
   The four promises beside a showcase clip, closing on the time cost. No
   cards, no icons, no ordinals.
   ============================================================ */

.apply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: var(--s-7);
  align-items: start;
}
.apply > .apply-copy { min-width: 0; }
.apply h2 { margin-bottom: var(--s-3); }
.apply .lede { margin-bottom: var(--s-5); }
.apply .spec { margin-bottom: var(--s-4); }

.apply-note {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  color: var(--stone);
}
.paper .apply-note { border-top-color: var(--paper-line); color: var(--paper-mute); }
.apply-note::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.apply-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-top: var(--s-4);
}
/* One way in (web or app): a labelled row, the action under its label. */
.apply-way { margin-top: var(--s-4); }
.apply-way .apply-cta, .apply-way .get-app { margin-top: var(--s-3); }

@media (max-width: 1100px) { .apply { grid-template-columns: minmax(0, 1fr) minmax(0, 292px); } }
@media (max-width: 1000px) {
  .apply { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* ============================================================
   27. Developer API (/platform)
   Mono sets content here, not chrome, on the site's one type ladder. Colour
   is tonal (cream / cream-dim / stone): no syntax hues.
   ============================================================ */

/* ---- The call: one object, given the width of the page ---- */

.code-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-2);
}
@media (max-width: 900px) { .code-pair { grid-template-columns: 1fr; } }

.code-card {
  border-radius: var(--r-lg);
  background: var(--ink-1);
  overflow: hidden;
  box-shadow: var(--rim), var(--contact), var(--lift);
}
.paper .code-card { background: var(--paper-2); box-shadow: var(--rim-ink), var(--lift-ink); }

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  height: 42px;
  padding: 0 18px;
  background: var(--ink-2);
  /* not border-bottom: a border adds a pixel to the object and breaks the
     concentric radius */
  box-shadow: inset 0 -1px 0 var(--line);
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}
.paper .code-head { background: var(--sand); box-shadow: inset 0 -1px 0 var(--paper-line); }

.code-card pre {
  margin: 0;
  padding: 22px 18px 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-size: var(--t-small);
  line-height: 1.7;
  color: var(--cream-dim);
  white-space: pre;
  tab-size: 2;
}
.paper .code-card pre { color: var(--paper-mute); }
.code-card pre .k { color: var(--cream-dim); } /* keys */
.code-card pre .s { color: var(--cream); } /* strings */
.paper .code-card pre .k { color: var(--paper-mute); }
.paper .code-card pre .s { color: var(--paper-ink); }

.api-note {
  font-size: var(--t-small);
  line-height: 1.6;
  color: var(--mute);
  max-width: 52ch;
  margin-top: var(--s-5);
}
.api-note a { border-bottom: 1px solid var(--line); }
.paper .api-note { color: var(--paper-mute); }
.paper .api-note a { border-bottom-color: var(--paper-line); }

/* ============================================================
   28. Auth pages — sign in, password and invite
   ============================================================ */

.auth { padding: var(--sect-tight) 0 var(--sect); }
.auth .wrap { max-width: 520px; }
.auth h1 {
  font-size: var(--t-title);
  letter-spacing: -.035em;
  line-height: 1.08;
  margin-bottom: var(--s-4);
}
/* The password pages carry a lede; it needs air before the card. */
.auth .lede { margin-bottom: var(--s-4); }
.auth-card {
  background: var(--ink-2);
  border-radius: var(--r-xl);
  box-shadow: var(--rim);
  padding: var(--s-4);
}
.auth-card .field + .field { margin-top: var(--s-2); }
.auth-card .btn { width: 100%; margin-top: var(--s-3); }
/* A card that opens with its button (expired invite) starts flush. */
.auth-card > .btn:first-child, .auth-card > .button_to:first-child > .btn { margin-top: 0; }
.auth-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--s-2);
  color: var(--cream-dim);
  font-size: var(--t-small);
  cursor: pointer;
}
.auth-check input { width: 16px; height: 16px; accent-color: var(--cream); }
.auth-flash { margin-bottom: var(--s-3); color: var(--cream-dim); }
.auth-flash-alert { color: var(--fix); }
.auth-link { color: var(--cream-dim); text-decoration: underline; text-underline-offset: 3px; }
.auth-link:hover { color: var(--cream); }
.auth:not(.wiz) .auth-card .form-note { text-wrap: balance; }
@media (max-width: 640px) { .auth-card { padding: var(--s-3); } }

/* The auth page fills the screen; a lone card (sign in) sits in the middle of
   it, the wizard keeps its top edge so its screens never jump as they change height. */
.auth-main {
  min-height: calc(100vh - var(--hdr-h));
  min-height: calc(100dvh - var(--hdr-h));
  display: flex;
  flex-direction: column;
}
.auth-main > .auth:not(.wiz) { margin-block: auto; }

/* The card settles in under its heading. Not inside the wizard: there the screen itself rises. */
@media (prefers-reduced-motion: no-preference) {
  html.js .auth:not(.wiz) .auth-card {
    animation: riseIn .5s var(--ease) both;
    animation-delay: .06s;
  }
}

/* ============================================================
   29. Apply wizard (/apply)
   Builds on .auth; screens are stepped client-side by toggling the hidden
   attribute.
   ============================================================ */

/* .btn and img set display, which beats the UA [hidden] rule. */
.wiz [hidden] { display: none !important; }
.wiz .wrap { max-width: 640px; }
.wiz h1 { margin-bottom: var(--s-2); }
.wiz h2 { margin-bottom: var(--s-1); }
.wiz [data-screen] > .lede { margin-bottom: var(--s-3); }
/* The role in a sentence or two under the welcome lede: body size, a step quieter. */
.wiz-role { margin-bottom: var(--s-4); color: var(--mute); max-width: 56ch; text-wrap: pretty; }

.wiz-progress { margin-bottom: var(--s-4); }
.wiz-segs { display: flex; gap: 6px; margin-bottom: var(--s-1); }
.wiz-segs span {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.wiz-segs i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--cream);
  transition: width .5s var(--ease);
}
.wiz-progress-meta { display: flex; justify-content: space-between; gap: var(--s-2); }
.wiz-progress-meta .wiz-chapter { color: var(--cream); }

.wiz-banner { margin-bottom: var(--s-3); }
.wiz-err { font-size: var(--t-small); line-height: 1.5; color: var(--fix); }
.wiz .field .is-invalid, .wiz-photo-drop.is-invalid { border-color: var(--fix); }
.wiz .field textarea { height: 168px; resize: none; }
.wiz .btn:disabled { opacity: .5; cursor: progress; }

/* A privacy line under the inputs: a hairline, not an icon box. */
.wiz-aside {
  margin-top: var(--s-3);
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
  font-size: var(--t-small);
  line-height: 1.55;
  color: var(--mute);
}

.wiz-reveal, .wiz-prefix, .wiz-select { position: relative; }
.field .wiz-reveal input { padding-right: 72px; }
.wiz-reveal button {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  height: 44px;
  background: none;
  border: 0;
  padding: 0 12px;
  cursor: pointer;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--cream-dim);
}
.wiz-reveal button:hover { color: var(--cream); }
.wiz-prefix > span {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mute);
  pointer-events: none;
}
.field .wiz-prefix input { padding-left: 32px; }
.wiz-select::after {
  content: '';
  position: absolute;
  right: 19px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--mute);
  border-bottom: 1.5px solid var(--mute);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field .wiz-select select { padding-right: 44px; }
.wiz-dob { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: var(--s-1); }
.field .wiz-dob input { text-align: center; padding: 0 8px; }

/* Single choice: full-width rows. The pick inverts, as .chip.on does. */
.wiz-opts { display: flex; flex-direction: column; gap: var(--s-1); }
.wiz-opt, .wiz-chip { position: relative; cursor: pointer; }
.wiz-opt span {
  display: block;
  padding: 14px 18px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--ink-1);
  color: var(--cream-dim);
  transition: background .2s, color .2s, border-color .2s;
}
/* Multiple choice: wrapping pills. */
.wiz-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.wiz-chip span {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--cream-dim);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: -.01em;
  transition: background .2s, color .2s, border-color .2s;
}
.wiz-opt:hover span, .wiz-chip:hover span { border-color: #45412f; color: var(--cream); }
.wiz-opt input:checked + span, .wiz-chip input:checked + span {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
  font-weight: 600;
}
.wiz-opt input:focus-visible + span, .wiz-chip input:focus-visible + span {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

.wiz-photo { position: relative; text-align: center; }
.wiz-photo-drop {
  width: 160px;
  height: 160px;
  margin: 0 auto var(--s-3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px dashed var(--line);
  background: var(--ink-1);
  color: var(--mute);
  font-size: var(--t-title);
  font-weight: 300;
  transition: border-color .2s;
}
.wiz-photo-drop:hover { border-color: var(--stone); }
.wiz-photo-drop.is-set { border-style: solid; border-color: var(--cream); }
.wiz-photo-drop img { width: 100%; height: 100%; object-fit: cover; }
.wiz-photo input:focus-visible + .wiz-photo-drop {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}
.wiz-photo-cta { font-weight: 600; color: var(--cream); margin-bottom: 4px; }
.wiz-photo .wiz-err { margin-top: var(--s-1); }

.wiz-review-group + .wiz-review-group {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.wiz-review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-1);
}
.wiz-review p { font-size: var(--t-small); line-height: 1.55; color: var(--cream-dim); overflow-wrap: anywhere; }
.wiz-edit {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: var(--t-small);
}
.wiz-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}
.wiz-pills:empty { display: none; }
.wiz-pill {
  padding: 3px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-size: var(--t-small);
  color: var(--cream-dim);
}

.wiz-consents {
  margin-top: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.wiz-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--cream-dim);
  font-size: var(--t-small);
  line-height: 1.55;
  cursor: pointer;
}
.wiz-check input {
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  flex: none;
  accent-color: var(--cream);
}

.wiz-nav { display: flex; gap: var(--s-1); margin-top: var(--s-4); }
.wiz-nav .wiz-go { flex: 1; }
/* Phones: the chips and review screens run past the fold, so Continue stays in reach
   (the wizard's form only; a confirmation's Close sits in flow).
   The bar bleeds through the gutters so content never shows beside it. */
@media (max-width: 640px) {
  form .wiz-nav {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: var(--ink);
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-block: var(--s-2) max(var(--s-2), env(safe-area-inset-bottom));
  }
}
/* Back + "Submit application" fit 272px only with a tighter pill. */
@media (max-width: 372px) { .wiz-nav .btn-lg { padding-inline: var(--s-2); } }

/* Each step rises as it is shown. */
@media (prefers-reduced-motion: no-preference) {
  .wiz [data-screen]:not([hidden]) { animation: riseIn .28s var(--ease) both; }
}

/* Confirmation: the three things that happen next, numbered like .steps. */
.wiz-steps { margin-top: var(--s-2); }
.wiz-steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: baseline;
  padding: var(--s-2) 0;
  border-top: 1px solid var(--line);
  color: var(--cream-dim);
}
.wiz-steps li::before {
  content: attr(data-n);
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--stone);
}

/* ============================================================
   30. Legal pages — terms, privacy, account deletion
   Long-form prose on paper: the body face throughout, numbered sections
   divided by a hairline, lists with their markers back.
   ============================================================ */

.legal { padding: var(--sect-tight) 0 var(--sect); }
/* Paper runs to the footer however short the document. */
.auth-main > .legal { flex: 1 0 auto; }
/* A ch is the width of "0": 50ch holds ~75 characters of prose. */
.legal-doc { max-width: 50ch; overflow-wrap: break-word; }
.legal-head { margin-bottom: var(--s-5); }
.legal-doc h1 {
  font-size: var(--t-title);
  letter-spacing: -.035em;
  line-height: 1.08;
  max-width: 18ch;
}
.legal-head .lede { margin-top: var(--s-3); }
.legal-updated { margin-top: var(--s-2); color: var(--stone); }
.legal-doc h2 {
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--t-lede);
  text-transform: none;
  letter-spacing: -.01em;
  line-height: 1.3;
  max-width: none;
  margin-bottom: var(--s-2);
}
/* Scoped to the sections so the head's lede and date keep their own type. */
.legal-doc section p, .legal-doc section li { color: var(--paper-mute); line-height: 1.65; }
.legal-doc section :is(p, ul, ol) + :is(p, ul, ol) { margin-top: var(--s-2); }
.legal-doc strong { color: var(--paper-ink); font-weight: 600; }
/* The global list reset strips markers; prose lists need them. */
.legal-doc ul { list-style: disc; padding-left: 1.25em; }
.legal-doc ol { list-style: decimal; padding-left: 1.25em; }
.legal-doc li + li { margin-top: var(--s-1); }
.legal-doc a:not(.link-arrow) { text-decoration: underline; text-underline-offset: 3px; }
/* /extension: the paths a studio types, the hashes it may check, and the folded-away help. */
.legal-doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; color: var(--paper-ink); overflow-wrap: anywhere; }
.legal-doc small { font-size: .9em; }
.legal-doc details summary { cursor: pointer; color: var(--paper-ink); font-weight: 600; }
.legal-doc details[open] summary { margin-bottom: var(--s-2); }
.legal-doc > section + section {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--paper-line);
}
.legal-back { margin-top: var(--s-5); }
@media (max-width: 640px) {
  .legal-head { margin-bottom: var(--s-4); }
  .legal-doc > section + section { margin-top: var(--s-4); padding-top: var(--s-3); }
  .legal-back { margin-top: var(--s-4); }
}

/* ============================================================
   31. Utilities
   ============================================================ */

.center { text-align: center; }
.mt-s { margin-top: var(--s-2); }
.mt-m { margin-top: var(--s-4); }
.mt-l { margin-top: var(--s-5); }
.mb-m { margin-bottom: var(--s-4); }
.form-actions { margin-top: var(--s-3); }
.measure { max-width: 60ch; }
.tag-row { display: block; margin: var(--s-2) 0 10px; }
.app-main-pad { padding: 20px; }
.is-fix { color: var(--fix); } /* functional colour: error text, or a figure inside an .app mock */
/* Doubled so a lone phone keeps its width against the ≤700 .phone rule. */
.phone-solo, .phone.phone-solo { width: 320px; max-width: 100%; margin: 0 auto; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* Skip link: off-canvas until a keyboard reaches it, then the first thing on screen. */
.skip {
  position: fixed;
  top: 12px;
  left: var(--gutter);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 26px;
  border-radius: 100px;
  background: var(--cream);
  color: var(--ink);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: -.01em;
  transform: translateY(calc(-100% - 24px));
}
.skip:focus-visible { transform: none; }

/* ============================================================
   32. Motion
   Site-wide motion. Each effect is gated on prefers-reduced-motion or
   switched off under it; motion that belongs to one component sits with it.
   ============================================================ */

/* ---- Scroll-linked settle ---- */

/* The object lays down as it arrives: enough to read as physical, small
   enough that nobody names it. Hero clips are excluded: above the fold the
   timeline is already mid-range at first paint, so they would never rest. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stage .app, .moment .app {
      transform-origin: 50% 100%;
      animation: layDown linear both;
      animation-timeline: view();
      animation-range: entry 12% cover 48%;
    }
    @keyframes layDown {
      from { transform: perspective(1600px) rotateX(3.5deg) translateY(34px); }
      to { transform: none; }
    }
  }
}

/* ---- Fold entrance ---- */

/* The headline and hero clip paint solid (they are the LCP candidates); the
   furniture beneath settles in under them. riseIn is top level because the
   auth card and wizard screens share it; only the gated rules apply it. */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html.js .hero .lede,
  html.js .hero .hero-ctas,
  html.js .hero .figures { animation: riseIn .5s var(--ease) both; }
  html.js .hero .lede { animation-delay: .06s; }
  html.js .hero .hero-ctas { animation-delay: .12s; }
  html.js .hero .figures { animation-delay: .18s; }
}

/* ---- FAQ open ---- */

/* The body opens with the chevron instead of snapping under it. */
@supports selector(::details-content) {
  :root { interpolate-size: allow-keywords; }
  @media (prefers-reduced-motion: no-preference) {
    .faq details::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size .32s var(--ease), content-visibility .32s allow-discrete;
    }
    .faq details[open]::details-content { block-size: auto; }
  }
}

/* ---- Roster filter ---- */

/* Relayout happens while faded, never as a one-frame snap. */
.roster { transition: opacity .18s var(--ease); }
.roster.swapping { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .roster { transition: none; } }

/* ============================================================
   33. Phones and touch
   Below 640px the grids a visitor spends time in go 2-up, the section scale
   comes down and every target is 44px. These rules come last so they win
   every tie with the components above.
   ============================================================ */

@media (max-width: 640px) {
  :root { --sect-tight: 40px; --sect: 56px; --sect-open: 68px; }
  .head { margin-bottom: var(--s-4); }
  .head h2 { margin-bottom: var(--s-2); }
  .steps li { padding: var(--s-3) 0; }
  .figures { margin-top: var(--s-4); gap: var(--s-3) var(--s-4); }

  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .host-body { padding: 11px 12px 13px; }

  .hl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage .app-main { padding: 20px; }
  /* Three signal cards as a snap rail keeps "three" legible in one screen. */
  .signals {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
  }
  .signals::-webkit-scrollbar { display: none; }
  .signals > * { scroll-snap-align: start; }

  .faq-body { padding-right: 0; }

  .chip { height: 44px; padding: 0 18px; }
  .filters { gap: 8px; }
  .foot ul { gap: 2px; }
  .foot ul a { display: block; padding: 11px 0; }
  .foot-base { gap: 10px; }
  .foot-base a { display: inline-block; padding: 8px 0; }

  .wall { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
  /* flex-start sizes the marquee to its max-content track (~1900px):
     pin it to the column so the page stays phone-wide. */
  .wall .marquee { width: 100%; }
  .wall-label { width: auto; border-right: 0; padding-right: 0; }
  .figures > div + div { border-left: 0; padding-left: 0; }
  .metrics .tag, .peak-stats .tag, .sig-foot { font-size: 10px; }
}
@media (max-width: 700px) {
  .phones { gap: 14px; flex-wrap: nowrap; align-items: flex-start; }
  .phone { width: auto; flex: 1 1 0; min-width: 0; }
  .phones-4 { flex-wrap: wrap; row-gap: var(--s-3); }
  .phones-4 .tag-pre { display: none; } /* the section names the app; the label names the screen */
  .phones-4 .phone { flex: none; width: calc(50% - 7px); max-width: none; }
  .phone > .tag { margin-top: var(--s-2); }
  .phones-2 { gap: 14px; }
  .app-panel { margin-top: var(--s-5); padding: var(--s-3) 20px; }
  /* A QR only helps from a desktop; on a phone the badge is the way in. */
  .get-app-qr { display: none; }
  .hero-ctas .get-app { padding: 16px 20px; }
  .hero-ctas-pair { grid-auto-flow: row; width: auto; }
  .hero-ctas-pair > .btn { min-height: 64px; }
}
@media (max-width: 560px) {
  .live, .live-hero { width: 100%; }
}

/* ---- Touch: text links get a 44px target where a finger is the pointer ---- */

@media (pointer: coarse) {
  .auth-link { display: inline-block; padding-block: 12px; }
  .chip { height: 44px; }
  /* In the consent sentence a padded box would double the line pitch: grow the hit area instead. */
  .wiz-check .auth-link { display: inline; padding-block: 0; position: relative; white-space: nowrap; }
  .wiz-check .auth-link::after { content: ''; position: absolute; inset: -14px 0; }
  .wiz-edit { margin-block: -12px; }
  /* The arrow link's border is its underline, so it grows its hit area, not its
     box: it stays put, inline in a sentence included. */
  .link-arrow { position: relative; }
  .link-arrow::after { content: ''; position: absolute; inset: -10px 0; }
}
/* A mouse gets no touch padding, so stacked notes need their own gap. */
@media (pointer: fine) { .auth:not(.wiz) .auth-card .form-note + .form-note { margin-top: var(--s-1); } }
