/* Vertigami landing page (Home2). Light, brand-led, one primary action: Book a demo. */

/* Plus Jakarta Sans (SIL OFL 1.1), Latin subset, served with the page: see fonts/LICENSE.md. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #F7F7F2;
  --surface: #FFFFFF;
  --surface-2: #FAF8F4;
  --ink: #1E1030;
  --ink-2: #4A4358;
  --ink-3: #686176;
  --brand: #451A6B;
  --brand-hover: #5A2689;
  --line: #E7E2EA;
  --line-2: #D6CEDF;
  --purple: #6A3BC8;
  --tint: #F3EDFA;      /* lavender wash: selected rows, the human-checked band, light-button hover */
  --tint-2: #ECE4F7;    /* lavender pills: type and example tags */
  --tint-line: #D9CBEB;
  --phone: #1A0F2A;     /* phone frame */
  --screen: #0D0716;    /* phone screen and wide-frame backing */
  --field-line: #8C83A0; /* form field edges: 3:1 on white and on the page */
  --danger: #B0213F;
  --grad: linear-gradient(100deg, #12C6D2 0%, #6A3BC8 45%, #D63AA0 72%, #FF8A2A 100%);
  --grad-v: linear-gradient(180deg, #12C6D2 0%, #6A3BC8 45%, #D63AA0 72%, #FF8A2A 100%);
  /* Darker stops so gradient text keeps 3:1 contrast on the off-white page. */
  --grad-text: linear-gradient(100deg, #0A8F99 0%, #6A3BC8 50%, #C42E8F 100%);
  /* Dark bands: ink with a teal glow top-left and a pink glow bottom-right. */
  --night:
    radial-gradient(60% 80% at 0% 0%, rgba(18, 198, 210, .16), transparent 60%),
    radial-gradient(50% 70% at 100% 100%, rgba(214, 58, 160, .18), transparent 60%),
    var(--ink);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(30, 16, 48, .06), 0 14px 34px -14px rgba(30, 16, 48, .2);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 64px;
  --section-y: clamp(64px, 9vw, 112px); /* top and bottom padding of every section after the hero */
  --row-y: clamp(36px, 5vw, 64px);      /* top and bottom padding of each feature row */
  /* Width of every reel phone on the page. main.js keeps it equal to the hero's #1 phone. */
  --reel-w: 230px;
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (min-width: 900px) { html { scroll-padding-top: calc(var(--nav-h) + 12px); } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, canvas, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
/* No one-word last lines in body text. */
p, li { text-wrap: pretty; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.js .nojs-only { display: none !important; }
html:not(.js) .js-only { display: none !important; }
.skip {
  position: absolute; left: 12px; top: -64px; z-index: 50; padding: 10px 16px;
  background: var(--ink); color: #fff; border-radius: 10px; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  font-weight: 700; font-size: 1rem; letter-spacing: -0.005em; text-decoration: none;
  white-space: nowrap; cursor: pointer; transition: background-color .15s, transform .15s;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--primary:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* Small video controls (sound) */
.vbtn {
  position: absolute; right: 8px; bottom: 8px; z-index: 4;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px;
  background: rgba(20, 10, 32, .74); color: #fff; font-size: .8125rem; font-weight: 700; cursor: pointer;
}

/* ---------- Nav ---------- */
/* Light like the page, with a hairline under it. */
.nav { position: relative; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .nav { position: sticky; top: 0; } }
.nav.dark { border-bottom-color: rgba(255, 255, 255, .14); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--brand); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.025em;
}
.brand__mark { width: 33px; height: 38px; flex: none; }
/* Book a demo takes the same footprint as the logo opposite it (33px mark + gap + wordmark). */
.nav .btn { width: 141px; height: 38px; min-height: 0; padding: 0; }
.brand--small { font-size: 1.05rem; gap: 8px; }
.brand--small .brand__mark { width: 24px; height: 28px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(20px, 5vw, 64px) clamp(44px, 7vw, 96px); }
.hero__grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 1rem; font-weight: 600; color: var(--ink);
}
.eyebrow__dot { width: 10px; height: 10px; border-radius: 2px; transform: rotate(45deg); background: var(--grad); }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.5rem); letter-spacing: -0.04em; line-height: 1.02; margin-top: 18px; }
.ts, .price__num {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
  /* Negative tracking pulls the box in past the last glyph, and the gradient only paints
     inside the box. Pad it out (without moving anything) so the last digit isn't cut. */
  padding-inline: .04em .12em; margin-inline: -.04em -.12em;
}
.lede { margin-top: 18px; max-width: 32em; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--ink-2); }
.linkbar {
  margin-top: 28px; max-width: 560px; display: flex; gap: 8px; padding: 6px;
  background: var(--surface); border: 1px solid var(--field-line); border-radius: 999px; box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.linkbar:focus-within { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(106, 59, 200, .16), var(--shadow); }
.linkbar input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border: 0; background: transparent;
  font-size: 1rem; outline: 2px solid transparent; /* the bar's own ring shows focus; this one appears in forced colours */
}
.linkbar input::placeholder { color: var(--ink-3); }
@media (max-width: 560px) {
  .linkbar { flex-direction: column; border-radius: 20px; padding: 8px; }
  .linkbar input { padding: 0 10px; }
}
.hero .nojs-only { margin-top: 28px; }
.micro { margin-top: 14px; font-size: .9375rem; color: var(--ink-3); }

/* ---------- Phone frame (shared) ---------- */
.phone {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden; isolation: isolate;
  border: clamp(4px, .55vw, 7px) solid var(--phone); border-radius: clamp(16px, 2.2vw, 26px);
  background: var(--screen); box-shadow: 0 26px 50px -22px rgba(69, 26, 107, .5);
}
.phone > video, .phone > canvas, .phone > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  padding: 3px 9px; border-radius: 999px; background: #fff; color: var(--ink);
  font-size: clamp(.6875rem, 1.1vw, .8125rem); font-weight: 800; font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .22);
}
.badge--top {
  color: #fff; border: 2px solid transparent;
  background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--grad) border-box;
}

