/* Flight Focus Software — shared styles
   Layout idea: a bright, open ramp in daylight. Clean white surfaces, near-black type,
   one beacon-amber brand accent; each app owns its icon colour. One night band for contrast. */
:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f2f3f6;
  --line: rgba(17, 24, 39, 0.08);
  --text: #111418;
  --muted: #5d6573;
  --accent: #d97a00;       /* beacon amber: brand */
  --fx: #2457d6;           /* FlightXtract: icon blue */
  --me: #0f9f86;           /* Meridian Elevate: icon teal */
  --ctp: #f3c332;          /* Clear to Push: airfield-sign yellow (fills) */
  --ctp-ink: #9a6a00;      /* Clear to Push: yellow for text on white */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Geist", sans-serif;
  --gutter: clamp(18px, 4vw, 48px);
  --max: 1200px;
  --radius: 28px;
  --shadow: 0 1px 2px rgba(17,24,39,.04), 0 18px 50px -24px rgba(17,24,39,.22);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
/* A night band: reuses every component with dark tokens */
.dark {
  --bg: #05070b; --surface: #0d1118; --surface-2: #141a24; --line: rgba(220,232,255,.1);
  --text: #f2f4f8; --muted: #8d97a8; --shadow: none;
  background: var(--bg); color: var(--text); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--body);
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html, body { overflow-x: clip; }
main { overflow-x: clip; }
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; font-variation-settings: "wdth" 112; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ctp); color: #000; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 62ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.soft { color: var(--muted); }

