/* getcoact.com — the homepage.
   The look is the app's sign-in screen: near-black, ember light drifting slowly
   under a still film grain, the ring + COACT in Bebas, white pill buttons.
   Colours are the app's own (mobile/src/components/EmberBackdrop.js). */

:root {
  --page: #050302;
  --ember: #ff6a12;
  --text: #fff;
  --dim: rgba(255, 255, 255, .68);
  --mut: rgba(255, 255, 255, .5);
  --line: rgba(255, 255, 255, .14);
  --smoke: rgba(8, 4, 2, .55);          /* fields sit on the light, so they're smoked like the app's card */
  --edge: rgba(255, 255, 255, .17);
  --bad: #ffab91;
  --display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sine: cubic-bezier(.37, 0, .63, 1);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--page);
  font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: rgba(255, 106, 18, .45); }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── The ember light ─────────────────────────────────────────────────────────
   It scrolls with the page, like part of it, so nothing on it ever lags or
   jumps. The hero keeps the app's painted core (top-right) exactly; below it,
   the hero's two shapes — the CORE and the POOL — sit up and down the sides,
   alternating, so the gradient keeps changing as you scroll. Each is its own
   sprite that fades to nothing on every side, so none can show an edge.
   (Tried and dropped: moving/stretching painted layers showed their canvas
   edges as lines; CSS radial lights read as ovals; crossfading whole scenes
   felt jumpy.) */
body { position: relative; }
.ember {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden; background: var(--page);
}
/* The hero's frame: one screen tall at the top of the page. */
.hero-light { position: absolute; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; container-type: size; }
.glow {
  position: absolute; left: 50%; top: 50%;
  background: center / 100% 100% no-repeat;
  will-change: transform, opacity;
  animation: drift var(--period) var(--sine) infinite;
}

/* WIDE — painted 960x600 (16:10) inside a 1260x900 canvas. */
.glow {
  --fw: max(100cqw, 160cqh);
  width: calc(var(--fw) * 1.3125); height: calc(var(--fw) * .9375);
  margin: calc(var(--fw) * -.46875) 0 0 calc(var(--fw) * -.65625);
}
.glow-top { background-image: url(/images/ember-top-wide.webp); --period: 9s; --dx: 5cqw; --dy: 5cqh; --s: .2; }

/* The side lights (placed and sized by js/home.js, in px). The outer box takes
   the side (mirror), a small turn and a size; the inner one drifts. */
.light { position: absolute; pointer-events: none; transform-origin: 50% 50%; }
.light > i {
  position: absolute; inset: 0; background: center / 100% 100% no-repeat;
  will-change: transform, opacity;
  animation: drift var(--period, 11s) var(--sine) infinite; animation-delay: var(--delay, 0s);
  --dx: 2.5vw; --dy: 3vh; --s: .14;
}
.light.core > i { background-image: url(/images/ember-core-wide.webp); }
.light.pool > i { background-image: url(/images/ember-pool-wide.webp); }

/* TALL — the app's own phone frame: 440x956 inside 680x1196, and the app's own
   drift (70/50pt on a 440x956 screen). */
@media (max-aspect-ratio: 4/5) {
  .glow {
    --fw: max(100cqw, 46.025cqh);
    width: calc(var(--fw) * 1.54545); height: calc(var(--fw) * 2.71818);
    margin: calc(var(--fw) * -1.35909) 0 0 calc(var(--fw) * -.772727);
  }
  .glow-top { background-image: url(/images/ember-top-tall.webp); --dx: 15.9cqw; --dy: 5.2cqh; }
  .light > i { --dx: 6vw; --dy: 2.5vh; }
  .light.core > i { background-image: url(/images/ember-core-tall.webp); }
  .light.pool > i { background-image: url(/images/ember-pool-tall.webp); }
}

/* The app's loop: 0 → +1 → −1 → 0, eased per leg. Twice the app's pace on the web. */
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(calc(1 + var(--s) / 2)); opacity: .8; }
  25%      { transform: translate(var(--dx), var(--dy)) scale(calc(1 + var(--s))); opacity: 1; }
  75%      { transform: translate(calc(var(--dx) * -1), calc(var(--dy) * -1)) scale(1); opacity: .6; }
}
/* Grain at 70% of the app's tile, a still film over the screen (not the page). */
.film {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url(/images/grain.png) 0 0 / 128px 128px repeat; opacity: .7;
}

