/* ============================================================
   Aisvera — official site
   Tokens mirror the Aisvera app (brand kit v2). Dark-only by design.
   ============================================================ */
:root {
  color-scheme: dark;
  --bg: #07101a;
  --bg2: #0b1824;
  --bg3: #10202e;
  --surface: #142333;
  --surface2: #1a2d40;
  --line: rgba(0, 173, 239, 0.12);
  --line2: rgba(0, 173, 239, 0.26);
  --accent: #00adef;
  --accent2: #33c5ff;
  --accent-dim: rgba(0, 173, 239, 0.14);
  --text: #e8f4fb;
  --text2: #7bb3cc;
  --text3: #4b7c95;
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;

  --f-display: 'Syne', system-ui, sans-serif;
  --f-sans: 'DM Sans', system-ui, sans-serif;
  --f-mono: 'DM Mono', ui-monospace, Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 5vw, 64px);
  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.16, .84, .44, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--bg); }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
.mono { font-family: var(--f-mono); }
.muted { color: var(--text2); }
.accent { color: var(--accent); }
.fine { font-size: 12.5px; color: var(--text3); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- stage layers ---------- */
#scene {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh;
  z-index: 0; display: block; transition: opacity .6s;
}
.no-webgl #scene { display: none; }
.no-webgl body {
  background:
    radial-gradient(60% 50% at 75% 30%, rgba(0,173,239,.18), transparent 70%),
    radial-gradient(50% 40% at 20% 80%, rgba(0,173,239,.08), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
.veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(130% 95% at 60% 45%, transparent 45%, rgba(7,16,26,.9) 100%),
    linear-gradient(90deg, rgba(7,16,26,.78) 0%, rgba(7,16,26,.32) 42%, rgba(7,16,26,0) 68%);
}
.grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: .06;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); }
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px var(--accent); }
main, .footer { position: relative; z-index: 3; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.hero .eyebrow::before { display: none; }
.h2 { font-size: clamp(36px, 5.4vw, 72px); line-height: 1; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--text2); max-width: 58ch; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 6vw, 64px); }

