/* landing.css: site.html only (2026-09-23 redesign, Chris: "build 1 to 7").
 *
 * Loaded after cpi-elite.css and pedro-float.css. Adds the hero's phone with Pedro's stage, the cream
 * sheet (the app's own palette, lib/theme.ts in CPI-APP) with the scroll-lit statement and the cards
 * that stack, the dark sheet the track record rides on, the safeguards, the app section with its phone,
 * the FAQ, and the phones-only "Get the app" pill and sheet. The motion lives in Assets/js/landing.js;
 * every effect has a prefers-reduced-motion fallback at the foot of this file.
 */

:root {
  --cream:      #FAF8F5;   /* CPI-APP Colors.bg */
  --cream-2:    #F2EEE5;   /* Colors.bgDeep */
  --cream-line: #e8e4dc;   /* Colors.border */
  --ink:        #1B2A4A;   /* Colors.navy */
  --ink-2:      #4a5670;   /* body copy on cream, 6.9:1 */
  --ink-3:      #5b6576;   /* small copy on cream, 5.5:1 */
  --cream-gold: #8a6a1c;   /* gold that reads on cream, 4.8:1 (the app's #C4A962 is 2.2:1) */
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ================================================================ HERO */
.hero { min-height: 100vh; min-height: 100svh; justify-content: center; padding: 124px 0 84px; }
.hero-layout {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 48px; align-items: center;
}
.hero-lead { margin-top: 26px; max-width: 540px; }
.hero-lead strong { font-size: 19px; line-height: 1.6; }
.hero-actions { margin-top: 36px; }
.hero-copy .hero-stats-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px;
  margin: 48px 0 0; max-width: 560px; border-bottom: none;
}
.hero-copy .hero-stat { padding: 22px 0 20px; margin-right: 0; border-bottom: 1px solid var(--border); }
.hero-copy .hero-stat-val { font-size: 38px; font-variant-numeric: tabular-nums; }