main, .foot, .top { position: relative; z-index: 1; }

/* ── Top links ───────────────────────────────────────────────────────────── */
.top {
  position: absolute; top: 0; right: 0; display: flex; gap: 22px;
  padding: calc(18px + env(safe-area-inset-top)) 24px 0 0; font-size: 13.5px;
}
.top a { color: var(--mut); text-decoration: none; transition: color .2s; }
.top a:hover { color: var(--text); }

/* ── Hero: the sign-in screen, with the app beside it ────────────────────── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 92px 24px 72px;
}
.anchor { position: absolute; top: 0; }
.hero-grid {
  width: min(100%, var(--wrap)); display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 7vw, 120px);
}
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.logo { width: clamp(78px, 8vw, 104px); aspect-ratio: 96 / 93.8; height: auto; color: var(--text); margin-bottom: 16px; }
.word {
  font: 400 clamp(54px, 6.4vw, 84px)/.9 var(--display); letter-spacing: .115em;
  margin: 0 0 10px; padding-left: .115em;   /* letter-spacing trails the last letter; this re-centres it */
}
.tag { margin: 0; font-size: 14.5px; letter-spacing: .02em; color: var(--dim); }
/* The coaction effect, as a dictionary line under the tagline. */
.coaction { margin: 22px 0 0; max-width: 420px; font-size: 14px; line-height: 1.5; color: var(--mut); text-wrap: balance; }
.coaction .term { color: var(--text); font-weight: 600; letter-spacing: .04em; }
.coaction i { margin-left: 4px; }
.coaction .def { display: block; margin-top: 4px; font-size: 15.5px; color: var(--dim); }

.hero-phone {
  margin: 0; perspective: 1500px; perspective-origin: 30% 40%;
  /* As big as the window allows: the phone (≈2.2× its width) must fit the hero height. */
  --pw: clamp(230px, min(24vw, calc((100svh - 190px) / 2.2)), 330px);
}
/* Leaning back and turned away, so its right and bottom edges show. --mx/--my
   come from the pointer (desktop only) and nudge it a few degrees; .float bobs. */
.float { transform-style: preserve-3d; animation: bob 7s var(--sine) infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotateZ(0) rotateY(0); }
  50%      { transform: translateY(calc(var(--pw) * -.05)) rotateZ(-1.2deg) rotateY(4deg); }
}
.iphone-hero {
  transform: rotateX(calc(14deg - var(--my, 0) * 7deg)) rotateY(calc(-28deg + var(--mx, 0) * 9deg)) rotateZ(7deg);
  transition: transform .9s var(--ease);
}

/* ── The claim form ──────────────────────────────────────────────────────── */
.claim { width: min(100%, 420px); margin-top: clamp(34px, 6.5vh, 60px); }
.field {
  background: var(--smoke); border: 1px solid var(--edge); border-radius: 14px;
  min-height: 54px; transition: border-color .2s, box-shadow .2s;
}
.field:focus-within, input.field:focus { border-color: rgba(255, 255, 255, .5); box-shadow: 0 0 0 3px rgba(255, 106, 18, .22); outline: none; }
.field input { background: none; border: 0; outline: 0; min-width: 0; font-size: 16px; }
input.field { font-size: 16px; min-width: 0; }
input::placeholder { color: rgba(255, 255, 255, .38); }

.name-field, .code-field { display: flex; align-items: center; padding: 5px 5px 5px 16px; }
.at { color: var(--mut); font-size: 19px; margin-right: 1px; }
.name-field input { flex: 1; height: 44px; font-size: 19px; font-weight: 500; }