/* ---------- buttons ---------- */
.btn {
  --h: 46px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
  transition: background .3s var(--ease), color .3s, box-shadow .3s, border-color .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #031019; box-shadow: 0 0 0 0 rgba(0,173,239,.5), 0 10px 30px -10px rgba(0,173,239,.7); }
.btn-primary:hover { background: var(--accent2); box-shadow: 0 0 0 6px rgba(0,173,239,.15), 0 14px 40px -10px rgba(0,173,239,.9); }
.btn-ghost { border: 1px solid var(--line2); color: var(--text); background: rgba(7,16,26,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-dim); }
.btn[disabled] { opacity: .6; pointer-events: none; }

.glass {
  background: linear-gradient(160deg, rgba(26,45,64,.78), rgba(11,24,36,.78));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(232,244,251,.05), 0 30px 60px -30px rgba(0,0,0,.6);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50;
  width: min(calc(100% - 24px), 1160px);
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(7,16,26,.5);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: transform .5s var(--ease), background .3s;
}
.nav.is-hidden { transform: translate(-50%, -140%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--text2); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.is-current { color: var(--text); background: rgba(0,173,239,.1); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: var(--text); transition: transform .35s var(--ease); }
.nav-toggle span:first-child { top: 15px; } .nav-toggle span:last-child { top: 21px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.sheet {
  position: fixed; inset: 0; z-index: 45; padding: 96px 24px 32px;
  display: flex; flex-direction: column; gap: 6px;
  background: rgba(7,16,26,.94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.sheet a:not(.btn) { font-family: var(--f-display); font-weight: 800; font-size: 34px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sheet .btn { margin-top: 24px; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; position: relative; padding: 120px 0 90px; }
.hero-inner { display: grid; gap: 26px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.hero-title {
  font-size: clamp(38px, 10.5vw, 156px); line-height: .9; letter-spacing: -.045em;
  text-shadow: 0 10px 60px rgba(7,16,26,.6);
}
.hero-title .w { display: inline-block; white-space: nowrap; }
.hero-title .ch { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .ch > span { display: inline-block; will-change: transform; }
.hero-title .line { display: block; }
.hero-title .line:last-child { color: var(--accent); text-shadow: 0 0 60px rgba(0,173,239,.35); }
.hero-lede { font-size: clamp(17px, 1.7vw, 21px); color: var(--text2); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.ticker {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%;
  margin-top: 18px; padding: 8px 14px 8px 12px; border-radius: 999px;
  font-size: 12.5px; color: var(--text2);
  border: 1px solid var(--line); background: rgba(7,16,26,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ticker [data-ticker] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .35s, transform .35s; }
.ticker [data-ticker].out { opacity: 0; transform: translateY(-6px); }
.ticker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text3); }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--text); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }

/* ---------- problem ---------- */
.problem { padding: clamp(100px, 16vw, 200px) 0 clamp(80px, 10vw, 140px); }
.scrub-text { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 4.2vw, 58px); line-height: 1.1; letter-spacing: -.025em; max-width: 22ch; margin: 22px 0 0; }
.scrub-text em { font-style: normal; color: var(--accent); }
.scrub-text .wd { display: inline; }
.pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 8vw, 96px); }
.pain { padding: 26px 24px 28px; display: grid; gap: 12px; align-content: start; }
.pain-k { font-size: 12px; color: var(--amber); letter-spacing: .06em; }
.pain h3 { font-size: 22px; line-height: 1.15; }
.pain p { color: var(--text2); font-size: 15px; }

/* ---------- turn ---------- */
.turn { padding: clamp(80px, 12vw, 160px) 0; }
.turn-inner { display: grid; gap: 26px; }
.display { font-size: clamp(40px, 9vw, 132px); line-height: .92; letter-spacing: -.045em; }
.display .mask { display: block; overflow: hidden; padding-bottom: .04em; }
.display .mask > span { display: inline-block; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 30px 0 0; }
.stat { padding: 20px; margin: 0; }
.stat dt { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text3); }
.stat dd { margin: 10px 0 0; color: var(--text2); font-size: 14px; }
.stat strong { display: block; font-family: var(--f-display); font-weight: 800; font-size: 28px; color: var(--text); letter-spacing: -.02em; margin-bottom: 4px; }

/* ---------- how ---------- */
.how { position: relative; }
.how-pin { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 60px; }
.how-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.how-copy { display: grid; gap: 20px; }
.steps { display: grid; gap: 8px; margin-top: 18px; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 20px; border-radius: var(--r);
  border: 1px solid transparent; opacity: .38; transition: opacity .5s var(--ease), background .5s, border-color .5s;
}
.step h3 { font-size: 24px; margin-bottom: 6px; }
.step p { color: var(--text2); font-size: 15.5px; max-width: 46ch; }
.step-n { font-size: 13px; color: var(--accent); padding-top: 6px; }
.step.is-active { opacity: 1; background: rgba(16,32,46,.6); border-color: var(--line2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.step-bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.step-bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(.33); transition: transform .2s linear; }

.phone-stage { position: relative; display: grid; place-items: center; perspective: 1600px; min-height: 620px; }
.phone {
  position: relative; width: 290px; height: 600px; transform-style: preserve-3d;
  transform: rotateY(-20deg) rotateX(8deg) rotateZ(1deg); will-change: transform;
}
.phone-shell {
  position: absolute; inset: 0; border-radius: 48px; padding: 14px; overflow: hidden;
  background: linear-gradient(160deg, #0d1b28, #07101a);
  border: 1.5px solid rgba(123,179,204,.25);
  box-shadow:
    inset 0 0 0 7px #050b12,
    inset 0 0 0 8px rgba(123,179,204,.18),
    0 60px 120px -30px rgba(0,0,0,.9),
    0 0 80px -20px rgba(0,173,239,.45);
}
.phone::before { /* side thickness illusion */
  content: ""; position: absolute; inset: 0; border-radius: 48px; transform: translateZ(-14px);
  background: #02070c; border: 1px solid rgba(0,173,239,.2);
}
.phone-glow { position: absolute; width: 70%; height: 30%; bottom: 2%; left: 15%; background: radial-gradient(closest-side, rgba(0,173,239,.35), transparent); filter: blur(20px); z-index: -1; }
.phone-island { position: absolute; top: 22px; left: 50%; width: 92px; height: 26px; border-radius: 20px; background: #000; transform: translateX(-50%); z-index: 5; }
.screen {
  position: absolute; inset: 14px; border-radius: 36px; padding: 50px 18px 20px; overflow: hidden;
  background: radial-gradient(120% 60% at 50% 0%, #10263a, var(--bg) 70%);
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.screen.is-active { opacity: 1; transform: none; }
.scr-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.scr-brand { font-family: var(--f-display); font-weight: 800; font-size: 15px; }
.scr-time { color: var(--text3); }
.scr-hero { margin-top: 18px; }
.scr-eyebrow { font-family: var(--f-mono); font-size: 10.5px; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }
.scr-title { font-family: var(--f-display); font-weight: 800; font-size: 28px; margin-top: 4px; }
.scr-field { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.scr-field span { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .1em; }
.pin { display: flex; justify-content: center; gap: 14px; margin: 6px 0; }
.pin i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--text3); }
.pin i.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px var(--accent); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; }
.keypad span { height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(26,45,64,.6); font-family: var(--f-mono); font-size: 16px; }
.keypad span:empty { background: none; }
.viewfinder { position: relative; height: 190px; border-radius: 18px; background: #03080d; margin-top: 4px; overflow: hidden; display: grid; place-items: center; }
.barcode { width: 62%; height: 70px; background: repeating-linear-gradient(90deg, #e8f4fb 0 2px, transparent 2px 4px, #e8f4fb 4px 7px, transparent 7px 9px, #e8f4fb 9px 10px, transparent 10px 13px); opacity: .85; border-radius: 2px; }
.laser { position: absolute; left: 10%; right: 10%; height: 2px; background: var(--red); box-shadow: 0 0 14px 2px var(--red); top: 20%; animation: laser 1.8s ease-in-out infinite alternate; }
@keyframes laser { to { top: 78%; } }
.viewfinder .c { position: absolute; width: 22px; height: 22px; border: 2px solid var(--accent); }
.viewfinder .tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.viewfinder .tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.viewfinder .bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.viewfinder .br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.scr-card { padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line2); display: grid; gap: 7px; }
.kv { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.kv span { color: var(--text3); }
.kv b { font-weight: 500; }
.chip { font-family: var(--f-mono); font-size: 11px; padding: 3px 8px; border-radius: 999px; font-weight: 500; }
.chip.amber { color: var(--amber); background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.3); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 12px; background: var(--surface); font-size: 12px; text-align: center; margin-top: 8px; }
.seg span { padding: 8px 0; border-radius: 9px; color: var(--text2); }
.seg span.on { background: var(--accent); color: #031019; font-weight: 700; }
.route { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.route div { display: grid; gap: 2px; }
.route span { font-size: 10px; color: var(--text3); letter-spacing: .1em; text-transform: uppercase; }
.route b { font-size: 18px; font-weight: 500; }
.route svg { width: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qty { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); }
.qty span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--surface2); font-size: 18px; }
.qty b { font-size: 34px; font-weight: 500; }
.scr-btn { margin-top: auto; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--accent); color: #031019; font-weight: 700; font-size: 14px; }
.toast { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 11.5px; color: var(--green); font-family: var(--f-mono); }
.toast i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.screen.is-active .toast { animation: toast 2.4s var(--ease) infinite; }
@keyframes toast { 0%, 30% { opacity: 0; transform: translateY(6px); } 45%, 100% { opacity: 1; transform: none; } }

/* ---------- features ---------- */
.features { padding: clamp(100px, 14vw, 180px) 0; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; padding: 28px 26px; border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(26,45,64,.86), rgba(11,24,36,.9));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: grid; gap: 12px; align-content: start;
  transform-style: preserve-3d; transition: border-color .4s, transform .5s var(--ease);
  will-change: transform;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(0,173,239,.16), transparent 45%);
}
.card:hover { border-color: var(--line2); }
.card:hover::before { opacity: 1; }
.card-wide { grid-column: span 2; }
.card-full { grid-column: 1 / -1; }
.card h3 { font-size: 23px; line-height: 1.15; }
.card p { color: var(--text2); font-size: 15.5px; max-width: 52ch; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-dim); color: var(--accent); border: 1px solid var(--line2); margin-bottom: 6px; }
.card-icon.warn { color: var(--amber); background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.25); }
.card-icon.ok { color: var(--green); background: rgba(74,222,128,.1); border-color: rgba(74,222,128,.25); }
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-art { margin-top: 10px; }
.scan-art { position: relative; display: flex; gap: 6px; height: 64px; align-items: stretch; padding: 10px 14px; border-radius: 12px; background: rgba(3,8,13,.6); border: 1px solid var(--line); overflow: hidden; }
.scan-art span { flex: 1; background: var(--text); opacity: .75; border-radius: 1px; }
.scan-art span:nth-child(3n) { flex: .4; } .scan-art span:nth-child(4n) { flex: 1.8; } .scan-art span:nth-child(5n) { opacity: .3; }
.scan-art i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); box-shadow: 0 0 16px 3px var(--accent); animation: sweep 2.6s ease-in-out infinite alternate; }
@keyframes sweep { from { left: 4%; } to { left: 96%; } }
.doc-art { display: flex; align-items: center; gap: 16px; }
.doc { width: 70px; height: 86px; border-radius: 6px; background: #e8f4fb; padding: 10px 8px; display: grid; gap: 6px; align-content: start; transform: rotate(-6deg); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.doc i { height: 4px; background: #9cb5c4; border-radius: 2px; } .doc i:nth-child(2n) { width: 70%; }
.doc-art svg { width: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; flex: none; }
.doc-art .rows { display: grid; gap: 6px; font-size: 12.5px; }
.doc-art .rows span { padding: 5px 10px; border-radius: 8px; background: var(--accent-dim); border: 1px solid var(--line2); color: var(--text); }
.card-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.card-row > div { display: grid; gap: 12px; }
.ready { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: 13px; }
.ready li { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(7,16,26,.5); white-space: nowrap; }
.ready span { color: var(--accent); }

/* ---------- savings ---------- */
.savings { padding: clamp(100px, 14vw, 180px) 0; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; overflow: hidden; }
.calc-inputs { padding: clamp(22px, 3vw, 36px); display: grid; gap: 26px; border-right: 1px solid var(--line); }
.range { display: grid; gap: 12px; }
.range-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--text2); }
.range output { font-family: var(--f-mono); color: var(--text); font-size: 14px; white-space: nowrap; }
.range input {
  --p: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; outline-offset: 6px;
  background: linear-gradient(90deg, var(--accent) var(--p), rgba(123,179,204,.18) var(--p));
  cursor: pointer;
}
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--text); border: 4px solid var(--accent); box-shadow: 0 0 0 6px rgba(0,173,239,.18); transition: transform .2s; }
.range input::-webkit-slider-thumb:hover { transform: scale(1.12); }
.range input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 4px solid var(--accent); }
.calc-result { padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; align-content: center; background: radial-gradient(80% 70% at 70% 30%, rgba(0,173,239,.12), transparent 70%); }
.calc-k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text3); }
.calc-total { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 4.4vw, 66px); line-height: 1; letter-spacing: -.035em; overflow-wrap: anywhere; color: var(--text); font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 110px 1fr 96px; gap: 12px; align-items: center; font-size: 13px; color: var(--text2); }
.bar-track { height: 8px; border-radius: 8px; background: rgba(123,179,204,.12); overflow: hidden; }
.bar-track i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .7s var(--ease); }
.bar-v { text-align: right; color: var(--text); font-size: 12.5px; }
.calc-note { color: var(--text2); font-size: 15px; }
.calc-note a { color: var(--accent); border-bottom: 1px solid currentColor; }
.compare { margin-top: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; background: rgba(7,16,26,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.cmp-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line); font-size: 15px; }
.cmp-row:first-child { border-top: 0; }
.cmp-row > span:first-child { color: var(--text2); }
.cmp-row > span:nth-child(2) { color: var(--text3); }
.cmp-row > span:nth-child(3) { color: var(--text); font-weight: 500; }
.cmp-head { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; background: rgba(16,32,46,.6); }
.cmp-head > span:nth-child(3) { color: var(--accent); }

