/* =========================================================
   Travel Health - v4
   Warm neutral canvas, logo navy pills, believable device mockups.
   See DESIGN.md. Spacing: 4 8 12 16 24 32 40 48 64 96.
   Type: 72 48 24 18 16 14 (device mockups scale on their own em).
   1 tokens  2 base  3 grid  4 header  5 buttons  6 hero  7 devices
   8 app mock  9 phone mock  10 how  11 try  12 about  13 API
   14 FAQ  15 waitlist  16 footer + tabbar  17 motion
   ========================================================= */

/* ---------- 1. tokens ---------- */
:root {
  --bg: #F7F7F4;
  --white: #FFFFFF;
  --card: #F2F1ED;
  --linen: #E9E7E0;
  --sand: #EFE9DC;
  --hair: #DDDBD3;
  --field: #8C8A82;
  --ink: #26241F;
  --muted: #5C5A53;

  --navy: #0F2A52;
  --navy-hover: #183864;
  --navy-deep: #0A1B36;
  --cream: #F7F1E3;
  --on-navy: #B4C0D4;
  --line-navy: rgb(247 241 227 / .16);

  --teal: #086166;
  --teal-line: #119CA0;
  --teal-bright: #2EC4C6;

  --low: #1E6B3E;  --low-bg: #E6F3EB;
  --high: #B3261E; --high-bg: #FBE7E5;

  --code-text: #E6E9EF;
  --code-key: #8EDCDC;
  --code-string: #E8C58F;
  --code-num: #F0A77F;
  --code-comment: #8D9CB6;
  --code-border: #1E3558;

  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* type: six sizes */
  --t-display: 3rem;
  --t-h2: 2.25rem;
  --t-h3: 1.5rem;
  --t-lead: 1.125rem;
  --t-body: 1rem;
  --t-small: .875rem;

  --r-panel: 24px;
  --r-card: 16px;
  --pill: 999px;

  --gutter: 16px;
  --section: 64px;

  --shadow-device: 0 1px 1px rgb(38 36 31 / .06), 0 8px 16px rgb(38 36 31 / .08), 0 24px 48px rgb(38 36 31 / .12);
  --shadow-phone: 0 2px 4px rgb(38 36 31 / .12), 0 16px 32px rgb(38 36 31 / .18), 0 40px 64px rgb(38 36 31 / .16);
  --shadow-dark: 0 2px 4px rgb(0 0 0 / .25), 0 24px 48px rgb(0 0 0 / .35);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
}
@media (min-width: 480px) { :root { --gutter: 24px; } }
@media (min-width: 768px) { :root { --section: 80px; --t-display: 3.75rem; --t-h2: 3rem; } }
@media (min-width: 1100px) { :root { --section: 96px; --t-display: 4.5rem; --t-lead: 1.25rem; } }

/* ---------- 2. base ---------- */
*, *::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(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ul, ol, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
code, pre { font-family: var(--mono); }

h1 { font-size: var(--t-display); line-height: 1; font-weight: 500; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: var(--t-h2); line-height: 1.08; font-weight: 500; letter-spacing: -.03em; text-wrap: balance; }
h3 { font-size: var(--t-h3); line-height: 1.25; font-weight: 500; letter-spacing: -.02em; }
p { text-wrap: pretty; }

.lead { font-size: var(--t-lead); line-height: 1.4; color: var(--muted); letter-spacing: -.01em; }
.small { font-size: var(--t-small); line-height: 1.45; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 16px; font-size: var(--t-small); line-height: 1.45; font-weight: 500; letter-spacing: 0; color: var(--teal); }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 12px 24px; background: var(--navy); color: var(--cream); border-radius: var(--pill); }
.skip-link:focus { top: 12px; }
#top-sentinel { position: absolute; top: 0; height: 8px; width: 1px; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.band--navy :focus-visible { outline-color: var(--teal-bright); }

