/* Ace HQ site. One motif: the orb, the dotted sphere of the app icon. It enters the first
   screen from the right at full size, closes the page in the footer, and its dot is the bullet
   in every list. Everything else stays quiet: the app's sky, an almost white blue with a soft
   wash, navy ink type, one blue for the plan that matters, true black in dark mode. The home
   page's sky pictures, phones and layers are in css/home.css.

   Type: Schibsted Grotesk (SIL Open Font License 1.1, fonts/OFL.txt), one Latin file that
   holds every weight from 400 to 600. 400 text, 500 headings and controls, 600 for the rare
   word that must stand out. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-v1.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
/* Arial at the same width and height, so the lines do not move when the real face arrives. */
@font-face {
  font-family: "Ace Fallback";
  src: local("Arial");
  size-adjust: 105.2%;
  ascent-override: 92.8%;
  descent-override: 24.5%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light dark;
  --canvas: #f4f8fd;              /* the page: the app's sky, almost white */
  --surface: #ffffff;             /* raised things: the form, the plans, the windows */
  --sunken: #e3ecf8;              /* tracks, pressed states, a field one step down */
  --ink: #0c1424;                 /* the app's navy ink */
  --ink-rgb: 12 20 36;
  --on-ink: #ffffff;              /* text on an ink fill */
  --steel: #2c3a52;               /* secondary text: navy, never grey */
  --faint: #76859f;               /* form control edges: 3:1 against card and page */
  --line: rgba(12, 20, 36, .1);   /* the one hairline */
  --rim: rgba(12, 20, 36, .18);
  --up: #15803d; --up-fill: #1f9d55; --up-wash: #e3f5ea;
  --wait: #a4500a; --wait-wash: #fff0d6;
  --down: #b91c1c;
  --blue: #1a5fd0; --blue-press: #154fb0; --blue-wash: #e2edfc; --blue-ink: #154fb0;
  --ads: #2b62f0; --store: #0a8f9c; --llc: #7d3c73; --market: #e8452c;
  /* Depth, one system: a hairline, a contact shadow, an ambient one. Shadows are sky-tinted navy. */
  --hair: 0 0 0 1px rgba(20, 52, 104, .08);
  --lift-1: var(--hair), 0 1px 2px rgba(20, 52, 104, .06), 0 8px 24px -14px rgba(20, 52, 104, .16);
  --lift-2: var(--hair), 0 2px 4px rgba(20, 52, 104, .06), 0 24px 48px -24px rgba(20, 52, 104, .26);
  --lift-3: 0 0 0 1px rgba(12, 20, 36, .1), 0 4px 8px rgba(20, 52, 104, .1), 0 40px 72px -32px rgba(20, 52, 104, .42);
  --lift-btn: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(12, 20, 36, .24);
  --lift-btn-down: inset 0 1px 0 rgba(255, 255, 255, 0), 0 0 1px rgba(12, 20, 36, .3);

  --font: "Schibsted Grotesk", "Ace Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 20px;
  --section: 112px;
  --page: 1200px;
  --text: 640px;
  --r: 20px;                      /* the one card radius */
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* True black: the page is #000, raised things one step up, hairlines in the light ink. */
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #000000;
    --surface: #111111;
    --sunken: #1d1d1d;
    --ink: #eef3fb;
    --ink-rgb: 238 243 251;
    --on-ink: #000000;
    --steel: #c3d0e6;
    --faint: #66728a;
    --line: rgba(238, 243, 251, .12);
    --rim: rgba(238, 243, 251, .24);
    --up: #4cc38a; --up-fill: #2f9e62; --up-wash: #10291c;
    --wait: #f0a64a; --wait-wash: #2a1d0b;
    --down: #ff6b6b;
    --blue: #3b7cf0; --blue-press: #2d6be0; --blue-wash: #0c1a33; --blue-ink: #8fb4ff;
    --hair: 0 0 0 1px rgba(238, 243, 251, .1);
    --lift-1: var(--hair), 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -14px rgba(0, 0, 0, .6);
    --lift-2: var(--hair), 0 2px 4px rgba(0, 0, 0, .4), 0 24px 48px -24px rgba(0, 0, 0, .7);
    --lift-3: 0 0 0 1px rgba(238, 243, 251, .14), 0 4px 8px rgba(0, 0, 0, .4), 0 40px 72px -32px rgba(0, 0, 0, .8);
    --lift-btn: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .5);
    --lift-btn-down: inset 0 1px 0 rgba(255, 255, 255, 0), 0 0 1px rgba(0, 0, 0, .5);
  }
}

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

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  font-synthesis: none;
  font-kerning: normal;
  font-variant-numeric: lining-nums proportional-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* The wash: the app's sky blue with one breath of cream behind every page, very low contrast,
   fixed so it never repaints on scroll. The one place a gradient is allowed (test/premium.test.js). */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48vmax 40vmax at 4% 2%, rgba(196, 222, 255, .5), transparent 70%),
    radial-gradient(44vmax 38vmax at 98% 22%, rgba(166, 204, 255, .42), transparent 70%),
    radial-gradient(52vmax 42vmax at 84% 98%, rgba(255, 236, 214, .34), transparent 70%),
    radial-gradient(40vmax 34vmax at 2% 80%, rgba(176, 210, 255, .36), transparent 70%);
}
@media (prefers-color-scheme: dark) {
  body::before { opacity: .22; }
  /* the orb artwork is drawn in ink on clear: in the dark it turns to light ink */
  .mark, .id img, .app-head img, .st img, .quiz-home img { filter: invert(1); }
}
img, svg, canvas { display: block; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
strong { font-weight: 600; }
h1, h2, h3 { text-wrap: balance; font-weight: 500; }
p, li { text-wrap: pretty; }
::selection { background: var(--ink); color: var(--canvas); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--on-ink);
  padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 500;
}
.skip:focus { top: 12px; }

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

/* four sizes do the work: display, title, body, small */
h1 { font-size: clamp(36px, 9vw, 88px); line-height: 1; letter-spacing: -0.035em; }
h1 span { display: inline-block; }
h2 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.032em; max-width: 18ch; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; }
.lead { font-size: 19px; line-height: 1.5; max-width: 36ch; }
.body { max-width: var(--text); }
.meta { font-size: 14px; line-height: 1.45; color: var(--steel); }

/* The orb's dot: the bullet of every list on the page. */
.dots li { position: relative; padding-left: 24px; }
.dots li::before, .checks li::before, .facts li::before, .plan-list li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink);
}

