/* Robosue funnel. One electric-blue accent, Inter (self-hosted), capsule CTAs, continuous corners, measured motion (REFERENCE.md sections 2 and 7). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/InterVariable-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --page: #ffffff;
  --bg: #f0f2f6;
  --surface: #ffffff;
  --text: #111111;
  --text-2: #5f6470;
  --text-3: #98a2b3;
  --sep: #d7dbe3;
  --hair: #e5e7eb;
  --fill: #f3f1f3;
  --fill-press: #e8e5e8;
  --accent: #0051ff;
  --accent-press: #1c46d8;
  --accent-active: #1a43ce;
  --text-sec: #6a6a6a;
  --subtitle: #5f6470;
  --surface-gray: #f0f2f6;
  --choice: #f3f1f3;
  --border: #e5e7eb;
  --border-2: #d7dbe3;
  --accent-tint: rgba(0, 81, 255, 0.08);
  --green: #15ba00;
  --success: #15ba00;
  --error: #ff3b30;
  --warn: #ff3b30;
  --cta: #050505;
  --cta-ink: #ffffff;
  --cta-press: #333333;
  --bar-bg: rgba(255, 255, 255, 0.78);
  --toast-bg: rgba(17, 17, 17, 0.92);
  --toast-ink: #ffffff;
  --shadow-card: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-frame: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 30px 80px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(0, 0, 0, 0.04);
  --on-bleed-card: #ffffff;
  --skeleton: rgba(118, 118, 128, 0.14);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-cubic: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --gutter: 16px;
  --safe-t: max(env(safe-area-inset-top), 14px);
  --safe-b: max(env(safe-area-inset-bottom), 16px);
  --pad-top: calc(var(--safe-t) + 50px);
  --frame-w: 480px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior: none;
  background: var(--page);
}
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--page);
  color: var(--text);
  font: 17px/1.48 var(--font);
  font-feature-settings: "cv11", "ss03";
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
a { color: var(--accent); text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.ac { color: var(--accent); }

/* ---------- shell ---------- */
.bleed {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease-out;
}
body.is-bleed .bleed { opacity: 1; transition: none; }
.rays {
  position: absolute;
  inset: -50vmax;
  background: repeating-conic-gradient(from -8deg, rgba(255, 255, 255, 0.14) 0 10deg, transparent 10deg 22deg);
  filter: blur(18px);
  opacity: 0;
  transition: opacity 200ms ease-out;
  animation: spin 36s linear infinite;
}
body.has-rays .rays { opacity: 0.9; }
@keyframes spin { to { transform: rotate(360deg); } }

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--safe-t) max(var(--gutter), env(safe-area-inset-right)) 10px max(var(--gutter), env(safe-area-inset-left));
  pointer-events: none;
  transition: background-color 200ms ease-out, box-shadow 200ms ease-out;
}
.topbar.scrolled {
  background: #fff;
  box-shadow: 0 1px 0 var(--hair);
}
body.is-bleed .topbar.scrolled {
  background: var(--bar-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 0.5px 0 var(--hair);
}
.logo {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 200ms ease-out;
}
/* Brand wordmark: the path-outlined SVG used as a mask so it takes the text color (accent on white, white on blue). */
.wordmark {
  display: block;
  width: 88px;
  aspect-ratio: 762 / 160;
  background: currentColor;
  -webkit-mask: url("/logo-robosue.svg") center / contain no-repeat;
  mask: url("/logo-robosue.svg") center / contain no-repeat;
}
.logo .wordmark { color: var(--accent); transition: color 200ms ease-out; }
body.is-bleed .logo .wordmark { color: #fff; }
.logo svg { width: 22px; height: 22px; color: var(--accent); transition: color 200ms ease-out; }
body.is-bleed .logo, body.is-bleed .logo svg { color: #fff; }
.top-right {
  width: min(210px, 54vw);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 13px;
}
.progress {
  width: min(140px, 36vw);
  height: 8px;
  border-radius: 99px;
  background: rgba(118, 118, 128, 0.16);
  overflow: hidden;
  transition: opacity 200ms ease-out, background-color 200ms ease-out;
}
.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 400ms var(--ease-cubic), background-color 200ms ease-out;
}
body.is-bleed .progress { background: rgba(255, 255, 255, 0.3); }
body.is-bleed .progress i { background: #fff; }
.progress.off { opacity: 0; }
.pill {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--page);
  box-shadow: inset 0 0 0 1px var(--sep);
  font-size: 12px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.pill b { font-size: 15px; font-weight: 700; color: var(--accent); }
.pill.on { opacity: 1; transform: none; }
body.is-bleed .pill { background: rgba(255, 255, 255, 0.22); box-shadow: none; color: rgba(255, 255, 255, 0.92); }
body.is-bleed .pill b { color: #fff; }

.frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--page);
  transition: background-color 200ms ease-out;
}
body.is-bleed .frame { background: transparent; transition: none; }

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: var(--pad-top) var(--gutter) 0;
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.screen > .content { flex: 1 0 auto; display: flex; flex-direction: column; }
.screen > .foot {
  position: sticky;
  bottom: 0;
  z-index: 2;
  flex: none;
  margin: 0 calc(var(--gutter) * -1);
  padding: 12px var(--gutter) var(--safe-b);
  background: linear-gradient(to bottom, transparent, var(--page) 12px);
}
body.is-bleed .screen > .foot { background: none; }
.screen > .foot.bar {
  background: var(--bar-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 -0.5px 0 var(--hair);
}
.centered > .content { justify-content: center; align-items: center; text-align: center; }
/* Every centered screen shares one optical center: a little above the middle of the space over the CTA. Screens
   without a pinned CTA add its height so titles do not jump between, e.g., analyzing and result. */
.centered > .content, .s-result .content, .s-success .content, .s-celebrate .content { padding-bottom: 6vh; }
.s-analyzing .content { padding-bottom: calc(6vh + 86px); }
.centered .sub, .s-name .sub, .s-result .sub, .s-success .sub { text-wrap: balance; }

/* The landing page (screen def `page`): full-width marketing page, no phone column, no top bar. Styles: landing.css. */
body.is-page .topbar { display: none; }

/* Desktop: the phone column, centered on a surround. */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  :root { --safe-b: 28px; }
  html, body { background: var(--bg); }
  body { display: grid; place-items: center; }
  @supports (height: 100dvh) { body { height: 100dvh; } }
  .frame {
    width: var(--frame-w);
    height: min(calc(100dvh - 48px), 900px);
    border-radius: 32px;
    box-shadow: var(--shadow-frame);
    transition: background-color 200ms ease-out, box-shadow 200ms ease-out, width 0ms;
  }
  body.wide .frame { --frame-w: 536px; }
  body.is-bleed .frame { box-shadow: none; }
  .topbar { border-radius: 32px 32px 0 0; }
  .screen > .foot.bar { border-radius: 0 0 32px 32px; }
  body.is-page { display: block; }
  body.is-page .frame { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }
}

/* ---------- type ---------- */
.title {
  font-size: 36px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.title.form { font-size: 32px; }
.sub {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text-2);
  text-wrap: pretty;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-num {
  font-size: 104px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
/* Money amounts: one line, sized by fitHero() (screens.js) through --hero-size. */
.hero-num.money { font-size: var(--hero-size, 104px); white-space: nowrap; }
/* The fine print that goes with every personal dollar figure. */
.fine { margin-top: 14px; max-width: 330px; font-size: 12px; line-height: 1.4; color: var(--text-3); text-wrap: pretty; }
.legal { font-size: 12px; line-height: 1.4; color: var(--text-3); }
.legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@media (max-height: 760px) {
  .title { font-size: 28px; }
  .s-result .result-lead { font-size: 26px; }
  .title.form { font-size: 28px; }
  .sub { margin-top: 10px; font-size: 16px; }
  .hero-num { font-size: 80px; }
  .hero-num.money { font-size: min(var(--hero-size, 80px), 80px); }
}

/* ---------- buttons ---------- */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 58px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--cta);
  color: var(--cta-ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  transition: background-color 180ms ease, opacity 180ms ease, transform 160ms var(--ease-out);
}
.cta:active:not(:disabled) { background: var(--cta-press); transform: scale(0.98); }
.cta:disabled { opacity: 0.5; cursor: default; }
.cta.accent { background: var(--accent); color: #fff; }
.cta.accent:active:not(:disabled) { background: var(--accent-press); }
.cta.secondary {
  min-height: 52px;
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--sep);
}
.cta.secondary:active { background: var(--fill); }
.cta.compact { width: 120px; min-height: 48px; padding: 0 18px; }
.cta .spin { width: 18px; height: 18px; }
.text-btn {
  display: block;
  margin: 6px auto 0;
  padding: 10px 16px;
  border: 0;
  background: none;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
}
.text-btn:active { opacity: 0.5; }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 500; }
.link-btn:active { opacity: 0.5; }

.spin {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  opacity: 0.7;
  animation: spin 0.85s linear infinite;
}

/* ---------- choices ---------- */
.choices { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 18px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--fill);
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}
.choice:active { transform: scale(0.985); }
.choice span { flex: 1; }
.choice .dot {
  flex: none;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #8e8e93;
  display: grid;
  place-items: center;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}
.choice .dot svg { width: 13px; height: 13px; color: var(--accent); opacity: 0; transition: opacity 180ms ease; }
.choice[aria-checked="true"] { background: var(--accent); color: #fff; }
.choice[aria-checked="true"] .dot { background: #fff; box-shadow: none; }
.choice[aria-checked="true"] .dot svg { opacity: 1; }
@media (max-height: 760px) {
  .choices { gap: 8px; margin-top: 22px; }
  .choice { min-height: 56px; padding: 12px 16px; }
}

/* ---------- inputs ---------- */
.field { display: block; width: 100%; text-align: left; }
.field-label { display: block; margin: 0 0 8px 4px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--fill);
  font-size: 17px;
  transition: border-color 180ms ease, background-color 180ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: var(--text-3); }
.input:focus { border-color: var(--accent); background: var(--accent-tint); outline: none; }

/* ---------- welcome ---------- */
.s-welcome { padding-bottom: 0; }
.s-welcome .content { align-items: center; text-align: center; }
.welcome-hero {
  flex: 1 1 0;
  min-height: 120px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 28px;
}
.welcome-hero .img { height: 100%; max-height: 520px; max-width: 100%; aspect-ratio: var(--ar); }
.welcome-hero .img img { width: 100%; height: 100%; object-fit: contain; }
.s-welcome .title { max-width: 340px; }
.s-welcome .sub { margin-top: 10px; }
.welcome-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 0 var(--safe-b); }
.welcome-actions .cta { width: 274px; min-height: 52px; }

/* ---------- images ---------- */
.img { position: relative; overflow: hidden; }
.img img { width: 100%; height: 100%; object-fit: cover; }
.art { margin-top: 28px; border-radius: 24px; aspect-ratio: var(--ar); }
/* Info screens: the art sits centered in the space between the subtitle and the pinned CTA (as on the reference),
   so no dead band opens above the button. */
.art-slot { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 24px 0 12px; }
.art-slot .art { margin-top: 0; }
@media (max-height: 760px) { .art { margin-top: 20px; max-height: 34vh; } .art-slot .art { margin-top: 0; } .art img { object-fit: contain; } }
.glyph { border-radius: 28px; aspect-ratio: 1; }
.shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%) var(--skeleton);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  transition: opacity 200ms ease-out;
}
.shimmer.loaded::after { opacity: 0; animation: none; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* ---------- rank ---------- */
.rank-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; padding: 24px 8px; }
.rank-mid .glyph { width: clamp(96px, 30vw, 132px); }
.stat { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; max-width: 300px; text-wrap: balance; }
.shine .ac {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 35%, #6ab7ff 50%, var(--accent) 65%, var(--accent) 100%) 0 0 / 140px 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 1.6s linear 2;
}
@keyframes shine { from { background-position: -140px 0; } to { background-position: 140px 0; } }