/* ---------- 3. grid: 12 columns, 1200px, 24px gaps ---------- */
.container { width: 100%; max-width: calc(1200px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.grid > * { grid-column: 1 / -1; min-width: 0; }
.section { padding-block: var(--section); }
.band--sand { background: var(--sand); }
.band--navy { background: var(--navy); color: var(--cream); }

/* ---------- 4. header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(247 247 244 / .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); box-shadow: 0 1px 0 transparent; transition: box-shadow 200ms ease; }
.site-header.is-stuck { box-shadow: 0 1px 0 var(--hair); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; border-radius: 8px; }
.brand__mark { width: 36px; height: 24px; }
.brand__text { font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.nav { display: none; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: var(--pill); font-size: var(--t-small); font-weight: 500; text-decoration: none; color: var(--muted); transition: color 150ms ease, background-color 150ms ease; }
.nav a[aria-current="true"] { color: var(--ink); background: var(--linen); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); background: var(--card); } }
@media (min-width: 768px) { .nav { display: block; position: absolute; left: 50%; transform: translateX(-50%); } }

/* ---------- 5. buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--pill); font-size: var(--t-body); font-weight: 600; letter-spacing: -.01em; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn--sm { height: 44px; padding: 0 16px; font-size: var(--t-small); }
.btn--primary { background: var(--navy); color: var(--cream); }
.btn--soft { background: var(--white); color: var(--ink); border-color: var(--hair); }
.btn--cream { background: var(--cream); color: var(--navy); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn .icon { width: 16px; height: 16px; }
.arr { display: inline-block; transition: transform 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--navy-hover); }
  .btn--soft:hover { background: var(--card); border-color: var(--field); }
  .btn--cream:hover { background: var(--white); }
  .btn:hover .arr { transform: translateX(2px); }
}

/* ---------- 6. hero ---------- */
.hero { padding-top: 32px; }
.hero__top { row-gap: 16px; align-items: end; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero__actions .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero__actions .btn { flex: 0 0 auto; } }
@media (min-width: 900px) {
  .hero { padding-top: 40px; }
  .hero__top h1 { grid-column: 1 / span 7; }
  .hero__side { grid-column: 8 / -1; }
  .hero__actions { margin-top: 16px; }
}
.stage { container-type: inline-size; margin-top: 32px; }
.stage__panel { position: relative; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; height: 480px; padding-top: 32px; background: var(--linen); border-radius: var(--r-panel); }
.laptop--hero { display: none; }
.phone--hero { --pw: 72cqw; }
@container (min-width: 640px) {
  .stage__panel { height: auto; align-items: flex-end; padding: 3.2cqw 0; }
  .laptop--hero { display: block; --lw: 66cqw; }
  .phone--hero { --pw: 20.5cqw; margin-left: -5cqw; margin-bottom: -.6cqw; position: relative; z-index: 2; }
  .phone--hero .phone__body { box-shadow: var(--shadow-phone); }
}

/* ---------- 7. devices ---------- */
/* Laptop: width comes from --lw; everything inside scales in em. */
.laptop { width: var(--lw, 100%); }
.laptop--hero { font-size: calc(var(--lw) / 54); }
.laptop__lid { position: relative; width: 91%; margin-inline: auto; padding: 2.5% 1.1% 1.1%; background: #16181D; border-radius: 1.3em 1.3em 0 0; box-shadow: inset 0 0 0 1px #33373F, var(--shadow-device); }
.laptop__cam { position: absolute; top: .55em; left: 50%; width: .35em; min-width: 3px; height: .35em; min-height: 3px; border-radius: 50%; background: #3A404B; transform: translateX(-50%); }
.laptop__screen { overflow: hidden; background: var(--white); border-radius: .3em; aspect-ratio: 16 / 10; }
.laptop__base { position: relative; height: 1.15em; background: #D5D3CC; border-radius: 0 0 1.2em 1.2em; box-shadow: inset 0 1px 0 #F1F0EB, inset 0 -2px 2px rgb(38 36 31 / .14), 0 16px 24px rgb(38 36 31 / .16); }
.laptop__base::after { content: ""; position: absolute; top: 0; left: 50%; width: 14%; height: 45%; background: #BBB9B1; border-radius: 0 0 .6em .6em; transform: translateX(-50%); }

/* Phone: --pw sets width; 1em = 1/23 of it. */
.phone { width: var(--pw, 300px); flex: none; font-size: calc(var(--pw, 300px) / 23); }
.phone__body { position: relative; aspect-ratio: 9 / 19.5; padding: .5em; background: #16181D; border-radius: 3.5em; box-shadow: inset 0 0 0 1px #3A3E46, var(--shadow-device); }
.phone__island { position: absolute; z-index: 3; top: 1.1em; left: 50%; width: 5.8em; height: 1.65em; background: #000; border-radius: var(--pill); transform: translateX(-50%); }
.phone__screen { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--bg); border-radius: 3em; }
.ph__status { flex: none; display: flex; justify-content: space-between; align-items: center; height: 3.4em; padding: .3em 2.2em 0; font-size: 1em; font-weight: 600; }
.ph__batt { position: relative; width: 1.7em; height: .85em; border: 1px solid var(--ink); border-radius: .25em; }
.ph__batt::after { content: ""; position: absolute; inset: 1px 30% 1px 1px; background: var(--ink); border-radius: .1em; }
.ph__home { position: absolute; bottom: .55em; left: 50%; width: 7.5em; height: .3em; background: var(--ink); border-radius: var(--pill); transform: translateX(-50%); }

/* ---------- 8. laptop app mock ---------- */
.win { display: flex; flex-direction: column; height: 100%; }
.win__bar { flex: none; display: flex; align-items: center; gap: 1em; height: 2.6em; padding: 0 1em; background: var(--card); box-shadow: inset 0 -1px 0 var(--hair); }
.dots { display: inline-flex; gap: .4em; flex: none; }
.dots i { width: .65em; height: .65em; border-radius: 50%; background: #C9C7BF; }
.win__url { flex: 0 1 24em; margin-inline: auto; transform: translateX(-1.4em); padding: .25em 1em; text-align: center; font-size: .85em; color: var(--muted); background: var(--white); border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--hair); }
.app { flex: 1; min-height: 0; display: grid; grid-template-columns: 12.5em minmax(0, 1fr); }
.app__side { padding: 1.2em .8em; background: var(--card); box-shadow: inset -1px 0 0 var(--hair); }
.app__brand { display: flex; align-items: center; gap: .5em; padding-inline: .4em; margin-bottom: 1.6em; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.app__brand img { width: 1.9em; height: auto; }
.app__cap { font-size: .85em; line-height: 1.3; color: var(--muted); }
.app__side > .app__cap { padding-inline: .5em; margin-bottom: .5em; }
.app__nav li { display: flex; align-items: center; gap: .6em; height: 2.2em; padding-inline: .6em; border-radius: var(--pill); color: var(--muted); }
.app__nav .is-on { background: var(--white); color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--hair); }
.dot { flex: none; width: .55em; height: .55em; border-radius: 50%; display: inline-block; background: #A8A69E; }
.dot--alert { background: var(--high); }
.dot--ok { background: var(--low); }
.dot--soon { background: #A8A69E; }
.app__main { display: flex; flex-direction: column; padding: 1.5em 1.8em; min-width: 0; }
.app__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1em; }
.app__title { font-size: 2.4em; line-height: 1.05; font-weight: 500; letter-spacing: -.035em; margin-top: .1em; }
.chip { display: inline-flex; align-items: center; gap: .45em; max-width: 100%; padding: .4em .85em .4em .65em; border-radius: var(--pill); font-size: .95em; font-weight: 500; line-height: 1.25; }
.chip .icon { width: 1.15em; height: 1.15em; }
.chip--alert { color: var(--high); background: var(--high-bg); }
.chip--clear { color: var(--low); background: var(--low-bg); }
.chip--soon { color: var(--muted); background: var(--linen); }
.pulse { width: 100%; height: 2.6em; margin-block: .5em; overflow: visible; flex: none; }
.pulse path { fill: none; stroke: var(--teal-line); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.app__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8em; }
.stat { padding: .85em 1em; background: var(--white); border-radius: .9em; box-shadow: inset 0 0 0 1px var(--hair); }
.stat b { display: block; margin-top: .2em; font-size: 1.55em; line-height: 1.15; font-weight: 500; letter-spacing: -.025em; white-space: nowrap; }
.app__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8em 1.6em; margin-top: 1.3em; }
.applist li { padding: .42em 0; box-shadow: inset 0 -1px 0 var(--hair); white-space: nowrap; overflow: hidden; }
.applist .app__cap { margin-bottom: .3em; }
.appdoc { display: flex; flex-direction: column; align-items: flex-start; padding: .85em 1em; background: var(--card); border-radius: .9em; }
.appdoc b { margin-top: .3em; font-weight: 500; }
.appdoc span { font-size: .85em; color: var(--muted); white-space: nowrap; }
.appdoc em { margin-top: .6em; padding: .3em 1em; font-style: normal; font-weight: 500; color: var(--cream); background: var(--navy); border-radius: var(--pill); }

/* ---------- 9. phone app mock (shared by hero and live demo) ---------- */
.ph__scroll { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 1em; padding: .8em 1.4em 2em; overflow: hidden auto; scrollbar-width: none; transition: opacity 120ms ease; }
.ph__scroll::-webkit-scrollbar { display: none; }
.ph__scroll.is-swap { opacity: 0; }
.ph__country { font-size: .9em; color: var(--muted); margin-bottom: -1em; }
.ph__title { font-size: 2.3em; line-height: 1.1; font-weight: 500; letter-spacing: -.035em; }
.ph__scroll > .chip { align-self: flex-start; }
.ph__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6em; }
.ph__card { padding: .8em .95em; background: var(--white); border-radius: 1.1em; box-shadow: inset 0 0 0 1px var(--hair); }
.ph__card b { display: block; font-size: 1.35em; line-height: 1.2; font-weight: 500; letter-spacing: -.025em; }
.ph__l { display: block; font-size: .9em; line-height: 1.3; color: var(--muted); }
.ph__sec { display: grid; gap: .5em; }
.mtags { display: flex; flex-wrap: wrap; gap: .35em; }
.mtags li { padding: .2em .7em; font-size: .92em; line-height: 1.45; background: var(--white); border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--hair); }
.empty { font-size: .95em; color: var(--muted); }
.ph__blank { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6em; padding: 1em; text-align: center; color: var(--muted); background: var(--card); border-radius: 1.1em; }
.ph__blank .icon { width: 1.8em; height: 1.8em; }
.ph__doc { display: flex; align-items: center; justify-content: space-between; gap: .6em; margin-top: auto; padding: .7em .7em .7em 1em; background: var(--white); border-radius: 1.1em; box-shadow: inset 0 0 0 1px var(--hair); }
.ph__doc > div { min-width: 0; }
.ph__doc b { display: block; font-weight: 500; line-height: 1.3; }
.ph__doc small { display: block; font-size: .85em; color: var(--muted); }
.ph__doc .tel { display: block; font-size: .85em; color: var(--muted); white-space: nowrap; }
.ph__call { flex: none; display: inline-flex; align-items: center; gap: .35em; padding: .55em .95em; font-weight: 500; color: var(--cream); background: var(--navy); border-radius: var(--pill); text-decoration: none; transition: background-color 150ms ease, transform 120ms var(--ease-out); }
.ph__call .icon { width: 1.05em; height: 1.05em; }
a.ph__call:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { a.ph__call:hover { background: var(--navy-hover); } }
/* the live Call button needs a real 44px touch target */
.lv .ph__call { min-height: 44px; }

/* ---------- 10. how it works ---------- */
.section--tight { padding-block: var(--section); }
.how__r { margin-top: 32px; }
.stats { display: flex; gap: 32px; margin-top: 24px; }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; max-width: 176px; }
.stats dd { font-size: var(--t-h2); line-height: 1.1; font-weight: 500; letter-spacing: -.03em; }
.stats dt { margin-top: 4px; font-size: var(--t-small); line-height: 1.45; color: var(--muted); }
.how__l .small { margin-top: 16px; }
.steps { border-top: 1px solid var(--hair); }
.steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 8px; align-items: baseline; padding-block: 24px; border-bottom: 1px solid var(--hair); }
.steps__n { font-size: var(--t-small); font-weight: 500; color: var(--teal); }
.steps p { grid-column: 2; margin-top: 4px; color: var(--muted); }
@media (min-width: 768px) { .steps li { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr); } .steps p { grid-column: 3; margin-top: 0; } }
@media (min-width: 1100px) {
  .how__l { grid-column: 1 / span 5; }
  .how__r { grid-column: 6 / -1; margin-top: 8px; }
}

/* ---------- 11. try it ---------- */
.rows { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.rows__head { display: none; }
.row { position: relative; display: block; }
.row input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.row__in { display: flex; align-items: center; min-height: 44px; padding: 0 16px; font-size: var(--t-small); font-weight: 500; background: var(--white); border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--hair); transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease; }
.row__st, .row__price { display: none; }
.row input:checked + .row__in { background: var(--navy); color: var(--cream); box-shadow: none; }
.row input:focus-visible + .row__in { outline: 2px solid var(--navy); outline-offset: 2px; }
.row:active .row__in { transform: scale(.99); }
.note { display: flex; gap: 8px; margin-top: 24px; font-size: var(--t-small); line-height: 1.45; color: var(--muted); }
.note .icon { width: 16px; height: 16px; margin-top: 2px; }
.try__r { margin-top: 32px; }
.showcase { --pw: min(300px, calc(100vw - 80px)); display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 32px 16px; background: var(--bg); border-radius: var(--r-panel); }
.showcase .phone { --pw: min(300px, calc(100vw - 80px)); }
.side { width: 100%; max-width: 300px; display: grid; gap: 24px; }
#demo-side { transition: opacity 120ms ease; }
#demo-side.is-swap { opacity: 0; }
.side h3 { margin-bottom: 8px; font-size: var(--t-small); line-height: 1.45; font-weight: 600; letter-spacing: 0; }
.side li { display: flex; gap: 8px; padding-block: 4px; font-size: var(--t-small); line-height: 1.45; color: var(--muted); }
.side .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--teal); }
.side .empty { font-size: var(--t-small); }
@media (min-width: 640px) {
  .showcase { flex-direction: row; align-items: flex-start; justify-content: center; padding: 32px; }
  .side { flex: 1 1 0; min-width: 0; padding-top: 48px; }
}
@media (hover: hover) and (pointer: fine) { .row:hover .row__in { background: var(--card); } .row input:checked:hover + .row__in, .row:hover input:checked + .row__in { background: var(--navy); } }
@media (min-width: 1100px) {
  .try__l { grid-column: 1 / span 5; }
  .try__r { grid-column: 6 / -1; margin-top: 0; }
  .rows { display: block; margin-top: 32px; }
  .rows__head, .row__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 88px; column-gap: 8px; align-items: center; padding-inline: 16px; }
  .rows__head { padding-bottom: 8px; font-size: var(--t-small); color: var(--muted); }
  .rows__head span:last-child, .row__price { text-align: right; }
  .row + .row { margin-top: 4px; }
  .row__in { min-height: 48px; font-size: var(--t-body); background: transparent; box-shadow: none; }
  .row__name { font-weight: 500; }
  .row__st { display: flex; align-items: center; gap: 8px; font-size: var(--t-small); font-weight: 400; color: var(--muted); white-space: nowrap; }
  .row__price { display: block; font-size: var(--t-small); font-weight: 400; color: var(--muted); }
  .row input:checked + .row__in .row__st, .row input:checked + .row__in .row__price { color: var(--cream); }
  .row input:checked + .row__in .dot--alert { background: #FF9D94; }
  .row input:checked + .row__in .dot--ok { background: #8ED8AB; }
  .row:hover .row__in { background: rgb(38 36 31 / .05); }
}

/* ---------- 12. about ---------- */
.about dt { margin-bottom: 8px; font-size: var(--t-small); line-height: 1.45; font-weight: 500; color: var(--teal); }
.about__big dd { font-size: 1.875rem; line-height: 1.15; font-weight: 500; letter-spacing: -.03em; text-wrap: pretty; }
.about__two { display: grid; gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--hair); }
.about__two dd { font-size: var(--t-lead); line-height: 1.4; color: var(--ink); letter-spacing: -.01em; }
@media (min-width: 768px) {
  .about__big dd { font-size: var(--t-h2); max-width: 1000px; }
  .about__two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
}