/* ---------- Hero fold ---------- */
.fold { margin: 0; position: relative; }
.fold__stage { position: relative; width: 100%; max-width: 520px; margin-inline: auto; aspect-ratio: 100 / 92; }
.fold__sheet {
  /* Vertically centred on the #1 phone, so the frame sits mid-stage between loops. */
  position: absolute; left: 0; right: 0; top: 19.3%; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; background: var(--screen); box-shadow: var(--shadow);
  transition: opacity .45s ease-out;
}
.fold__still { width: 100%; height: 100%; object-fit: cover; }
.fold__scrub {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px;
  padding: 26px 14px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .6));
  color: #fff; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.fold__track { position: relative; flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.fold__played { position: absolute; inset: 0 auto 0 0; width: var(--p, 55%); border-radius: 2px; background: var(--grad); }
.fold__head {
  position: absolute; top: 50%; left: var(--p, 55%); width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(106, 59, 200, .65);
}
.fold__crease {
  position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px;
  background: var(--grad-v); box-shadow: 0 0 12px rgba(34, 227, 216, .8);
  transform: scaleY(0); transform-origin: top; transition: transform .3s ease-in;
}
/* Thirds until fold.js places each crease between the reels' crops. */
.fold__crease:nth-of-type(1) { --x: 33.333%; }
.fold__crease:nth-of-type(2) { --x: 66.667%; }
.fold.is-creasing .fold__crease { transform: scaleY(1); transition: transform .36s cubic-bezier(.2, .7, .2, 1); }

/* Final podium: #2 left, #1 centre, #3 right. #1 sets the page's reel size (--reel-w);
   #2 and #3 are 85% of it so the ranking reads at a glance. */