/* ---------- buttons: one shape, fully round ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border-radius: 999px;
  font: 500 17px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform 120ms var(--ease), box-shadow 120ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
}
.btn:active { transform: scale(.97); }
/* Every tap answers at once: no double-tap wait on anything that can be pressed. */
a, button, summary, label { touch-action: manipulation; }
.btn-primary { background: var(--ink); color: var(--on-ink); box-shadow: var(--lift-btn); }
.btn-primary:hover { background: rgb(var(--ink-rgb) / .86); }
.btn-primary:active { transform: translateY(1px) scale(.985); box-shadow: var(--lift-btn-down); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: var(--lift-btn); }
.btn-blue:hover { background: var(--blue-press); }
.btn-blue:active { transform: translateY(1px) scale(.985); box-shadow: var(--lift-btn-down); }
.btn-rim { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rim); }
.btn-rim:hover { background: var(--sunken); }
.btn-quiet { background: transparent; color: var(--ink); padding: 0 20px; }
.btn-quiet:hover { background: rgb(var(--ink-rgb) / .06); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-lg { height: 56px; padding: 0 32px; font-size: 18px; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
/* The send button: its label changes in place (js/site.js stacks the old one over the new for 180ms),
   and a quiet ring in the button's own ink shows only if the answer takes longer than 400ms. */
[data-submit] { position: relative; }
[data-submit][disabled] { opacity: 1; }
.lbl { display: inline-block; }
.lbl-out { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.btn.is-waiting::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-left: 10px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
}

/* ---------- header ---------- */

.bar { position: sticky; top: 0; z-index: 20; background: var(--canvas); }
.bar .btn { transition: opacity 160ms var(--ease), transform 120ms var(--ease), box-shadow 120ms var(--ease), background-color 160ms var(--ease); }
.bar.is-quiet .btn { opacity: 0; pointer-events: none; }
/* The small button is easier to hit than it looks: 52px of target around 40px of shape. */
.bar .btn { position: relative; }
.bar .btn::before { content: ""; position: absolute; inset: -6px; border-radius: 999px; }
.bar-in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto;
  padding: 12px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
.mark { border-radius: 0; }

.nav { display: none; }
@media (min-width: 960px) {
  .nav { display: flex; gap: 4px; margin-left: auto; }
  .nav a {
    display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 999px;
    font-size: 15px; font-weight: 500; text-decoration: none; color: var(--steel);
    transition: background-color 160ms var(--ease), color 160ms var(--ease);
  }
  .nav a:hover { color: var(--ink); background: rgb(var(--ink-rgb) / .06); }
  .nav a:active { color: var(--ink); background: rgb(var(--ink-rgb) / .1); transition-duration: 0ms; }
}

/* ---------- hero ----------
   The words sit on the left on bare ground; the orb enters from the right edge at full size,
   cropped by the screen. On a phone it rises from the top right corner above the words.
   The bar floats over the hero with no fill until the page moves. */

.home .bar { position: fixed; left: 0; right: 0; background: transparent; transition: background-color 240ms var(--ease); }
.home .bar.is-scrolled { background: var(--canvas); }
.top-mark { position: absolute; left: 0; top: 0; width: 1px; height: 8px; pointer-events: none; }
.bar.is-early .btn { opacity: 0; pointer-events: none; transform: translateY(-6px); }

.hero { position: relative; overflow: clip; --orb: 118vw; --orb-alpha: 1; }
.hero-copy {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--orb) * .66); padding-bottom: 40px;
}
.hero h1 { width: fit-content; font-size: clamp(34px, 9.8vw, 112px); line-height: .98; letter-spacing: -0.04em; }
.hero h1 .ln { display: inline-block; overflow: clip; padding: 0 .04em .14em 0; margin-bottom: -.14em; }
.hero h1 .w { display: inline-block; }
.hero-foot { padding-top: 24px; }
.hero .lead { font-size: 18px; max-width: 34ch; }
.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hero-cta .btn-quiet { margin-left: -8px; }
.hero .meta { margin-top: 20px; }

/* The orb: js/orb.js turns it, leans it towards the pointer and lets it sink as the page
   scrolls. --orb-alpha is how strongly it is drawn; the opacity here is the still fallback. */
.orb-back {
  position: absolute; z-index: 0; left: 22vw; top: calc(var(--orb) * -.08);
  width: var(--orb); height: var(--orb);
  opacity: .5; pointer-events: none; will-change: transform;
}
.orb { height: auto; aspect-ratio: 1; }
.caption { margin-top: 12px; position: relative; }

