/* ===========================================================================
   CAW Academy — site styles
   Display: Fraunces · UI/body: Plus Jakarta Sans
   Real app screens rendered in CSS device frames (Theme.swift tokens).
   =========================================================================== */

/* self-hosted fonts (no external CDN — GDPR-friendly).
   Drop two variable-font files into website/fonts/ — see docs/WEBSITE-SETUP.md.
   Until they're present, the system-font fallbacks below are used. */
@font-face{
  font-family:"Inter"; font-style:normal; font-weight:100 900; font-display:swap;
  src:url("fonts/Inter-Variable.woff2") format("woff2");
}
@font-face{
  font-family:"Fraunces"; font-style:normal; font-weight:100 900; font-display:swap;
  src:url("fonts/Fraunces-Variable.woff2") format("woff2");
}

:root{
  --indigo:#3E44B5; --indigo-2:#575ECF; --indigo-3:#8A8FE6; --indigo-soft:#E6E7FB;
  --accent:#F4511E; --accent-2:#FB8C00;
  --ink:#0B1238; --ink-soft:#3A3F63; --muted:#5E6488;
  --bg:#F5F6FB; --bg-2:#ECEEF8; --grouped:#F1F1F6;
  --card:#FFFFFF; --line:#E4E6F3; --success:#2E7D32;
  --radius:18px; --radius-lg:28px;
  --shadow-sm:0 1px 2px rgba(16,22,68,.05), 0 6px 18px rgba(16,22,68,.05);
  --shadow-md:0 12px 34px rgba(16,22,68,.10), 0 2px 8px rgba(16,22,68,.06);
  --shadow-lg:0 40px 90px rgba(38,44,120,.28);
  --maxw:1120px; --nav-h:66px;
  --serif:"Fraunces",Georgia,"Times New Roman",serif;
  --sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth; overflow-x:clip}
body{margin:0; color:var(--ink);
  background:
    radial-gradient(1200px 620px at 82% -8%, rgba(87,94,207,.12), transparent 60%),
    radial-gradient(900px 520px at -8% 6%, rgba(244,81,30,.06), transparent 55%), var(--bg);
  font-family:var(--sans); font-size:17px; line-height:1.65; letter-spacing:-.01em;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility}
/* fine grain for depth (very subtle) */
body::after{content:""; position:fixed; inset:0; z-index:1; pointer-events:none; opacity:.025;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
a{color:var(--indigo); text-decoration:none}
a:hover{color:var(--indigo-2)}
img{max-width:100%}
::selection{background:rgba(62,68,181,.18)}
:focus-visible{outline:3px solid rgba(62,68,181,.45); outline-offset:3px; border-radius:8px}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 24px}
section{scroll-margin-top:calc(var(--nav-h) + 12px)}
.eyebrow{display:inline-flex; align-items:center; gap:8px; font-size:12.5px; font-weight:700;
  letter-spacing:1.4px; text-transform:uppercase; color:var(--indigo);
  background:rgba(87,94,207,.10); padding:7px 14px; border-radius:999px}
.eyebrow::before{content:""; width:7px; height:7px; border-radius:50%; background:var(--indigo)}

/* ---------- nav ----------------------------------------------------------- */
.nav{position:sticky; top:0; z-index:50; display:flex; align-items:center; justify-content:space-between;
  max-width:var(--maxw); margin:0 auto; padding:13px 24px; min-height:var(--nav-h);
  backdrop-filter:saturate(160%) blur(12px); -webkit-backdrop-filter:saturate(160%) blur(12px)}
.nav.scrolled{background:transparent; border-bottom:none}
.brand{display:inline-flex; align-items:center; gap:10px; font-family:var(--serif); font-weight:600;
  font-size:23px; letter-spacing:.2px; color:var(--ink); white-space:nowrap}
.brand img{width:30px; height:30px; border-radius:8px; box-shadow:var(--shadow-sm)}
.brand span{color:var(--indigo)}
.nav .links{display:flex; align-items:center}
.nav .links a{margin-left:22px; font-size:15px; font-weight:600; color:var(--ink-soft)}
.nav .links a:hover{color:var(--indigo)}
.nav .links a.cta{margin-left:22px; background:var(--ink); color:#fff; padding:9px 18px; border-radius:11px;
  box-shadow:var(--shadow-sm); transition:transform .15s, box-shadow .2s}