/* ---------- proof ---------- */
.proof-label { margin-top: 12px; font-size: 15px; color: var(--text-2); }
.collage { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 18px 4px 12px; }
.fact {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 92%;
  max-height: 112px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.fact + .fact { margin-top: 6px; }
.fact:nth-child(even) { align-self: flex-end; background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(0, 80, 180, 0.22); }
.fact svg { flex: none; width: 22px; height: 22px; color: var(--accent); }
.fact:nth-child(even) svg { color: #fff; }
.fact:nth-child(1) { transform: rotate(-2.7deg); }
.fact:nth-child(2) { transform: rotate(3.2deg); }
.fact:nth-child(3) { transform: rotate(-3.8deg); z-index: 1; }
.fact:nth-child(4) { transform: rotate(2.9deg); }
.fact:nth-child(5) { transform: rotate(-3deg); }
@media (max-height: 760px) { .fact { padding: 12px 16px; font-size: 16px; } }

/* ---------- name ---------- */
.s-name .content { justify-content: center; text-align: center; padding-bottom: calc(6vh + 40px); }
.s-name .field { margin-top: 28px; }
.s-name .cta { margin-top: 16px; }

/* ---------- how ---------- */
.steps-slot { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 32px 0 9vh; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { position: relative; display: flex; gap: 16px; padding-bottom: 28px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 48px;
  bottom: 4px;
  width: 2px;
  border-radius: 1px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.step:last-child::before { display: none; }
.step-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.step-icon svg { width: 22px; height: 22px; }
.step h3 { margin-top: 2px; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.step p { margin-top: 2px; font-size: 15px; line-height: 1.4; color: var(--text-2); }

/* ---------- centered intro screens ---------- */
.intro-glyph { width: clamp(96px, 28vw, 120px); margin-bottom: 28px; }
.centered .title { max-width: 340px; }
.centered .sub { max-width: 320px; }

/* ---------- quiz ---------- */
.s-quiz { padding-left: var(--gutter); padding-right: var(--gutter); }
.s-quiz .content { justify-content: flex-end; }
.quiz-wrap { position: relative; display: flex; flex-direction: column; flex: 1; margin-top: 12px; }
.quiz-count {
  align-self: flex-end;
  margin-bottom: 26px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 14px rgba(0, 20, 80, 0.2);
}
.quiz-count b { color: var(--accent); font-weight: 700; }
.quiz-card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 34px 20px var(--safe-b);
  border-radius: 24px 24px 0 0;
  background: var(--on-bleed-card);
  box-shadow: 0 -10px 40px rgba(0, 30, 80, 0.16);
}
.quiz-badge {
  position: absolute;
  left: 18px;
  top: -22px;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--on-bleed-card);
  color: var(--accent);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 30, 80, 0.2);
}
.quiz-badge svg { width: 22px; height: 22px; }
.quiz-q { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -0.045em; text-wrap: balance; }
.quiz-tile { flex: 1; display: flex; align-items: center; justify-content: center; padding: 18px 0; min-height: 120px; }
.quiz-tile .glyph { height: 100%; max-height: 212px; width: auto; aspect-ratio: 1; border-radius: 32px; box-shadow: 0 10px 30px rgba(0, 40, 100, 0.12); }
.yn { display: flex; flex-direction: column; gap: 10px; }
.yn button {
  min-height: 48px;
  border: 0;
  border-radius: 15px;
  background: var(--on-bleed-card);
  box-shadow: inset 0 0 0 1.5px var(--sep);
  font-size: 17px;
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 160ms var(--ease-out);
}
.yn button:active { transform: scale(0.98); }
.yn button[aria-checked="true"] { background: var(--accent); color: #fff; box-shadow: none; transition-duration: 0s; } /* instant fill, then the 225ms hold (3a) */
@media (max-height: 760px) {
  .quiz-q { font-size: 26px; }
  .quiz-tile .glyph { max-height: 150px; }
  .quiz-count { margin-bottom: 22px; }
  .yn button { min-height: 48px; }
}
@media (min-width: 640px) {
  .quiz-card { border-radius: 24px; padding-bottom: 24px; margin-bottom: 28px; }
}

/* ---------- analyzing ---------- */
.s-analyzing .content { justify-content: center; align-items: center; text-align: center; }
.scan { position: relative; width: 188px; height: 188px; margin-bottom: 30px; }
.scan-ring {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-top-color: var(--accent);
  animation: spin 1.8s linear infinite;
}
.scan-core {
  position: absolute;
  inset: 52px;
  border-radius: 50%;
  background: var(--accent-tint);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.scan-core svg { width: 38px; height: 38px; }
.scan-tile {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 2px solid var(--page);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  background: var(--fill);
  animation: float 2.4s ease-in-out infinite;
}
.scan-tile img { width: 100%; height: 100%; object-fit: cover; }
.scan-tile:nth-child(1) { left: 72px; top: 0; animation-delay: 0s; }
.scan-tile:nth-child(2) { right: 0; top: 72px; animation-delay: -0.6s; }
.scan-tile:nth-child(3) { left: 72px; bottom: 0; animation-delay: -1.2s; }
.scan-tile:nth-child(4) { left: 0; top: 72px; animation-delay: -1.8s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.s-analyzing .title { font-size: 28px; max-width: 320px; }
.checklist { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.checklist li { display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--text-2); transition: color 200ms ease; }
.checklist li.done { color: var(--text); }
.check-slot { flex: none; width: 22px; height: 22px; display: grid; place-items: center; color: var(--text-3); }
.check-slot .spin { width: 18px; height: 18px; }
.check-slot .ok { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.check-slot .ok svg { width: 12px; height: 12px; }

/* ---------- result ---------- */
.s-result .content { justify-content: center; align-items: center; text-align: center; }
.result-lead { margin-top: 14px; font-size: 30px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; max-width: 320px; text-wrap: balance; }
.s-result .hero-num { margin-top: 14px; }
.s-result .result-math { margin-top: 12px; max-width: 320px; }
.s-result .fine { margin-top: 18px; }

/* ---------- pick ---------- */
.s-pick { padding-top: calc(var(--pad-top) + 22px); }
.s-pick .head { text-align: center; }
.s-pick .title { font-size: 30px; }
.picks { display: flex; flex-direction: column; gap: 10px; margin: 24px 0 12px; }
.pick {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  border: 0;
  border-radius: 16px;
  background: var(--page);
  box-shadow: inset 0 0 0 2px var(--hair);
  text-align: left;
  transition: background-color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.pick:active { transform: scale(0.985); }
.pick .glyph { flex: none; width: 64px; height: 64px; border-radius: 14px; }
.pick-text { flex: 1; min-width: 0; }
.pick-name { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.pick-meta { margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--text-2); }
.pick-meta.pick-amount { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.pick-fine { margin: 4px auto 14px; text-align: center; }
.box {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  box-shadow: inset 0 0 0 2px #8e8e93;
  display: grid;
  place-items: center;
  color: #fff;
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
.box svg { width: 13px; height: 13px; opacity: 0; transition: opacity 150ms ease; }
.pick[aria-checked="true"] { background: var(--accent-tint); box-shadow: inset 0 0 0 2px var(--accent); }
.pick[aria-checked="true"] .box { background: var(--accent); box-shadow: none; }
.pick[aria-checked="true"] .box svg { opacity: 1; }
.pick-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pick-count { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pick-total { font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.glyph-fly {
  position: fixed;
  z-index: 50;
  left: 0;
  top: 0;
  color: var(--accent);
  pointer-events: none;
  will-change: transform, opacity;
}
.glyph-fly.dollar { display: grid; place-items: center; line-height: 1; font-weight: 700; }
.fly-layer { position: fixed; inset: 0; z-index: 50; pointer-events: none; overflow: hidden; }

/* ---------- celebrate ---------- */
.s-celebrate { color: #fff; }
.s-celebrate .content { justify-content: center; align-items: center; text-align: center; }
.s-celebrate .intro-glyph { margin-bottom: 22px; width: clamp(80px, 24vw, 104px); }
.cele-lead { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; max-width: 320px; text-wrap: balance; }
.s-celebrate .hero-num { margin-top: 10px; font-size: 104px; }
.s-celebrate .hero-num.money { font-size: var(--hero-size, 104px); }
.s-celebrate .sub { color: rgba(255, 255, 255, 0.86); max-width: 330px; }
.s-celebrate .fine { color: rgba(255, 255, 255, 0.7); }

/* ---------- pass ---------- */
.s-pass .content { padding-bottom: 8px; }
.s-pass .head { text-align: center; }
.s-pass .title { font-size: 32px; }
.s-pass .sub { margin-top: 10px; }
.s-pass .fine { margin: 8px auto 0; }
.banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--accent-tint);
  font-size: 15px;
  line-height: 1.35;
  animation: drop 220ms var(--ease-out) both;
}
.banner svg { flex: none; width: 20px; height: 20px; color: var(--accent); }
.banner .link-btn { margin-left: auto; white-space: nowrap; font-size: 15px; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.pass-hero {
  position: relative;
  margin-top: 24px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--accent);
  isolation: isolate;
}
.pass-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: repeating-conic-gradient(from -8deg, rgba(255, 255, 255, 0.14) 0 10deg, transparent 10deg 22deg);
  filter: blur(14px);
}
.pass-hero .img { aspect-ratio: var(--ar); max-height: min(24vh, 200px); margin: 0 auto; }
.pass-hero .img img { object-fit: contain; }
@media (max-height: 760px) { .s-pass .title { font-size: 28px; } .pass-hero { margin-top: 18px; } .plan { margin-top: 24px; } }
.plan {
  position: relative;
  margin-top: 28px;
  padding: 28px 20px 20px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 2px var(--accent);
}
.plan-pill {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  animation: pop-in 220ms var(--ease-out) both;
}
@keyframes pop-in { from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); } }
.plan-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.plan-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.plan-term { font-size: 15px; color: var(--text-2); }
.price { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; transition: opacity 200ms ease; }
.price.swap { opacity: 0; }
.price-now { font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.price-now.ac { color: var(--accent); }
.price-was { font-size: 20px; color: var(--text-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.price-skel { width: 84px; height: 40px; border-radius: 10px; background: var(--skeleton); animation: pulse 1.1s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: 0.5; } }
.feats { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: 12px; }
.feats li { display: flex; gap: 10px; font-size: 15px; line-height: 1.35; }
.feats svg { flex: none; width: 20px; height: 20px; margin-top: -1px; color: var(--accent); }
.promo { margin-top: 14px; text-align: center; }
.promo .link-btn { font-size: 15px; padding: 8px; }
.promo-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 200ms var(--ease-out); }
.promo-body.open { grid-template-rows: 1fr; }
.promo-inner { overflow: hidden; }
.promo-row { display: flex; gap: 8px; padding: 6px 0 2px; }
.promo-row .input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.promo-row .input::placeholder { text-transform: none; letter-spacing: -0.012em; }
.promo-row .cta { width: auto; min-height: 52px; padding: 0 20px; font-size: 16px; }
.promo-msg { min-height: 22px; margin-top: 8px; font-size: 14px; color: var(--warn); text-align: left; padding-left: 4px; }
.promo-ok { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 500; }
.promo-ok svg { width: 20px; height: 20px; color: var(--green); }
.promo-ok b { font-weight: 700; letter-spacing: 0.02em; }
.promo-ok .link-btn { margin-left: 4px; color: var(--text-2); font-size: 15px; }
.trust { list-style: none; width: fit-content; margin: 28px auto 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.trust li { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 1.3; color: var(--text-2); }
.trust svg { flex: none; width: 20px; height: 20px; color: var(--accent); }
.restore-link { display: block; margin: 28px auto 0; padding: 8px; border: 0; background: none; font-size: 15px; color: var(--text-2); }
.restore-link:active { opacity: 0.5; }
.faq { margin-top: 36px; }
.faq h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.faq-q svg { flex: none; width: 16px; height: 16px; color: var(--text-3); transition: transform 200ms ease; }
.faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-a { padding: 0 24px 16px 0; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.pass-footer { margin-top: 28px; padding-bottom: 8px; text-align: center; }
.pass-footer .legal + .legal { margin-top: 6px; }
.pass-footer a { margin: 0 6px; }
.pass-footer .foot-links a { display: inline-block; padding: 10px 0; margin: -4px 8px; color: var(--text-3); text-decoration: none; }
.pass-foot .legal { margin-top: 10px; text-align: center; }
.pass-foot .cta { min-height: 58px; border-radius: 12px; }

/* ---------- success ---------- */
.s-success .content { justify-content: center; align-items: center; text-align: center; }
.confirming { display: flex; flex-direction: column; align-items: center; gap: 18px; color: var(--text-2); font-size: 17px; }
.confirming .spin { width: 28px; height: 28px; color: var(--accent); opacity: 1; border-width: 2.5px; }
.done-mark { width: 76px; height: 76px; margin-bottom: 24px; color: var(--green); }
.done-mark circle { fill: none; stroke: currentColor; stroke-width: 3.5; opacity: 0.18; }
.done-mark path { fill: none; stroke: currentColor; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 400ms var(--ease-out) 120ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.fade-in { animation: fade 200ms ease-out both; }
.fade-in.d1 { animation-delay: 420ms; }
.fade-in.d2 { animation-delay: 520ms; }
@keyframes fade { from { opacity: 0; } }
.look { margin-top: 32px; width: 100%; max-width: 360px; text-align: left; }
.look h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-2); margin: 0 0 10px 4px; }
.look ul { list-style: none; margin: 0; padding: 4px 0; border-radius: 14px; background: var(--fill); }
.look li { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 16px; }
.look li + li { box-shadow: inset 0 0.5px 0 var(--hair); }
.look li svg { flex: none; width: 18px; height: 18px; color: var(--accent); }
.debug-by { margin-top: 14px; font: 12px var(--mono); color: var(--text-3); }
.delayed-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 300px; margin-top: 28px; }

/* ---------- get app ---------- */
.s-get-app .art { margin-top: 24px; }
.apps { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.app-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 14px 14px;
  border-radius: 16px;
  background: var(--fill);
  animation: rise 220ms var(--ease-out) both;
}
.app-row:nth-child(n + 2) { animation-delay: 40ms; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } }
.app-row img { flex: none; width: 48px; height: 48px; border-radius: 11px; }
.app-text { flex: 1; min-width: 0; }
.app-title { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.app-sub { margin-top: 1px; font-size: 13px; color: var(--text-2); }
.app-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: transform 160ms var(--ease-out), background-color 180ms ease;
}
.app-btn:active { transform: scale(0.96); background: var(--accent-press); }
/* iPhone: a plain link on phones, a QR code to scan on desktop (QR_MEDIA in screens.js). */
.iphone-qr { display: none; }
.iphone-link { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background-color 180ms ease; }
.iphone-link:active { background: var(--fill-press); }
.iphone-link .app-title { color: var(--accent); }
.iphone-link .go { flex: none; display: flex; width: 18px; height: 18px; margin-right: 2px; color: var(--text-3); }
.iphone-link .go svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.qr { flex: none; min-width: 111px; min-height: 111px; border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08); }
.qr svg { display: block; }
@media (min-width: 768px) and (pointer: fine) {
  .iphone-qr { display: flex; }
  .iphone-link { display: none; }
}

/* ---------- sheet ---------- */
.sheet-host { position: fixed; inset: 0; z-index: 60; }
.sheet-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.3); opacity: 0; transition: opacity 400ms var(--ease-drawer); }
.sheet-host.open .sheet-dim { opacity: 1; }
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--kb, 0px);
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 20px var(--safe-b);
  border-radius: 16px 16px 0 0;
  background: var(--surface);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.16);
  transform: translateY(100%);
  transition: transform 400ms var(--ease-drawer), bottom 250ms var(--ease-drawer);
  touch-action: none;
}
.sheet-host.open .sheet { transform: translateY(0); }
.sheet-grab { width: 36px; height: 5px; margin: 0 auto 18px; border-radius: 3px; background: var(--sep); }
.sheet h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.sheet .sub { margin-top: 6px; font-size: 16px; }
.sheet .field { margin-top: 22px; }
.sheet .cta { margin-top: 14px; min-height: 54px; }
.sheet-msg { min-height: 20px; margin-top: 10px; font-size: 14px; color: var(--warn); text-align: center; }
.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--fill);
  color: var(--text-2);
  display: grid;
  place-items: center;
}
.sheet-close svg { width: 12px; height: 12px; }
@media (min-width: 640px) {
  .sheet {
    top: 50%;
    bottom: auto;
    width: 420px;
    padding: 28px 28px 24px;
    border-radius: 24px;
    transform: translateY(-50%) scale(0.96);
    opacity: 0;
    transition: transform 300ms var(--ease-out), opacity 200ms ease-out;
  }
  .sheet-host.open .sheet { transform: translateY(-50%); opacity: 1; }
  .sheet-grab { display: none; }
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  top: calc(var(--safe-t) + 46px);
  z-index: 70;
  width: fit-content;
  max-width: 400px;
  margin: 0 auto;
  padding: 12px 20px;
  border-radius: 22px;
  background: var(--toast-bg);
  color: var(--toast-ink);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out);
  pointer-events: none;
}
.toast.on { transform: none; opacity: 1; }
@media (min-width: 640px) { .toast { top: calc((100dvh - min(calc(100dvh - 48px), 900px)) / 2 + 20px); } }

/* ---------- debug ---------- */
.todo {
  display: inline-block;
  margin: 10px 0 0;
  padding: 3px 8px;
  border-radius: 6px;
  background: #ffd60a;
  color: #000;
  font: 600 11px/1.3 var(--mono);
  letter-spacing: 0;
  text-align: left;
}
.todo-wrap { margin-top: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 150ms !important; }
  .rays, .spin, .scan-ring, .scan-tile, .shimmer::after { animation: none !important; }
  .spin { border-right-color: currentColor; opacity: 0.35; }
  .done-mark path { stroke-dashoffset: 0; }
}

/* The one calm line near every personal estimate: why it isn't $500 x every message. */
.est-note { margin-top: 14px; font-size: 13px; }
.est-note + .fine { margin-top: 6px; }
.s-result .est-note { margin-top: 18px; }
.s-pass .est-note { margin: 8px auto 0; }
.s-pass .est-note + .fine { margin-top: 6px; }