.btn {
  font: 400 20px/1 var(--display); letter-spacing: .15em; padding: 0 18px 0 calc(18px + .15em);
  background: #fff; color: #000; border: 0; border-radius: 10px; height: 44px; cursor: pointer;
  transition: background .15s, transform .15s, opacity .2s; text-transform: uppercase; white-space: nowrap;
}
.btn:hover { background: #f1ebe4; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn-wide { width: 100%; height: 52px; border-radius: 12px; font-size: 22px; margin-top: 4px; }

.status { margin: 12px 0 0; min-height: 1.5em; font-size: 13.5px; color: var(--dim); transition: color .2s; }
.status[data-state="ok"]   { color: var(--text); }
.status[data-state="ok"]::before {
  content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 0 8px 1px 0;
  background: var(--ember); box-shadow: 0 0 10px var(--ember);
}
.status[data-state="bad"]  { color: var(--bad); }
.status[data-state="wait"] { color: var(--mut); }

/* The rest of the account opens under the name — a height spring like the
   app's "Continue with email". grid-rows 0fr → 1fr animates to the real height. */
.more {
  display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows .5s var(--ease), opacity .35s, visibility 0s .5s;
}
.claim[data-step="details"] .more { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition-delay: 0s; }
.claim[data-step="details"] #claim-btn { display: none; }
.claim[data-step="details"] .name-field { padding-right: 16px; }
.more-inner {
  min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  padding: 16px 3px 3px; margin: 0 -3px; text-align: left;
}
input.field { width: 100%; padding: 0 16px; height: 54px; }
.pw-field { display: flex; align-items: center; padding: 0 6px 0 16px; }
.pw-field input { flex: 1; height: 52px; }
.peek { background: none; border: 0; color: var(--mut); font-size: 13px; font-weight: 600; padding: 10px; cursor: pointer; border-radius: 8px; }
.peek:hover { color: var(--text); }

.dob { border: 0; padding: 0; margin: 4px 0 0; min-width: 0; }
.dob legend { padding: 0; margin-bottom: 7px; font-size: 13px; color: var(--dim); }
.dob legend span { color: var(--mut); }
.dob-row { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 8px; }
.dob-row input { text-align: center; padding: 0 8px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }

.err { margin: 2px 2px 0; font-size: 13.5px; line-height: 1.45; color: var(--bad); }
.fine { margin: 4px 2px 0; font-size: 12px; line-height: 1.55; color: var(--mut); text-align: center; }
.fine a { color: var(--dim); }

/* Verify + done */
.held { margin: 0; font-size: clamp(26px, 3.2vw, 32px); font-weight: 600; letter-spacing: -.01em; color: var(--dim); }
.held .handle { color: var(--text); }
.sub { margin: 10px auto 22px; max-width: 42ch; font-size: 15px; line-height: 1.55; color: var(--dim); text-wrap: pretty; }
.status, .fine, .tag { text-wrap: balance; }
.sub b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.code-field input { flex: 1; height: 44px; font-size: 22px; letter-spacing: .38em; font-variant-numeric: tabular-nums; }
.verify .err { text-align: center; margin-top: 10px; }
.links { margin: 14px 0 0; font-size: 13px; color: var(--mut); }
.linkish { background: none; border: 0; padding: 4px 2px; color: var(--dim); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: var(--text); }
.linkish[disabled] { opacity: .5; cursor: default; text-decoration: none; }
.og { margin: 0; font-size: 13.5px; color: var(--dim); }
.og .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 0 9px 1px 0;
  background: var(--ember); box-shadow: 0 0 10px var(--ember);
}
.done:focus { outline: none; }
.claim.arrive { animation: arrive .6s var(--ease) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } }

/* ── The iPhone ──────────────────────────────────────────────────────────────
   Every measurement is a fraction of --pw (the phone's width), so one variable
   scales the whole object. Titanium band → black bezel → screen, a Dynamic
   Island, side buttons, and an iOS status bar drawn over the screenshot (the
   screens were shot on Android with its status bar scrubbed out; the app's
   header sits at 7% of the screen on both, clear of the island). */
/* .iphone-3d holds the pose. Behind the face, eight titanium slices step back
   ~10% of the width (an iPhone is 8.25mm on 71.5mm), so when the phone turns its
   edge has real thickness instead of reading as a paper-thin card. */