@media (min-width: 768px) {
  .hero { --orb: min(90vh, 900px); }
  .hero-copy { justify-content: center; padding-top: 112px; padding-bottom: 64px; }
  .hero h1 { font-size: clamp(56px, 6.4vw, 100px); }
  .hero .lead { font-size: 21px; max-width: 32ch; }
  .orb-back { left: auto; right: calc(var(--orb) * -.22); top: calc(50% - var(--orb) / 2 + 24px); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero { --orb: 86vw; }
  .hero-copy { justify-content: flex-end; padding-top: calc(var(--orb) * .6); }
  .orb-back { top: calc(var(--orb) * -.18); right: calc(var(--orb) * -.28); }
}

/* ---------- phone and Mac ---------- */

.phone {
  width: 280px; height: 520px; flex: none;
  background: #0b0b0b; border-radius: 44px; padding: 10px;
  box-shadow: var(--lift-3);
  text-align: left;
}
.screen {
  height: 100%; border-radius: 34px; background: var(--canvas);
  display: flex; flex-direction: column; overflow: hidden;
  padding: 18px 14px 14px;
}
.app-head { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 16px; padding: 2px 4px 0; }
.thread { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.stage .thread { flex: 1 1 auto; min-height: 0; overflow: clip; margin-top: 16px; padding-bottom: 8px; }
.stage .composer { margin-top: 8px; }
.stage .thread > * { transition: opacity 420ms var(--ease), transform 520ms var(--ease); }
.story.is-live[data-step="2"] .thread > *, .story.is-live[data-step="3"] .thread > * { transform: translateY(-96px); }
.story.is-live[data-step="2"] .thread > .bubble, .story.is-live[data-step="3"] .thread > .bubble, .story.is-live[data-step="2"] .thread > .count, .story.is-live[data-step="3"] .thread > .count { opacity: 0; }
.bubble {
  align-self: flex-end; max-width: 88%;
  background: var(--ink); color: var(--on-ink);
  font-size: 15px; line-height: 1.35; padding: 10px 14px; border-radius: 20px 20px 6px 20px;
}
.composer { margin-top: auto; position: relative; height: 40px; border-radius: 999px; background: var(--surface); box-shadow: var(--hair); flex: none; }
.composer::after { content: ""; position: absolute; right: 5px; top: 5px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); }

.ask { background: var(--surface); border-radius: var(--r); padding: 16px; box-shadow: var(--lift-1); }
.ask-q { font-size: 16px; font-weight: 500; line-height: 1.3; }
.ask-row { display: flex; gap: 8px; margin-top: 16px; }
.cap {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  height: 40px; border-radius: 999px; font-weight: 500; font-size: 15px;
}
.cap-rim { box-shadow: inset 0 0 0 1px var(--rim); }
.cap-fill { background: var(--ink); color: var(--on-ink); box-shadow: var(--lift-btn); }

.progress { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.progress li {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-radius: 14px; padding: 12px;
  font-size: 14px; font-weight: 500; box-shadow: var(--hair);
}
.ring {
  position: relative; width: 22px; height: 22px; border-radius: 50%; flex: none;
  box-shadow: inset 0 0 0 1.5px var(--faint);
  transition: background-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.ring::after, .tick::after {
  content: ""; position: absolute; left: 50%; top: 46%;
  width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
/* An empty ring becomes a tick by crossfading and growing in the same box, never a hard swap. */
.ring::after { opacity: 0; transform: translate(-50%, -50%) rotate(45deg) scale(.6); transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
.ring.is-on, .story[data-step="1"] .progress li:nth-child(-n + 2) .ring, .story[data-step="2"] .progress li:nth-child(-n + 2) .ring, .story[data-step="3"] .ring { background: var(--up-fill); box-shadow: none; }
.ring.is-on::after, .story[data-step="1"] .progress li:nth-child(-n + 2) .ring::after, .story[data-step="2"] .progress li:nth-child(-n + 2) .ring::after, .story[data-step="3"] .ring::after { opacity: 1; transform: translate(-50%, -50%) rotate(45deg); }
.story[data-step="1"] .progress li:nth-child(2) .ring, .story[data-step="1"] .progress li:nth-child(2) .ring::after { transition-delay: 600ms; }
.tick { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--up-fill); flex: none; }
.tick-draw::after { display: none; }
.tick-draw svg { display: block; width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }

/* ---------- sections ---------- */

section { scroll-margin-top: 72px; }
.panel { background: none; }

/* 2. What it does: the heading holds on the left; on the right, the jobs read like Ace's own
   log, the request and what came back, one line each. */
.outcomes { padding-top: var(--section); }
.outcomes-grid { display: grid; gap: 40px; }
.examples { margin-top: 20px; }
.closer { margin-top: 20px; font-weight: 500; max-width: 30ch; }
.results { border-top: 1px solid var(--line); }
.result {
  display: grid; gap: 12px; padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.req { font-size: clamp(21px, 2vw, 26px); line-height: 1.28; font-weight: 500; letter-spacing: -0.015em; max-width: 30ch; }
.done { display: flex; align-items: center; gap: 10px; color: var(--steel); font-size: 16px; font-weight: 500; }
.result .tick { width: 20px; height: 20px; }
.result .tick::after { width: 5px; height: 9px; }

/* 3. How it works */
.how { padding-top: var(--section); }
.story { position: relative; }
.story-grid { display: grid; gap: 32px; }
.steps { margin-top: 28px; display: grid; gap: 20px; }
.steps li { font-size: 18px; line-height: 1.45; max-width: 32ch; color: var(--steel); }
.steps strong { display: block; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 4px; color: var(--ink); }
.story-marks { display: none; }
.how-more { display: grid; gap: 16px; margin-top: 48px; }
.how-more .body { font-size: 19px; }

.stage { position: relative; display: grid; justify-items: center; gap: 24px; }
.stage .caption { justify-self: center; }
.mac {
  width: 100%; max-width: 560px; background: var(--surface); border-radius: 16px; overflow: hidden;
  box-shadow: var(--lift-2); text-align: left;
}
.mac-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; background: var(--sunken); }
.mac-dots { display: flex; gap: 6px; }
.mac-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--rim); }
.mac-url { flex: 1; min-width: 0; height: 26px; border-radius: 8px; background: var(--surface); font-size: 13px; line-height: 26px; padding: 0 10px; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mac-state { display: grid; }
.st {
  grid-area: 1 / 1; justify-self: end; display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 500; white-space: nowrap;
  background: var(--surface); color: var(--steel); opacity: 0;
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}
.st-2 { background: var(--wait-wash); color: var(--wait); }
.st-3 { background: var(--up-wash); color: var(--up); }
.mac-page { position: relative; padding: 28px 28px 32px; }
.mac-h { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.hours { margin-top: 18px; display: grid; gap: 4px; max-width: 300px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; margin: 0 -12px; border-radius: 10px; font-size: 16px; font-variant-numeric: tabular-nums; }
.hours li > span:first-child { color: var(--steel); }
.swap { display: grid; text-align: right; }
.swap b { grid-area: 1 / 1; font-weight: 500; transition: opacity 320ms var(--ease), transform 320ms var(--ease); }
.swap .old { opacity: 0; transform: translateY(-10px); }
.mac-note { margin-top: 20px; text-align: left; font-size: 13px; color: var(--steel); }
.mac-note b { font-weight: 500; }
.story .mac-note .end, .story[data-step="3"] .mac-note .mid { opacity: 0; transform: translateY(10px); }
.story[data-step="3"] .mac-note .end { opacity: 1; transform: none; color: var(--up); }
.cursor { position: absolute; left: 0; top: 0; width: 16px; height: 22px; fill: var(--ink); stroke: var(--canvas); stroke-width: 1.2; opacity: 0; transform: translate(70%, 40%); }

.stage .phone { width: 250px; height: 480px; border-radius: 40px; padding: 9px; }
.stage .screen { border-radius: 31px; }
.count { padding: 0 4px; font-size: 13px; font-weight: 500; color: var(--steel); font-variant-numeric: tabular-nums; }
.slot { display: grid; }
.slot > * { grid-area: 1 / 1; }
.ask-card { padding: 14px; border-radius: 16px; opacity: 0; transform: scale(.96); pointer-events: none; }
.ask-card .ask-q { font-size: 15px; }
.ask-card .ask-row { margin-top: 12px; }
.ask-card .cap { height: 36px; font-size: 14px; }
.done-line { align-self: start; padding: 4px; font-size: 15px; color: var(--ink); }

/* The step the story is on. "pre" is before the section arrives. */
.story[data-step="pre"] .st-0, .story[data-step="0"] .st-0, .story[data-step="1"] .st-1, .story[data-step="2"] .st-2, .story[data-step="3"] .st-3 { opacity: 1; }
.story[data-step="pre"] .swap .old, .story[data-step="0"] .swap .old { opacity: 1; transform: none; }
.story[data-step="pre"] .swap .new, .story[data-step="0"] .swap .new { opacity: 0; transform: translateY(10px); }
.story[data-step="1"] .hours li:nth-child(2) b { transition-delay: 450ms; }
.story[data-step="1"] .hours li:nth-child(3) b { transition-delay: 900ms; }
.story[data-step="pre"] .bubble { opacity: 0; transform: translateY(12px) scale(.96); }
.story[data-step="pre"] .count, .story[data-step="pre"] .progress li, .story[data-step="0"] .count, .story[data-step="0"] .progress li { opacity: 0; transform: translateY(12px); }
.story[data-step="2"] .ask-card { opacity: 1; transform: none; }
.story:not([data-step="3"]) .done-line { opacity: 0; transform: translateY(8px); }
.bubble { transform-origin: 100% 100%; }
.bubble, .count, .progress li, .ask-card, .done-line { transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
.progress li:nth-child(2) { transition-delay: 80ms; }
.progress li:nth-child(3) { transition-delay: 160ms; }

/* 4. Control: the Yes / No card is the picture, set large */
.control { padding-top: var(--section); }
.control-panel { display: grid; gap: 40px; }
.checks { margin-top: 28px; display: grid; gap: 12px; font-size: 19px; }
.checks li { position: relative; padding-left: 24px; }
.strong-line { margin-top: 24px; font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.ask-big { border-radius: 28px; padding: 28px; box-shadow: var(--lift-2); width: 100%; max-width: 460px; justify-self: center; }
.ask-big .ask-q { font-size: clamp(26px, 6vw, 36px); line-height: 1.12; letter-spacing: -0.025em; }
.ask-big .ask-row { margin-top: 32px; gap: 12px; }
.ask-big .cap { height: 56px; font-size: 17px; }

/* 5. Private */
.private { padding-top: var(--section); }
.private .lead { margin-top: 20px; }
.facts { margin-top: 24px; display: grid; gap: 10px; font-size: 18px; max-width: var(--text); }
.facts li { position: relative; padding-left: 24px; }
.kinds { display: grid; gap: 32px; margin-top: 56px; }
.kind { padding-top: 24px; border-top: 1px solid var(--line); }
.kind p { margin-top: 10px; max-width: 46ch; color: var(--steel); }
.byo {
  margin-top: 40px; border-radius: var(--r); padding: 28px 24px;
  background: var(--blue-wash); display: grid; gap: 8px;
}
.byo h3 { color: var(--blue-ink); }
.byo p { font-size: 18px; max-width: 46ch; }
.unf { font-weight: 600; }

/* 6. Yours */
.yours { padding-top: var(--section); }
.yours-grid { display: grid; gap: 40px; }
.yours-copy .lead { margin-top: 24px; }
.switch-intro { font-weight: 500; }
.switch-tag { margin-top: 16px; }
.switch {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 8px; padding: 6px; height: 64px; max-width: 460px;
  background: var(--surface); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rim);
}
.switch::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: calc((100% - 12px) / 3);
  border-radius: 999px; background: var(--ink); box-shadow: var(--lift-btn);
  transition: transform 180ms var(--ease);
}
/* Dragged (js/motion.js): the thumb follows the finger with no easing; past either end the whole
   control gives a little and comes back to rest when let go. */
.switch { touch-action: pan-y; -webkit-user-select: none; user-select: none; transition: transform 380ms var(--ease); }
.switch.is-drag, .switch.is-drag::before { transition: none; }
.switch.is-drag::before { transform: translateX(var(--x, 0px)) !important; }
.switch.is-drag label { cursor: grabbing; }
.switch:has(#where-cloud:checked)::before { transform: translateX(100%); }
.switch:has(#where-both:checked)::before { transform: translateX(200%); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.switch label {
  position: relative; display: grid; place-items: center; border-radius: 999px; cursor: pointer;
  font-weight: 500; font-size: 17px; color: var(--ink);
  transition: color 200ms var(--ease), transform 120ms var(--ease);
}
.switch label:active { transform: scale(.97); }
.switch input:checked + label { color: var(--on-ink); }
.switch input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
@supports not selector(:has(*)) {
  .switch::before { display: none; }
  .switch input:checked + label { background: var(--ink); }
}
.note { margin-top: 20px; color: var(--steel); }

/* 7. Actions: the first one is a website, so the picture is one, finished */
.actions { padding-top: var(--section); }
.actions-grid { display: grid; gap: 40px; }
.actions-copy .lead { margin-top: 24px; }
.actions-copy .body { margin-top: 12px; }
.tiles { width: 100%; max-width: 520px; justify-self: end; }
.tile-main { background: var(--surface); border-radius: var(--r); padding: 8px; box-shadow: var(--lift-2); }
.site { background: #f3ece1; color: #2a1f14; border-radius: 12px; padding: 16px 20px 28px; }
.site-bar { display: flex; gap: 16px; font-size: 13px; color: #6b5a47; }
.site-bar span:first-child { margin-right: auto; font-weight: 600; color: #2a1f14; }
.site-h { margin-top: 48px; font-size: clamp(24px, 3vw, 32px); line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; max-width: 14ch; }
.site-p { margin-top: 10px; font-size: 15px; color: #6b5a47; max-width: 30ch; }
.site-btn { display: inline-block; margin-top: 20px; padding: 10px 16px; border-radius: 999px; background: #2a1f14; color: #f3ece1; font-size: 14px; font-weight: 500; }
.tile-foot { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 12px 8px; }
.tile-label { font-size: 19px; font-weight: 500; }
.pill { font-size: 15px; color: var(--wait); font-weight: 500; }

/* 8. Plans: one row per plan, the same columns, different weights. Pro is the one row in ink;
   the custom build sits on the blue field. No badges: the order and the fill say it. */
.plans { padding-top: var(--section); }
.plans .lead { margin-top: 24px; max-width: 44ch; }
.plans .body { margin-top: 12px; color: var(--steel); }
.plan-grid { display: grid; gap: 8px; margin-top: 48px; }
.plan {
  display: grid; gap: 20px;
  background: var(--surface); border-radius: var(--r); padding: 28px 24px 24px; box-shadow: var(--hair);
}
/* The whole row is the target, not only its button. */
.plan { position: relative; }
.plan .btn::before { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan-head h3 { font-size: 28px; letter-spacing: -0.025em; }
.mult { font-size: 16px; font-weight: 500; color: var(--steel); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-list { display: grid; gap: 8px; font-size: 17px; }
.plan-list li { position: relative; padding-left: 22px; }
.plan-list li::before { width: 6px; height: 6px; top: .66em; }
.plan-top { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.plan-top .mult { color: inherit; opacity: .72; }
.plan-top .plan-list li::before { background: var(--on-ink); }
.plan-custom { background: var(--blue-wash); box-shadow: none; }
.plan-custom .mult { color: var(--blue-ink); }
.boosts-line { margin-top: 32px; display: grid; gap: 8px; font-size: 17px; max-width: var(--text); }
.plans-pay { margin-top: 16px; font-size: 17px; font-weight: 500; max-width: var(--text); }

/* 9. Questions: a plain list on hairlines */
.faq { padding-top: var(--section); }
.faq-head { margin-bottom: 32px; }
.faq-head .body { margin-top: 16px; color: var(--steel); }
.qa { max-width: 720px; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 18px 0; font-size: 19px; font-weight: 500; letter-spacing: -0.01em;
  transition: color 160ms var(--ease);
}
.qa summary:hover, .qa summary:active { color: var(--blue-ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg);
  transition: transform 180ms var(--ease);
}
.qa details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.qa details p { padding: 0 0 24px; max-width: 58ch; color: var(--steel); }
.qa summary:focus-visible { outline-offset: 4px; }

/* 10. Request access */
.call { padding-top: var(--section); }
.call-grid { display: grid; gap: 40px; }
.call-copy .lead { margin-top: 24px; }
.call-copy .body { margin-top: 12px; }
.call-form {
  width: 100%; scroll-margin-top: 84px;
  background: var(--surface); border-radius: 24px; padding: 24px 20px;
  box-shadow: var(--hair);
}
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font-weight: 500; font-size: 16px; margin-bottom: 8px; padding: 0; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font: 17px/1.4 var(--font); color: var(--ink);
  background: var(--canvas); border: 1px solid var(--faint); border-radius: 12px;
  padding: 14px 16px; min-height: 52px; appearance: none;
  transition: border-color 160ms var(--ease);
}
textarea { resize: vertical; min-height: 120px; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--ink); }
[aria-invalid="true"] { border-color: var(--down) !important; }
.err { margin-top: 8px; font-size: 14px; line-height: 1.35; color: var(--down); font-weight: 500; }
.choices { display: grid; gap: 8px; }
.choices legend { margin-bottom: 8px; }
.choices .choice {
  display: flex; align-items: center; gap: 12px; min-height: 52px; margin: 0;
  padding: 12px 16px; line-height: 1.35; border-radius: 12px; border: 1px solid var(--faint); background: var(--canvas);
  font-weight: 400; cursor: pointer; transition: border-color 160ms var(--ease);
}
.choice input {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 50%; flex: none;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--faint);
  transition: box-shadow 160ms var(--ease);
}
.choice input:checked { box-shadow: inset 0 0 0 7px var(--ink); }
.choice:active { background: var(--sunken); }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.choices[aria-invalid="true"] .choice { border-color: var(--down); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.call-form .btn { margin-top: 8px; }
.form-err { font-size: 15px; }
.call-form .meta { margin-top: 16px; }
.thanks { padding: 8px 4px; }
.thanks .tick { display: block; width: 44px; height: 44px; margin-bottom: 20px; }
.thanks .tick::after { width: 10px; height: 18px; border-width: 0 3px 3px 0; }
.thanks h3 { outline: none; }
.thanks .body { margin-top: 12px; font-size: 19px; }
.plan-picks { display: grid; gap: 8px; }
.form-note { margin-top: 16px; font-size: 15px; color: var(--steel); }
.form-note a, .call-copy a, .qa a { text-underline-offset: 3px; }
@media (min-width: 480px) { .plan-picks { grid-template-columns: 1fr 1fr; } }

/* ---------- footer: the orb, built large ---------- */

.foot { padding: var(--section) 0 40px; }
.foot-in { display: grid; gap: 32px; align-items: end; }
.brand-lg { flex-direction: column; align-items: flex-start; gap: 20px; font-size: clamp(40px, 7vw, 72px); letter-spacing: -0.04em; line-height: 1; }
.brand-lg .mark { width: clamp(160px, 30vw, 280px); height: auto; }
.foot-say { display: grid; gap: 12px; justify-items: start; }
.foot-line { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.02em; }
.foot-say .body { color: var(--steel); }
.foot-say .btn { margin-top: 12px; }
.foot-links { display: grid; gap: 8px; margin-top: 64px; }
.foot-links nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 15px; font-weight: 500; }
.foot-links nav a { text-decoration: none; padding: 12px 0; color: var(--steel); transition: color 160ms var(--ease); }
.foot-links nav a:hover { color: var(--ink); }
.foot-short { padding: 24px 0 48px; }
.foot .legal:first-child { margin-top: 0; }
.legal { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 32px; font-size: 15px; font-weight: 500; }
.legal a { text-decoration: none; padding: 12px 0; }
.legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-links .legal { margin-top: 0; }

/* ---------- wider screens ---------- */

@media (min-width: 768px) {
  .result { grid-template-columns: 1fr auto; align-items: baseline; column-gap: 32px; padding: 28px 0; }
  .kinds { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .byo { grid-template-columns: 1fr 1fr; align-items: baseline; padding: 32px; column-gap: 48px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-links { grid-template-columns: 1fr auto; align-items: start; }
}

@media (min-width: 1024px) {
  .lead { font-size: 21px; }

  .outcomes-grid { grid-template-columns: 4fr 7fr; column-gap: 80px; align-items: start; }
  .outcomes-head { position: sticky; top: 25vh; }

  .story-grid { grid-template-columns: 5fr 7fr; column-gap: 64px; align-items: center; }
  .stage { display: block; height: 560px; }
  .stage .mac { position: absolute; left: 0; top: 24px; width: calc(100% - 230px); }
  .stage .phone { position: absolute; right: 0; top: 64px; }
  .stage .caption { position: absolute; left: 0; bottom: 0; }
  .how-more { grid-template-columns: 5fr 7fr; column-gap: 64px; margin-top: 64px; }

  .control-panel { grid-template-columns: 1fr 1fr; align-items: center; column-gap: 80px; }
  .control-panel .ask-big { order: -1; justify-self: start; }

  .yours-grid { grid-template-columns: 1fr 1fr; column-gap: 80px; align-items: center; }
  .switch { height: 72px; }
  .switch label { font-size: 19px; }

  .actions-grid { grid-template-columns: 5fr 6fr; column-gap: 80px; align-items: center; }

  .plan { grid-template-columns: 280px 1fr 260px; align-items: center; column-gap: 48px; padding: 32px 32px 32px 40px; }
  .plan-head { flex-direction: column; align-items: flex-start; gap: 4px; }

  .call-grid { grid-template-columns: 5fr 7fr; column-gap: 64px; align-items: start; }
  .call-copy { position: sticky; top: 120px; }
  .call-form { justify-self: end; max-width: 640px; padding: 40px; }
  #lead-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  #lead-form > .field, #lead-form > .btn, #lead-form > .form-err, #lead-form > .meta, #lead-form > .form-note { grid-column: 1 / -1; }
  #lead-form > .field-half { grid-column: auto; }

  .faq-in { display: grid; grid-template-columns: 4fr 7fr; column-gap: 80px; align-items: start; }
}

/* The live story: the section holds the screen for four marks (js/motion.js sets is-live
   and the step). On a phone one screen shows at a time: the phone, then the Mac while Ace
   works, then the phone again. */
.story.is-live .story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: 56px; }
.story.is-live .story-pin > .wrap { width: 100%; }
.story.is-live .story-marks { display: block; margin-top: -100vh; margin-top: -100svh; }
.story-marks i { display: block; height: 60vh; height: 60svh; }
.story.is-live .steps li { transition: opacity 360ms var(--ease), transform 360ms var(--ease); }
.stage .mac, .stage .phone { transition: transform 600ms var(--ease), opacity 400ms var(--ease); }

@media (max-width: 1023px) {
  .story.is-live .story-grid { gap: 20px; }
  .story.is-live .steps { margin-top: 16px; min-height: 104px; }
  .story.is-live .steps li { grid-area: 1 / 1; opacity: 0; transform: translateY(12px); font-size: 17px; }
  .story.is-live .steps strong { font-size: 24px; }
  .story.is-live .stage { grid-template-areas: "s"; grid-template-rows: 1fr; height: 456px; align-content: start; gap: 0; }
  .story.is-live .stage > * { grid-area: s; }
  .story.is-live .stage .caption { align-self: end; }
  .story.is-live .stage .mac { align-self: center; opacity: 0; transform: translateX(24px) scale(.97); }
  .story.is-live .stage .phone { height: 420px; }
  .story.is-live[data-step="1"] .stage .mac { opacity: 1; transform: none; }
  .story.is-live[data-step="1"] .stage .phone { opacity: 0; transform: translateX(-24px) scale(.97); }
  .story.is-live h2 { font-size: 30px; }
}
@media (max-width: 1023px) and (max-height: 720px) {
  .story.is-live .stage { height: 372px; }
  .story.is-live .stage .phone { transform: scale(.84); transform-origin: 50% 0; }
  .story.is-live .steps { min-height: 88px; }
}
.story.is-live[data-step="pre"] .steps li[data-step-text="0"],
.story.is-live[data-step="0"] .steps li[data-step-text="0"],
.story.is-live[data-step="1"] .steps li[data-step-text="1"],
.story.is-live[data-step="2"] .steps li[data-step-text="2"],
.story.is-live[data-step="3"] .steps li[data-step-text="3"] { opacity: 1; transform: none; }
@media (min-width: 1024px) {
  .story.is-live .steps li { opacity: .28; }
  .story.is-live[data-step="1"] .stage .mac { transform: translateY(-8px); }
  .story.is-live[data-step="1"] .stage .phone { transform: translateY(16px); }
  .story.is-live[data-step="2"] .stage .phone, .story.is-live[data-step="0"] .stage .phone { transform: translateY(-8px); }
}

/* ---------- motion ----------
   Transform and opacity only, one easing curve. The hero comes in word by word under a
   mask while the orb winds itself on (js/orb.js); the line, the buttons and the bar follow,
   all done in about 1.6 seconds. Further down, js/motion.js marks blocks below the fold
   as pending and lets each group rise in, 70ms apart, as it enters. Every hidden state is
   either a keyframe's `from` or a class the script adds, so with no script, no animation
   support or reduced motion, everything is simply there. */

@media (prefers-reduced-motion: no-preference) {
  .orb-back { animation: orb-in 1600ms var(--ease) backwards; }
  .hero h1 .w { animation: word 900ms var(--ease) both; }
  .hero h1 .w:nth-child(1) { animation-delay: 80ms; }
  .hero h1 .w:nth-child(2) { animation-delay: 135ms; }
  .hero h1 .w:nth-child(3) { animation-delay: 190ms; }
  .hero h1 .ln + .ln .w:nth-child(1) { animation-delay: 300ms; }
  .hero h1 .ln + .ln .w:nth-child(2) { animation-delay: 355ms; }
  .hero h1 .ln + .ln .w:nth-child(3) { animation-delay: 410ms; }
  .hero .lead, .hero-cta, .hero-foot > .meta { animation: rise 800ms var(--ease) both; }
  .hero .lead { animation-delay: 560ms; }
  .hero-cta { animation-delay: 680ms; }
  .hero-foot > .meta { animation-delay: 780ms; }
  .home .bar-in { animation: fade 700ms var(--ease) 900ms both; }

  .is-pending { opacity: 0; transform: translateY(24px); }
  .is-shown { transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
  /* Headings are drawn in, not faded: js/motion.js puts each word behind its own mask and the
     words rise into place a line at a time, 60ms apart. --d is the block's place in its batch. */
  .is-mask.is-pending { opacity: 1; transform: none; }
  .mw { display: inline-block; overflow: clip; vertical-align: top; padding: 0 .04em .16em 0; margin: 0 -.04em -.16em 0; }
  .mi { display: inline-block; }
  .is-pending .mi { transform: translateY(112%); }
  .is-shown .mi { transition: transform 600ms var(--ease); transition-delay: calc(var(--d, 0ms) + var(--l, 0) * 60ms); }
  /* each job finishes as its row lands */
  .result.is-shown .done { animation: rise 600ms var(--ease) 380ms both; }
  .result.is-shown .tick { animation: pop 520ms var(--ease) 480ms both; }
  /* the Yes on the big card is pressed once */
  .ask-big.is-shown .cap-fill { animation: press 520ms var(--ease) 900ms both; }
  /* the Mac cursor walks the three rows while Ace works */
  .story.is-live[data-step="1"] .cursor { animation: walk 1500ms var(--ease) both; }
  /* A question opens by growing: the same row gets taller (320ms, shut in 220ms) and the answer
     fades in a moment later. Where the browser cannot size it, the row simply opens. */
  .qa details[open] p { animation: fade 240ms var(--ease) 100ms both; }
  @supports selector(::details-content) {
    .qa details { interpolate-size: allow-keywords; }
    .qa details::details-content { block-size: 0; overflow: clip; transition: block-size 220ms var(--ease), content-visibility 220ms allow-discrete; }
    .qa details[open]::details-content { block-size: auto; transition-duration: 320ms; }
  }
  /* The send button's label: the old one leaves as the new one arrives, in the same box. */
  .lbl-in { animation: lbl-in 180ms var(--ease) 60ms both; }
  .lbl-out { animation: lbl-out 120ms var(--ease) both; }
  .btn.is-waiting::after { animation: spin 700ms linear infinite; }
  /* Sent: the tick is drawn, then the mark pulses once. The words follow. */
  .thanks .tick-draw path { stroke-dashoffset: 1; }
  .thanks.is-in .tick-draw path { stroke-dashoffset: 0; transition: stroke-dashoffset 220ms ease-out 140ms; }
  .thanks.is-in .tick-draw { animation: pop 200ms var(--ease) both, pulse 260ms var(--ease) 360ms; }
  .thanks.is-in h3 { animation: rise 420ms var(--ease) 120ms both; }
  .thanks.is-in .body { animation: rise 420ms var(--ease) 180ms both; }
  .foot .brand-lg.is-shown .mark { animation: orb-in 1200ms var(--ease) 100ms both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes word { from { transform: translateY(110%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
@keyframes press { 40% { transform: scale(.93); } }
@keyframes pulse { 50% { transform: scale(1.1); } }
@keyframes lbl-in { from { opacity: 0; transform: translateY(10px) scale(.94); } }
@keyframes lbl-out { from { opacity: 1; } to { opacity: 0; transform: translateY(-10px) scale(.94); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orb-in { from { opacity: 0; scale: .86; } }
@keyframes walk {
  0% { opacity: 0; transform: translate(380px, 20px); }
  15% { opacity: 1; transform: translate(300px, 86px); }
  45% { opacity: 1; transform: translate(320px, 128px); }
  75% { opacity: 1; transform: translate(330px, 172px); }
  100% { opacity: 0; transform: translate(360px, 200px); }
}

/* One thing at a time: with a pointer on a plan, that row holds and the other rows step back. */
@media (hover: hover) and (pointer: fine) {
  .plan-grid .plan { transition: opacity 200ms var(--ease), transform 700ms var(--ease); }
  .plan-grid:has(.plan:hover) .plan:not(:hover) { opacity: .7; }
  .plan:hover .btn-rim { background: var(--sunken); }
  .plan:hover .btn-blue { background: var(--blue-press); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; transition-delay: 0ms !important; animation: none !important; }
}

/* ---------- privacy and 404 ---------- */
.doc { max-width: calc(var(--text) + 2 * var(--gutter)); padding-top: 48px; padding-bottom: 32px; }
.doc h1 { font-size: clamp(36px, 8vw, 64px); }
.doc .lead { margin-top: 20px; }
.doc h2 { font-size: clamp(22px, 4vw, 28px); margin-top: 48px; }
.doc p, .doc-list { margin-top: 16px; }
.doc-list { display: grid; gap: 12px; }
.doc-list li { display: grid; grid-template-columns: 20px 1fr; }
.doc-list li::before { content: ""; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--ink); }
.doc a { text-underline-offset: 3px; }
.draft { margin-top: 20px; padding: 14px 16px; border-radius: 16px; background: var(--wait-wash); font-size: 15px; font-weight: 500; }

/* ---------- Find your fit: the quiz ---------- */

.fit-page { min-height: 100vh; min-height: 100dvh; }
.fit-page[data-view="quiz"] .res, .fit-page[data-view="result"] .quiz { display: none; }

.quiz {
  width: 100%; max-width: 560px; margin: 0 auto;
  min-height: 100vh; min-height: 100dvh;
  padding: 8px var(--gutter) 20px;
  display: flex; flex-direction: column;
}
.quiz-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 88px; }
.quiz-top > :first-child { justify-self: start; margin-left: -10px; }
.quiz-top > :last-child { justify-self: end; margin-right: -12px; }
.quiz-home { display: block; border-radius: 50%; }
.orb-sm { width: 72px; }
.iconbtn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: none; border: 0; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color 120ms var(--ease), opacity 160ms var(--ease);
}
.iconbtn:hover { background: var(--sunken); }
.iconbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn[disabled] { opacity: 0; pointer-events: none; }
.quiz-skip {
  display: inline-flex; align-items: center; height: 44px; padding: 0 12px; border-radius: 22px;
  font-size: 15px; font-weight: 500; color: var(--steel); text-decoration: none;
  transition: background-color 120ms var(--ease), color 120ms var(--ease);
}
.quiz-skip:hover { background: var(--sunken); color: var(--ink); }

/* thin bar: one fifth per answer */
.quiz-bar { margin-top: 8px; }
.track { height: 4px; border-radius: 2px; background: var(--sunken); overflow: hidden; }
.track i {
  display: block; height: 100%; border-radius: 2px; background: var(--up-fill);
  transform-origin: left; transform: scaleX(.04);
  transition: transform 520ms var(--ease);
}
.track[data-step="2"] i { transform: scaleX(.2); }
.track[data-step="3"] i { transform: scaleX(.4); }
.track[data-step="4"] i { transform: scaleX(.6); }
.track[data-step="5"] i { transform: scaleX(.8); }
.track[data-step="6"] i { transform: scaleX(1); }
.quiz-count { margin-top: 12px; font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: 0.005em; color: var(--steel); font-variant-numeric: tabular-nums; }

.q { margin-top: 8px; }
.q h1 { font-size: clamp(26px, 6.8vw, 34px); line-height: 1.12; letter-spacing: -0.03em; outline: none; }
.opts { margin-top: 20px; display: grid; gap: 12px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px;
  padding: 12px 16px 12px 18px; border: 0; border-radius: 16px; text-align: left;
  background: var(--surface); color: var(--ink); box-shadow: var(--lift-1);
  font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: box-shadow 140ms var(--ease), transform 90ms var(--ease);
}
@media (hover: hover) {
  .opt:hover { box-shadow: 0 0 0 1px rgba(16, 24, 40, .22), 0 1px 2px rgba(16, 24, 40, .06), 0 10px 24px -12px rgba(16, 24, 40, .14); }
  .opt[aria-pressed="true"]:hover { box-shadow: inset 0 0 0 2px var(--ink); }
}
.opt:active { transform: scale(.985); }
.opt-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.opt-label { font-size: 17px; line-height: 22px; font-weight: 500; letter-spacing: -0.01em; }
.opt-sub { font-size: 14px; line-height: 19px; color: var(--steel); }
.opt-mark {
  position: relative; width: 24px; height: 24px; border-radius: 50%; flex: none;
  box-shadow: inset 0 0 0 1.5px var(--faint);
  transition: background-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.opt-mark::after {
  content: ""; position: absolute; left: 50%; top: 46%; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: translate(-50%, -50%) rotate(45deg);
  opacity: 0; transition: opacity 140ms var(--ease);
}
.opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.opt[aria-pressed="true"] .opt-mark { background: var(--ink); box-shadow: none; }
.opt[aria-pressed="true"] .opt-mark::after { opacity: 1; }

.quiz-foot { margin-top: auto; padding-top: 28px; }
.stays { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 18px; color: var(--steel); }
.stays svg { width: 14px; height: 14px; margin-top: 2px; flex: none; fill: none; stroke: var(--up); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stays a { color: inherit; text-underline-offset: 3px; white-space: nowrap; }
.quiz-fallback { margin-top: 16px; }

@media (min-width: 768px) {
  .quiz { padding-top: 5vh; padding-bottom: 32px; }
  .orb-sm { width: 88px; }
  .quiz-top { min-height: 104px; }
  .quiz-bar { margin-top: 16px; }
  .opts { margin-top: 24px; }
}

/* ---------- Find your fit: the result page ---------- */

.res-grid { display: grid; gap: 16px; padding-top: 20px; }
.res-main { display: grid; gap: 16px; min-width: 0; }
.res-head { padding: 4px 4px 12px; }
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 15px; line-height: 20px; font-weight: 500; color: var(--steel); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12px; font-weight: 500; letter-spacing: 0.005em; background: var(--up-wash); color: var(--up); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--faint); }
.dot.up { background: var(--up-fill); }
.dot.wait { background: var(--wait-fill); }
.res-head h1 { margin-top: 16px; font-size: clamp(28px, 7.4vw, 48px); line-height: 1.06; letter-spacing: -0.03em; max-width: 18ch; outline: none; }
.res-head .lead { margin-top: 16px; font-size: 18px; line-height: 1.5; max-width: 56ch; }
.told { margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--steel); max-width: 56ch; }

.card { background: var(--surface); border-radius: 16px; box-shadow: var(--lift-1); padding: 16px 20px; }
.card-label { font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: 0.005em; color: var(--steel); max-width: none; }

/* the example approval card: what "it asks first" looks like */
.ask-example { padding: 16px; }
.ask-who { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: 0.005em; color: var(--wait); }
.ask-who .eg { margin-left: auto; font-weight: 400; color: var(--steel); }
.ask-example .ask-q { margin-top: 8px; font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.ask-example .ask-row { margin-top: 16px; }
.ask-example .cap { height: 44px; font-size: 16px; }

/* three objections, one line each */
.objs { margin-top: 4px; }
.obj { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; padding: 16px 0; }
.obj + .obj { border-top: 1px solid var(--hairline); }
.obj:last-child { padding-bottom: 2px; }
.obj svg { width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--up-fill); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.obj dt { font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; }
.obj dd { grid-column: 2; margin: 3px 0 0; font-size: 16px; line-height: 23px; color: var(--steel); }

/* what fits: an Action keeps its own colour, the platform is ink */
.fit-head { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.id { width: 44px; height: 44px; flex: none; }
[data-tone="llc"] { --c: var(--llc); } [data-tone="store"] { --c: var(--store); }
[data-tone="ads"] { --c: var(--ads); } [data-tone="market"] { --c: var(--market); } [data-tone="ink"] { --c: var(--ink); }
.fit-head h3 { font-size: 20px; line-height: 24px; letter-spacing: -0.02em; }
.fit-line { margin-top: 1px; font-size: 15px; line-height: 21px; color: var(--steel); }
.fit-rows { margin-top: 12px; }
.fit-rows li { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; font-size: 16px; line-height: 22px; border-top: 1px solid var(--hairline); }
.fit-rows .sq { width: 9px; height: 9px; border-radius: 3px; background: var(--c, var(--ink)); flex: none; transform: translateY(-1px); }
.fit-rows .detail { margin-left: auto; padding-left: 8px; font-size: 14px; color: var(--steel); text-align: right; }
.fit-note { padding-top: 12px; border-top: 1px solid var(--hairline); }
.fit-note:empty { display: none; }

/* what the call covers */
.call-list { margin-top: 4px; counter-reset: call; }
.call-list li { counter-increment: call; display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; padding: 12px 0; font-size: 16px; line-height: 24px; }
.call-list li + li { border-top: 1px solid var(--hairline); }
.call-list li:last-child { padding-bottom: 2px; }
.call-list li::before { content: counter(call); font-size: 13px; font-weight: 600; line-height: 24px; color: var(--steel); text-align: center; font-variant-numeric: tabular-nums; }

.res-side { min-width: 0; }
.res-side .call-form { border-radius: 20px; padding: 20px; }
.form-title { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.form-sub { margin-top: 8px; margin-bottom: 20px; font-size: 15px; line-height: 21px; color: var(--steel); }
.res-links { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 16px 4px 0; font-size: 15px; color: var(--steel); }
.res-links a { text-underline-offset: 3px; }
.res .foot { padding-top: 56px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

@media (min-width: 1024px) {
  .res-grid { grid-template-columns: minmax(0, 1fr) 448px; column-gap: 64px; padding-top: 40px; align-items: start; }
  .res-head { padding-bottom: 20px; }
  .res-head .lead { font-size: 20px; }
  .card { padding: 20px 24px; }
  .res-side .call-form { padding: 28px; max-width: none; }
  .res-side #lead-form { display: block; }
}
@media (min-width: 1024px) and (min-height: 940px) {
  .res-side { position: sticky; top: 76px; }
}

/* ---------- quiz motion: answers slide, the bar fills ----------
   A new question comes in from the side it was asked for (forward from the right, back from
   the left): the title first, then each answer 30ms after the last. The first screen and the
   result page rise the same way the home page does. */

@media (prefers-reduced-motion: no-preference) {
  .quiz-top, .quiz-bar, .q h1, .opt, .quiz-foot { animation: rise 420ms var(--ease) both; }
  .quiz-bar { animation-delay: 60ms; }
  .q h1 { animation-delay: 120ms; }
  .opt { animation-delay: 180ms; }
  .opt:nth-child(2) { animation-delay: 210ms; }
  .opt:nth-child(3) { animation-delay: 240ms; }
  .opt:nth-child(4) { animation-delay: 270ms; }
  .opt:nth-child(n + 5) { animation-delay: 300ms; }
  .quiz-foot { animation-delay: 320ms; }

  .q.is-fwd h1, .q.is-fwd .opt { animation: slide-fwd 300ms var(--ease) both; }
  .q.is-back h1, .q.is-back .opt { animation: slide-back 300ms var(--ease) both; }
  .q.is-fwd .opt:nth-child(1), .q.is-back .opt:nth-child(1) { animation-delay: 30ms; }
  .q.is-fwd .opt:nth-child(2), .q.is-back .opt:nth-child(2) { animation-delay: 60ms; }
  .q.is-fwd .opt:nth-child(3), .q.is-back .opt:nth-child(3) { animation-delay: 90ms; }
  .q.is-fwd .opt:nth-child(4), .q.is-back .opt:nth-child(4) { animation-delay: 120ms; }
  .q.is-fwd .opt:nth-child(n + 5), .q.is-back .opt:nth-child(n + 5) { animation-delay: 150ms; }

  .res.is-in .res-main > *, .res.is-in .res-side { animation: rise 420ms var(--ease) both; }
  .res.is-in .res-main > :nth-child(2) { animation-delay: 60ms; }
  .res.is-in .res-main > :nth-child(3) { animation-delay: 110ms; }
  .res.is-in .res-main > :nth-child(4) { animation-delay: 160ms; }
  .res.is-in .res-main > :nth-child(5) { animation-delay: 210ms; }
  .res.is-in .res-side { animation-delay: 140ms; }
}
@keyframes slide-fwd { from { opacity: 0; transform: translateX(24px); } }
@keyframes slide-back { from { opacity: 0; transform: translateX(-24px); } }