.fold__phone { position: absolute; }
.fold__phone[data-slot="center"] { left: 25%; width: 50%; top: 1.5%; z-index: 3; }
.fold__phone[data-slot="left"] { left: 1%; width: 42.5%; top: 9%; z-index: 2; transform: rotate(-6deg); }
.fold__phone[data-slot="right"] { right: 1%; width: 42.5%; top: 9%; z-index: 2; transform: rotate(6deg); }
@media (min-width: 900px) {
  .fold__stage { aspect-ratio: 100 / 82; }
  .fold__sheet { top: 14.9%; }
  .fold__phone[data-slot="center"] { left: 28%; width: 44%; }
  .fold__phone[data-slot="left"], .fold__phone[data-slot="right"] { width: 37.4%; }
}
.fold__phone.is-top {
  border-color: transparent;
  background: linear-gradient(var(--screen), var(--screen)) padding-box, var(--grad) border-box;
  box-shadow: 0 30px 60px -22px rgba(106, 59, 200, .6);
}
.fold__slice {
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--still); background-size: auto 100%; background-position: var(--bx) 0;
}
.fold__phone video { z-index: 1; transition: opacity .4s; }
.fold__phone .badge { transition: opacity .3s, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.fold__phone[data-slot="left"] .badge { transition-delay: .08s; }
.fold__phone[data-slot="right"] .badge { transition-delay: .16s; left: auto; right: 8px; } /* clear of #1, which overlaps its left edge */

.js .fold:not(.is-done) .fold__phone { visibility: hidden; }
.js .fold.is-folding .fold__phone { visibility: visible; }
.js .fold:not(.is-done) .fold__phone video { opacity: 0; }
.js .fold:not(.is-done) .fold__phone .badge { opacity: 0; transform: scale(.6); }
.fold.is-lifted .fold__sheet { opacity: 0; }
.fold.is-done .fold__sheet { visibility: hidden; }
html:not(.js) .fold__sheet { display: none; }

/* ---------- Key points ---------- */
.proof__list { list-style: none; margin-block: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding-block: 14px; }
.proof__list li { display: flex; align-items: center; gap: 10px; padding-block: 10px; font-size: .9375rem; line-height: 1.3; }
/* One row once all four fit on one line: equal gaps, flush with the page edges. */
@media (min-width: 1024px) {
  .proof__list { display: flex; justify-content: space-between; padding-block: 18px; }
  .proof__list li { white-space: nowrap; }
}
.proof__list li::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px; transform: rotate(45deg); background: var(--grad);
}
.proof strong { font-weight: 700; text-wrap: balance; } /* two-line points on phones split evenly */

/* ---------- Signature: checked by a person ---------- */
/* Every check list (what we check, what pricing includes) uses the same purple check. */
.checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: center; font-weight: 600; line-height: 1.35; }
.checks li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--icon-check) center / 12px no-repeat, var(--brand);
}