/* Type scale */
.t-hero { font-size: clamp(3.1rem, 9.2vw, 8.4rem); }
.t-1 { font-size: clamp(2.5rem, 6.4vw, 5.6rem); }
.t-2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.t-3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.1; }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.5; color: var(--muted); }
.lede strong { color: var(--text); font-weight: 600; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(251, 251, 253, 0.74);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line); transition: transform .45s var(--ease);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; font-variation-settings: "wdth" 115; }
.brand svg, .brand .logo { width: 28px; height: 28px; flex: none; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(17,24,39,.05); }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(17,24,39,.07); }
.nav-links .ns, .nav-foot { display: none; }
.nav-toggle { display: none; position: relative; z-index: 2; background: none; border: 0; width: 44px; height: 44px; margin-right: -10px; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform .45s cubic-bezier(.7,0,.2,1), top .45s cubic-bezier(.7,0,.2,1); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .brand { position: relative; z-index: 2; }
  .nav.is-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; border-bottom-color: transparent; }
  .nav.is-open .nav-toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
  .nav.is-open .nav-toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }
  .nav-links {
    position: fixed; inset: 0; z-index: 1; height: 100vh; height: 100dvh;
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: calc(84px + env(safe-area-inset-top, 0px)) 28px calc(28px + env(safe-area-inset-bottom, 0px));
    background: rgba(251, 251, 253, .94); -webkit-backdrop-filter: saturate(180%) blur(28px); backdrop-filter: saturate(180%) blur(28px);
    clip-path: circle(0px at calc(100% - 38px) 28px); visibility: hidden;
    transition: clip-path .7s cubic-bezier(.7,0,.2,1), visibility 0s linear .7s;
  }
  .nav.is-open .nav-links { clip-path: circle(150vmax at calc(100% - 38px) 28px); visibility: visible; transition: clip-path .7s cubic-bezier(.7,0,.2,1), visibility 0s; }
  .nav-links a { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--text); background: none;
    opacity: 0; transform: translateY(18px); transition: opacity .35s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
  .nav-links a:hover, .nav-links a[aria-current="page"] { background: none; }
  .nav-links .nl { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 8vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.05; font-variation-settings: "wdth" 110; }
  .nav-links .ns { display: block; font-size: 14px; color: var(--muted); }
  .nav-links a[aria-current="page"] .nl { color: var(--accent); }
  .nav-foot { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 24px; font-size: 13px; color: var(--muted);
    opacity: 0; transform: translateY(18px); transition: opacity .35s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
  .nav-foot span { font-family: var(--mono); color: var(--text); }
  .nav-foot a { padding: 0; border: 0; font-size: 13px; display: inline; opacity: 1; transform: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
  .nav.is-open .nav-links a, .nav.is-open .nav-foot { opacity: 1; transform: none; transition-delay: calc(.18s + var(--i, 0) * .06s); }
  .nav.is-open .nav-foot a { transition-delay: 0s; }
  body.menu-open { overflow: hidden; }
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); pointer-events: none; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 500; font-size: 16px; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .2s, border-color .2s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: 0 10px 24px -12px rgba(17,24,39,.5); }
.btn-ghost { border-color: rgba(17,24,39,.18); color: var(--text); background: var(--surface); }
.dark .btn-ghost { border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { border-color: rgba(17,24,39,.45); }
.link-arrow { color: var(--accent); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "›"; font-size: 1.25em; line-height: 1; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }
.store { display: inline-flex; flex: none; line-height: 0; border-radius: 9px; transition: transform .25s var(--ease), opacity .2s; }
.store:hover { transform: translateY(-2px); }
.store img { height: 54px; width: auto; display: block; }

/* ---------- Sections ---------- */
section { position: relative; }
.pad { padding: clamp(88px, 13vw, 168px) 0; }
.pad-sm { padding: clamp(56px, 8vw, 96px) 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.band { background: var(--surface-2); }

/* ---------- Motion ---------- */
/* Reveal: JS hides only elements that start below the fold, so the first frame is complete */
[data-reveal] { transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease); }
.is-pending { opacity: 0.001; transform: translateY(48px); }
[data-reveal="scale"].is-pending { transform: scale(.9); }
[data-reveal="left"].is-pending { transform: translateX(-60px); }
[data-reveal="right"].is-pending { transform: translateX(60px); }
[data-reveal="blur"].is-pending { filter: blur(12px); transform: translateY(24px); }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
/* Load intro: words rise into place */
.rise > span { display: inline-block; animation: rise .95s var(--ease) both; }
.rise > span:nth-child(2) { animation-delay: .08s; } .rise > span:nth-child(3) { animation-delay: .16s; }
.rise > span:nth-child(4) { animation-delay: .24s; } .rise > span:nth-child(5) { animation-delay: .32s; }
.rise > span:nth-child(6) { animation-delay: .4s; }
@keyframes rise { from { transform: translateY(.45em); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }
.fade-up { animation: rise 1s var(--ease) .35s both; }
/* Word-fill statement: words light up as you scroll */
.words { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 4.6vw, 4rem); letter-spacing: -0.03em; line-height: 1.08; font-variation-settings: "wdth" 108; text-wrap: balance; }
.words .w { color: rgba(17,24,39,.16); transition: color .35s; }
.dark .words .w { color: rgba(242,244,248,.16); }
.words .w.on { color: var(--text); }
.words .w.hl.on { color: var(--accent); }

/* ---------- Device frames ---------- */
.phone {
  --w: 300px; width: var(--w); padding: calc(var(--w) * .036); border-radius: calc(var(--w) * .165);
  background: linear-gradient(145deg, #3a3f48, #121519 40%, #2b3038);
  box-shadow: 0 0 0 1.5px #4a505b inset, 0 14px 28px -18px rgba(17,24,39,.35);
  position: relative; margin: 0 auto; flex: none;
}
.screen { position: relative; width: 100%; aspect-ratio: 1179 / 2556; border-radius: calc(var(--w) * .13); overflow: hidden; background: #000; font-family: var(--ui); color: #f5f5f7; font-size: 13px; line-height: 1.3; container-type: inline-size; }
.island { position: absolute; top: 1.3%; left: 50%; translate: -50% 0; width: 32%; height: 4.3%; border-radius: 99px; background: #000; z-index: 6; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* status bar over real screenshots */
.sbar { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: 6.9%; display: flex; align-items: center; justify-content: space-between; padding: 0 9% 0 11%; font-family: var(--ui); font-weight: 600; font-size: 4.3cqw; letter-spacing: -.01em; color: #fff; }
.sbar.ink { color: #111; }
.sbar svg { height: 3.4cqw; width: auto; }
.sbar .ic { display: flex; gap: 1.6cqw; align-items: center; }
.homebar { position: absolute; z-index: 5; bottom: 1.1%; left: 50%; translate: -50% 0; width: 35%; height: .55%; border-radius: 9px; background: rgba(255,255,255,.85); }
.homebar.ink { background: rgba(0,0,0,.8); }
/* mocked iOS screens (FlightXtract, Meridian) */
.sb { display: flex; justify-content: space-between; padding: 14px 26px 0; font-size: 13px; font-weight: 600; height: 46px; position: relative; z-index: 4; }
.sb i { font-style: normal; letter-spacing: 1px; font-size: 11px; opacity: .9; }
.scr { position: absolute; inset: 46px 0 0 0; padding: 6px 16px 16px; display: flex; flex-direction: column; gap: 10px; transition: opacity .55s var(--ease), transform .6s var(--ease); }
.scr h5 { margin: 4px 0 2px; font-family: var(--ui); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.scr .sub { font-size: 12px; color: #8e8e93; }
.card { background: #1c1c1e; border-radius: 14px; padding: 12px 14px; }
.card-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: .5px solid #38383a; font-size: 13px; }
.card-row:last-child { border-bottom: 0; }
.card-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; text-transform: uppercase; }
.seg { display: flex; background: #1c1c1e; border-radius: 9px; padding: 2px; font-size: 12px; font-weight: 600; }
.seg span { flex: 1; text-align: center; padding: 6px 0; border-radius: 7px; color: #8e8e93; }
.seg span.on { background: #3a3a3c; color: #fff; }
.example { position: absolute; right: 14px; bottom: 14px; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #6c6c70; }

.ipad {
  width: 100%; padding: 1.5%; border-radius: 3.2% / 4.6%;
  background: linear-gradient(145deg, #3a3f48, #121519 40%, #2b3038);
  box-shadow: 0 0 0 1.5px #4a505b inset, 0 14px 28px -18px rgba(17,24,39,.35);
}
.ipad .screen { aspect-ratio: 2360 / 1640; border-radius: 1.9% / 2.7%; container-type: inline-size; }
.ipad .sbar { height: 2.9%; padding: 0 2.4%; font-size: 1.15cqw; }
.ipad .sbar svg { height: 1cqw; }
.ipad .sbar .ic { gap: .5cqw; }
.ipad .homebar { width: 22%; height: .7%; bottom: .9%; }

/* ---------- Page hero (app pages) ---------- */
.page-hero { padding: calc(56px + clamp(48px, 8vw, 110px)) 0 clamp(56px, 8vw, 100px); overflow: hidden; isolation: isolate; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-device { transform: perspective(1400px) rotateX(calc(var(--q, 0) * 18deg)) scale(calc(1 - var(--q, 0) * .12)) translateY(calc(var(--q, 0) * -40px)); transform-origin: 50% 0; }
.app-id { display: flex; align-items: center; gap: 16px; }
.app-id .icon { width: 72px; height: 72px; border-radius: 17px; flex: none; box-shadow: 0 12px 30px -12px var(--glow, rgba(17,24,39,.4)); object-fit: cover; }
.app-id b { display: block; font-family: var(--display); font-size: 22px; letter-spacing: -0.01em; font-variation-settings: "wdth" 110; }
.app-id span { color: var(--muted); font-size: 15px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.meta-row span::before { content: "— "; opacity: .4; }
.meta-row span:first-child::before { content: ""; }

/* ---------- Tiles / bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; min-height: 220px; box-shadow: var(--shadow); }
.tile h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); letter-spacing: -0.02em; line-height: 1.1; }
.tile p { color: var(--muted); font-size: 16px; }
.tile .k { font-family: var(--mono); font-size: 12px; color: var(--tint, var(--accent)); letter-spacing: .1em; text-transform: uppercase; }
.tile .big { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 6vw, 4.8rem); letter-spacing: -0.04em; line-height: .9; color: var(--tint, var(--text)); font-variation-settings: "wdth" 105; font-variant-numeric: tabular-nums; }
a.tile { transition: transform .35s var(--ease), box-shadow .35s; }
a.tile:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(17,24,39,.04), 0 30px 60px -28px rgba(17,24,39,.3); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .span-2, .span-3 { grid-column: span 1; } .span-4, .span-6 { grid-column: span 2; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .span-2, .span-3, .span-4, .span-6 { grid-column: span 1; } }

/* ---------- Sticky feature scroller ---------- */
.scroller { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 96px); }
.scroller-media { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; justify-content: center; }
.scroller-steps { display: flex; flex-direction: column; }
.step { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 40px 0; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.step:not(.is-active) { opacity: .25; transform: scale(.97); transform-origin: left center; }
.step .num { font-family: var(--mono); font-size: 13px; color: var(--tint, var(--accent)); letter-spacing: .1em; }
.step h3 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
.step ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); }
.step li { padding-left: 22px; position: relative; }
.step li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 1.5px; background: var(--tint, var(--accent)); }
@media (max-width: 860px) {
  .scroller { grid-template-columns: 1fr; gap: 0; }
  .scroller-media { order: -1; top: 56px; height: auto; padding: 12px 0 28px; z-index: 2; background: linear-gradient(var(--bg) 85%, transparent); }
  .scroller-media .phone { --w: 300px; zoom: .62; }
  .step { min-height: 62vh; justify-content: flex-start; padding-top: 16px; }
}

/* ---------- Pinned horizontal gallery ---------- */
.hscroll { height: 400vh; }
.hscroll-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 40px); }
.hscroll-track { display: flex; align-items: flex-end; gap: clamp(28px, 5vw, 72px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.hscroll-track figure { margin: 0; display: flex; flex-direction: column; gap: 16px; align-items: center; flex: none; }
.hscroll-track figcaption { font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hscroll-bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; width: min(320px, 60vw); margin: 0 auto; }
.hscroll-bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Counters ---------- */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.counters > div { background: var(--surface); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 8px; }
.counters b { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.04em; line-height: .95; font-variation-settings: "wdth" 106; font-variant-numeric: tabular-nums; }
.counters span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .counters { grid-template-columns: 1fr 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { border-radius: 30px; padding: clamp(28px, 4vw, 48px) clamp(28px, 5vw, 60px); max-width: 980px; margin: 0 auto; background: radial-gradient(120% 140% at 0% 0%, rgba(217,122,0,.12), transparent 55%), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem) !important; }
.cta-band .lede { font-size: 1.02rem; }
.cta-band .app-id .icon { width: 56px; height: 56px; border-radius: 13px; }
.cta-band .app-id b { font-size: 18px; }
.cta-band .stack { gap: 14px; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }
@media (min-width: 801px) { .cta-band > .stack:last-child { align-items: center; text-align: center; } .cta-band > .stack:last-child .actions { justify-content: center; } }
.email-chip { font-family: var(--mono); font-size: 15px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); padding: 10px 14px; border-radius: 10px; display: inline-block; user-select: all; word-break: break-all; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 14px; color: var(--muted); background: var(--surface-2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot h4 { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; font-variation-settings: normal; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a:hover { color: var(--text); }
.foot-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 12.5px; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: span 2; } }


/* ---------- Phones: centre everything ---------- */
@media (max-width: 640px) {
  main .wrap, .foot .wrap { text-align: center; }
  .stack, .stack-lg, .hero-copy, .step, .tile, .foot-grid > div { align-items: center; }
  .actions, .meta-row, .links, .chips, .wx, .foot-base, .readout { justify-content: center; }
  .app-id { justify-content: center; text-align: left; }
  .eyebrow { justify-content: center; }
  main p, .lede, .measure { margin-left: auto; margin-right: auto; }
  .ticks, .step ul, .prose, .faq, .controls, .readouts, .rows, .toc { text-align: left; }
  .ticks, .step ul { max-width: 36ch; margin-left: auto; margin-right: auto; }
  .step:not(.is-active) { transform-origin: center; }
  main .story-grid { grid-template-columns: 1fr; }
  main .story-rail { display: none; }
  .story-list li { text-align: center; }
  .story-list h2 { transform-origin: center; }
  .foot ul { justify-items: center; }
  .foot-grid { grid-template-columns: 1fr; text-align: center; }
  .foot-grid > :first-child { grid-column: auto; }
  .foot .brand { justify-content: center; }
  .cta-band { text-align: center; justify-items: center; }
}


/* ---------- Small phones ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .prose p, .prose li, .faq .a p, .controls p { margin-left: 0; margin-right: 0; }
  .meta-row { gap: 6px 14px; }
  .meta-row span::before { content: none; }
  .meta-row span + span::before { content: "·"; margin-right: 14px; opacity: .5; }
  .tile { padding: 22px 20px; border-radius: 22px; }
  .cta-band { padding: 32px 20px; border-radius: 26px; gap: 24px; }
  .email-chip { font-size: 13px; padding: 9px 12px; word-break: normal; overflow-wrap: normal; }
  .btn { height: 46px; padding: 0 20px; font-size: 15px; }
  .actions { gap: 10px; }
  .pad { padding: clamp(64px, 16vw, 96px) 0; }
  .pad-sm { padding: 48px 0; }
  .lede { font-size: 1.05rem; }
  .eyebrow { font-size: 11.5px; letter-spacing: .12em; }
  .hscroll-track { gap: 28px; }
  .hscroll-track .ipad { width: min(560px, 150vw); }
  .nav-inner { height: 52px; }
  .brand { font-size: 15px; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .brand span { font-size: 14px; }
}


/* ---------- iPhone type scale ---------- */
@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.5; }
  h1.t-hero, .t-hero { font-size: clamp(2.3rem, 10.5vw, 2.9rem) !important; }
  .t-1 { font-size: clamp(1.85rem, 8.4vw, 2.3rem) !important; }
  .t-2 { font-size: clamp(1.55rem, 7vw, 1.9rem) !important; }
  .t-3 { font-size: 1.25rem; }
  .lede { font-size: .98rem; line-height: 1.5; }
  .words { font-size: clamp(1.45rem, 6.6vw, 1.8rem) !important; }
  .step h3 { font-size: clamp(1.45rem, 6.6vw, 1.8rem); }
  .step ul, .step li { font-size: 14.5px; }
  .tile h3 { font-size: 1.15rem; }
  .tile p, .tile li { font-size: 14.5px; }
  .tile .big { font-size: 2.6rem; }
  .counters b { font-size: 2rem; }
  .app-id b { font-size: 18px; }
  .app-id span { font-size: 13px; }
  .app-id .icon { width: 56px; height: 56px; border-radius: 13px; }
  .meta-row { font-size: 11.5px; }
  .foot { font-size: 13px; }
  .prose h2 { font-size: 1.3rem; }
  .prose p, .prose li { font-size: 15px; }
  .faq summary { font-size: 1.02rem; }
  .hscroll-track figcaption { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .is-pending { opacity: 1; transform: none; filter: none; }
  .words .w { color: var(--text); }
}
