/* GoSEQ — landing page. Same design tokens as the app itself.

   Modern CSS used, with what happens without it:
   - :has()          drives the sending overlay. Without it, the button's own small spinner shows instead.
   - text-wrap       balance/pretty on headings. Without it, headings wrap normally.
   - color-mix()     only in the input focus ring. Without it, the border colour change still shows focus.
   - position:sticky on the map screenshot. Without it, the screenshot simply scrolls.
*/
@font-face { font-family: 'Jakarta'; src: url('/fonts/jakarta.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #F6F3EF; --surface: #FFFFFF; --surface-2: #EFEBE6; --text: #1B1614; --muted: #6B625D;
  --line: rgba(27,22,20,.12); --field-line: rgba(27,22,20,.47);
  --accent: #B8341B; --accent-hover: #9C2A14; --accent-soft: #FCE6DE; --on-accent: #FFF;
  --ok: #137347; --ok-soft: #E1F3E9; --bad: #B42318;
  --shadow: 0 1px 2px rgba(27,22,20,.06), 0 18px 48px -12px rgba(27,22,20,.22);
  --font: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131110; --surface: #1D1A19; --surface-2: #272322; --text: #F4EFEC; --muted: #A99F99;
    --line: rgba(244,239,236,.12); --field-line: rgba(244,239,236,.36);
    --accent: #FF8A63; --accent-hover: #FFA283; --accent-soft: #3D2119; --on-accent: #2B0D05;
    --ok: #4CD39A; --ok-soft: #173427; --bad: #FF8A7E;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 24px 60px -16px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131110; --surface: #1D1A19; --surface-2: #272322; --text: #F4EFEC; --muted: #A99F99;
  --line: rgba(244,239,236,.12); --field-line: rgba(244,239,236,.36);
  --accent: #FF8A63; --accent-hover: #FFA283; --accent-soft: #3D2119; --on-accent: #2B0D05;
  --ok: #4CD39A; --ok-soft: #173427; --bad: #FF8A7E;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 24px 60px -16px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; }
.ledger time, .notif-t, .week { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 36px; } }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; font-size: 19px;
  letter-spacing: -.02em; text-decoration: none; }