.human { padding-block: var(--section-y); }
.human__card {
  padding: clamp(20px, 3vw, 28px); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.human__card-title { font-size: .875rem; font-weight: 700; color: var(--ink-3); }

/* ---------- Pricing ---------- */
.pricing { padding-block: var(--section-y); }
.price {
  position: relative; padding: clamp(22px, 3vw, 32px); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.price::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
.price__amount { display: flex; align-items: baseline; gap: 10px; }
.price__num { font-size: clamp(3rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price__unit { font-size: 1.0625rem; font-weight: 700; color: var(--ink-2); }
.price .checks { margin-top: 22px; }

/* ---------- Sections ---------- */
/* The last feature row's own padding makes up the rest of the bottom gap. */
.features { padding-block: var(--section-y) calc(var(--section-y) - var(--row-y)); }
.section-head { margin-bottom: clamp(24px, 4vw, 48px); }
.section-lede { margin-top: 14px; max-width: 32em; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--ink-2); }
/* Human-checked and Pricing: heading on the left, card on the right, same columns and edges. */
.split { display: grid; gap: clamp(24px, 4vw, 40px); }
@media (min-width: 900px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; } }
/* Bands. Each section takes one class, so it switches look by swapping it. */
.tint { background: var(--tint); }
.dark { background: var(--night); color: #fff; }
.dark .kicker { color: #7EE8E2; }
.dark .section-lede { color: #D9D2E6; }
.dark .brand { color: #fff; }
.dark :focus-visible { outline-color: #7EE8E2; } /* the purple ring is too faint on the dark bands */
/* On a dark band the main button turns white. Not inside the form, which is a white card. */
.nav.dark .btn--primary, .dark .pilot__copy .btn--primary { background: #fff; color: var(--brand); }
.nav.dark .btn--primary:hover, .dark .pilot__copy .btn--primary:hover { background: var(--tint); }
.kicker { font-size: .8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -0.035em; margin-top: 12px; }

.row { display: grid; gap: clamp(22px, 4vw, 56px); align-items: center; padding-block: var(--row-y); }
.row + .row { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .row--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .row--flip .row__text { order: 2; }
  /* The four feature cards share one height (the tallest row's), with each demo centred in it. */
  .rows { display: grid; grid-auto-rows: 1fr; }
  .row .panel { align-self: stretch; }
  .rank, .fit { display: flex; flex-direction: column; justify-content: center; }
  .caps, .endcard { align-content: center; }
}
.row__num { font-size: .875rem; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.row h3 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); margin-top: 10px; }
.row__text > p:not(.row__num) { margin-top: 14px; max-width: 30em; color: var(--ink-2); }
.panel {
  min-width: 0; padding: clamp(14px, 2.4vw, 24px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---------- 01 Ranking ---------- */
/* One line under the row's text says where the ranked moments come from. */
.rank__note { margin-top: 16px; font-size: .9375rem; color: var(--ink-2); }
.rank__count { color: var(--ink); font-weight: 700; }
.rank__tag {
  display: inline-block; margin-right: 4px; padding: 2px 8px; border-radius: 999px; vertical-align: 1px;
  background: var(--tint-2); color: var(--brand); font-size: .6875rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.rank__body { display: grid; gap: 16px; }
@media (min-width: 640px) { .rank__body { grid-template-columns: var(--reel-w) minmax(0, 1fr); align-items: start; } }
.rank__phone { width: min(100%, var(--reel-w)); margin-inline: auto; }
.rank__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rank__item button {
  width: 100%; display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); gap: 4px 10px; padding: 8px 12px;
  text-align: left; background: transparent; border: 1px solid transparent; border-radius: 12px; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.rank__item button:hover { background: var(--surface-2); border-color: var(--line); }
.rank__item button[aria-pressed="true"] { background: var(--tint); border-color: var(--tint-line); }
.rank__n { grid-row: span 2; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.3; }
.rank__line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .8125rem; }
.score { padding: 2px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.type { padding: 2px 8px; border-radius: 999px; background: var(--tint-2); color: var(--brand); font-weight: 700; }
.at { color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.reason { font-size: .875rem; line-height: 1.45; color: var(--ink-2); }
/* Only the picked moment shows its full reason; the rest stay one line so the list stays short. */
.rank__item button[aria-pressed="false"] .reason { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* Side by side but narrow (the list column is ~260px): drop the one-line previews and tighten each
   row so the list stays no taller than the reel beside it. */
@media (min-width: 900px) and (max-width: 1159px) {
  .rank__item button[aria-pressed="false"] .reason { display: none; }
  .rank__item button { grid-template-columns: 1.75rem minmax(0, 1fr); padding: 8px 10px; }
  .rank__line { gap: 5px; }
  .rank__line > * { white-space: nowrap; }
  .rank__line .type { padding: 2px 7px; }
}

/* ---------- 02 Framing ---------- */
/* Wide screens: the source with the layout buttons under it, an arrow, then the phone.
   Phones: source, arrow, phone, then the buttons in a row. */
.fit__stage { display: grid; gap: 14px; align-items: center; }
.fit__side { display: contents; }
.fit__src { order: 1; }
.fit__arrow { order: 2; }
.fit__phone { order: 3; }
.fit__side .seg { order: 4; margin-top: 0; }
@media (min-width: 640px) {
  .fit__stage { grid-template-columns: minmax(0, 1fr) 24px var(--reel-w); }
  .fit__side { display: block; }
  .fit__side .seg { flex-direction: column; align-items: stretch; margin-top: 12px; }
}
.fit__src { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #000; }
.fit__src video { width: 100%; height: 100%; object-fit: cover; }
.fit__box {
  position: absolute; border: 2px solid #fff; border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 0 16px rgba(34, 227, 216, .75), inset 0 0 0 1px rgba(0, 0, 0, .25);
  transition: left .25s linear, top .25s linear, width .25s linear, height .25s linear;
}
.fit__tag {
  position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: .6875rem; font-weight: 700;
}
.fit__arrow { justify-self: center; width: 24px; height: 24px; transform: rotate(90deg); }
@media (min-width: 640px) { .fit__arrow { transform: none; } }
.fit__arrow::before {
  content: ""; display: block; width: 100%; height: 100%; background: var(--ink-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h14m-5-6 6 6-6 6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h14m-5-6 6 6-6 6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fit__phone { width: min(100%, var(--reel-w)); justify-self: center; }
.fit__mode {
  position: absolute; left: 50%; top: 8px; z-index: 3; transform: translateX(-50%); white-space: nowrap;
  padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink);
  font-size: .6875rem; font-weight: 800;
}
.seg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.seg button[data-chapter] {
  min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); font-size: .875rem; font-weight: 700; cursor: pointer;
}
@media (max-width: 479px) { .seg { gap: 6px; } .seg button[data-chapter] { padding: 0 10px; } } /* all three on one row */
.seg button[data-chapter][aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 03 Captions ---------- */
.caps { display: grid; gap: 18px; align-items: center; }
@media (min-width: 640px) { .caps { grid-template-columns: var(--reel-w) minmax(0, 1fr); } }
.caps__phone { width: min(100%, var(--reel-w)); margin-inline: auto; container-type: size; }
.js .caps__phone video { opacity: 0; }
/* Without JS the canvases stay blank, so the demos show the source's first frame instead. */
html:not(.js) .fit__src, html:not(.js) .fit__phone, html:not(.js) .caps__phone {
  background: url("../media/source/fit.webp") center / cover;
}
.caption {
  --cap-primary: #FFFFFF; --cap-hl: #F5D061;
  position: absolute; left: 5%; right: 5%; bottom: calc(12% - .15em); z-index: 2;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .5em; /* room for the lit word's 8% pop */
  font: 900 max(11px, calc(56 / 1920 * 100cqh)) / 1.1 "Arial Black", "Arial Bold", Arial, sans-serif;
  color: var(--cap-primary); text-transform: uppercase; letter-spacing: .01em;
  text-shadow:
    .07em 0 0 #000, -.07em 0 0 #000, 0 .07em 0 #000, 0 -.07em 0 #000,
    .05em .05em 0 #000, -.05em .05em 0 #000, .05em -.05em 0 #000, -.05em -.05em 0 #000,
    0 .06em .1em rgba(0, 0, 0, .55);
}
.caption .w { display: inline-block; transition: transform .08s ease-out; }
.caption .w.is-on { color: var(--cap-hl); transform: scale(1.08); }
.styles { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; min-width: 0; }
.styles legend { padding: 0; margin-bottom: 8px; font-size: .875rem; font-weight: 700; color: var(--ink-3); }
.style {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 700; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.style:hover { border-color: var(--line-2); }
.style:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.style:has(input:focus-visible) { outline: 3px solid var(--purple); outline-offset: 2px; }
.style input { position: absolute; opacity: 0; pointer-events: none; }
.style__swatch { position: relative; width: 34px; height: 34px; flex: none; border-radius: 8px; background: var(--screen); }
.style__swatch::after { content: ""; position: absolute; left: 7px; right: 7px; top: 14px; height: 6px; border-radius: 3px; background: var(--hl); }

/* ---------- 04 End cards ---------- */
.endcard { display: grid; gap: 18px; align-items: center; }
@media (min-width: 640px) { .endcard { grid-template-columns: var(--reel-w) minmax(0, 1fr); } }
.endcard__phone { width: min(100%, var(--reel-w)); margin-inline: auto; container-type: size; }
.endcard__stack {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 9cqw; text-align: center; color: #fff; overflow-wrap: anywhere;
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-shadow: .04em 0 0 #000, -.04em 0 0 #000, 0 .04em 0 #000, 0 -.04em 0 #000;
}
.endcard__title { font-size: 8.5cqw; font-weight: 700; line-height: 1.18; }
.endcard__msg { margin-top: 3.5cqh; font-size: 5cqw; font-weight: 500; line-height: 1.35; color: #EBEBEB; }
.endcard__pill {
  margin-top: 4.9cqh; padding: 2.5cqw 6cqw; border-radius: 999px; background: #FF0000;
  font-size: 5cqw; font-weight: 700; line-height: 1; text-shadow: none;
}
.endcard__title:empty, .endcard__msg:empty, .endcard__pill:empty { display: none; }
.endcard__title:empty + .endcard__msg { margin-top: 0; }
.endcard__hint { font-size: .875rem; font-weight: 700; color: var(--ink-3); }

/* ---------- Form fields (shared) ---------- */
.field { display: block; margin-top: 14px; }
.field > label, .field > span {
  display: block; margin-bottom: 6px; padding: 0; font-size: .875rem; font-weight: 700;
}
.field input[type="text"], .field input[type="email"] {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--field-line); border-radius: 12px;
  background: #fff; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: 2px solid transparent; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(106, 59, 200, .16); }
.field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(176, 33, 63, .12); }
.field__err { margin-top: 6px; font-size: .8125rem; font-weight: 600; color: var(--danger); }
.opt { font-weight: 500; color: var(--ink-3); }

/* ---------- Pilot + form ---------- */
.pilot { padding-block: var(--section-y); }
.pilot__copy { max-width: 980px; margin-inline: auto; }
.pilot__copy .btn { margin-top: 28px; }
/* Without JS (or without <dialog> support) the form shows inline under the steps. */
html:not(.js) .dlg, .no-dialog .dlg { display: block; position: static; width: 100%; max-width: 460px; max-height: none; margin: 40px auto 0; }
html:not(.js) .dlg__close, .no-dialog .dlg__close { display: none; }
.steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: center;
  color: var(--ink-2); font-size: 1.0625rem; line-height: 1.5;
}
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--tint-line); color: var(--brand); font-weight: 800;
}
.steps li strong { display: block; color: var(--ink); }
.terms { margin-top: 28px; font-size: .875rem; color: var(--ink-3); }
.dark .steps li { color: #D9D2E6; }
.dark .steps li::before { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.dark .steps li strong { color: #fff; }
.dark .terms { color: #BDB3CF; }
@media (min-width: 900px) {
  /* Centred closing call to action: the three steps side by side. */
  .pilot__copy { text-align: center; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
  .steps li { grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; gap: 12px; }
}
.pform {
  position: relative; padding: clamp(20px, 3vw, 28px); border-radius: var(--radius);
  background: #fff; color: var(--ink); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
}
.pform__title { font-size: 1.5rem; letter-spacing: -0.025em; padding-right: 44px; }
.pform__sub { margin-top: 6px; font-size: .9375rem; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pform .btn { margin-top: 22px; }
.pform__privacy { margin-top: 10px; text-align: center; font-size: .8125rem; color: var(--ink-3); }
.pform__status { text-align: center; font-size: .875rem; font-weight: 600; color: var(--danger); }
.pform__status:not(:empty) { margin-top: 10px; }
.pform__done { padding: 28px 8px 20px; text-align: center; }
.pform__done::before {
  content: ""; display: block; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--icon-check) center / 28px no-repeat, var(--grad);
}
.pform__done h3 { font-size: 1.75rem; outline: none; }
.pform__done p { margin-top: 8px; color: var(--ink-2); }

/* ---------- Dialog ---------- */
.dlg {
  width: min(480px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  padding: 0; border: 0; background: transparent; overflow: visible;
}
.dlg::backdrop { background: rgba(20, 10, 32, .58); backdrop-filter: blur(3px); }
.dlg__inner { position: relative; max-height: calc(100dvh - 32px); overflow: auto; border-radius: var(--radius); overscroll-behavior: contain; }
.dlg .pform { box-shadow: none; }
.dlg__close {
  position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center;
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); cursor: pointer;
}
.dlg__close:hover { color: var(--ink); background: var(--line); }
.dlg[open] .dlg__inner { animation: dlg-in .22s ease-out; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px); } }
html:has(dialog[open]) { overflow: hidden; }
@media (max-width: 600px) {
  /* The open dialog becomes a bottom sheet (the inline no-JS form keeps its card shape). */
  .dlg[open] { width: 100vw; margin: auto 0 0; max-height: 92dvh; }
  .dlg[open] .dlg__inner { max-height: 92dvh; border-radius: var(--radius) var(--radius) 0 0; }
  .dlg[open] .pform { border-radius: var(--radius) var(--radius) 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

/* ---------- Mobile CTA bar ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(247, 247, 242, .96); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s ease-out;
}
.mbar.is-on { transform: none; }
@media (min-width: 900px) { .mbar { display: none; } }

/* ---------- Footer ---------- */
.foot { padding-block: 28px; border-top: 1px solid var(--line); }
@media (max-width: 899px) { .foot { padding-bottom: calc(28px + 76px + env(safe-area-inset-bottom)); } }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; font-size: .875rem; color: var(--ink-3); }
.dark .foot__inner { color: #BDB3CF; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .caption .w.is-on { transform: none; }
}

/* Text pages: privacy and 404 */
.doc { max-width: 720px; padding-block: 48px 72px; color: var(--ink-2); line-height: 1.6; }
.doc h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); color: var(--ink); }
.doc h2 { font-size: 1.25rem; margin-top: 32px; color: var(--ink); }
.doc p { margin: 12px 0 0; }
.doc a:not(.btn) { color: var(--brand); }
.doc .btn { margin-top: 20px; }
.doc__updated { font-size: .875rem; color: var(--ink-3); }
.pform__privacy a, .foot__inner a { color: inherit; }