.iphone-3d { position: relative; width: var(--pw); transform-style: preserve-3d; }
.ip-depth { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.ip-depth i {
  position: absolute; inset: 0; border-radius: calc(var(--pw) * .175);
  background: linear-gradient(155deg, #6a645e 0%, #2b2926 30%, #45413d 62%, #1d1c1a 100%);
  transform: translateZ(calc(var(--pw) * -.0128 * var(--k)));
}
.ip-depth i:nth-child(1) { --k: 1; } .ip-depth i:nth-child(2) { --k: 2; } .ip-depth i:nth-child(3) { --k: 3; }
.ip-depth i:nth-child(4) { --k: 4; } .ip-depth i:nth-child(5) { --k: 5; } .ip-depth i:nth-child(6) { --k: 6; }
.ip-depth i:nth-child(7) { --k: 7; }
.ip-depth i:nth-child(8) {
  --k: 8; background: #121110;
  box-shadow: 0 calc(var(--pw) * .1) calc(var(--pw) * .28) rgba(0, 0, 0, .7), 0 0 calc(var(--pw) * .5) rgba(255, 106, 18, .08);
}
.iphone {
  position: relative; width: var(--pw); transform-style: preserve-3d;
  padding: calc(var(--pw) * .013);
  border-radius: calc(var(--pw) * .175);
  background: linear-gradient(155deg, #8a847e 0%, #3a3734 14%, #1c1b1a 36%, #3d3a37 60%, #181716 84%, #6b665f 100%);
}
.iphone::before, .iphone::after,
.iphone-body::before, .iphone-body::after {
  content: ''; position: absolute; width: calc(var(--pw) * .012);
  border-radius: calc(var(--pw) * .006); background: linear-gradient(90deg, #4c4844, #24221f);
}
/* Buttons sit halfway back, on the edge, not glued to the glass. */
.iphone::before { left: calc(var(--pw) * -.008); top: 17%; height: 4.4%; transform: translateZ(calc(var(--pw) * -.05)); }               /* action */
.iphone::after  { right: calc(var(--pw) * -.008); top: 27%; height: 10%; transform: translateZ(calc(var(--pw) * -.05)) scaleX(-1); }    /* side */
.iphone-body::before { left: calc(var(--pw) * -.021); top: 24.5%; height: 7.6%; transform: translateZ(calc(var(--pw) * -.05)); }       /* volume up */
.iphone-body::after  { left: calc(var(--pw) * -.021); top: 34%; height: 7.6%; transform: translateZ(calc(var(--pw) * -.05)); }         /* volume down */
.iphone-body {
  position: relative; transform-style: preserve-3d; padding: calc(var(--pw) * .027);
  border-radius: calc(var(--pw) * .162); background: #030303;
  box-shadow: inset 0 0 0 calc(var(--pw) * .004) rgba(255, 255, 255, .07);
}
.iphone-screen {
  position: relative; overflow: hidden; isolation: isolate; background: #000;
  border-radius: calc(var(--pw) * .132); aspect-ratio: 1080 / 2400;
}
.iphone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.iphone-screen::after {        /* the glass catches a little light */
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, 0) 30%);
}
.island {
  position: absolute; z-index: 2; top: 1.35%; left: 50%; width: 31%; height: 4.1%;
  transform: translateX(-50%); background: #000; border-radius: 999px;
}
.ios-status {
  position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 6.8%;
  display: flex; align-items: center; justify-content: space-between; color: #fff;
  font: 600 calc(var(--pw) * .052)/1 var(--body); letter-spacing: -.01em;
}
.ios-time, .ios-icons { width: 34.5%; display: flex; align-items: center; justify-content: center; }
.ios-time { padding-left: 3%; }
.ios-icons { gap: calc(var(--pw) * .015); padding-right: 3%; }
.ios-icons svg { height: calc(var(--pw) * .036); width: auto; fill: currentColor; }

/* ── Section scaffolding ─────────────────────────────────────────────────── */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  gap: 10px 32px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.sec-head h2 { font: 400 clamp(42px, 5vw, 66px)/.95 var(--display); letter-spacing: .03em; margin: 0; }
.sec-head p { margin: 0; font-size: 15px; color: var(--mut); }
.app, .mission, .faq { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; box-sizing: content-box; }

/* Reveal: sections rise in once. js/home.js adds .rv-on; without JS or with
   reduced motion everything is simply visible. */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.rv-on { opacity: 1; transform: none; }

/* ── The app: three phones ───────────────────────────────────────────────── */
.app { padding-top: clamp(88px, 14vh, 170px); padding-bottom: clamp(56px, 9vh, 104px); }
.phones {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: center; align-items: end;
  gap: clamp(28px, 5vw, 76px); margin-top: clamp(44px, 7vh, 72px);
}
.phone-cell {
  margin: 0; --pw: clamp(200px, 20vw, 252px); display: flex; flex-direction: column; align-items: center;
  perspective: 1400px; perspective-origin: 50% 35%; position: relative;
}
/* The fan: --fan runs 0 → 1 as the row scrolls in (js/home.js; 1 without JS).
   The side phones start tucked in behind the middle one, flat, and swing out
   turned in toward it. The middle one lifts and leans back. */
.phones { --fan: 1; }
.phone-cell:nth-child(1) .iphone-3d {
  transform: translateX(calc((1 - var(--fan)) * 62%)) translateZ(calc(var(--fan) * -50px))
             rotateY(calc(var(--fan) * 34deg)) rotateX(calc(var(--fan) * 8deg)) rotateZ(calc(var(--fan) * -5deg));
}
.phone-cell:nth-child(2) { z-index: 2; }
.phone-cell:nth-child(2) .iphone-3d {
  transform: translateY(calc(var(--fan) * -28px)) rotateX(calc(var(--fan) * 12deg)) rotateY(calc(var(--fan) * -9deg)) rotateZ(calc(var(--fan) * 2deg));
}
.phone-cell:nth-child(3) .iphone-3d {
  transform: translateX(calc((1 - var(--fan)) * -62%)) translateZ(calc(var(--fan) * -50px))
             rotateY(calc(var(--fan) * -34deg)) rotateX(calc(var(--fan) * 8deg)) rotateZ(calc(var(--fan) * 5deg));
}
.phone-lead { --pw: clamp(224px, 23vw, 296px); }
.phone-cell figcaption { margin-top: 28px; max-width: 27ch; text-align: center; font-size: 15px; line-height: 1.5; color: var(--dim); }
.phone-cell figcaption b { display: block; margin-bottom: 8px; font: 400 28px/1 var(--display); letter-spacing: .05em; color: var(--text); }
.note { margin: 40px 0 0; text-align: center; font-size: 13px; color: var(--mut); }

/* ── Mission + the day strip ─────────────────────────────────────────────── */
.mission { padding-top: clamp(72px, 12vh, 150px); padding-bottom: clamp(96px, 15vh, 180px); }
.mission h2 { font: 400 clamp(50px, 7.6vw, 118px)/.9 var(--display); letter-spacing: .015em; margin: 0 0 clamp(30px, 5vh, 52px); }
.mission-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.mission-copy p { margin: 0 0 16px; max-width: 46ch; font-size: 18px; line-height: 1.6; color: var(--dim); }
.mission-copy b { color: var(--text); font-weight: 600; }
.strip { margin: 0; padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(5, 3, 2, .55); }
.track { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; padding: 8px 0; }
.who { font: 400 19px/1 var(--display); letter-spacing: .06em; }
.days { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.days i { aspect-ratio: 1; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.days i.on { background: var(--ember); }
.rival .days i.on { background: rgba(255, 255, 255, .82); }
.kept { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.strip figcaption { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--mut); }
.strip figcaption b { color: var(--text); font-weight: 600; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { padding-top: 0; padding-bottom: clamp(40px, 7vh, 80px); }
.faq > * { max-width: 760px; }       /* left edge shared with the sections above */
.faq h2 { font: 400 clamp(42px, 5vw, 66px)/.95 var(--display); letter-spacing: .03em; margin: 0 0 18px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 36px 18px 0; font-size: 16.5px; font-weight: 600; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--mut); border-bottom: 1.5px solid var(--mut);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translate(0, 4px) rotate(225deg); }
.faq .ans { padding: 0 0 20px; max-width: 60ch; font-size: 15.5px; line-height: 1.6; color: var(--dim); }
.faq .ans a { color: var(--text); text-underline-offset: 3px; }

/* ── Last call ───────────────────────────────────────────────────────────── */
.last {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(88px, 15vh, 180px) 24px clamp(104px, 17vh, 200px);
}
.logo-last { width: 54px; margin-bottom: 24px; }
.last h2 { font: 400 clamp(50px, 7vw, 98px)/.95 var(--display); letter-spacing: .03em; margin: 0 0 14px; }
.last p { margin: 0 0 30px; font-size: 16px; color: var(--dim); }
.btn-cta { display: inline-flex; align-items: center; height: 54px; padding: 0 30px 0 calc(30px + .15em); border-radius: 12px; font-size: 22px; text-decoration: none; }

/* ── Footer (see-through, so the ending light carries under it) ──────────────────────────────────────────────────────────────── */
.foot {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 40px 24px calc(40px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 13px; color: var(--mut); background: rgba(5, 3, 2, .3);
}
.logo-sm { width: 22px; aspect-ratio: 96 / 93.8; height: auto; color: rgba(255, 255, 255, .85); }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.foot a { color: var(--dim); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot p { margin: 0; }

/* ── Analytics consent ───────────────────────────────────────────────────── */
.cookie {
  position: fixed; z-index: 5; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom));
  width: min(580px, calc(100% - 24px)); transform: translate(-50%, calc(100% + 40px));
  display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 16px;
  background: rgba(12, 7, 4, .94); border: 1px solid var(--line); border-radius: 14px;
  font-size: 12.5px; line-height: 1.5; color: var(--dim); transition: transform .45s var(--ease);
}
.cookie.show { transform: translate(-50%, 0); }
.cookie p { margin: 0; flex: 1; }
.cookie-acts { display: flex; gap: 8px; }
.cbtn {
  border: 1px solid var(--edge); background: rgba(255, 255, 255, .06); border-radius: 9px;
  padding: 8px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.cbtn-on { background: #fff; color: #000; border-color: #fff; }

/* ── Narrower screens ────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero { display: block; padding-top: max(92px, 12vh); }
  .hero-grid { grid-template-columns: 1fr; gap: clamp(56px, 10vh, 96px); }
  .hero-phone { justify-self: center; --pw: min(60vw, 280px); }
  .mission-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  /* Three phones are only legible one at a time: a snap-scroller, the next one peeking in. */
  .phones {
    display: flex; justify-content: flex-start; align-items: flex-end; gap: 22px; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -24px; padding: 0 calc(50% - 115px) 10px;
  }
  .phones::-webkit-scrollbar { display: none; }
  .phone-cell, .phone-lead { --pw: 230px; flex: 0 0 auto; scroll-snap-align: center; padding: 30px 0 4px; }
  /* One at a time: no fan, each just leans, alternating. */
  .phone-cell:nth-child(n) .iphone-3d { transform: rotateX(10deg) rotateY(-16deg) rotateZ(4deg); }
  .phone-cell:nth-child(2) .iphone-3d { transform: rotateX(10deg) rotateY(16deg) rotateZ(-4deg); }
}
@media (max-width: 760px) {
  .top .wide-only { display: none; }
}
@media (max-width: 520px) {
  .top { gap: 18px; padding-right: 18px; font-size: 13px; }
  .hero { padding-inline: 18px; }
  .app, .mission, .faq { padding-inline: 18px; }
  .phones { margin-inline: -18px; }    /* bleed exactly as far as the gutter, or the page scrolls sideways */
  .track { grid-template-columns: 46px 1fr auto; gap: 10px; }
  .days { gap: 3px; }
  .strip { padding: 16px 14px 14px; }
  .cookie { flex-wrap: wrap; }
  .cookie-acts { width: 100%; }
  .cookie-acts .cbtn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow, .light > i { animation: none; transform: scale(1.08); opacity: .85; }
  .float { animation: none; }
  .iphone-hero { transition: none; }
  .more, .cookie, .claim.arrive { transition: none; animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
}