/* ---------- story ---------- */
.story { padding: clamp(100px, 14vw, 180px) 0; }
.story-quote { max-width: 24ch; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: clamp(48px, 7vw, 88px); }
.story-item { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line2); }
.story-item span { font-size: 13px; color: var(--accent); }
.story-item p { color: var(--text2); font-size: 17px; }
.story-sign { margin-top: 56px; color: var(--text2); font-size: 15px; }
.story-sign .mono { color: var(--text); }
.story-sign em { font-style: italic; color: var(--accent); }

/* ---------- access ---------- */
.access { padding: clamp(100px, 14vw, 170px) 0 clamp(80px, 10vw, 120px); }
.access-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.access-copy { display: grid; gap: 22px; position: sticky; top: 110px; }
.next { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.next li { display: flex; gap: 14px; align-items: baseline; color: var(--text2); font-size: 15.5px; }
.next .mono { color: var(--accent); font-size: 12.5px; }
.access-card { padding: clamp(20px, 3vw, 34px); }
.form { display: grid; gap: 20px; }
.seg-toggle { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; margin: 0; border: 1px solid var(--line); border-radius: 999px; background: rgba(7,16,26,.6); min-width: 0; }
.seg-toggle label { position: relative; z-index: 1; cursor: pointer; }
.seg-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.seg-toggle span { display: block; text-align: center; padding: 11px 8px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--text2); transition: color .35s; }
.seg-toggle input:checked + span { color: #031019; }
.seg-toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg-thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--accent); box-shadow: 0 6px 20px -6px rgba(0,173,239,.8); transition: transform .5s var(--ease); }
.form[data-mode="download"] .seg-thumb { transform: translateX(100%); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field > span { font-size: 12.5px; color: var(--text2); font-weight: 500; }
.field em { font-style: normal; color: var(--text3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; padding: 13px 14px; border-radius: 12px;
  background: rgba(7,16,26,.65); border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s, background .25s;
  font-size: 15px;
}
.field textarea { resize: vertical; min-height: 60px; }
.field select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237bb3cc' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
.field select:invalid { color: var(--text3); }
.field select option { background: var(--bg2); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--text3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,173,239,.14); background: rgba(7,16,26,.85); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--red); box-shadow: 0 0 0 4px rgba(248,113,113,.12); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text2); cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--line2); background: rgba(7,16,26,.6); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.consent input:checked { background: var(--accent); border-color: var(--accent); }
.consent input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #031019; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.consent.is-invalid input { border-color: var(--red); }
.gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 1.4em; font-size: 14px; color: var(--text2); text-align: center; }
.form-status.is-error { color: var(--red); }
.done { display: grid; gap: 14px; justify-items: start; padding: 10px 4px; }
.done h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; }
.done p { color: var(--text2); }
.done-badge { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.35); color: var(--green); box-shadow: 0 0 40px -6px rgba(74,222,128,.5); }
.done-badge svg { width: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dl-grid { display: grid; gap: 10px; width: 100%; margin-top: 6px; }
.dl {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px;
  border: 1px solid var(--line2); background: rgba(7,16,26,.6); transition: border-color .3s, background .3s, transform .3s var(--ease);
}
a.dl:hover { border-color: var(--accent); background: var(--accent-dim); transform: translateY(-2px); }
.dl-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface2); color: var(--accent); }
.dl-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dl b { display: block; font-size: 15.5px; }
.dl small { color: var(--text2); font-size: 13px; }
.dl-go { font-family: var(--f-mono); font-size: 12px; color: var(--accent); white-space: nowrap; }
.dl.is-pending { opacity: .75; }
.dl.is-pending .dl-go { color: var(--text3); }