/* ---------- 13. API ---------- */
.band--navy .eyebrow { color: var(--on-navy); }
.badge { padding: 2px 8px; font-size: .75rem; line-height: 1.4; font-weight: 500; color: var(--navy); background: var(--teal-bright); border-radius: var(--pill); }
.api__head .btn { margin-top: 24px; }
.flow { margin-top: 32px; border-top: 1px solid var(--line-navy); }
.flow li { display: flex; align-items: baseline; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line-navy); }
.flow span { font-size: var(--t-small); font-weight: 500; color: var(--teal-bright); }
.api__body { margin-top: 48px; row-gap: 40px; }
.api__eps h3 { margin-bottom: 16px; font-size: var(--t-body); line-height: 1.5; font-weight: 600; letter-spacing: 0; }
.endpoints { border-top: 1px solid var(--line-navy); }
.endpoints li { padding-block: 16px; border-bottom: 1px solid var(--line-navy); }
.ep { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ep__m { font-family: var(--mono); font-size: .75rem; font-weight: 500; color: var(--teal-bright); }
.ep code { font-size: var(--t-small); color: var(--cream); overflow-wrap: anywhere; min-width: 0; }
.ep__d { margin-top: 4px; font-size: var(--t-small); color: var(--on-navy); }
@media (min-width: 1100px) {
  .api__head { grid-column: 1 / span 7; }
  .flow { grid-column: 9 / -1; margin-top: 0; align-self: end; }
  .api__device { grid-column: 1 / span 8; }
  .api__eps { grid-column: 9 / -1; }
}

/* Live laptop: under 1100px the frame drops away and the code window stands alone. */
.laptop--live { font-size: 13px; }
.laptop--live .laptop__lid { width: 100%; padding: 0; background: none; box-shadow: none; }
.laptop--live .laptop__cam, .laptop--live .laptop__base { display: none; }
.laptop--live .laptop__screen { aspect-ratio: auto; background: var(--navy-deep); border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--code-border); }
@media (min-width: 1100px) {
  .laptop--live .laptop__lid { width: 92%; padding: 2.4% 1.2% 1.2%; background: #16181D; border-radius: 1.3em 1.3em 0 0; box-shadow: inset 0 0 0 1px #3A3F4A, var(--shadow-dark); }
  .laptop--live .laptop__cam { display: block; }
  .laptop--live .laptop__base { display: block; background: #C9C7BF; box-shadow: inset 0 1px 0 #ECEAE4, 0 16px 32px rgb(0 0 0 / .35); }
  .laptop--live .laptop__screen { aspect-ratio: 3 / 2; border-radius: .3em; box-shadow: none; }
  .cw { height: 100%; }
}
.cw { display: flex; flex-direction: column; color: var(--code-text); min-width: 0; }
.cw :focus-visible { outline-color: var(--teal-bright); outline-offset: -2px; }
.cw__chrome { flex: none; display: flex; align-items: center; gap: 12px; height: 32px; padding: 0 16px; border-bottom: 1px solid var(--code-border); }
.cw__chrome .dots i { width: 8px; height: 8px; background: #34507C; }
.cw__title { flex: 1; margin-right: 40px; text-align: center; font-family: var(--mono); font-size: .75rem; color: var(--code-comment); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw__bar { flex: none; display: flex; justify-content: space-between; border-bottom: 1px solid var(--code-border); }
.cw__tabs { display: flex; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cw__tabs::-webkit-scrollbar { display: none; }
.cw__tab { flex: none; min-height: 44px; padding: 0 16px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: var(--t-small); font-weight: 500; color: var(--code-comment); cursor: pointer; transition: color 150ms ease; }
.cw__tab[aria-selected="true"] { color: var(--cream); border-bottom-color: var(--teal-bright); }
.cw__copy { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; border-radius: var(--pill); color: var(--code-comment); cursor: pointer; transition: color 150ms ease; }
.cw__copy .icon { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .cw__tab:hover, .cw__copy:hover { color: var(--cream); } }
.cw pre { margin: 0; padding: 16px; overflow-x: auto; font-size: .8125rem; line-height: 1.6; tab-size: 2; }
.cw code { white-space: pre; }
.cw__pane { flex: none; }
.cw__run { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px 16px; border-block: 1px solid var(--code-border); }
.cw__status { font-family: var(--mono); font-size: .8125rem; color: var(--code-key); }
.cw__sample { margin-left: auto; padding: 2px 8px; font-size: .75rem; color: var(--on-navy); border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--code-border); }
.cw__resp { flex: 1; min-height: 0; overflow: auto; }
.cw__resp pre { min-height: 120px; max-height: 320px; overflow: visible; }
@media (min-width: 1100px) { .cw__resp pre { max-height: none; min-height: 0; } }
.cw__resp code.is-typing::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: text-bottom; background: var(--teal-bright); }
.tk-c { color: var(--code-comment); }
.tk-k { color: var(--code-key); }
.tk-s { color: var(--code-string); }
.tk-n { color: var(--code-num); }
.tk-w { color: var(--code-key); }

/* ---------- 14. FAQ ---------- */
.qa { display: grid; column-gap: 24px; margin-top: 32px; }
.qa li { padding-block: 24px; border-top: 1px solid var(--hair); }
.qa h3 { font-size: var(--t-body); line-height: 1.5; font-weight: 600; letter-spacing: -.01em; }
.qa p { margin-top: 4px; color: var(--muted); }
@media (min-width: 768px) { .qa { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .faq__h { grid-column: 1 / span 4; }
  .qa { grid-column: 5 / -1; margin-top: 0; }
  .qa li:nth-child(-n+2) { padding-top: 0; border-top: 0; }
}

/* ---------- 15. waitlist ---------- */
.wlsec { padding-bottom: var(--section); }
.wlpanel { display: grid; gap: 32px; padding: 32px 24px; background: var(--sand); border-radius: var(--r-panel); }
.wlpanel .lead { margin-top: 8px; }
.wlpanel > * { min-width: 0; }
.wl { padding: 24px; background: var(--white); border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--hair); }
@media (min-width: 900px) {
  .wlpanel { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: 64px 0; align-items: center; }
  .wlpanel__copy { grid-column: 2 / span 5; }
  .wl { grid-column: 7 / span 5; padding: 32px; }
}
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: var(--t-small); line-height: 1.45; font-weight: 500; }
.opt { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"] { width: 100%; height: 48px; padding: 0 24px; font-size: var(--t-body); background: var(--white); border: 1px solid var(--field); border-radius: var(--pill); transition: border-color 150ms ease, box-shadow 150ms ease; }
input[type="text"]:hover, input[type="email"]:hover { border-color: var(--ink); }
input[type="text"]:focus, input[type="email"]:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgb(15 42 82 / .16); }
input[aria-invalid="true"], input[aria-invalid="true"]:hover { border-color: var(--high); }
input[aria-invalid="true"]:focus { border-color: var(--high); box-shadow: 0 0 0 3px rgb(179 38 30 / .14); }
.field__error { display: none; align-items: center; gap: 8px; padding-left: 8px; font-size: var(--t-small); color: var(--high); }
.field__error.is-visible { display: flex; }
.field__error .icon { width: 16px; height: 16px; }
.form .btn { width: 100%; margin-top: 8px; }
.form__note { font-size: var(--t-small); color: var(--muted); text-align: center; }
.thanks { display: none; outline: none; text-align: center; padding-block: 32px; }
.thanks .icon { width: 32px; height: 32px; margin: 0 auto 16px; color: var(--low); }
.thanks p { margin-top: 4px; color: var(--muted); }
.wl.is-done .form { display: none; }
.wl.is-done .thanks { display: block; }

/* ---------- 16. footer + phone tab bar ---------- */
.site-footer { padding-block: 48px 32px; border-top: 1px solid var(--hair); }
.footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.footer__brand { grid-column: 1 / -1; }
.footer__logo { display: inline-block; border-radius: 8px; }
.footer__logo img { width: 160px; height: auto; }
.footer__col h3 { margin-bottom: 4px; font-size: var(--t-small); line-height: 1.45; font-weight: 600; letter-spacing: 0; }
.footer__col a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-small); color: var(--muted); text-decoration: none; transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .footer__col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }
.footer__legal { display: grid; gap: 8px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--hair); font-size: var(--t-small); line-height: 1.45; color: var(--muted); }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / span 6; }
  .footer__col { grid-column: span 2; }
  .footer__legal { grid-template-columns: minmax(0, 1fr) auto; gap: 24px; margin-top: 48px; }
}

