/* BookedBack sales page
   Theme: auto (prefers-color-scheme). One accent: signal green.
   Radius rule: surfaces 16px, controls (buttons, inputs, code) 10px, chips full pill. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f2f2f3;
  --line: #e3e3e6;
  --text: #18181b;
  --muted: #55555e;
  --accent: #0b6e4f;
  --accent-hover: #095c42;
  --accent-ink: #f4fbf8;
  --accent-soft: #e6f3ee;
  --accent-text: #0a5f44;
  --code-bg: #18181b;
  --code-text: #e4e4e7;
  --shadow: 0 1px 2px rgb(24 24 27 / .05), 0 12px 32px -12px rgb(24 24 27 / .14);
  --todo: #9a3412;
  --todo-bg: #fff4ec;
  --loss: #b42318;
  --loss-soft: #fdf0ee;

  --r-surface: 16px;
  --r-control: 10px;
  --wrap: 1180px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --surface: #18181b;
    --surface-2: #1f1f23;
    --line: #2c2c31;
    --text: #f1f1f3;
    --muted: #a3a3ad;
    --accent: #34c48b;
    --accent-hover: #4dd59d;
    --accent-ink: #06261a;
    --accent-soft: #14271f;
    --accent-text: #5fd9a6;
    --code-bg: #0b0b0d;
    --code-text: #e4e4e7;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px -16px rgb(0 0 0 / .6);
    --todo: #fdba74;
    --todo-bg: #2a1a0e;
    --loss: #f97066;
    --loss-soft: #2a1514;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p a, li a { color: var(--accent-text); text-underline-offset: 3px; }
p a:hover, li a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 650; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); max-width: 22ch; }
h3 { font-size: 1.08rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.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; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: var(--r-control); z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent-text);
  margin-bottom: 18px;
}

.todo {
  display: inline-block;
  font-family: var(--mono);
  font-size: .85em;
  color: var(--todo);
  background: var(--todo-bg);
  border: 1px dashed currentColor;
  border-radius: 6px;
  padding: 1px 8px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  white-space: nowrap;
  font: 600 .98rem/1 var(--font);
  text-decoration: none;
  border-radius: var(--r-control);
  padding: 13px 18px;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text); }
.btn--ghost svg { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.btn--ghost:hover svg { transform: translateX(3px); }
.btn--sm { padding: 10px 14px; font-size: .9rem; }
.btn--lg { padding: 16px 22px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn__price { font-weight: 500; opacity: .85; padding-left: 10px; border-left: 1px solid currentColor; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; font-size: 1.08rem; }
.brand__mark { width: 28px; height: 28px; padding: 6px; stroke-width: 2.2; border-radius: 8px; background: var(--accent); color: var(--accent-ink); }
.nav__links { display: none; gap: 28px; font-size: .94rem; color: var(--muted); }
.nav__links a { text-decoration: none; }
.nav__links a:hover { color: var(--text); }
@media (min-width: 900px) { .nav__links { display: flex; } }

/* Hero */
.hero { padding: 40px 0 64px; }
.hero__grid { display: grid; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); letter-spacing: -0.035em; line-height: 1.04; max-width: 14ch; }
.lede { margin-top: 22px; font-size: 1.16rem; color: var(--muted); max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__visual { position: relative; margin: 0; }
.hero__visual img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--r-surface); }
.hero__visual figcaption { margin-top: 14px; font-size: .86rem; color: var(--muted); max-width: 46ch; }
.thread {
  position: relative;
  margin: -96px 12px 0;
  padding: 16px;
  display: grid; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  box-shadow: var(--shadow);
}
.thread__event { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); font-family: var(--mono); }
.thread__event svg { color: #c2410c; width: 1.1em; height: 1.1em; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: .95rem; line-height: 1.45; }
.bubble--out { justify-self: end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.bubble--in { justify-self: start; background: var(--surface-2); border-bottom-left-radius: 6px; }
.slot { display: grid; }
.slot > * { grid-area: 1 / 1; }
.slot--out .bubble, .slot--out .typing { justify-self: end; }
.slot--in .bubble, .slot--in .typing { justify-self: start; }
.typing { display: none; align-self: end; gap: 4px; padding: 12px 14px; border-radius: 18px; background: var(--accent); border-bottom-right-radius: 6px; }
.typing--in { background: var(--surface-2); border-bottom-right-radius: 18px; border-bottom-left-radius: 6px; }
.typing i { width: 6px; height: 6px; border-radius: 999px; background: var(--accent-ink); opacity: .7; }
.typing--in i { background: var(--muted); }
.pulse { position: relative; display: inline-grid; place-items: center; }
.pulse svg { position: relative; }

@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 64px; }
  .thread { position: absolute; left: -64px; bottom: 64px; width: min(360px, 90%); margin: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise .8s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .06s; }
  .hero__copy > :nth-child(3) { animation-delay: .12s; }
  .hero__copy > :nth-child(4) { animation-delay: .18s; }
  .hero__visual img { animation: fade 1s var(--ease) both .1s; }
  /* Hero story: missed call, typing, reply, typing, answer */
  .thread__event { animation: rise .6s var(--ease) both .4s; }
  .typing { display: inline-flex; opacity: 0; }
  .slot--out .typing { animation: typing-show 1s var(--ease) both 1s; }
  .slot--out .bubble { animation: rise .5s var(--ease) both 2s; }
  .slot--in .typing { animation: typing-show 1.1s var(--ease) both 2.7s; }
  .slot--in .bubble { animation: rise .5s var(--ease) both 3.8s; }
  .typing i { animation: dot 1s ease-in-out infinite; }
  .typing i:nth-child(2) { animation-delay: .15s; }
  .typing i:nth-child(3) { animation-delay: .3s; }
  /* Gently pulsing missed-call icon */
  .pulse::before { content: ""; position: absolute; inset: -5px; border-radius: 999px; background: currentColor; opacity: 0; animation: ring 2.4s ease-out infinite 1s; }
}
@keyframes typing-show { 0% { opacity: 0; transform: translateY(6px); } 15%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-3px); opacity: 1; } }
@keyframes ring { 0% { transform: scale(.6); opacity: .28; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Scroll reveal (class added by main.js only when motion is allowed) */
.js-motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js-motion .reveal.is-in { opacity: 1; transform: none; }

section { padding: 72px 0; }
@media (min-width: 960px) { section { padding: 104px 0; } }

/* Cost + calculator */
.cost { background: var(--surface); border-block: 1px solid var(--line); }
.cost__grid { display: grid; gap: 40px; align-items: start; }
.cost__copy p { margin-top: 18px; color: var(--muted); max-width: 52ch; }
@media (min-width: 960px) { .cost__grid { grid-template-columns: .9fr 1.1fr; gap: 72px; } .cost__copy { position: sticky; top: 112px; } }

.calc { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-surface); padding: 22px; }
.calc__head h3 { font-size: 1.2rem; }
.calc__note { margin-top: 4px; font-size: .88rem; color: var(--muted); }
.calc__fields { display: grid; gap: 18px; margin-top: 22px; }
@media (min-width: 600px) { .calc__fields { grid-template-columns: 1fr 1fr; } .calc { padding: 28px; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: .88rem; font-weight: 550; }
.field input {
  width: 100%; font: 500 1rem/1.2 var(--mono); color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-control);
  padding: 11px 12px;
}
.field input:hover { border-color: var(--muted); }
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: #b91c1c; }
.field__help { font-size: .8rem; color: var(--muted); }
.calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.calc__out div { min-width: 0; }
.calc__out dt { font-size: .82rem; color: var(--muted); }
.calc__out dd { margin: 2px 0 0; font: 600 1.5rem/1.2 var(--mono); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.calc__out dd, .mtable td { font-variant-numeric: tabular-nums; }
.calc__month dd { color: var(--loss); }
.calc__year { grid-column: 1 / -1; background: var(--loss-soft); border-radius: var(--r-control); padding: 16px 18px; }
.calc__year dt { color: var(--loss); font-weight: 600; }
.calc__year dd { color: var(--loss); font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3rem); letter-spacing: -0.03em; }
.calc__payback { margin-top: 14px; font-size: .92rem; color: var(--muted); }

/* Missed call */
.missed h2 { max-width: 18ch; }
.missed__lede { margin-top: 18px; color: var(--muted); max-width: 60ch; font-size: 1.08rem; }
.flow { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 28px; counter-reset: flow; }
.flow li { position: relative; padding-top: 24px; border-top: 2px solid var(--line); }
.flow li:first-child { border-top-color: #c2410c; }
.flow li:last-child { border-top-color: var(--accent); }
.flow svg { width: 28px; height: 28px; color: var(--muted); margin-bottom: 14px; }
.flow li:first-child svg { color: #c2410c; }
.flow li:last-child svg { color: var(--accent); }
.flow p { margin-top: 8px; color: var(--muted); max-width: 34ch; }
@media (min-width: 768px) { .flow { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
@media (prefers-color-scheme: dark) { .flow li:first-child { border-top-color: #fb923c; } .flow li:first-child svg, .thread__event svg { color: #fb923c; } }

/* How it works */
.how { background: var(--surface); border-block: 1px solid var(--line); }
.how__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .how__grid { grid-template-columns: .8fr 1.2fr; gap: 72px; } .how h2 { position: sticky; top: 112px; align-self: start; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; }
.steps__n {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: var(--r-control); border: 1px solid var(--line);
  font: 600 1.1rem/1 var(--mono); color: var(--accent-text); background: var(--bg);
}
.steps h3 { font-size: 1.25rem; margin-top: 10px; }
.steps p { margin-top: 8px; color: var(--muted); max-width: 52ch; }

/* Included (bento) */
.included h2 { max-width: 24ch; }
.bento { display: grid; gap: 14px; margin-top: 44px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface);
  padding: 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.tile p { color: var(--muted); font-size: .96rem; }
.tile__icon { width: 26px; height: 26px; color: var(--accent-text); margin-bottom: 10px; }
.tile--code { background: var(--code-bg); border-color: var(--code-bg); color: var(--code-text); }
.tile--code p { color: #a1a1aa; }
.tile--code .tile__icon { color: #6ee7b7; }
.tile--code pre { margin: auto 0 0; padding-top: 18px; font: .82rem/1.6 var(--mono); color: #71717a; white-space: pre; overflow: hidden; }
.tile--accent { background: var(--accent-soft); border-color: transparent; }
.tile--accent p { color: var(--text); opacity: .8; }
.tile--resale {
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    var(--surface);
}
.chips { list-style: none; margin: 8px 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .86rem; font-weight: 550; padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
/* Prompts tile: tinted surface + its own list style */
.tile--prompts { background: var(--surface-2); }
.prompt-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.prompt-list li { color: var(--muted); font-size: .96rem; padding-left: 14px; border-left: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.prompt-list strong { color: var(--text); font-weight: 600; }
/* 10 tiles. 2 cols: 4 wide tiles + 6 singles. 4 cols: code, workflows and prompts are 2x2,
   resale is 2x1, six singles fill the rest (5 full rows, no gaps). */
@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--code, .tile--workflows, .tile--prompts, .tile--resale { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .tile--code, .tile--workflows, .tile--prompts { grid-column: span 2; grid-row: span 2; }
  .tile--resale { grid-column: span 2; }
}
/* 11th tile: full-width row at the end, so the grid above stays gap-free. */
.tile--scale { border-style: dashed; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
@media (min-width: 700px) { .tile--scale { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .tile--scale { flex-direction: row; align-items: center; gap: 20px; }
  .tile--scale .tile__icon { margin-bottom: 0; }
  .tile--scale p { max-width: 80ch; margin-top: 4px; }
}

/* What you need */
.need__grid { display: grid; gap: 40px; align-items: center; }
.need__img { margin: 0; }
.need__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-surface); }
@media (min-width: 960px) {
  .need__grid { grid-template-columns: .85fr 1.15fr; gap: 72px; }
  .need__img img { aspect-ratio: 4 / 5; }
}
.needs { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
.needs li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.needs li > svg { width: 22px; height: 22px; margin-top: 3px; padding: 3px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); }
.needs strong { display: block; font-weight: 600; }
.needs span { color: var(--muted); }
.needs code { font: .88em var(--mono); color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.needs small, .tool-list__tag { color: var(--muted); font-size: .84rem; }

/* Scaling: phones and SIMs */
.scale { border-top: 1px solid var(--line); }
.scale__head { display: grid; gap: 36px; align-items: start; }
.scale__lede { margin-top: 18px; color: var(--muted); max-width: 56ch; font-size: 1.08rem; }
@media (min-width: 960px) { .scale__head { grid-template-columns: 1.1fr .9fr; gap: 72px; } }
.scale__map {
  list-style: none; margin: 0; padding: 18px; display: grid; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface); box-shadow: var(--shadow);
}
.scale__map li {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px;
  margin-left: 22px; padding: 10px 14px; border-radius: var(--r-control); background: var(--bg); border: 1px solid var(--line);
  position: relative; font-size: .95rem;
}
.scale__map li:not(.scale__server)::before {
  content: ""; position: absolute; left: -15px; top: -9px; bottom: 50%; width: 12px;
  border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); border-bottom-left-radius: 8px;
}
.scale__map .scale__server {
  margin-left: 0; justify-content: flex-start; gap: 10px; font-weight: 600;
  background: var(--code-bg); color: var(--code-text); border-color: var(--code-bg);
}
.scale__server svg { width: 20px; height: 20px; color: #6ee7b7; }
.scale__client { font-weight: 600; }
.scale__phone { display: inline-flex; align-items: center; gap: 6px; font: .84rem/1.3 var(--mono); color: var(--accent-text); }
.scale__phone svg { width: 16px; height: 16px; }
.scale__map .scale__next { border-style: dashed; background: transparent; }
.scale__next .scale__client, .scale__next .scale__phone { color: var(--muted); }
.scale__grid { display: grid; gap: 14px; margin-top: 44px; }
@media (min-width: 700px) { .scale__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .scale__grid { grid-template-columns: repeat(4, 1fr); } }
.scale__card { border: 1px solid var(--line); border-radius: var(--r-surface); padding: 22px; background: var(--surface); }
.scale__card p { margin-top: 8px; color: var(--muted); font-size: .96rem; }
.scale__card--kit { background: var(--accent-soft); border-color: transparent; }
.scale__card--kit p { color: var(--text); opacity: .85; }
.scale__note { margin-top: 22px; font-size: .92rem; color: var(--muted); max-width: 80ch; }

/* Tools */
.tools { background: var(--surface); border-block: 1px solid var(--line); }
.tool-list { list-style: none; margin: 36px 0 0; padding: 0; }
.tool-list li { display: grid; gap: 12px; padding: 26px 0; border-top: 1px solid var(--line); align-items: center; }
.tool-list li:last-child { border-bottom: 1px solid var(--line); }
.tool-list__name { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; }
.tool-list p { color: var(--muted); max-width: 56ch; }
.tool-list .btn { justify-self: start; }
@media (min-width: 900px) {
  .tool-list li { grid-template-columns: 200px 1fr auto; column-gap: 40px; row-gap: 4px; }
  .tool-list__tag { grid-column: 3; text-align: center; }
}
.disclosure { margin-top: 22px; font-size: .88rem; color: var(--muted); max-width: 72ch; }

/* Limits */
.limits__grid { display: grid; gap: 14px; margin-top: 40px; }
.limit { border: 1px solid var(--line); border-radius: var(--r-surface); padding: 22px; background: var(--surface); }
.limit svg { width: 22px; height: 22px; color: #b45309; margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { .limit svg { color: #fbbf24; } }
.limit p { margin-top: 8px; color: var(--muted); font-size: .96rem; }
@media (min-width: 700px) { .limits__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .limits__grid { grid-template-columns: repeat(3, 1fr); } }

/* Offer */
.offer { background: var(--surface); border-block: 1px solid var(--line); }
.offer__grid { display: grid; gap: 40px; align-items: center; }
.offer__copy p { margin-top: 18px; color: var(--muted); max-width: 46ch; font-size: 1.08rem; }
@media (min-width: 960px) { .offer__grid { grid-template-columns: 1fr 440px; gap: 72px; } }
.price { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-surface); padding: 28px; box-shadow: var(--shadow); }
.price__amount { font-size: 4rem; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.price__currency { font-size: 2rem; vertical-align: top; position: relative; top: 8px; margin-right: 2px; color: var(--muted); }
.price__term { margin-top: 6px; color: var(--muted); }
.price__list { list-style: none; margin: 24px 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.price__list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .97rem; }
.price__list svg { width: 18px; height: 18px; margin-top: 3px; color: var(--accent-text); }
.price__fine { margin-top: 14px; }

/* FAQ */
.faq__grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: .6fr 1.4fr; gap: 72px; } }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__list details p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* Final CTA */
.final { padding-top: 24px; }
.final__inner {
  display: grid; gap: 24px; justify-items: start;
  padding: 36px 24px; border-radius: var(--r-surface);
  background: var(--code-bg); color: var(--code-text);
}
.final h2 { max-width: 22ch; }
.final__sub { margin-top: 12px; color: #a1a1aa; font-size: 1.05rem; }
@media (min-width: 900px) { .final__inner { grid-template-columns: 1fr auto; align-items: center; padding: 56px; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 64px; font-size: .88rem; color: var(--muted); }
.footer__grid { display: grid; gap: 28px; }
.footer .brand { color: var(--text); }
.footer__small { margin-top: 12px; }
.footer__legal { display: grid; gap: 10px; max-width: 78ch; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 260px 1fr; gap: 64px; } }

/* Hover lift on cards */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile, .limit, .scale__card, .ty-card, .price, .margin, .calc { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
  .tile:hover, .limit:hover, .scale__card:hover, .ty-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
}

/* Comparison table */
.compare { background: var(--surface); border-block: 1px solid var(--line); }
.compare h2 { max-width: none; }
.compare__lede { margin-top: 14px; color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.compare__wrap { margin-top: 40px; }
.ctable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .97rem; }
.ctable th, .ctable td { text-align: left; vertical-align: top; padding: 16px 18px; }
.ctable thead th { font-size: .9rem; font-weight: 600; color: var(--muted); padding-bottom: 12px; }
.ctable thead th.ctable__us { color: var(--accent-text); }
.ctable tbody th { font-weight: 600; width: 24%; }
.ctable tbody tr + tr > * { border-top: 1px solid var(--line); }
.ctable td { color: var(--muted); }
.ctable td svg { width: 18px; height: 18px; margin-right: 10px; vertical-align: -3px; stroke-width: 2.4; }
.ctable td.ctable__us { background: var(--accent-soft); color: var(--text); }
.ctable thead th.ctable__us { background: var(--accent-soft); border-radius: var(--r-control) var(--r-control) 0 0; }
.ctable tbody tr:last-child td.ctable__us { border-radius: 0 0 var(--r-control) var(--r-control); }
.ic-good { color: var(--accent-text); }
.ic-bad { color: var(--loss); }
.ic-mid { color: var(--muted); }
.row-honest th { color: var(--muted); }
.compare__note { margin-top: 20px; font-size: .88rem; color: var(--muted); max-width: 86ch; }
.js-motion .row-in { opacity: 0; transform: translateX(-12px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js-motion .row-in.is-in { opacity: 1; transform: none; }
@media (max-width: 767px) {
  .ctable thead { display: none; }
  .ctable, .ctable tbody, .ctable tr, .ctable th, .ctable td { display: block; width: auto; }
  .ctable tbody tr { border: 1px solid var(--line); border-radius: var(--r-surface); overflow: hidden; margin-bottom: 12px; background: var(--bg); }
  .ctable tbody tr + tr > * { border-top: 0; }
  .ctable tbody th { padding: 14px 16px 6px; width: auto; }
  .ctable td { padding: 8px 16px 12px; }
  .ctable td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
  .ctable td.ctable__us { padding-top: 12px; }
  .ctable td.ctable__us::before { color: var(--accent-text); }
  .ctable tbody tr:last-child td.ctable__us { border-radius: 0; }
}

/* Missed-call pulse icon in the flow */
.pulse--lg { color: var(--loss); margin-bottom: 14px; }
.pulse--lg svg { width: 28px; height: 28px; margin: 0; color: var(--loss); }

/* Resell */
.resell__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .resell__grid { grid-template-columns: 1.05fr .95fr; gap: 72px; } }
.resell__copy p { margin-top: 18px; color: var(--muted); max-width: 52ch; font-size: 1.05rem; }
.kit-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.kit-list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; font-weight: 550; }
.kit-list svg { width: 36px; height: 36px; padding: 8px; border-radius: var(--r-control); background: var(--accent-soft); color: var(--accent-text); }
.margin { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface); padding: 22px; box-shadow: var(--shadow); }
@media (min-width: 600px) { .margin { padding: 28px; } }
.margin__fields { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 600px) { .margin__fields { grid-template-columns: 1fr 1fr; } }
.mtable { width: 100%; border-collapse: collapse; margin-top: 22px; }
.mtable th, .mtable td { padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.mtable th { text-align: left; font-weight: 500; color: var(--muted); }
.mtable td { text-align: right; font: 600 1.05rem/1.2 var(--mono); }
.mtable__keep th, .mtable__keep td { color: var(--accent-text); }
.mtable__keep td { font-size: 1.3rem; }
.mtable__year th, .mtable__year td { background: var(--accent-soft); color: var(--accent-text); border-top: 0; }
.mtable__year th { padding-left: 14px; border-radius: var(--r-control) 0 0 var(--r-control); font-weight: 600; }
.mtable__year td { padding-right: 14px; border-radius: 0 var(--r-control) var(--r-control) 0; font-size: 1.6rem; }

/* Done-for-you note on the price card */
.dfy { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin-top: 16px; padding: 14px; border-radius: var(--r-control); background: var(--surface-2); font-size: .92rem; }
.dfy svg { width: 20px; height: 20px; color: var(--accent-text); margin-top: 1px; }
.dfy strong { font-weight: 600; }

/* Thank-you page */
.ty-hero { padding: 56px 0 24px; }
.ty-hero h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); letter-spacing: -0.035em; max-width: 18ch; margin-top: 22px; }
.ty-check { width: 64px; height: 64px; color: var(--accent); }
.ty-check svg { width: 64px; height: 64px; stroke-width: 3; }
.ty-check__ring { stroke-dasharray: 151; stroke-dashoffset: 0; opacity: .35; }
.ty-check__tick { stroke-dasharray: 36; stroke-dashoffset: 0; }
.ty-steps { padding-top: 40px; }
.ty-cards { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .ty-cards { grid-template-columns: repeat(3, 1fr); } }
.ty-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.ty-card p { color: var(--muted); }
.ty-card__actions { margin-top: auto; padding-top: 10px; display: grid; gap: 10px; justify-items: start; }
.ty-card__actions .btn svg { width: 18px; height: 18px; }
.ty-link { color: var(--accent-text); font-weight: 550; text-underline-offset: 3px; }
.ty-card small { color: var(--muted); font-size: .84rem; }
.ty-dfy { display: grid; grid-template-columns: 28px 1fr; gap: 14px; margin-top: 20px; padding: 22px; border-radius: var(--r-surface); background: var(--accent-soft); }
.ty-dfy svg { width: 26px; height: 26px; color: var(--accent-text); }
.ty-dfy p { margin-top: 6px; color: var(--text); opacity: .85; max-width: 80ch; }
.ty-wait { padding-top: 24px; }
.nf { padding: 96px 0; }
.nf h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); letter-spacing: -0.03em; }
@media (prefers-reduced-motion: no-preference) {
  .ty-check__ring { stroke-dashoffset: 151; animation: draw .9s var(--ease) forwards .1s; }
  .ty-check__tick { stroke-dashoffset: 36; animation: draw .5s var(--ease) forwards .75s; }
  .ty-hero h1, .ty-hero .lede { animation: rise .7s var(--ease) both .3s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