/* ---------- footer ---------- */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); background: rgba(7,16,26,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 14px 28px; align-items: center; }
.footer-links { display: flex; gap: 20px; font-size: 14px; color: var(--text2); }
.footer-links a:hover { color: var(--text); }
.footer .fine { grid-column: 1 / -1; }

/* ---------- reveal defaults (JS sets initial state; content is visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-wide { grid-column: 1 / -1; }
  .card-row { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .how-pin { min-height: 0; padding: clamp(80px, 14vw, 120px) 0; }
  .how-grid { grid-template-columns: 1fr; }
  .phone-stage { order: -1; min-height: 520px; }
  .phone { width: 250px; height: 520px; transform: rotateY(-12deg) rotateX(6deg); }
  .step { opacity: 1; }
  .step-bar { display: none; }
  .calc { grid-template-columns: 1fr; }
  .calc-inputs { border-right: 0; border-bottom: 1px solid var(--line); }
  .access-grid { grid-template-columns: 1fr; }
  .access-copy { position: static; }
  .pain-grid, .story-grid { grid-template-columns: 1fr; }
  .veil { background: radial-gradient(130% 95% at 50% 40%, transparent 30%, rgba(7,16,26,.9) 100%), linear-gradient(180deg, rgba(7,16,26,.3), rgba(7,16,26,.6)); }
}
@media (max-width: 620px) {
  .nav .btn-sm { display: none; }
  .bento { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 16px; }
  .stat strong { font-size: 22px; }
  .bar { grid-template-columns: 92px 1fr 80px; gap: 8px; }
  .cmp-row { grid-template-columns: 1fr 1fr; padding: 14px 16px; }
  .cmp-row > span:first-child { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); }
  .cmp-head > span:first-child { display: none; }
  .ready { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .doc-art .rows { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .grain { animation: none; }
}