/* The entrance, in CSS so the page never depends on the script to show itself. */
@keyframes lp-rise { from { opacity: 0; transform: translateY(56px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes lp-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: lp-up .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero .phone-stage { animation: lp-rise 1.2s cubic-bezier(.2, .7, .2, 1) .25s both; }
.hero-device-foot { animation: lp-up .9s ease .95s both; }

.hero-device { position: relative; display: flex; flex-direction: column; align-items: center; --glow: 255,156,56; }
.hero-device::before {
  content: ''; position: absolute; left: 50%; top: 40%; width: 560px; height: 560px; max-width: 120vw;
  transform: translate(-50%, -50%); pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(var(--glow), .17) 0%, rgba(var(--glow), .06) 36%, transparent 66%);
  transition: background .6s ease;
}
.hero-device > * { position: relative; z-index: 1; }
.hero-device-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 24px; }
.pd-ask { gap: 10px; }
.pd-note { font-size: 11.5px; color: var(--muted); text-align: center; max-width: 300px; line-height: 1.55; }

/* ================================================================ PHONE FRAME (both phones) */
.phone {
  position: relative; width: 292px; aspect-ratio: 292 / 608; border-radius: 50px; padding: 10px; flex: none;
  background: linear-gradient(150deg, #3b404b 0%, #14171d 16%, #07080b 50%, #1b1e25 84%, #3b404b 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .14),
    inset 0 0 0 3px #050608,
    0 60px 100px -50px rgba(0, 0, 0, .95),
    0 24px 48px -24px rgba(0, 0, 0, .7);
}
.phone::before, .phone::after {           /* the side buttons */
  content: ''; position: absolute; width: 3px; border-radius: 2px; background: #1c1f26;
}
.phone::before { left: -3px; top: 120px; height: 58px; box-shadow: 0 74px 0 #1c1f26; }
.phone::after  { right: -3px; top: 150px; height: 84px; }
.phone-screen { position: relative; height: 100%; border-radius: 41px; overflow: hidden; background: #02060c; isolation: isolate; }
.phone-island {
  position: absolute; top: 11px; left: 50%; width: 92px; height: 27px; margin-left: -46px;
  border-radius: 20px; background: #000; z-index: 20;
}
.phone-status {
  position: absolute; top: 15px; left: 30px; right: 24px; z-index: 19;
  display: flex; justify-content: space-between; align-items: center;
  font: 600 13px/1 -apple-system, 'SF Pro Text', var(--sans); color: #fff; letter-spacing: .01em;
}
.phone-status .phone-icons { display: flex; gap: 5px; align-items: center; }
.phone-status svg { fill: currentColor; }
.phone-status.is-dark { color: var(--ink); }

/* ================================================================ PEDRO'S STAGE (argus web/src/stage.js, in a phone) */
.phone-stage { --sa: 255,156,56; --sb: 255,224,178; }
.pd-stage {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  padding: 50px 14px 16px; color: rgb(var(--sb)); font-family: var(--sans);
  background:
    radial-gradient(ellipse at 50% 36%, rgba(8, 18, 34, .55) 0%, rgba(2, 6, 12, .96) 70%),
    linear-gradient(rgba(var(--sa), .045) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, rgba(var(--sa), .045) 1px, transparent 1px) 0 0 / 26px 26px,
    #02060c;
}
.pd-hud i { position: absolute; width: 20px; height: 20px; border: 0 solid rgba(var(--sa), .5); }
.pd-hud .tl { top: 46px; left: 12px; border-width: 1px 0 0 1px; }
.pd-hud .tr { top: 46px; right: 12px; border-width: 1px 1px 0 0; }
.pd-hud .bl { bottom: 12px; left: 12px; border-width: 0 0 1px 1px; }
.pd-hud .br { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }
.pd-top { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-top: 8px; }
.pd-mark { font-size: 12px; font-weight: 700; letter-spacing: .62em; padding-left: .62em; color: rgb(var(--sa)); text-shadow: 0 0 14px rgba(var(--sa), .55); }
.pd-status { font-size: 8.5px; font-weight: 600; letter-spacing: .32em; padding-left: .32em; text-transform: uppercase; color: rgba(var(--sb), .72); min-height: 10px; }
.pd-looks { display: flex; gap: 4px; margin-top: 10px; }
.pd-looks button {
  padding: 5px 9px; border-radius: 5px; border: 1px solid rgba(var(--sa), .3); background: transparent;
  color: rgba(var(--sb), .62); font: 600 8px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.pd-looks button:hover { color: rgb(var(--sb)); }
.pd-looks button[aria-pressed="true"] { color: rgb(var(--sa)); border-color: rgba(var(--sa), .8); background: rgba(var(--sa), .1); }
.pd-looks button:focus-visible { outline: 2px solid rgb(var(--sa)); outline-offset: 2px; }
.pd-core-wrap { position: relative; width: 100%; max-width: 212px; aspect-ratio: 1; margin-top: 2px; flex: none; }
.pd-core-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pd-wave { display: block; width: 94%; height: 28px; margin-top: -8px; flex: none; }
.pd-caption { width: 100%; flex: 1 1 auto; min-height: 0; overflow: hidden; margin-top: 4px; padding: 0 8px; text-align: center; }
.pd-q { font-size: 10.5px; line-height: 1.45; color: rgba(236, 246, 255, .58); min-height: 15px; }
.pd-a { font-size: 12px; line-height: 1.5; color: rgba(236, 246, 255, .95); margin-top: 9px; text-shadow: 0 0 14px rgba(var(--sa), .28); }
.pd-who { display: block; margin-bottom: 3px; font-size: 7.5px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: rgba(var(--sa), .88); text-shadow: none; }
.pd-caret { display: inline-block; width: 5px; height: 1em; margin-left: 2px; vertical-align: -2px; background: rgba(var(--sa), .9); animation: pd-blink 1s steps(1) infinite; }
@keyframes pd-blink { 50% { opacity: 0; } }
.pd-acts { display: flex; gap: 12px; justify-content: center; padding-top: 8px; flex: none; }
.pd-act {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(var(--sa), .42);
  background: rgba(3, 10, 20, .55); display: grid; place-items: center; color: rgb(var(--sb));
}
.pd-act svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pd-act.pd-stop { color: #ff7a66; border-color: rgba(255, 110, 90, .55); }

/* ================================================================ THE CREAM SHEET (#what-we-are) */
/* The site's own tokens, re-pointed inside the sheet, so every shared component (stat grid, buttons,
   captions, inline var(--gold) links) turns to the app's cream palette without a second stylesheet. */
.sheet-cream {
  --text: var(--ink); --text2: var(--ink-2); --muted: var(--ink-3);
  --gold: var(--cream-gold); --gold2: #7d6118; --gold-line: rgba(138, 106, 28, .45); --gold-dim: rgba(196, 169, 98, .16);
  --border: var(--cream-line); --border2: rgba(27, 42, 74, .2);
  position: relative; z-index: 3; margin-top: -40px; padding: 128px 0 104px;
  background: var(--cream); color: var(--ink);
  border-radius: 40px 40px 0 0; box-shadow: 0 -28px 60px -24px rgba(0, 0, 0, .6);
}
.sheet-cream .overline { color: var(--cream-gold); }
.cream-intro { max-width: 820px; }
.cream-intro h2 { margin-top: 18px; }
.cream-intro .lead { margin-top: 28px; max-width: 700px; }
.cream-quant { margin-top: 18px; font-size: 14.5px; color: var(--ink-3); line-height: 1.85; max-width: 620px; }
.cream-soft { margin-top: 16px; font-size: 21px; color: var(--ink); }
.sheet-cream .btn-outline:hover { border-color: rgba(27, 42, 74, .5); color: var(--ink); }
.sheet-cream .stat-grid { margin-top: 64px; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -48px rgba(27, 42, 74, .5); }
.sheet-cream .caption { margin-top: 16px; max-width: 900px; }
.cream-actions { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }

/* The statement: three lines, lit word by word with the scroll (landing.js sets --o per word). */
.ks-track { position: relative; height: 240vh; margin-top: 16px; }
.ks-stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.ks-line {
  font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 8.4vw, 128px);
  line-height: 1.02; letter-spacing: -.02em; color: var(--ink);
}
.ks-line + .ks-line { margin-top: .06em; }
.ks-line .w {
  display: inline-block; color: rgba(27, 42, 74, calc(.1 + .9 * var(--o, 0)));
  transform: translateY(calc((1 - var(--o, 0)) * 12px));
}
.ks-line.ks-gold { font-style: italic; }
.ks-line.ks-gold .w { color: rgba(138, 106, 28, calc(.12 + .88 * var(--o, 0))); }
.ks-static { height: auto; }
.ks-static .ks-stick { position: static; height: auto; padding: 72px 0 40px; }

/* The three steps, as cards that stack (landing.js eases each back as the next slides over it). */
.stack { position: relative; margin-top: 8px; padding-bottom: 24px; }
.stack-card {
  position: sticky; top: calc(108px + var(--i, 0) * 22px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
  min-height: 430px; margin-bottom: 72px; padding: 48px 52px;
  background: #fff; border: 1px solid var(--cream-line); border-radius: 30px;
  box-shadow: 0 34px 70px -46px rgba(27, 42, 74, .5), 0 2px 6px rgba(27, 42, 74, .04);
  transform-origin: 50% 0; will-change: transform;
}
.stack-card::after {                     /* the fade as a card recedes under the next */
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: var(--cream); opacity: var(--dim, 0);
}
.stack-card:last-child { margin-bottom: 0; }
.sc-num { font-family: var(--serif); font-size: 64px; font-weight: 300; line-height: 1; color: var(--cream-gold); }
.stack-card h3 { font-size: clamp(32px, 3.4vw, 48px); font-weight: 400; color: var(--ink); margin-top: 18px; line-height: 1.08; }
.stack-card p { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin-top: 16px; max-width: 460px; }
.sc-visual {
  background: var(--cream-2); border-radius: 22px; padding: 32px; min-height: 320px;
  display: flex; align-items: center; justify-content: center;
}

/* The small drawings inside the cards: illustrations of the process, no company and no score. */
.viz {
  width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--cream-line); border-radius: 18px;
  padding: 22px 22px 20px; box-shadow: 0 18px 40px -30px rgba(27, 42, 74, .55); font-family: var(--sans); color: var(--ink);
}
.viz-head { display: flex; align-items: center; gap: 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.viz-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cream-gold); box-shadow: 0 0 0 4px rgba(196, 169, 98, .2); flex: none; }
.viz-bars { margin-top: 18px; display: grid; gap: 12px; }
.viz-bars li { display: grid; grid-template-columns: 124px 1fr; align-items: center; gap: 12px; font-size: 12.5px; color: var(--ink-2); }
.viz-bars i { position: relative; height: 8px; border-radius: 99px; background: var(--cream-2); overflow: hidden; }
.viz-bars i::after {
  content: ''; position: absolute; inset: 0; width: calc(var(--w, .5) * 100%); border-radius: inherit;
  background: linear-gradient(90deg, #C4A962, #a88a2e); transform-origin: left; transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) var(--d, 0s);
}
.is-in .viz-bars i::after { transform: scaleX(1); }
.viz-cases { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--cream-line); }
.viz-cap { font-size: 11px; color: var(--ink-3); margin-right: auto; }
.chip { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--cream-line); color: var(--ink-3); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.viz-rules { display: grid; gap: 10px; }
.viz-step {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--cream-line); border-radius: 12px;
  font-size: 13.5px; color: var(--ink); opacity: .3; transform: translateX(-10px);
  transition: opacity .55s ease var(--d, 0s), transform .55s cubic-bezier(.2, .7, .2, 1) var(--d, 0s);
}
.is-in .viz-step { opacity: 1; transform: none; }
.viz-step b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: rgba(22, 163, 74, .1); color: #15803d; flex: none; }
.viz-step-sell b { background: rgba(196, 169, 98, .18); color: var(--cream-gold); }
.viz-foot { margin-top: 12px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); text-align: center; }

.viz-doc { border: 1px solid var(--cream-line); border-radius: 12px; padding: 16px; display: grid; gap: 9px; }
.viz-doc-t { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.viz-doc i { display: block; height: 6px; border-radius: 99px; background: var(--cream-2); width: calc(var(--w, .8) * 100%); }
.viz-status { position: relative; margin-top: 14px; height: 46px; }
.viz-status > span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 12px; font-size: 12.5px; font-weight: 600; padding: 0 12px; text-align: center;
}
.s-wait { background: rgba(27, 42, 74, .06); color: var(--ink-3); }
.s-dot { width: 7px; height: 7px; border-radius: 50%; background: #c49a3a; animation: s-pulse 1.2s ease-in-out infinite; flex: none; }
@keyframes s-pulse { 50% { opacity: .25; } }
.s-ok { background: rgba(22, 163, 74, .1); color: #15803d; opacity: 0; transform: translateY(6px); }
.s-ok b { width: 20px; height: 20px; border-radius: 50%; background: #16a34a; color: #fff; display: grid; place-items: center; font-size: 11px; flex: none; }
.is-in .s-wait { animation: s-out .5s ease 1.5s forwards; }
.is-in .s-ok { animation: s-in .5s ease 1.6s forwards; }
@keyframes s-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes s-in { to { opacity: 1; transform: none; } }

/* ================================================================ THE DARK SHEET (#track-record) */
.sheet-dark {
  position: relative; z-index: 4; margin-top: -40px; padding-top: 128px;
  background: var(--navy); border-radius: 40px 40px 0 0;
  box-shadow: 0 -28px 60px -32px rgba(27, 42, 74, .45);
}

/* ================================================================ REVEAL ON SCROLL */
/* landing.js adds html.lp-motion; without it (no script, reduced motion) everything simply shows. */
html.lp-motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease var(--d, 0s), transform .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
html.lp-motion .reveal.is-in { opacity: 1; transform: none; }

/* ================================================================ SAFEGUARDS (#trust) */
.trust { background: var(--navy); }
.trust-head { max-width: 760px; }
.trust-head .lead { margin-top: 20px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trust-tile {
  padding: 30px 28px 28px; border: 1px solid var(--border); border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008));
  transition: border-color .3s, background .3s;
}
.trust-tile:hover { border-color: var(--gold-line); background: linear-gradient(180deg, rgba(196, 154, 58, .06), rgba(255, 255, 255, .01)); }
.trust-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-dim); color: var(--gold2); }
.trust-ico svg, .app-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.trust-tile h3 { font-size: 23px; margin-top: 22px; }
.trust-tile p { font-size: 14px; color: var(--muted); line-height: 1.75; margin-top: 10px; }
.trust-note { margin-top: 24px; max-width: 900px; }
.trust-note a { color: var(--gold); }

/* ================================================================ THE APP (#app) */
.app-sec { position: relative; background: var(--navy2); overflow: hidden; }
.app-sec::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 78% 48%, rgba(196, 154, 58, .11), transparent 70%);
}
.app-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: center; }
.app-copy h2 { margin-top: 18px; }
.app-copy .lead { margin-top: 24px; }
.app-features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 34px; margin-top: 40px; }
.app-feature { display: flex; gap: 14px; align-items: flex-start; }
.app-ico { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--gold-dim); color: var(--gold2); }
.app-ico svg { width: 20px; height: 20px; stroke-width: 1.7; }
.app-feature h3 { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.35; }
.app-feature p { font-size: 13px; color: var(--muted); line-height: 1.65; margin-top: 6px; }
.app-install {
  display: flex; gap: 26px; align-items: flex-start; margin-top: 44px; padding: 22px;
  border: 1px solid var(--border2); border-radius: 24px; background: rgba(255, 255, 255, .02);
}
.app-qr { flex: none; width: 140px; height: 140px; padding: 7px; background: #fff; border-radius: 16px; }
.app-qr svg { display: block; width: 100%; height: 100%; }
.app-install-t { font-size: 14px; font-weight: 600; color: var(--text); }
.app-url { display: inline-block; margin-top: 4px; font-family: var(--serif); font-size: 24px; color: var(--gold2); }
.app-url:hover { color: var(--text); }
.app-open { display: none; margin-top: 4px; }
.app-steps { margin-top: 14px; display: grid; gap: 6px; }
.app-steps-t { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.app-steps p { font-size: 13px; color: var(--text2); line-height: 1.6; }
.app-install .caption { margin-top: 10px; }

.app-device { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.app-device::before {
  content: ''; position: absolute; left: 50%; top: 44%; width: 520px; height: 520px; max-width: 110vw; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(196, 169, 98, .16) 0%, transparent 62%); pointer-events: none;
}
.app-device .phone { transform: rotate(-3deg); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.app-device .phone:hover { transform: rotate(0deg) translateY(-6px); }
.app-device-note { position: relative; max-width: 320px; text-align: center; }

/* The app's Home screen, drawn in its own theme (CPI-APP lib/theme.ts, components/FloatingTabBar.tsx). */
.phone-app .phone-screen { background: var(--cream); }
.ah {
  position: absolute; inset: 0; padding: 52px 14px 92px; display: flex; flex-direction: column; gap: 11px;
  font-family: -apple-system, 'SF Pro Text', var(--sans); color: var(--ink);
}
.ah-head { display: flex; flex-direction: column; gap: 10px; }
.ah-brand { display: flex; align-items: center; gap: 8px; }
.ah-logo {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, #C4A962, #a88a2e); color: #fff; font: 700 14px/1 Georgia, serif;
  box-shadow: 0 4px 10px -4px rgba(168, 138, 46, .7);
}
.ah-brand-t { font-size: 11px; font-weight: 600; color: var(--ink); }
.ah-hello { font: 400 24px/1.1 Georgia, 'Times New Roman', serif; color: var(--ink); }
.ah-card { border-radius: 20px; padding: 14px 14px 10px; color: #fff; background: linear-gradient(145deg, #1B2A4A, #2a3f6e); box-shadow: 0 16px 30px -18px rgba(27, 42, 74, .85); }
.ah-card-label { font-size: 8.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #E8DCB8; }
.ah-card-val { font: 400 32px/1.05 Georgia, serif; margin-top: 6px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ah-card-sub { font-size: 9.5px; color: rgba(255, 255, 255, .72); margin-top: 4px; line-height: 1.4; }
.ah-card-sub b { color: #fff; font-weight: 600; }
.ah-chart { display: block; width: 100%; height: 66px; margin-top: 8px; }
.ah-range { display: flex; justify-content: space-between; margin-top: 6px; font-size: 8.5px; font-weight: 600; letter-spacing: .06em; color: rgba(255, 255, 255, .55); }
.ah-range span { padding: 3px 9px; border-radius: 99px; }
.ah-range .on { background: rgba(255, 255, 255, .15); color: #fff; }
.ah-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ah-tile { background: #fff; border: 1px solid var(--cream-line); border-radius: 14px; padding: 10px 8px 9px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ah-tile b { font: 400 17px/1 Georgia, serif; color: var(--ink); font-variant-numeric: tabular-nums; }
.ah-tile span { font-size: 7px; line-height: 1.3; color: #8896a6; text-transform: uppercase; letter-spacing: .06em; }
.ah-pedro { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--cream-line); border-radius: 16px; padding: 10px 12px; }
.ah-pedro-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(196, 169, 98, .15); color: #a88a2e; flex: none; }
.ah-pedro-ico svg { width: 16px; height: 16px; fill: currentColor; }
.ah-pedro-t { display: flex; flex-direction: column; gap: 2px; font-size: 9.5px; color: #8896a6; min-width: 0; }
.ah-pedro-t b { font-size: 11.5px; color: var(--ink); font-weight: 600; }
.ah-arrow { margin-left: auto; color: #C4A962; font-size: 20px; line-height: 1; }
.ah-orb {
  position: absolute; right: 16px; bottom: 84px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: #102340; color: #C4A962;
  border: 1px solid rgba(196, 169, 98, .5); box-shadow: 0 12px 22px -10px rgba(27, 42, 74, .85);
}
.ah-orb svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.ah-orb::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(196, 169, 98, .55); animation: ah-ring 2.4s ease-out infinite; }
@keyframes ah-ring { from { opacity: .7; transform: scale(.9); } to { opacity: 0; transform: scale(1.25); } }
.ah-tabbar {
  position: absolute; left: 10px; right: 10px; bottom: 14px; height: 58px; border-radius: 22px; background: #fff;
  box-shadow: 0 8px 28px rgba(27, 42, 74, .1); display: flex; justify-content: space-around; align-items: center; padding: 0 4px;
}
.ah-tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 8px; color: #8896a6; font-weight: 500; }
.ah-tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ah-tab.on { color: var(--ink); font-weight: 700; }
.ah-tab.on::before { content: ''; position: absolute; top: -9px; width: 18px; height: 3px; border-radius: 3px; background: #C4A962; }
[data-app-phone]:not(.ah-live) [data-ah] { opacity: .35; }

/* ================================================================ FAQ (#faq) */
.faq { background: #0A0E18; border-top: 1px solid var(--border); }
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.faq-intro { position: sticky; top: 120px; }
.faq-intro h2 { margin-top: 16px; }
.faq-lead { font-size: 14px; color: var(--muted); line-height: 1.8; margin: 20px 0 28px; max-width: 380px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 18px; background: rgba(255, 255, 255, .02); transition: border-color .25s, background .25s; }
.faq-item:hover { border-color: var(--border2); }
.faq-item[open] { border-color: var(--gold-line); background: rgba(196, 154, 58, .045); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 24px; font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--text); line-height: 1.25;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 18px; }
.faq-ico { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border2); transition: border-color .25s, background .25s; }
.faq-item[open] .faq-ico { border-color: var(--gold-line); background: var(--gold-dim); }
.faq-ico::before, .faq-ico::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--gold2);
  transform: translate(-50%, -50%); transition: transform .3s ease;
}
.faq-ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-ico::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 24px 22px; }
.faq-a p { font-size: 14.5px; color: var(--text2); line-height: 1.8; max-width: 640px; }
@supports (interpolate-size: allow-keywords) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content { height: 0; overflow: clip; transition: height .35s ease, content-visibility .35s allow-discrete; }
  .faq-item[open]::details-content { height: auto; }
}

/* ================================================================ PHONES: THE "GET THE APP" PILL AND SHEET */
.app-pill { display: none; }
.app-sheet {
  position: fixed; inset: 0; z-index: 1100; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(2, 4, 8, .62); opacity: 0; transition: opacity .25s ease;
}
.app-sheet[hidden] { display: none; }
.app-sheet.is-open { opacity: 1; }
.app-sheet-panel {
  position: relative; width: 100%; max-width: 520px; background: var(--cream); color: var(--ink);
  border-radius: 26px 26px 0 0; padding: 12px 22px calc(26px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .7, .2, 1);
}
.app-sheet.is-open .app-sheet-panel { transform: none; }
.app-sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: rgba(27, 42, 74, .18); margin: 0 auto 10px; }
.app-sheet-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; color: var(--ink-3); }
.app-sheet-x:focus-visible { outline: 2px solid var(--cream-gold); outline-offset: 0; }
.app-sheet-head { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.app-sheet-head .ah-logo { width: 46px; height: 46px; border-radius: 13px; font-size: 22px; }
.app-sheet-t { font: 400 25px/1.1 var(--serif); color: var(--ink); }
.app-sheet-url { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.app-sheet-open { width: 100%; justify-content: center; margin-top: 22px; }
.app-sheet .app-steps { margin-top: 18px; }
.app-sheet .app-steps-t { color: var(--ink-3); }
.app-sheet .app-steps p { color: var(--ink-2); font-size: 14px; }
.app-sheet .caption { color: var(--ink-3); margin-top: 14px; }
.app-sheet[data-os="ios"] p[data-os="android"], .app-sheet[data-os="android"] p[data-os="ios"] { display: none; }
html.app-sheet-open { overflow: hidden; }

/* ================================================================ RESPONSIVE */
@media (max-width: 1180px) {
  .hero-layout { gap: 32px; }
  .stack-card { padding: 40px; gap: 36px; }
}
@media (max-width: 980px) {
  .hero { padding: 120px 0 72px; }
  .hero-layout { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy .hero-stats-row { max-width: none; }
  .app-layout { grid-template-columns: 1fr; gap: 56px; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-intro { position: static; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .stack-card { grid-template-columns: 1fr; gap: 28px; min-height: 0; }
  .sc-visual { min-height: 0; }
}
@media (max-width: 899px) {
  .app-qr, .app-url { display: none; }
  .app-open { display: inline-flex; }
  .app-install { padding: 20px; }
  .app-pill {
    display: flex; align-items: center; gap: 10px; position: fixed; z-index: 990;
    left: 16px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); height: 52px; padding: 0 22px 0 16px;
    border-radius: 99px; background: rgba(13, 18, 32, .92); border: 1px solid var(--gold-line); color: var(--text);
    font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .75); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transform: translateY(150%); opacity: 0; pointer-events: none;
    transition: transform .38s cubic-bezier(.2, .7, .2, 1), opacity .3s ease;
  }
  .app-pill.is-on { transform: none; opacity: 1; pointer-events: auto; }
  .app-pill svg { width: 18px; height: 18px; fill: none; stroke: var(--gold2); stroke-width: 1.7; stroke-linecap: round; }
}
@media (max-width: 768px) {
  .hero-copy .hero-stats-row { border-top: 1px solid var(--border); gap: 0 20px; }
  .hero-copy .hero-stat { border-bottom: 1px solid var(--border); padding: 20px 0 18px; }
  .hero-copy .hero-stat-val { font-size: 32px; }
  .hero-lead strong { font-size: 17px; }
}
@media (max-width: 640px) {
  .phone { width: min(80vw, 292px); border-radius: 46px; }
  .phone-screen { border-radius: 37px; }
  .hero-device::before { width: 420px; height: 420px; }
  .sheet-cream, .sheet-dark { border-radius: 28px 28px 0 0; margin-top: -28px; }
  .sheet-cream { padding: 92px 0 72px; }
  .sheet-dark { padding-top: 92px; }
  .ks-track { height: 200vh; }
  .ks-line { font-size: clamp(42px, 12.5vw, 66px); }
  .stack-card { top: calc(84px + var(--i, 0) * 14px); padding: 26px 22px 22px; border-radius: 24px; margin-bottom: 40px; gap: 20px; }
  .sc-num { font-size: 44px; }
  .stack-card h3 { font-size: 30px; margin-top: 10px; }
  .stack-card p { font-size: 15.5px; margin-top: 10px; }
  .sc-visual { padding: 14px; border-radius: 18px; }
  .viz { padding: 16px; }
  .viz-bars { gap: 10px; margin-top: 14px; }
  .viz-bars li { grid-template-columns: 108px 1fr; font-size: 11.5px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-tile { padding: 24px 22px; }
  .app-features { grid-template-columns: 1fr; }
  .app-install { flex-direction: column; }
  .faq-item summary { font-size: 19px; padding: 18px; }
  .faq-a { padding: 0 18px 18px; }
  .viz-rules { gap: 8px; }
  .viz-step { padding: 10px 12px; font-size: 13px; }
  .viz-doc { padding: 14px; }
}
/* Short phones: a card taller than the screen would hide its foot while stuck, so the cards scroll. */
@media (max-width: 640px) and (max-height: 720px) {
  .stack-card { position: relative; top: auto; }
}

/* ================================================================ REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero .phone-stage, .hero-device-foot { animation: none; }
  .stack-card { position: relative; top: auto; }
  .viz-bars i::after { transform: none; transition: none; }
  .viz-step { opacity: 1; transform: none; transition: none; }
  .s-wait { display: none; }
  .s-ok { opacity: 1; transform: none; }
  .s-dot, .pd-caret, .ah-orb::after { animation: none; }
  .app-device .phone, .app-device .phone:hover { transition: none; }
  .app-pill, .app-sheet, .app-sheet-panel { transition: none; }
  .faq-item::details-content { transition: none; }
}