.brand:hover { color: var(--text); }
.brand svg { width: 34px; height: 34px; border-radius: 9px; display: block; }
.status { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---------- 1. the story stage ---------- */
.kicker { margin: 0 0 14px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
h1 { margin: 0 0 18px; font-size: clamp(38px, min(4.4vw, 9vh), 60px); line-height: 1; letter-spacing: -.035em; font-weight: 700; }
h1 em { font-style: normal; color: var(--accent); }
/* Jakarta sets a heavy full stop well away from the letter before it; in big headings that reads as "leave ." */
.stop { margin-left: -.07em; }
.lede { margin: 0 0 26px; max-width: 30em; font-size: clamp(16.5px, 1.35vw, 18px); line-height: 1.65; color: var(--muted); }
.try-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

.stage { position: relative; }
.stage-grid { display: grid; gap: 40px; padding-top: 24px; padding-bottom: 56px; }
.beat h2 { margin: 0 0 12px; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; }
.beat p { margin: 0; max-width: 28em; font-size: 17.5px; line-height: 1.65; color: var(--muted); }
.beat-n { margin: 0 0 14px !important; font-size: 12.5px !important; font-weight: 700; letter-spacing: .08em; color: var(--accent) !important; font-variant-numeric: tabular-nums; }

/* the scene: the phone, and around it the things you juggle to catch a bus */
.stage-scene { position: relative; display: grid; place-items: center; min-height: 560px; --ph: 520px; }
.phone { position: relative; z-index: 2; width: calc(var(--ph) * .4615); }
.phone img { display: block; width: 100%; height: auto; border-radius: 30px; border: 1px solid var(--line); background: #131110;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.04); }
.phone-pop { position: absolute; left: -6%; right: -6%; top: 9%; padding: 11px 15px 13px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 20px 50px -18px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(-12px) scale(.96); }
.phone-pop p { margin: 0; }
.phone-pop .notif-t { margin-top: 5px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.phone-pop .notif-b { font-size: 13px; color: var(--muted); }
.acc { color: var(--accent); }

.frag { position: absolute; left: 50%; top: 50%; z-index: 1; --k: 0; width: max-content;
  transform: translate(-50%, -50%) translate(calc(var(--x) * var(--sc, 1) * (1 - var(--k))), calc(var(--y) * var(--sc, 1) * (1 - var(--k)))) rotate(calc(var(--r) * (1 - var(--k)))) scale(calc(1 - .75 * var(--k)));
  opacity: calc(1 - var(--k)); }
.fi { padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line);
  box-shadow: 0 18px 44px -18px rgba(0,0,0,.55); font-size: 13.5px; line-height: 1.4; white-space: nowrap; }
.fi p { margin: 0; color: var(--muted); }
.fi .f-h, .fi .f-from { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-weight: 700; color: var(--text); }
.rt { padding: 2px 7px; border-radius: 6px; background: #7A1E4B; color: #fff; font-size: 12px; font-weight: 800; }
.f-times { display: flex; gap: 12px; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text) !important; }
.av { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #3A7D5C; color: #fff; font-size: 11px; font-weight: 800; }
.f-msg .fi { border-radius: 18px 18px 18px 6px; }
.f-note .fi { padding: 16px 18px; border-radius: 4px; background: #E9D58A; color: #3B3217; border: 0; font-weight: 700; font-size: 16px; transform: rotate(-2deg); }
.warn { width: 10px; height: 10px; border-radius: 50%; background: #F0A43A; box-shadow: 0 0 0 4px rgba(240,164,58,.2); }
.f-chip .fi { padding: 9px 14px; border-radius: 99px; font-weight: 600; color: var(--text); }
.f-clock .fi { padding: 10px 16px; font-size: 26px; font-weight: 300; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }

@media (min-width: 900px) {
  .stage-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; min-height: calc(100svh - 76px); padding-top: 0; padding-bottom: 24px; }
  .stage-scene { --ph: clamp(320px, calc(100svh - 280px), 560px); min-height: calc(var(--ph) + 30px); }
}
/* shorter windows: the phone shrinks with the height, so the things around it come in closer too */
@media (min-width: 900px) and (max-height: 760px) { .stage-scene { --sc: .8; } }
@media (min-width: 900px) and (max-height: 620px) {
  .stage-scene { --sc: .6; } .f-clock { display: none; }
  .kicker { margin-bottom: 8px; } h1 { font-size: clamp(36px, 9.5vh, 56px); margin-bottom: 12px; }
  .lede { font-size: 15px; margin-bottom: 16px; } .try-note { display: none !important; }
}
@media (min-width: 900px) and (max-width: 1180px) { .stage-scene { --sc: .64; } .stage-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* narrow screens: the phone, a few of the things around it, smaller */
@media (max-width: 899px) {
  .stage { overflow-x: clip; }
  .stage-scene { --ph: 440px; min-height: 480px; --sc: .5; }
  .f-clock, .f-rain { display: none; }
  .fi { font-size: 12px; }
}
@media (max-width: 420px) { .stage-scene { --ph: 420px; --sc: .44; } .f-walk { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  @keyframes bob { from { translate: 0 -4px; } to { translate: 0 4px; } }
  .fi { animation: bob 5s ease-in-out var(--d, 0s) infinite alternate; }
}

/* ---------- sign-up ---------- */
.signup { position: relative; max-width: 540px; padding: 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.signup h2 { margin: 0 0 2px; font-size: 16px; letter-spacing: -.015em; }
.signup .note { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }
.fields { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .fields { grid-template-columns: 1fr 1.4fr; } }
label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.opt { font-weight: 500; }
input { width: 100%; min-height: 46px; padding: 0 14px; font: 16px var(--font); color: var(--text);
  background: var(--bg); border: 1px solid var(--field-line); border-radius: 10px; }
input:focus-visible { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
input[aria-invalid="true"] { border-color: var(--bad); }
#email { scroll-margin-top: 140px; }
button.go { width: 100%; min-height: 48px; margin-top: 12px; font: 700 16px var(--font); color: var(--on-accent);
  background: var(--accent); border: 0; border-radius: 10px; cursor: pointer; }
button.go:hover { background: var(--accent-hover); }
button.go[disabled] { cursor: progress; }
@media (prefers-reduced-motion: no-preference) {
  button.go { transition: transform .12s ease; }
  button.go:active { transform: scale(.985); }
}
/* the button's own spinner: the fallback for browsers without :has(), which never see the overlay */
.spin { display: inline-block; width: 15px; height: 15px; margin-right: 9px; vertical-align: -2px;
  border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) { .spin { animation: turn .8s linear infinite; } }

/* two lines are always reserved for the message, so an error (or the rate-limit text, whose
   length the server decides) never pushes the page down */
.signup { --msg-h: 21px; }
.msg:focus { outline: none; }
.msg { margin: 8px 0 0; min-height: var(--msg-h); font-size: 14.5px; font-weight: 600; line-height: 21px; }
.msg.ok { color: var(--ok); } .msg.bad { color: var(--bad); }
.fineprint { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* --- sending: a full-card overlay with the spinner, while the request is in flight --- */
.sending { display: none; }
.js .sending { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center;
  gap: 18px; padding: 24px; background: var(--surface); border-radius: inherit; text-align: center;
  opacity: 0; pointer-events: none; }
.js .signup:has(#submit[disabled]:not([hidden])) .sending { opacity: 1; pointer-events: auto; }
.sending-t { font-size: 15px; font-weight: 600; }

/* The spinner: a 3/4 arc whose front runs ahead while its tail catches up. Built from two
   half-circles in clipping boxes so that only transform ever animates. */
.arc { position: relative; display: block; width: 46px; height: 46px; color: var(--accent); }
.arc-layer { position: absolute; inset: 0; }
.arc-clip { position: absolute; top: 0; width: 50%; height: 100%; overflow: hidden; }
.arc-clip.l { left: 0; } .arc-clip.r { right: 0; }
.arc-gap { position: absolute; top: 0; left: 45%; width: 10%; height: 100%; overflow: hidden; }
.arc-c { position: absolute; top: 0; width: 200%; height: 100%; border: 4px solid currentColor;
  border-bottom-color: transparent; border-radius: 50%; }
.arc-gap .arc-c { width: 1000%; left: -450%; }
/* at rest (reduced motion) it holds at its longest: a still 3/4 arc */
.arc-clip.l .arc-c { left: 0; border-right-color: transparent; transform: rotate(-5deg); }
.arc-clip.r .arc-c { left: -100%; border-left-color: transparent; transform: rotate(5deg); }

/* --- success: the message takes over the card; the hidden fields keep their space so nothing below moves --- */
.signup .fields[hidden] { display: grid !important; visibility: hidden; }
.signup .note[hidden] { display: block !important; visibility: hidden; }
.signup #submit[hidden] { display: block !important; visibility: hidden; }
.signup .msg.ok { position: absolute; inset: 0; z-index: 1; margin: 0; padding: 24px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; background: var(--surface); border-radius: inherit;
  font-size: 18px; font-weight: 700; letter-spacing: -.01em; text-align: center; color: var(--text); }
.signup:has(.msg.ok) .fineprint { margin-top: calc(16px + var(--msg-h)); }  /* the space .msg held before it went absolute */
.signup .msg.ok::before { content: ""; width: 14px; height: 26px; margin-bottom: 6px;
  border: solid var(--ok); border-width: 0 4px 4px 0; transform: rotate(45deg); }

/* ---------- screenshots ---------- */
.shot { margin: 0; display: grid; gap: 16px; align-content: start; }
.shot img { display: block; width: 100%; max-width: 330px; height: auto; border-radius: 34px;
  border: 1px solid var(--line); background: #131110; box-shadow: var(--shadow); }
.shot figcaption { max-width: 30ch; font-size: 14px; line-height: 1.5; color: var(--muted); }
.shot figcaption strong { color: var(--text); }
/* in between phone and desktop, the caption sits beside the screenshot rather than under it */
@media (min-width: 560px) and (max-width: 899px) {
  .hero-shot, .map-shot { grid-template-columns: 300px minmax(0, 1fr); column-gap: 36px; align-items: center; }
  .shot figcaption { max-width: 32ch; font-size: 17px; }
}

/* ---------- 2. working backwards ---------- */
.back { border-top: 1px solid var(--line); padding: 64px 0 72px; }
.back-grid { display: grid; gap: 44px; }
@media (min-width: 900px) { .back-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .back-head { position: sticky; top: 40px; } }
.back-head h2, .more-head, .maker-head { margin: 0 0 16px; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; }
.back-head p { margin: 0 0 14px; max-width: 30em; font-size: 16px; color: var(--muted); }
.back-head .aside { font-size: 13.5px; }

.ledger { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.ledger > li { display: grid; gap: 6px 28px; padding: 22px 0; border-top: 1px solid var(--line); align-items: baseline; }
@media (min-width: 560px) { .ledger > li { grid-template-columns: 9.5rem minmax(0, 1fr); } }
.ledger time { font-size: clamp(34px, 4vw, 44px); font-weight: 300; line-height: 1; letter-spacing: -.04em; }
.ledger time small { margin-left: .18em; font-size: .38em; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.ledger p { margin: 0; font-size: 16px; color: var(--muted); }
.ledger p b { color: var(--text); font-weight: 700; }
/* the one row that matters is the only big, heavy, coloured thing in the section */
.ledger > li.lead { grid-template-columns: 1fr; padding: 26px 0 30px; }
.ledger .lead time { font-size: clamp(64px, 9vw, 112px); font-weight: 800; letter-spacing: -.06em; color: var(--accent); }
.ledger .lead time small { color: var(--accent); }
.ledger .lead p { font-size: 17px; }
.count-label { margin-top: 18px !important; font-size: 14px !important; }
.notif { max-width: 360px; margin-top: 12px; padding: 12px 16px 14px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface); box-shadow: var(--shadow); }
.notif p { margin: 0 !important; }
.notif-top { display: flex; align-items: center; gap: 7px; font-size: 12.5px !important; font-weight: 700; color: var(--text) !important; }
.notif-top span:last-child { font-weight: 500; color: var(--muted); }
.notif-ico { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, #FF9152, #F0513E 55%, #B8264A); }
.notif-t { margin-top: 6px !important; font-size: 16px !important; line-height: 1.35 !important; font-weight: 800; letter-spacing: -.01em; color: var(--text) !important; }
.notif-b { font-size: 14px !important; }
/* the minutes: a column of values behind a one-line window, parked on "1 min" when nothing moves */
.tick { display: inline-block; height: 1.35em; overflow: hidden; vertical-align: top; color: var(--accent); }
.tick-in { display: block; transform: translateY(-83.3333%); }
.tick-in span { display: block; height: 1.35em; line-height: 1.35em; }

/* ---------- the school week (in the feature grid) ---------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; max-width: 300px; margin-top: 16px; }
.week span { padding: 7px 0 8px; border-radius: 7px; text-align: center; font-size: 12.5px; font-weight: 700;
  color: var(--muted); background: var(--surface-2); }
.week span.on { color: var(--accent); background: var(--accent-soft); }
.week small { display: block; font-size: 10.5px; font-weight: 700; color: var(--muted); }

/* ---------- 4. maker ---------- */
.maker { padding: 72px 0; border-top: 1px solid var(--line); }
.maker-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .maker-grid { grid-template-columns: 5fr 7fr; gap: 72px; } }
.label { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.maker-head { margin: 0; }
.letter { max-width: 36em; }
.letter p { margin: 0 0 16px; font-size: 17.5px; line-height: 1.65; color: var(--muted); }
.letter .first { font-size: clamp(19px, 2vw, 23px); line-height: 1.4; letter-spacing: -.015em; font-weight: 600; color: var(--text); }
.letter em { font-style: normal; color: var(--text); font-weight: 600; }
.letter .sig { margin: 24px 0 0; color: var(--text); font-weight: 600; }
.letter .sig span { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--muted); }

/* ---------- 5. closing ---------- */
.closing { padding: 64px 0; background: var(--surface); border-top: 1px solid var(--line); }
.closing-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .closing-grid { grid-template-columns: 5fr 6fr; gap: 64px; } }
.closing .closing-acts { margin-top: 20px; }
.closing .signup { background: var(--bg); box-shadow: none; }
.closing .signup h2 { margin: 0 0 2px; font-size: 16px; letter-spacing: -.015em; }
.closing h2 { margin: 0 0 8px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.03em; font-weight: 600; }
.closing p { margin: 0; color: var(--muted); }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }

/* ---------- footer ---------- */
/* The parent company. The wordmark is a mask, so it takes the text colour in light and dark alike. */
.parent { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; padding-bottom: 22px;
  border-bottom: 1px solid var(--line); }
.parent p { margin: 0; color: var(--muted); }
.parent b { color: var(--text); font-weight: 700; }
.ed-mark { flex: none; display: block; width: 64px; height: 18px; background: var(--text);
  -webkit-mask: url('/ed-collective.png') left center / contain no-repeat;
          mask: url('/ed-collective.png') left center / contain no-repeat; }
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 13.5px; color: var(--muted); }
footer p { margin: 0 0 10px; max-width: 62em; }
.links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 14px; font-weight: 700; }
.links a { color: var(--text); text-decoration: none; }
.links a:hover { color: var(--accent); }
.links a, footer p a { display: inline-block; padding: 5px 0; }

/* =======================================================================
   MOTION — eight things move, and each one explains something.
   All of it sits inside prefers-reduced-motion: no-preference; with reduced
   motion the page is completely still and every element is in its final
   state. Only transform and opacity animate. Nothing loops except the
   spinner, which only exists while a request is in flight.
   ======================================================================= */
@keyframes turn { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: no-preference) {
  @keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

  /* 1. the real screenshot arrives once, just after the headline, so the page reads idea → proof */
  .js .hero-shot img { animation: up .9s var(--ease) .15s both; }
  .js .hero-shot figcaption { animation: up .7s var(--ease) .45s both; }

  /* 2. blocks rise gently into view as you scroll — one rule for the whole page */
  .js .reveal { opacity: .001; transform: translateY(10px); transition: opacity .45s ease, transform .5s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }

  /* 3. the example trip is worked out the way the app works it out: from 8:30 back to 7:42 */
  .js .ledger > li { opacity: 0; }
  .js .ledger.in > li { animation: up .55s var(--ease) both; }
  .js .ledger.in > li:nth-child(4) { animation-delay: .05s; }
  .js .ledger.in > li:nth-child(3) { animation-delay: .35s; }
  .js .ledger.in > li:nth-child(2) { animation-delay: .65s; }
  .js .ledger.in > li.lead { animation: land .8s var(--ease) 1s both; }
  @keyframes land { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

  /* 4. then the lock-screen notification counts down 15 → 1 min, once, and stops */
  .js .ledger.in .tick-in { animation: tick 3s steps(5, end) 2s both; }
  @keyframes tick { from { transform: translateY(0); } to { transform: translateY(-83.3333%); } }

  /* 5. the sending overlay fades in over the form, and back out when the answer comes */
  .js .sending { transition: opacity .3s ease; }

  /* 6. the spinner, only while it's visible. The whole thing turns; the layer steps round by 135°;
        the two halves open and close, so the arc's head races ahead and its tail reels in. */
  .js .signup:has(#submit[disabled]:not([hidden])) .arc { animation: turn 1568ms linear infinite; }
  .js .signup:has(#submit[disabled]:not([hidden])) .arc-layer { animation: arc-step 5332ms cubic-bezier(.4,0,.2,1) infinite both; }
  .js .signup:has(#submit[disabled]:not([hidden])) .arc-clip.l .arc-c { animation: arc-l 1333ms cubic-bezier(.4,0,.2,1) infinite both; }
  .js .signup:has(#submit[disabled]:not([hidden])) .arc-clip.r .arc-c { animation: arc-r 1333ms cubic-bezier(.4,0,.2,1) infinite both; }
  @keyframes arc-step {
    12.5% { transform: rotate(135deg); } 25% { transform: rotate(270deg); } 37.5% { transform: rotate(405deg); }
    50% { transform: rotate(540deg); } 62.5% { transform: rotate(675deg); } 75% { transform: rotate(810deg); }
    87.5% { transform: rotate(945deg); } to { transform: rotate(1080deg); }
  }
  @keyframes arc-l { from { transform: rotate(118deg); } 50% { transform: rotate(-5deg); } to { transform: rotate(118deg); } }
  @keyframes arc-r { from { transform: rotate(-118deg); } 50% { transform: rotate(5deg); } to { transform: rotate(-118deg); } }
  .js .signup:has(#submit[disabled]:not([hidden])) .sending-t { animation: up .5s var(--ease) .1s both; }

  /* 7. the success message settles in, and the tick draws on */
  .signup .msg.ok { animation: fadein .35s ease both; }
  .signup .msg.ok::before { animation: check .5s cubic-bezier(.3,1.5,.5,1) .15s both; }
  @keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
  @keyframes check { from { opacity: 0; transform: rotate(45deg) scale(.3); } to { opacity: 1; transform: rotate(45deg) scale(1); } }

  /* 8. the button gives under your thumb (declared with the button, above) */
}

/* ---------- Android beta: the hero's first button, and the three steps (the same as /android) ---------- */
.try { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 20px; }
.try p { margin: 0; max-width: 290px; font-size: 13.5px; color: var(--muted); }
.try p b { color: var(--text); font-weight: 700; }
.btn.play { gap: 10px; }
.btn.play svg { width: 20px; height: 20px; flex: none; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--field-line); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.closing-acts { display: flex; flex-wrap: wrap; gap: 12px; }

.android { padding: 64px 0 68px; border-top: 1px solid var(--line); background: var(--surface-2); scroll-margin-top: 12px; }
.android-head { max-width: 640px; }
.android-head h2 { margin: 0 0 14px; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; }
.android-head p { margin: 0; color: var(--muted); font-size: 17.5px; line-height: 1.65; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.steps li { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.steps .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--accent); color: var(--on-accent); font-weight: 800; }
.steps h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.02em; }
.steps p { margin: 0 0 20px; color: var(--muted); font-size: 15px; flex: 1; }
.step-go { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; text-decoration: none; }
.step-go::after { content: "→"; margin-left: 8px; transition: transform .2s var(--ease); }
.step-go:hover { color: var(--accent-hover); }
.step-go:hover::after { transform: translateX(3px); }
.android-fine { max-width: 760px; margin: 28px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- which phone: Android leads everywhere except on an iPhone (html.is-ios, set in <head>) ---------- */
.only-ios, .try-ios, .dock-ios { display: none; }
.is-ios .only-ios { display: inline; } .is-ios .try-ios { display: block; }
.is-ios .not-ios, .is-ios .try-android { display: none; }
.is-ios .try .btn.play { order: 2; background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--field-line); }
.is-ios .try .btn.ghost { order: 1; background: var(--accent); color: var(--on-accent); box-shadow: none; }
.is-ios .dock-android { display: none; } .is-ios .dock-ios { display: flex; }

/* ---------- live count (header pill and the trust row) ---------- */
.status { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 8px; }
.status-live { display: inline-flex; align-items: center; gap: 7px; margin-right: 10px; padding: 4px 11px 4px 9px; border-radius: 99px;
  background: var(--ok-soft); color: var(--ok); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .status-live { display: none !important; } }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }

/* ---------- section headings: one calm size and weight everywhere ---------- */
.tour h2, .price-head h2, .faq-head, .notes-head h2, .why-copy h2 { margin: 0 0 14px; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; }
.price-head p, .notes-head p, .why-copy p { margin: 0 0 14px; max-width: 30em; font-size: 17.5px; line-height: 1.65; color: var(--muted); }

/* ---------- the film (in a dialog) ---------- */
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #131110; box-shadow: var(--shadow); border: 1px solid var(--line); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-go { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; }
.player-go img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player-btn { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(19,17,16,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.35); }
.player-btn svg { width: 34px; height: 34px; margin-left: 4px; }
.player-note { position: absolute; right: 14px; bottom: 12px; font-size: 12px; font-weight: 600; opacity: .8; }
.player-go:hover .player-btn, .player-go:focus-visible .player-btn { background: var(--accent); color: var(--on-accent); }

/* ---------- the tour ---------- */
.tour { border-top: 1px solid var(--line); padding: 64px 0 56px; overflow: hidden; }
.tour-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.tour-nav { display: none; gap: 10px; }
@media (hover: hover) and (min-width: 700px) { .tour-nav { display: flex; } }
.tour-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--field-line); background: var(--surface);
  color: var(--text); font: 700 18px var(--font); cursor: pointer; }
.tour-nav button:hover { border-color: var(--accent); color: var(--accent); }
.tour-strip { list-style: none; margin: 24px 0 0; padding: 8px max(20px, calc((100vw - 1120px) / 2 + 36px)) 28px;
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(20px, calc((100vw - 1120px) / 2 + 36px));
  scrollbar-width: none; overscroll-behavior-x: contain; }
.tour-strip::-webkit-scrollbar { display: none; }
.tour-strip:focus-visible { outline-offset: -3px; }
.tour-strip li { flex: none; width: min(70vw, 300px); scroll-snap-align: start; }
.tour-strip img { display: block; width: 100%; height: auto; border-radius: 26px; border: 1px solid var(--line); background: #131110; box-shadow: var(--shadow); }

/* ---------- what it costs ---------- */
.price { border-top: 1px solid var(--line); padding: 64px 0 72px; background: var(--surface-2); }
.plans { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 800px) { .plans { grid-template-columns: 1fr 1fr; gap: 20px; } }
.plan { padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.plan.pro { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--muted); }
.plan .cost { margin: 6px 0 18px; font-size: 16px; color: var(--muted); }
.plan .cost b { font-size: 44px; font-weight: 800; letter-spacing: -.04em; color: var(--text); margin-right: 4px; }
.plan .cost span { display: block; font-size: 14px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 28px; font-size: 15.5px; }
.plan li::before { content: ""; position: absolute; left: 3px; top: .38em; width: 6px; height: 11px; border: solid var(--ok); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.plan.pro li::before { border-color: var(--accent); }
.plan-note { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---------- questions ---------- */
.faq { border-top: 1px solid var(--line); padding: 64px 0 72px; }
.faq-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 4fr 8fr; gap: 64px; } }
.qs details { border-top: 1px solid var(--line); }
.qs details:last-child { border-bottom: 1px solid var(--line); }
.qs summary { position: relative; list-style: none; padding: 20px 44px 20px 0; font-size: 17.5px; font-weight: 600; letter-spacing: -.015em; cursor: pointer; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .25s var(--ease); }
.qs details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.qs summary:hover { color: var(--accent); }
.qs details p { margin: 0 0 22px; max-width: 42em; font-size: 17px; line-height: 1.65; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .qs details[open] p { animation: up .35s var(--ease) both; } }

/* ---------- the phone dock ---------- */
.dock { position: fixed; left: 12px; right: 84px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: none; }
@media (max-width: 699px) { .dock { display: block; transform: translateY(140%); transition: transform .35s var(--ease); } .dock.on { transform: none; } }
.dock .btn { width: 100%; justify-content: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.45); }
/* the help button keeps the bottom-right corner; the dock sits beside it */

/* ---------- elsewhere ---------- */
.social { list-style: none; margin: 4px 0 18px; padding: 0; display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.social a:hover { color: var(--accent); border-color: var(--accent); }
.social svg { width: 20px; height: 20px; }

/* ---------- scroll-driven motion where the browser can: tied to the scroll, so nothing is ever caught half-faded ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none;
      animation: up linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    /* the example trip builds itself backwards as you scroll down it: 8:30 first, 7:42 last and biggest */
    .js .ledger > li, .js .ledger.in > li { opacity: 1; animation: up linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; animation-delay: 0s; }
    .js .ledger > li.lead, .js .ledger.in > li.lead { animation: land linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .tour-strip li { animation: tilt linear both; animation-timeline: view(inline); animation-range: entry 0% entry 100%; }
    @keyframes tilt { from { opacity: .4; transform: scale(.94); } to { opacity: 1; transform: none; } }
  }
}

/* =======================================================================
   Round three (the research pass): calmer, shorter, easier to act on.
   ======================================================================= */

/* ---------- the hero's asks: Google's own badge, a QR for computers, and what's true about GoSEQ ---------- */
.play-badge { display: inline-block; line-height: 0; border-radius: 10px; }
.play-badge img { height: 50px; width: auto; }
.play-badge:hover img { filter: brightness(1.12); }
.is-ios .try .play-badge { order: 2; opacity: .85; }
.is-ios .try .play-badge img { height: 44px; }
.qr-row { display: none; align-items: center; gap: 14px; margin: 18px 0 0; max-width: 400px; }
.qr-row img { width: 76px; height: 76px; flex: none; padding: 5px; border-radius: 10px; background: #fff; }
.qr-row p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.qr-row b { color: var(--text); font-weight: 600; }
/* only on a computer: a mouse, a wide window, and not a phone or tablet the page recognised */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) { html:not(.is-android):not(.is-ios) .qr-row { display: flex; } html:not(.is-android):not(.is-ios) .try-android { display: none; } }
.trust { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 20px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust li + li::before { content: ""; width: 3px; height: 3px; margin: 0 11px; border-radius: 50%; background: var(--muted); opacity: .6; }
.trust-live { color: var(--ok); font-variant-numeric: tabular-nums; }
.trust-live b { font-weight: 700; }
.trust-live[hidden] + li::before { display: none; }

/* ---------- it starts at the end: one morning in notifications ---------- */
.notes { border-top: 1px solid var(--line); padding: 72px 0; }
.notes-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .notes-grid { grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; } .notes-head { position: sticky; top: 48px; } }
.notes-head .aside { font-size: 13.5px; }
.stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 460px; }
.stack li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; }
.stack time { font-size: 15px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.n-card { padding: 12px 16px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.n-card p { margin: 0; }
.n-card .notif-t { font-size: 16px; }
.stack .them .n-card { background: color-mix(in srgb, var(--ok) 10%, var(--surface)); }

/* ---------- why the time holds ---------- */
.why { border-top: 1px solid var(--line); padding: 72px 0; }
.why-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .why-grid { grid-template-columns: 6fr 5fr; gap: 72px; } }
.rel { margin: 0; }
.rel-card { max-width: 400px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.rel-card p { margin: 0; }
.rel-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; }
.rel-top span:last-child { font-weight: 500; color: var(--muted); }
.rel-big { margin: 16px 0 12px !important; font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.rel-big b { font-weight: 700; color: var(--accent); }
.rel-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.rel-bar span { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--ok); }
.rel-sub { margin-top: 12px !important; font-size: 14px; color: var(--muted); }
.rel-sub b { color: var(--text); font-weight: 600; }
.rel figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- the tour: the film is the first tile, and the rest of the app as one-liners ---------- */
.film-tile .film-go { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 1px solid var(--line); border-radius: 26px;
  overflow: hidden; background: #131110; box-shadow: var(--shadow); cursor: pointer; color: #fff; font: inherit; text-align: left; }
.film-go img, .film-go video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.film-go video { object-position: center; }
.film-go::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.7)); }
.film-cap { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; font-size: 13px; opacity: .9; }
.film-cap b { display: block; font-size: 18px; font-weight: 700; opacity: 1; }
.film-go:hover .player-btn, .film-go:focus-visible .player-btn { background: var(--accent); color: var(--on-accent); }
.film-dlg { width: min(960px, 94vw); padding: 0; border: 0; border-radius: 20px; background: #000; overflow: visible; }
.film-dlg::backdrop { background: rgba(10,8,7,.82); backdrop-filter: blur(6px); }
.film-dlg .player { border-radius: 20px; }
.film-x { position: absolute; right: -8px; top: -52px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14);
  color: #fff; font: 400 26px/1 var(--font); cursor: pointer; }
.film-x:hover { background: var(--accent); color: var(--on-accent); }
.also-h { margin: 8px 0 14px; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.also { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 40px; }
@media (min-width: 700px) { .also { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .also { grid-template-columns: 1fr 1fr 1fr; } }
.also li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.also b { color: var(--text); font-weight: 600; }

/* ---------- one light section, for rhythm: what it costs ---------- */
.price { --bg: #F6F3EF; --surface: #FFFFFF; --surface-2: #EFEBE6; --text: #1B1614; --muted: #6B625D; --line: rgba(27,22,20,.12);
  --accent: #B8341B; --accent-soft: #FCE6DE; --on-accent: #FFF; --ok: #137347; --shadow: 0 1px 2px rgba(27,22,20,.06), 0 18px 48px -12px rgba(27,22,20,.18);
  background: var(--bg); color: var(--text); color-scheme: light; }

/* ---------- the founder, reachable ---------- */
.letter .sig { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin: 24px 0 0; }
.letter .sig p { margin: 0; color: var(--text); font-weight: 600; font-size: 16px; }
.letter .sig p span { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.founder-av { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #FF9152, #F0513E 55%, #B8264A); color: #fff; font-weight: 700; font-size: 16px; }
.msg-isaac { min-height: 42px; padding: 0 16px; font: 600 14.5px var(--font); cursor: pointer; }

/* ---------- the email: one field and the button, side by side where there's room ---------- */
.fields.one { grid-template-columns: 1fr !important; }

/* ---------- help: out of the hero's way; on phones, in the dock beside the ask ---------- */
@media (prefers-reduced-motion: no-preference) { .gsw-launch, .gsw-tease { transition: opacity .3s ease, transform .3s var(--ease); } }
html:not(.past-hero) .gsw-tease { opacity: 0; transform: scale(.85); pointer-events: none; }
@media (max-width: 699px) {
  .dock { display: flex; gap: 10px; right: 12px; }
  .dock .btn { flex: 1; }
  html.dock-on .gsw-tease { opacity: 0; pointer-events: none; }
}
.dock-help { flex: none; width: 52px; min-height: 48px; border: 0; border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: 0 10px 30px -8px rgba(0,0,0,.45), inset 0 0 0 1px var(--line); cursor: pointer; }
.dock-help svg { width: 22px; height: 22px; }

/* ---------- room to breathe on a wide screen ---------- */
@media (min-width: 900px) {
  .android, .notes, .why, .price, .faq, .maker { padding-top: 112px; padding-bottom: 112px; }
  .tour { padding-top: 112px; padding-bottom: 96px; }
}
.letter .sig .founder-av { display: grid; margin: 0; font-size: 16px; font-weight: 700; color: #fff; }
.pro-tag { margin-left: auto; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent) !important; font-size: 10.5px; font-weight: 700 !important; letter-spacing: .04em; }


/* =======================================================================
   The page plays itself. Everything below moves on its own (and only while
   it's on screen); with reduced motion it all sits still in its final state.
   ======================================================================= */

/* ---------- the hero story: scattered → folded into the phone → one time to leave, on a loop ---------- */
.stage-right { display: grid; justify-items: center; gap: 6px; min-width: 0; }
.frag { transition: transform 1.1s cubic-bezier(.65,0,.35,1), opacity .9s ease; }
.frag:nth-of-type(2) { transition-delay: .05s; } .frag:nth-of-type(3) { transition-delay: .1s; } .frag:nth-of-type(4) { transition-delay: .15s; }
.frag:nth-of-type(5) { transition-delay: .2s; } .frag:nth-of-type(6) { transition-delay: .25s; } .frag:nth-of-type(7) { transition-delay: .3s; }
.stage-scene.folded .frag { --k: 1; }
.phone img { transition: transform 1.2s cubic-bezier(.65,0,.35,1), box-shadow 1.2s ease; }
.stage-scene.folded .phone img { transform: scale(1.03); box-shadow: 0 50px 110px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.05), 0 0 80px -10px color-mix(in srgb, var(--accent) 35%, transparent); }
.phone-pop { transition: opacity .5s ease, transform .6s cubic-bezier(.2,1.4,.4,1); }
.stage-scene.popped .phone-pop { opacity: 1; transform: none; }

.story { position: relative; width: min(440px, 100%); padding: 12px 52px 0 0; }
.story-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.story-bars span { position: relative; height: 3px; border-radius: 99px; background: var(--line); overflow: hidden; }
.story-bars span::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.story[data-beat="2"] .story-bars span:nth-child(1)::after, .story[data-beat="3"] .story-bars span:nth-child(-n+2)::after { transform: none; }
.story[data-beat="1"] .story-bars span:nth-child(1)::after { animation: bar 5s linear forwards; }
.story[data-beat="2"] .story-bars span:nth-child(2)::after { animation: bar 4.5s linear forwards; }
.story[data-beat="3"] .story-bars span:nth-child(3)::after { animation: bar 5.5s linear forwards; }
@keyframes bar { from { transform: scaleX(0); } to { transform: none; } }
.story.paused .story-bars span::after { animation-play-state: paused; }
.story-caps { display: grid; min-height: 4.8em; }
.cap { grid-area: 1 / 1; margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .5s var(--ease); }
.cap b { display: block; color: var(--text); font-weight: 600; font-size: 16.5px; letter-spacing: -.01em; }
.story[data-beat="1"] .cap-1, .story[data-beat="2"] .cap-2, .story[data-beat="3"] .cap-3 { opacity: 1; transform: none; transition-delay: .15s; }
.story-pause { position: absolute; right: 0; top: 4px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); display: grid; place-items: center; cursor: pointer; }
.story-pause:hover { border-color: var(--accent); color: var(--accent); }
.story-pause svg { width: 16px; height: 16px; }
.story-pause .i-play, .story.paused .story-pause .i-pause { display: none; }
.story.paused .story-pause .i-play { display: block; }
/* still: every caption at once, no bars, no button */
.story.still { padding-right: 0; }
.story.still .story-bars, .story.still .story-pause { display: none; }
.story.still .story-caps { gap: 12px; }
.story.still .cap { grid-area: auto; opacity: 1; transform: none; }

/* ---------- the headline arrives word by word, then the rest ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(.35em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
  .js h1 .w { display: inline-block; animation: rise .8s var(--ease) both; }
  .js h1 .w:nth-child(2) { animation-delay: .08s; } .js h1 .w:nth-child(3) { animation-delay: .16s; } .js h1 .w:nth-child(4) { animation-delay: .3s; } .js h1 .w:nth-child(5) { animation-delay: .45s; }
  .js .beat-0 > :not(h1) { animation: up .7s var(--ease) both; }
  .js .beat-0 > .kicker { animation-delay: 0s; } .js .beat-0 > .lede { animation-delay: .5s; } .js .beat-0 > .try { animation-delay: .65s; }
  .js .beat-0 > .qr-row, .js .beat-0 > .try-note { animation-delay: .8s; } .js .beat-0 > .trust { animation-delay: .95s; }
  .js .stage-right { animation: up 1s var(--ease) .3s both; }
  /* "leave" gets its underline drawn in */
  h1 em { background: linear-gradient(currentColor, currentColor) left 96% / 0 .06em no-repeat; animation: rise .8s var(--ease) .3s both, draw .7s var(--ease) 1.1s forwards; }
  @keyframes draw { to { background-size: 100% .06em; } }
}

/* ---------- one morning, arriving by itself ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .stack.auto li { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s ease, transform .6s cubic-bezier(.2,1.3,.4,1); }
  .js .stack.auto li.on { opacity: 1; transform: none; }
  .js .stack.auto li.now .n-card { box-shadow: var(--shadow), 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
  .n-card { transition: box-shadow .4s ease; }
}

/* ---------- the reliability card fills itself in ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rel .rel-bar span { width: 0; transition: width 1.4s cubic-bezier(.3,.8,.3,1) .3s; }
  .js .rel.in .rel-bar span { width: var(--w); }
}

/* ---------- the Android steps light up in turn ---------- */
.steps li { transition: border-color .4s ease, box-shadow .4s ease, transform .4s var(--ease); }
.steps li.lit { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
@media (prefers-reduced-motion: no-preference) { .steps li.lit { transform: translateY(-4px); } }

/* ---------- the header's live dot breathes ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }
  .status-live .dot, .trust-live .dot { animation: breathe 2.4s ease-in-out infinite; }
}

/* =======================================================================
   Phones: one clear ask at the top, nothing covering the page, less scrolling.
   ======================================================================= */
.short { display: none; }
@media (max-width: 699px) {
  .long { display: none; } .short { display: inline; }
  /* header: the logo and one small button */
  .top { padding-top: 12px; padding-bottom: 12px; }
  .status-ios { display: none; }
  .status-cta { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 99px; background: var(--accent); color: var(--on-accent);
    font-size: 13.5px; font-weight: 700; text-decoration: none; }
  .status-cta:hover { color: var(--on-accent); }
  /* the top: shorter, and the two asks side by side at the same height */
  .stage-grid { gap: 20px; padding-top: 8px; padding-bottom: 40px; }
  .kicker { margin-bottom: 10px; font-size: 13px; }
  h1 { font-size: clamp(40px, 12vw, 52px); margin-bottom: 14px; }
  .lede { font-size: 16px; line-height: 1.6; margin-bottom: 20px; }
  .try { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 0; }
  .try .play-badge { display: flex; }
  .try .play-badge img { width: 100%; height: auto; max-height: 52px; object-fit: contain; }
  .try .btn.ghost { justify-content: center; min-height: 50px; padding: 0 8px; font-size: 14.5px; text-align: center; line-height: 1.2; }
  .try .play-badge { align-items: center; }
  .is-ios .try .play-badge { order: 2; }
  .try-note { display: none !important; }
  /* the trust row as small chips, no stray dots when it wraps */
  .trust { gap: 6px; margin-top: 16px; font-size: 12.5px; }
  .trust li + li::before { display: none; }
  .trust li { padding: 5px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
  .trust-live { background: var(--ok-soft) !important; border-color: transparent !important; }
  /* the phone and its story, a little smaller */
  .stage-scene { --ph: 400px; min-height: 430px; }
  /* fewer, tidier cards around the phone: each on one line, none running off the screen */
  .frag { width: max-content; }
  .f-tt, .f-walk, .f-clock, .f-rain { display: none; }
  .frag { z-index: 3; }
  .stage-scene { --sc: .56; }
  .story { padding-top: 6px; }
  .cap { font-size: 14.5px; } .cap b { font-size: 16px; }
  /* sections: less air between them on a small screen */
  .android, .notes, .why, .tour, .price, .faq, .maker, .closing { padding-top: 56px; padding-bottom: 56px; }
  .android-head h2, .tour h2, .price-head h2, .faq-head, .notes-head h2, .why-copy h2, .maker-head { font-size: 28px; }
  .android-head p, .price-head p, .notes-head p, .why-copy p, .letter p { font-size: 16px; }
  .steps { margin-top: 20px; gap: 12px; }
  .steps li { padding: 18px; }
  .android-fine { font-size: 13.5px; }
  .notes-grid, .why-grid { gap: 24px; }
  .stack li { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .stack time { font-size: 13px; }
  .n-card { padding: 11px 14px 12px; border-radius: 18px; }
  .plan { padding: 22px; }
  .plan .cost b { font-size: 38px; }
  .qs summary { font-size: 16.5px; padding: 17px 40px 17px 0; }
  /* the help teaser never covers the page on a phone; the dock's help button and the chat button are enough */
  .gsw-tease { display: none !important; }
  /* the dock and the chat button never sit on the footer's last lines */
  footer { padding-bottom: 120px; }
}
@media (max-width: 360px) { .try { grid-template-columns: 1fr; } .try .play-badge img { max-height: 48px; width: auto; } }
@media (max-width: 420px) { .stage-scene { --sc: .46; } }
@media (max-width: 360px) { .try .play-badge { justify-content: center; } }


/* A clear next step directly after the product tour. */
.tour-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:28px 0 8px;padding:24px 26px;border:1px solid color-mix(in srgb,var(--accent) 24%,var(--line));border-radius:20px;background:linear-gradient(110deg,var(--surface),var(--accent-soft))}.tour-cta h3{margin:0 0 5px;font-size:20px}.tour-cta p{margin:0;color:var(--muted);font-size:14px}.tour-cta-actions{display:flex;flex-wrap:wrap;gap:10px}.tour-cta-actions .btn{min-height:46px;white-space:nowrap}
@media(max-width:699px){.tour-cta{align-items:stretch;flex-direction:column;gap:16px;padding:20px}.tour-cta-actions{display:grid;grid-template-columns:1fr 1fr}.tour-cta-actions .btn{white-space:normal;text-align:center;padding:8px}}

/* The full tour player stays within the viewport, including on small phones. */
.film-dlg { max-height: calc(100dvh - 32px); }
.film-dlg .player video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
@media (max-width: 699px) {
  .film-dlg { width: min(960px, 94vw); }
  .film-dlg .player { border-radius: 14px; }
  .film-x { z-index: 2; top: max(8px, env(safe-area-inset-top)); right: 8px; background: rgba(0,0,0,.72); }
}