.nav .links a.cta:hover{transform:translateY(-1px); box-shadow:var(--shadow-md); color:#fff}
@media (max-width:640px){ .nav .links a{margin-left:14px; font-size:13.5px} .nav .links a.hide-sm{display:none} .nav .links a.cta{margin-left:14px; padding:8px 14px} }

/* ---------- buttons ------------------------------------------------------- */
.btn{display:inline-flex; align-items:center; gap:9px; font-family:var(--sans); font-weight:700; font-size:16px;
  padding:14px 24px; border-radius:14px; border:0; cursor:pointer;
  transition:transform .15s ease, box-shadow .2s ease, opacity .2s ease; text-decoration:none}
.btn svg{width:18px; height:18px}
.btn-dark{background:var(--ink); color:#fff; box-shadow:var(--shadow-md)}
.btn-dark:hover{transform:translateY(-2px); color:#fff}
.btn-light{background:#fff; color:var(--indigo); box-shadow:var(--shadow-md)}
.btn-light:hover{transform:translateY(-2px); color:var(--indigo)}
.btn-ghost{background:#fff; color:var(--ink-soft); border:1px solid var(--line)}
.btn-ghost:hover{border-color:var(--indigo-3); color:var(--indigo); transform:translateY(-2px)}
.btn[aria-disabled="true"]{cursor:default}

/* app-store / google-play download badges */
.badges{display:flex; flex-wrap:wrap; gap:12px; align-items:center}
.store-badge{display:inline-flex; align-items:center; gap:11px; background:#000; color:#fff;
  border:1px solid rgba(255,255,255,.18); border-radius:13px; padding:9px 16px; text-decoration:none;
  box-shadow:var(--shadow-sm); transition:transform .15s ease, box-shadow .2s ease}
.store-badge:hover{transform:translateY(-2px); box-shadow:var(--shadow-md); color:#fff}
.store-badge[aria-disabled="true"]{cursor:default}
.store-badge .logo{width:25px; height:25px; flex:0 0 auto; display:block}
.store-badge .tx{display:flex; flex-direction:column; line-height:1.12; text-align:left}
.store-badge .tx small{font-size:9.5px; font-weight:600; letter-spacing:.3px; opacity:.9}
.store-badge .tx b{font-size:17px; font-weight:700; letter-spacing:.2px}
.store-badge.soon{opacity:.55}

/* ---------- hero ---------------------------------------------------------- */
.hero{position:relative; overflow:hidden; padding:18px 0 6px}
.hero::before,.hero::after{content:""; position:absolute; border-radius:50%; filter:blur(85px); z-index:0; pointer-events:none}
.hero::before{width:540px; height:540px; top:-150px; left:-90px;
  background:radial-gradient(circle, rgba(87,94,207,.22), transparent 70%); animation:drift1 20s ease-in-out infinite}
.hero::after{width:440px; height:440px; bottom:-170px; right:-70px;
  background:radial-gradient(circle, rgba(244,81,30,.14), transparent 70%); animation:drift2 24s ease-in-out infinite}
@keyframes drift1{0%,100%{transform:translate(0,0)}50%{transform:translate(40px,30px)}}
@keyframes drift2{0%,100%{transform:translate(0,0)}50%{transform:translate(-40px,-30px)}}
.hero-grid{position:relative; z-index:1; display:grid; grid-template-columns:1fr 1.06fr;
  grid-template-areas:"copy device" "cta device"; column-gap:40px; row-gap:0; align-items:center;
  max-width:var(--maxw); margin:0 auto; padding:34px 24px 52px}
.hero-copy{grid-area:copy; align-self:end}
.device-stage{grid-area:device}
.hero-cta{grid-area:cta; align-self:start; margin-top:2px}
.hero h1{font-family:var(--serif); font-weight:600; font-size:clamp(36px,5.4vw,62px);
  line-height:1.03; letter-spacing:-.6px; margin:18px 0 16px}
.hero h1 em{font-family:var(--sans); font-style:normal; font-weight:800; color:var(--indigo); letter-spacing:-.02em}
.hero .lede{font-size:clamp(16px,1.55vw,19px); color:var(--ink-soft); max-width:40ch; margin:0 0 26px}
.lede-short{display:none}
.hero-cta{display:flex; flex-wrap:wrap; gap:12px; align-items:center}
.hero-note{margin-top:16px; font-size:13.5px; color:var(--muted)}
.platforms{display:flex; gap:18px; margin-top:20px; color:var(--muted); font-size:13px; font-weight:700}
.platforms span{display:inline-flex; align-items:center; gap:7px}
.platforms svg{width:16px; height:16px; opacity:.7}
.device-stage{position:relative; display:flex; flex-direction:column; justify-content:center; align-items:center; min-height:400px}
.glow{position:absolute; width:420px; height:420px; border-radius:50%; filter:blur(70px);
  background:radial-gradient(circle, rgba(87,94,207,.42), transparent 70%); z-index:0}
.glow.amber{width:260px; height:260px; right:0%; bottom:2%;
  background:radial-gradient(circle, rgba(244,81,30,.34), transparent 70%)}

/* ---------- interactive device lineup (hover to focus) -------------------- */
.lineup{position:relative; z-index:2; display:flex; align-items:flex-end; justify-content:center}
.dev{position:relative; transform-origin:bottom center; transform:scale(var(--b,1));
  transition:transform .45s cubic-bezier(.2,.7,.2,1), filter .3s ease; cursor:pointer}
.dlabel{position:absolute; bottom:-28px; left:50%; transform:translateX(-50%);
  font-size:12px; font-weight:700; color:var(--muted); white-space:nowrap; pointer-events:none}
.dev + .dev{margin-left:-24px}
/* real-world proportions: iPhone < iPad < Mac */
.dev.iphone{--b:1; z-index:3}
.dev.ipad{--b:1; z-index:2}
.dev.mac{--b:1; z-index:1}
.lineup:hover .dev,
.lineup:focus-within .dev{transform:scale(calc(var(--b) * .82)); filter:saturate(.92) brightness(.99)}
.lineup .dev:hover,
.lineup .dev:focus{transform:scale(calc(var(--b) * 1.16)); filter:none; z-index:6; outline:none}
.lineup-hint{position:relative; z-index:2; text-align:center; margin-top:14px;
  font-size:12.5px; font-weight:700; letter-spacing:.3px; color:var(--muted)}
.lineup-hint svg{width:14px; height:14px; vertical-align:-2px; margin-right:5px; opacity:.7}
/* MacBook frame */
.macbook{width:308px}
.macbook .lid{background:linear-gradient(160deg,#23264c,#0e1030); border-radius:15px; padding:9px 9px 10px; box-shadow:var(--shadow-lg)}
.macbook .lid img{display:block; width:100%; border-radius:6px}
.macbook .base{position:relative; height:14px; width:120%; margin-left:-10%;
  background:linear-gradient(#cdd2e0,#abb1c4); border-radius:0 0 13px 13px; box-shadow:0 14px 22px rgba(16,22,68,.22)}
.macbook .base::after{content:""; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:80px; height:7px; background:#9aa0b4; border-radius:0 0 8px 8px}
/* iPad frame */
.ipad-bz{width:150px; background:linear-gradient(160deg,#23264c,#0e1030); border-radius:22px; padding:8px; box-shadow:var(--shadow-lg)}
.ipad-bz img{display:block; width:100%; border-radius:13px}
@media (max-width:980px){ .dev + .dev{margin-left:-22px} }
/* ---------- credibility ribbon -------------------------------------------- */
.ribbon{position:relative; z-index:2; display:flex; flex-wrap:wrap; justify-content:center; gap:14px 30px;
  max-width:var(--maxw); margin:-6px auto 0; padding:18px 24px 6px; color:var(--muted)}
.ribbon span{display:inline-flex; align-items:center; gap:9px; font-size:13.5px; font-weight:700}
.ribbon svg{width:17px; height:17px; color:var(--success)}
.ribbon .soon-txt{opacity:.45}

/* ======================= PHONE / APP SCREENS ============================== */
.pscale{position:relative; width:calc(316px * var(--s, 1)); height:calc(656px * var(--s, 1)); z-index:2}
.pscale > .phone{position:absolute; top:0; left:0; transform-origin:top left; transform:scale(var(--s,1))}
.phone{width:316px; height:656px; border-radius:52px; padding:12px;
  background:linear-gradient(160deg,#262a55,#0e1030); box-shadow:var(--shadow-lg)}
.phone.floaty{animation:float 7.5s ease-in-out infinite}
@keyframes float{0%,100%{transform:scale(var(--s,1)) translateY(0)}50%{transform:scale(var(--s,1)) translateY(-15px)}}
.gcol .phone{transition:transform .35s ease, box-shadow .35s ease}
.gcol:hover .phone{transform:scale(var(--s,1)) translateY(-8px); box-shadow:0 50px 100px rgba(38,44,120,.32)}
.scr{position:relative; width:100%; height:100%; border-radius:41px; overflow:hidden;
  background:var(--grouped); display:flex; flex-direction:column; font-family:var(--sans)}
.phone .shot{position:absolute; top:12px; left:12px; width:calc(100% - 24px); height:calc(100% - 24px);
  object-fit:cover; border-radius:41px; z-index:6; display:block}
.phone.shot-on .scr{visibility:hidden}
.scr.ph{align-items:center; justify-content:center}
.ph-in{display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; padding:20px}
.ph-logo{font-family:var(--serif); font-weight:600; font-size:30px; color:var(--indigo)}
.ph-code{font-size:18px; font-weight:800; color:var(--ink)}
.ph-t{font-size:12px; color:var(--muted)}
/* status bar */
.island{position:absolute; top:11px; left:50%; transform:translateX(-50%); width:86px; height:23px; background:#000; border-radius:13px; z-index:9}
.sb{display:flex; justify-content:space-between; align-items:center; padding:13px 22px 2px; font-size:13px; font-weight:800; color:var(--ink)}
.sb .rt{display:flex; gap:6px; align-items:center}
.sb .rt svg{width:16px; height:13px; color:var(--ink)}
.bat{width:23px; height:12px; border:1.5px solid var(--ink); border-radius:3px; position:relative; opacity:.9}
.bat::after{content:""; position:absolute; top:1.5px; left:1.5px; bottom:1.5px; width:72%; background:var(--ink); border-radius:1px}
.bat::before{content:""; position:absolute; right:-3px; top:3.5px; width:2px; height:5px; background:var(--ink); border-radius:1px}
.nbar{display:flex; align-items:center; justify-content:center; position:relative; padding:8px 16px; min-height:40px}
.nbar .title{font-size:19px; font-weight:800; color:var(--ink)}
.nbar .tools{position:absolute; right:16px; display:flex; gap:6px; background:#fff; border-radius:20px; padding:7px 10px; box-shadow:var(--shadow-sm)}
.nbar .tools svg{width:18px; height:18px; color:var(--indigo)}
.nbar .back{position:absolute; left:16px; width:34px; height:34px; border-radius:50%; background:#fff; box-shadow:var(--shadow-sm); display:flex; align-items:center; justify-content:center}
.nbar .back svg{width:16px; height:16px; color:var(--ink)}
.body{flex:1; overflow:hidden; padding:8px 14px 4px; display:flex; flex-direction:column; gap:11px}
.hb{background:linear-gradient(135deg,var(--indigo),var(--indigo-2)); color:#fff; border-radius:20px; padding:18px}
.hb .t{font-size:19px; font-weight:800; line-height:1.12; letter-spacing:-.3px}
.hb .s{font-size:11.5px; opacity:.9; margin-top:6px; line-height:1.4}
.cc{background:linear-gradient(120deg,var(--accent),var(--accent-2)); color:#fff; border-radius:20px; padding:16px 18px; box-shadow:0 12px 24px rgba(244,81,30,.3)}
.cc .k{font-size:11px; font-weight:800; letter-spacing:1.5px; opacity:.92}
.cc .v{font-size:18px; font-weight:800; margin:7px 0 11px; letter-spacing:-.2px}
.cc .r{display:flex; justify-content:space-between; align-items:center; font-size:12px; font-weight:600; opacity:.95}
.cc .r .res{display:inline-flex; align-items:center; gap:6px; font-weight:800}
.cc .r .res svg{width:14px; height:14px}
.pc{display:flex; align-items:center; gap:16px; background:#fff; border-radius:20px; padding:16px}
.pc .ring{position:relative; width:66px; height:66px; border-radius:50%; background:conic-gradient(var(--indigo) var(--pct,60%), #E5E6F2 0)}
.pc .ring i{position:absolute; inset:7px; background:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center; font-style:normal; font-size:15px; font-weight:800; color:var(--ink)}
.pc .px .k{font-size:10px; font-weight:800; letter-spacing:1.2px; color:var(--muted)}
.pc .px b{display:block; font-size:16px; color:var(--ink); margin:2px 0}
.pc .px small{font-size:12.5px; color:var(--muted)}
.slab{font-size:13.5px; font-weight:800; color:var(--ink); margin:3px 2px -3px}
.crd{background:#fff; border-radius:20px; padding:15px}
.crd .top{display:flex; align-items:center; gap:12px}
.crd .ic{width:46px; height:46px; border-radius:13px; flex:0 0 auto; color:#fff;
  background:linear-gradient(135deg,var(--indigo),var(--indigo-2)); display:flex; align-items:center; justify-content:center}
.crd .ic svg{width:24px; height:24px}
.crd .nm{flex:1; min-width:0}
.crd .nm b{display:block; font-size:15px; font-weight:800; color:var(--ink); line-height:1.18}
.crd .nm small{font-size:11.5px; color:var(--muted)}
.crd .seal svg{width:21px; height:21px; color:var(--success)}
.crd .hg svg{width:19px; height:19px; color:var(--muted)}
.crd .meta{display:flex; align-items:center; justify-content:space-between; margin-top:13px}
.crd .pill{font-size:10px; font-weight:800; letter-spacing:.5px; color:var(--indigo); background:var(--indigo-soft); padding:5px 9px; border-radius:8px}
.crd .pill.soon{color:var(--muted); background:var(--bg-2)}
.crd .rd{font-size:12px; font-weight:700; color:var(--muted)}
.crd .bar{height:4px; border-radius:4px; background:#E5E6F2; margin-top:11px; overflow:hidden}
.crd .bar i{display:block; height:100%; background:var(--indigo); border-radius:4px}
.crd.soon{opacity:.55}
.tabs{display:flex; justify-content:space-around; align-items:flex-end; padding:8px 10px 11px; background:rgba(255,255,255,.94); border-top:1px solid #E7E8F3}
.tab{display:flex; flex-direction:column; align-items:center; gap:4px; font-size:10px; font-weight:700; color:#9A9DB0}
.tab svg{width:20px; height:20px}
.tab .ti{display:flex; align-items:center; justify-content:center; padding:4px 18px; border-radius:13px}
.tab.on{color:var(--indigo)}
.tab.on .ti{background:var(--indigo-soft)}

/* ---------- generic sections ---------------------------------------------- */
section{padding:48px 0}
.section-head{max-width:980px; margin:0 auto 34px; text-align:center}
.section-head .eyebrow{margin:0 auto 16px}
h2{font-family:var(--serif); font-weight:600; font-size:clamp(27px,3.5vw,40px); line-height:1.08; letter-spacing:-.5px; margin:0 0 12px}
.section-head h2{text-wrap:pretty}
.section-head p{color:var(--ink-soft); font-size:17.5px; margin:0 auto; max-width:620px}
.center{text-align:center; margin-left:auto; margin-right:auto}
.center .eyebrow{margin:0 auto 16px}

/* value props */
.props{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.prop{background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:28px; box-shadow:var(--shadow-sm); transition:transform .2s, box-shadow .2s; text-align:center}
.prop:hover{transform:translateY(-5px); box-shadow:var(--shadow-md)}
.prop .pico{width:52px; height:52px; border-radius:15px; margin:0 auto 16px; display:flex; align-items:center; justify-content:center; color:#fff; box-shadow:0 10px 22px rgba(62,68,181,.26)}
.prop .pico svg{width:26px; height:26px}
.prop:nth-child(1) .pico{background:linear-gradient(135deg,var(--indigo),var(--indigo-2))}
.prop:nth-child(2) .pico{background:linear-gradient(135deg,var(--accent),var(--accent-2))}
.prop:nth-child(3) .pico{background:linear-gradient(135deg,#2E7D32,#43A047)}
.prop h3{font-size:20px; margin:0 0 8px; font-weight:800; letter-spacing:-.3px}
.prop p{margin:0; color:var(--muted); font-size:15px; line-height:1.6}
@media (max-width:820px){ .props{grid-template-columns:1fr} }

/* features */
.grid{display:flex; flex-wrap:wrap; justify-content:center; gap:18px}
.card{flex:0 1 252px; max-width:280px; text-align:center; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:26px 24px; box-shadow:var(--shadow-sm); transition:transform .2s, box-shadow .2s, border-color .2s}
.card:hover{transform:translateY(-5px); box-shadow:var(--shadow-md); border-color:var(--indigo-3)}
.card .ico{width:46px; height:46px; border-radius:13px; margin:0 auto 14px; display:flex; align-items:center; justify-content:center; color:#fff; background:linear-gradient(135deg,var(--indigo),var(--indigo-2)); box-shadow:0 8px 18px rgba(62,68,181,.26)}
.card .ico svg{width:23px; height:23px}
.card h3{font-size:18px; margin:0 0 6px; font-weight:800; letter-spacing:-.2px}
.card p{margin:0; color:var(--muted); font-size:14.5px; line-height:1.6}

/* audience chips */
.chips{display:grid; grid-template-columns:repeat(3,1fr); gap:12px; max-width:860px; margin:0 auto}
.chips span{display:flex; align-items:center; justify-content:center; gap:9px; background:var(--card); border:1px solid var(--line);
  border-radius:999px; padding:12px 16px; font-size:15px; font-weight:600; color:var(--ink-soft); box-shadow:var(--shadow-sm);
  transition:transform .15s ease, box-shadow .2s ease, border-color .2s ease}
@media (max-width:720px){ .chips{grid-template-columns:repeat(2,1fr)} }
@media (max-width:460px){ .chips{grid-template-columns:1fr} }
.chips span:hover{transform:translateY(-2px); box-shadow:var(--shadow-md); border-color:var(--indigo-3); color:var(--indigo)}
.chips span::before{content:""; width:8px; height:8px; border-radius:50%; flex:0 0 auto;
  background:linear-gradient(135deg,var(--indigo),var(--indigo-2))}

/* stats */
.stats{display:grid; grid-template-columns:repeat(4,1fr); gap:18px;
  background:rgba(255,255,255,.55); border:1px solid var(--line); border-radius:20px;
  padding:18px 26px; box-shadow:var(--shadow-sm);
  backdrop-filter:saturate(140%) blur(8px); -webkit-backdrop-filter:saturate(140%) blur(8px)}
.stat{text-align:center}
.stat .n{font-family:var(--serif); font-weight:600; font-size:clamp(22px,2.6vw,32px); line-height:1;
  background:linear-gradient(135deg,var(--indigo),var(--indigo-2)); -webkit-background-clip:text; background-clip:text; color:transparent}
.stat .n span{color:var(--indigo-3); -webkit-text-fill-color:var(--indigo-3)}
.stat .l{font-size:12.5px; color:var(--muted); margin-top:5px}
@media (max-width:680px){ .stats{grid-template-columns:repeat(2,1fr); gap:18px} }

/* curriculum tracks */
.tracks{display:grid; grid-template-columns:repeat(4,1fr); gap:16px}
.track{background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:24px; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; transition:transform .2s, box-shadow .2s}
.track:hover{transform:translateY(-5px); box-shadow:var(--shadow-md)}
.track .badge{display:flex; align-self:stretch; align-items:center; justify-content:center; gap:7px; font-size:10px; font-weight:800; letter-spacing:.3px; text-transform:uppercase; white-space:nowrap; color:#fff; padding:8px 10px; border-radius:999px; margin-bottom:14px}
.track:nth-child(1) .badge{background:linear-gradient(135deg,var(--indigo),var(--indigo-2))}
.track:nth-child(2) .badge{background:linear-gradient(135deg,var(--accent),var(--accent-2))}
.track:nth-child(3) .badge{background:linear-gradient(135deg,#2E7D32,#43A047)}
.track:nth-child(4) .badge{background:linear-gradient(135deg,#7A3FB5,#9A5FD0)}
.track h3{font-size:18px; margin:0 0 4px; font-weight:800; letter-spacing:-.3px; text-align:center}
.track > p{margin:0 0 16px; color:var(--muted); font-size:13.5px; line-height:1.55; text-align:center}
.track ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px}
.track li{display:flex; gap:9px; font-size:13.5px; color:var(--ink-soft); line-height:1.4}
.track li svg{width:16px; height:16px; flex:0 0 auto; margin-top:2px; color:var(--indigo)}
.track li b{font-weight:800; color:var(--ink)}
@media (max-width:1000px){ .tracks{grid-template-columns:repeat(2,1fr)} }
@media (max-width:560px){ .tracks{grid-template-columns:1fr} }

/* gallery */
.gallery{display:flex; gap:22px; justify-content:center; align-items:flex-start; flex-wrap:wrap}
.gcol{display:flex; flex-direction:column; align-items:center; gap:16px}
.gcap{text-align:center; max-width:210px}
.gcap b{display:block; font-size:16px; font-weight:800; color:var(--ink)}
.gcap span{font-size:13px; color:var(--muted)}


/* FAQ */
.faq{max-width:820px; margin:0 auto; display:flex; flex-direction:column; gap:12px}
.faq details{background:var(--card); border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow-sm); overflow:hidden; transition:box-shadow .2s}
.faq details[open]{box-shadow:var(--shadow-md)}
.faq summary{list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:18px 22px; font-size:16.5px; font-weight:700; color:var(--ink)}
.faq summary::-webkit-details-marker{display:none}
.faq summary .chev{width:22px; height:22px; flex:0 0 auto; color:var(--indigo); transition:transform .25s}
.faq details[open] summary .chev{transform:rotate(180deg)}
.faq .ans{padding:0 22px 20px; color:var(--ink-soft); font-size:15.5px; line-height:1.6}
.faq .ans a{font-weight:700}

/* CTA */
.cta-band{position:relative; overflow:hidden; text-align:center; border:1px solid var(--line);
  border-radius:var(--radius-lg); padding:58px 28px; box-shadow:var(--shadow-sm);
  background:
    radial-gradient(680px 340px at 84% -20%, rgba(87,94,207,.16), transparent 62%),
    radial-gradient(560px 300px at 14% 124%, rgba(244,81,30,.10), transparent 60%),
    linear-gradient(135deg,#EEF0FB,#F5F6FB)}
.cta-band > *{position:relative; z-index:1}
.cta-band h2{color:var(--ink)}
.cta-band p{color:var(--ink-soft); max-width:48ch; margin:8px auto 24px}

/* legal */
.legal{background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:clamp(26px,4vw,48px); margin:24px auto 36px; max-width:780px; box-shadow:var(--shadow-sm)}
.legal h1{font-family:var(--serif); font-weight:600; font-size:clamp(28px,4vw,40px); margin:0 0 4px; letter-spacing:-.4px}
.legal .updated{color:var(--muted); font-size:14px; margin:0 0 22px}
.legal h2{font-family:var(--serif); font-weight:600; font-size:21px; margin:30px 0 8px}
.legal p,.legal li{color:var(--ink-soft); font-size:16px}
.legal a{text-decoration:underline; text-underline-offset:2px}
.legal ul{padding-left:22px}
.legal li{margin:5px 0}

/* footer */
footer{border-top:1px solid var(--line); margin-top:24px; padding:34px 0 56px; color:var(--muted)}
.foot-top{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px}
footer .brand{font-size:20px}
footer .foot-links a{color:var(--ink-soft); margin-left:20px; font-size:14px; font-weight:600}
footer .foot-links a:first-child{margin-left:0}
.disclaim{margin-top:18px; font-size:12.5px; color:#7a7f9e; max-width:72ch; line-height:1.6}
.foot-center{text-align:center}
.foot-center .disclaim{margin:0 auto; max-width:92ch; font-size:11.5px}
.foot-nav{display:flex; flex-wrap:wrap; justify-content:center; gap:24px; margin-bottom:6px}
.foot-nav a{font-size:14.5px; font-weight:600; color:var(--ink-soft)}
.foot-nav a:hover{color:var(--indigo)}

/* lightbox (tap a gallery screen to enlarge) */
.gcol .pscale{cursor:zoom-in}
.lightbox{position:fixed; inset:0; z-index:100; display:none; align-items:center; justify-content:center;
  background:rgba(11,18,56,.74); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); padding:24px}
.lightbox.open{display:flex}
.lightbox img{max-height:92vh; max-width:min(420px,92vw); width:auto; border-radius:32px; box-shadow:var(--shadow-lg); display:block}
.lb-close{position:absolute; top:18px; right:22px; width:44px; height:44px; border-radius:50%; cursor:pointer;
  background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.32); color:#fff; font-size:24px; line-height:1;
  display:flex; align-items:center; justify-content:center; transition:background .2s ease}
.lb-close:hover{background:rgba(255,255,255,.3)}

/* reveal + stagger */
.reveal{opacity:0; transform:translateY(22px); transition:opacity .6s ease, transform .6s ease}
.reveal.in{opacity:1; transform:none}

/* responsive */
/* narrow-desktop band: scale the lineup so it never clips its column */
/* the 5%-smaller "default scale" is a desktop preference only — phones/tablets render full size */
@media (min-width:1025px){ body{zoom:0.95} }
@media (min-width:1025px) and (max-width:1240px){ .lineup{transform:scale(.86)} }
/* roomy desktops: enlarge the device lineup a touch (transform keeps the grid intact) */
@media (min-width:1241px){ .lineup{transform:scale(1.1)} }
/* tablets & below: hero stacks to a single centered column */
@media (max-width:1024px){
  .hero-grid{grid-template-columns:1fr; grid-template-areas:"copy" "device" "cta";
    row-gap:8px; text-align:center; padding-bottom:24px}
  .hero-copy{align-self:auto}
  .hero-cta{align-self:auto; justify-content:center; margin-top:18px}
  .hero .lede{margin-left:auto; margin-right:auto}
  .hero .eyebrow{margin:0 auto}
  .device-stage{min-height:560px; margin-top:16px}
}
@media (prefers-reduced-motion:reduce){
  .phone.floaty{animation:none}
  .hero::before,.hero::after{animation:none}
  .reveal{transition:none; opacity:1; transform:none}
  html{scroll-behavior:auto}
}

/* =================== MOBILE OVERRIDES — kept last so they win the cascade ============ */
/* header collapses to logo + "Get the app" */
@media (max-width:640px){
  .nav{padding:12px 18px}
  .brand{font-size:20px; gap:8px}
  .brand img{width:26px; height:26px}
  .nav .links a:not(.cta){display:none}
  .nav .links a.cta{margin-left:0; white-space:nowrap; padding:9px 16px}
}
@media (max-width:560px){
  .wrap{padding:0 18px}
  section{padding:26px 0}
  /* hero: fit the screen — no sideways overflow, no big gap */
  .hero-grid{padding:14px 18px 4px}
  .hero h1{font-size:clamp(26px,7.5vw,40px); margin:10px 0 14px; overflow-wrap:break-word}
  .hero .lede{font-size:16px; max-width:100%}
  .device-stage{min-height:0; margin-top:2px; padding:2px 0 8px}
  /* zoom (not transform) shrinks the lineup's LAYOUT too, so it can't push the page wide */
  .lineup{zoom:.64; transform:none}
  .hero-cta{justify-content:center}
  .stats{padding:18px 14px}
  /* card rows become edge-to-edge horizontal swipe carousels (next card peeks) */
  .props, .tracks, .grid, .gallery{
    display:flex; flex-wrap:nowrap; justify-content:flex-start; align-items:stretch;
    overflow-x:auto; gap:10px; margin:0 -18px; padding:4px 18px 10px;
    scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; scrollbar-width:none;
  }
  .props::-webkit-scrollbar, .tracks::-webkit-scrollbar,
  .grid::-webkit-scrollbar, .gallery::-webkit-scrollbar{ display:none }
  /* keep cards fully visible & still — no reveal/hover vertical jitter while swiping */
  .props > *, .tracks > *, .grid > *, .gallery > *{
    flex:0 0 78%; width:78%; max-width:78%; scroll-snap-align:center;
    opacity:1; transform:none; transition:box-shadow .2s ease, border-color .2s ease;
  }
  .card:hover, .prop:hover, .track:hover{ transform:none }
  .gcol .phone{ transition:none }
  .gcol:hover .phone{ transform:scale(var(--s)) }
}
@media (max-width:400px){ .lineup{zoom:.56} }

/* ===== mobile: store badges stay side-by-side (never stack vertically) ===== */
@media (max-width:560px){
  .hero-cta, .badges{flex-wrap:nowrap; gap:8px; justify-content:center}
  .store-badge{flex:1 1 0; min-width:0; padding:8px 10px; gap:8px; justify-content:center}
  .store-badge .logo{width:21px; height:21px}
  .store-badge .tx{min-width:0}
  .store-badge .tx small{font-size:8.5px; letter-spacing:.2px; white-space:nowrap}
  .store-badge .tx b{font-size:13.5px; white-space:nowrap}
}

/* ===== mobile polish: lighter type, single-iPhone hero, tighter cards ===== */
@media (max-width:560px){
  body{font-size:16px}
  .eyebrow{font-size:11.5px; letter-spacing:1.2px; padding:6px 12px}
  .section-head{margin:0 auto 14px}
  .section-head h2{font-size:clamp(22px,6.4vw,28px)}
  .section-head p{font-size:15px; max-width:36ch}
  /* hero: one clear iPhone instead of the cramped 3-device cluster */
  .hero h1{font-size:clamp(26px,8vw,36px); margin:8px 0 12px}
  .hero .lede{font-size:15.5px}
  .lede-full{display:none}
  .lede-short{display:block}
  /* hero: the very same three-device fan as desktop (iPhone · iPad · MacBook),
     just scaled down to fit the phone. zoom shrinks the layout too, so the fan
     never pushes the page sideways. */
  .device-stage{min-height:0; margin-top:2px; padding:2px 0 28px}
  .lineup{zoom:.60; transform:none}
  /* lighter cards */
  .card{padding:20px 18px}
  .card .ico{width:42px; height:42px; margin-bottom:12px}
  .card h3{font-size:16.5px; font-weight:700}
  .card p{font-size:14px}
  .prop{padding:22px 20px}
  .prop h3{font-size:18px}
  .prop p{font-size:14.5px}
  .track{padding:20px}
  .track h3{font-size:17px}
  .track > p{font-size:13px}
  .track li{font-size:13px}
  .faq summary{font-size:15.5px; padding:15px 18px}
  .faq .ans{font-size:14.5px; padding:0 18px 16px}
  .cta-band{padding:40px 22px}
  .cta-band h2{font-size:clamp(24px,7vw,30px)}
  /* align the dots in a column, nudged inward from the edge toward the centre */
  .chips span{font-size:14px; padding:11px 18px 11px 72px; justify-content:flex-start}
  .stat .n{font-size:clamp(22px,7vw,28px)}
  .stat .l{font-size:11.5px}
  /* tidy vertical checklist, centred as a block so every tick lines up */
  .ribbon{flex-direction:column; flex-wrap:nowrap; align-items:flex-start; gap:11px;
    width:max-content; max-width:100%; margin:0 auto; padding:16px 4px 2px}
  .ribbon span{font-size:14px}
  /* less dead space under the disclaimer at the very bottom */
  footer{padding:26px 0 16px}
}