.tabbar { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); background: var(--bg); box-shadow: 0 -1px 0 var(--hair); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; font-size: .75rem; line-height: 1.3; font-weight: 500; text-decoration: none; color: var(--muted); transition: color 150ms ease; }
.tabbar a[aria-current="true"] { color: var(--navy); }
.tabbar a:focus-visible { outline-offset: -4px; }
@media (max-width: 767px) { body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); } html { scroll-padding-bottom: 72px; } }
@media (min-width: 768px) { .tabbar { display: none; } }

/* ---------- 17. motion: one shot, in sync, restrained ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 500ms var(--ease-out) calc(var(--i, 0) * 60ms) both; }
.stage__panel { animation: rise 600ms var(--ease-out) 120ms both; }
.laptop--hero { animation: rise 700ms var(--ease-out) 200ms both; }
.phone--hero { animation: rise 700ms var(--ease-out) 320ms both; }

@keyframes draw { from { clip-path: inset(-8px 100% -8px 0); } to { clip-path: inset(-8px 0 -8px 0); } }
.pulse--draw { animation: draw 1200ms cubic-bezier(.65, 0, .35, 1) 700ms both; }

.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .stage__panel, .laptop--hero, .phone--hero, .pulse--draw { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
  .btn:active, a.ph__call:active { transform: none; }
}
