/* ActuaI landing — standalone, no framework. Motion is opt-in via html.motion
   (set only when JS runs and prefers-reduced-motion is off). */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #07080d;
  --ink-2: #0f1119;
  --ink-3: #171a26;
  --on-ink: #f5f4f0;
  --on-ink-2: #a3a7b6;
  --on-ink-3: #6b7080;
  --paper: #fbfaf7;
  --paper-2: #f3f1ea;
  --line: #e6e2d8;
  --text: #13151e;
  --text-2: #565b6a;
  --text-3: #666a77;   /* 4.5:1 on --paper-2 too: footer operator line, step numbers */
  --blue: #1f3bff;
  --blue-2: #5068ff;
  --violet: #7b5cff;
  --marker: #ffe45c;
  --ok: #1ec98d;
  --m1: rgba(255, 99, 105, .30);
  --m2: rgba(80, 104, 255, .28);
  --m3: rgba(30, 201, 141, .28);

  /* one modern typeface everywhere; the serif is only for the mock essay (papers are set in Times) */
  --paper-serif: 'Times New Roman', Times, Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --wrap: 1200px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
img, svg { display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: rgba(255, 228, 92, .6); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.kicker { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.h2 { font-weight: 800; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -.045em; margin-top: 16px; }
.h2 em { font-style: normal; background: linear-gradient(90deg, var(--blue), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--text-2); margin-top: 18px; }
.lead a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.sec-head { max-width: 760px; margin-bottom: 64px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; isolation: isolate; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s; }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn-lg { height: 58px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-glow { background: var(--blue); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 10px 30px -8px rgba(31, 59, 255, .8); }
.btn-glow:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 14px 40px -6px rgba(31, 59, 255, .95); }
/* light sweep across primary buttons on hover */
.btn-glow::after, .btn-light::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-glow:hover::after, .btn-light:hover::after { transform: translateX(120%); }
.btn-ghost-dark { color: var(--on-ink); border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); backdrop-filter: blur(8px); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.btn-outline { border: 1px solid #d3cdbf; background: #fff; color: var(--text); }
.btn-outline:hover { border-color: var(--text); }
.btn-light { background: var(--on-ink); color: var(--ink); box-shadow: 0 20px 50px -12px rgba(80, 104, 255, .6); }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--on-ink); transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.nav-in { height: 72px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--on-ink-2); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--on-ink); background: rgba(255,255,255,.08); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-signin { font-weight: 500; font-size: 15px; color: var(--on-ink-2); }
.nav-signin:hover { color: var(--on-ink); }
/* scrolled over a dark section: dark frosted glass so the nav stays readable over the white paper */
.nav.scrolled { background: rgba(7, 8, 13, .55); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom-color: rgba(255,255,255,.08); }
.nav.solid { background: rgba(251, 250, 247, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); color: var(--text); border-bottom-color: var(--line); }
.nav.solid .nav-links a, .nav.solid .nav-signin { color: var(--text-2); }
.nav.solid .nav-links a:hover { color: var(--text); background: var(--paper-2); }

/* ═════════════════════════════════════════════════════════════════════
   HERO
   ═════════════════════════════════════════════════════════════════════ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; background: var(--ink); color: var(--on-ink); display: flex; align-items: center; overflow: hidden; padding: 120px 0 90px; }
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }

/* Aurora: big soft radial blobs drifting slowly (transform only — cheap) */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; will-change: transform; }
.aurora .a1 { width: 70vw; height: 70vw; left: -18vw; top: -30vw; background: radial-gradient(closest-side, rgba(31, 59, 255, .55), transparent); }
.aurora .a2 { width: 60vw; height: 60vw; right: -20vw; top: -10vw; background: radial-gradient(closest-side, rgba(123, 92, 255, .42), transparent); }
.aurora .a3 { width: 50vw; height: 50vw; left: 30vw; bottom: -34vw; background: radial-gradient(closest-side, rgba(255, 228, 92, .14), transparent); }
.motion .aurora .a1 { animation: drift1 18s ease-in-out infinite alternate; }
.motion .aurora .a2 { animation: drift2 22s ease-in-out infinite alternate; }
.motion .aurora .a3 { animation: drift3 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(12vw, 10vw) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-14vw, 16vw) scale(.9); } }
@keyframes drift3 { to { transform: translate(-10vw, -12vw) scale(1.2); } }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%); }
.noise { position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay; pointer-events: none; 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"); }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--on-ink-2); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); transition: border-color .2s, color .2s; }
.pill:hover { color: var(--on-ink); border-color: rgba(255,255,255,.25); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(30, 201, 141, .6); }
.motion .pill-dot { animation: ping 2s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(30, 201, 141, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 201, 141, 0); } }

.hero-title { font-weight: 800; font-size: clamp(42px, 6vw, 84px); line-height: 1; letter-spacing: -.055em; margin: 28px 0 26px; }
.hero-sub { font-size: 19px; line-height: 1.6; color: var(--on-ink-2); max-width: 32em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font-size: 14.5px; color: var(--on-ink-2); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: rgba(30, 201, 141, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231ec98d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/10px no-repeat; }
.hero-trust b { color: var(--on-ink); font-weight: 600; }

/* Highlighter stroke that draws itself behind a word */
.stroke { position: relative; display: inline-block; white-space: nowrap; }
.stroke::before { content: ''; position: absolute; left: -.06em; right: -.06em; bottom: .06em; height: .5em; background: var(--marker); border-radius: .08em .14em .1em .12em; transform: skewX(-8deg) rotate(-1.2deg); transform-origin: left center; z-index: -1; }
.hero .stroke { color: var(--ink); }
.hero .stroke::before { height: .78em; bottom: .02em; }
.hero-title .stroke { z-index: 0; }
.motion .stroke::before { transform: skewX(-8deg) rotate(-1.2deg) scaleX(0); transition: transform .9s var(--ease) var(--sd, 1.1s); }
.motion .stroke.drawn::before { transform: skewX(-8deg) rotate(-1.2deg) scaleX(1); }
/* ensure the word sits above its stroke inside the split wrappers */
.hero-title .w, .final-title .w { position: relative; z-index: 1; }

/* Word-by-word entrance (spans injected by landing.js) */
.w { display: inline-block; }
.motion .w { opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(8px); transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease); transition-delay: calc(var(--i) * 55ms + .15s); }
.motion .ready .w { opacity: 1; transform: none; filter: none; }

/* Generic staggered intro for hero elements */
.motion .intro { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 1s); }
.motion .ready .intro { opacity: 1; transform: none; }

/* ── Hero stage: tilting paper + score card ─────────────────────────── */
.stage { position: relative; perspective: 1400px; }
.stage-tilt { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -10deg)); transition: transform .2s linear; }
.doc { position: relative; background: #fff; color: var(--text); border-radius: 16px; overflow: hidden; box-shadow: 0 50px 100px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08), 0 0 80px -20px rgba(80, 104, 255, .45); transform: translateZ(0); }
.doc-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid #efece4; background: #faf9f5; }
.doc-bar span { width: 10px; height: 10px; border-radius: 50%; background: #e3dfd4; }
.doc-bar em { margin-left: 10px; font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.doc-body { padding: 28px 32px 36px; }
.doc-title { font-family: var(--paper-serif); font-size: 26px; font-weight: 700; line-height: 1.1; margin-bottom: 16px; }
.doc-body p { font-family: var(--paper-serif); font-size: 16.5px; line-height: 1.75; color: #4a4f5d; }
.doc-body p + p { margin-top: 10px; }
.hl { color: var(--text); border-radius: 3px; padding: 1px 1px; background: linear-gradient(var(--c), var(--c)) no-repeat 0 0 / 100% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl sup { font-family: var(--mono); font-size: 10px; font-weight: 600; margin-left: 2px; }
.motion .hl { background-size: 0% 100%; transition: background-size .7s var(--ease); }
.motion .hl sup { opacity: 0; transition: opacity .3s .5s; }
.motion .hl.on { background-size: 100% 100%; }
.motion .hl.on sup { opacity: 1; }

.beam { position: absolute; left: 0; right: 0; top: 0; height: 90px; pointer-events: none; opacity: 0; background: linear-gradient(to bottom, transparent, rgba(80, 104, 255, .16) 70%, rgba(80, 104, 255, .5) 98%, rgba(160, 175, 255, .95)); border-bottom: 2px solid rgba(120, 140, 255, .9); box-shadow: 0 10px 30px rgba(80, 104, 255, .6); transform: translateY(-90px); }
.motion .scanning .beam { opacity: 1; animation: scan 3s cubic-bezier(.45, 0, .55, 1) forwards; }
@keyframes scan { from { transform: translateY(-90px); } 85% { opacity: 1; } to { transform: translateY(var(--scan-to, 460px)); opacity: 0; } }

.score { position: absolute; right: -34px; bottom: -48px; width: 270px; padding: 18px; border-radius: 16px; background: rgba(20, 23, 34, .88); color: var(--on-ink); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); transform: translateZ(60px); }
.score-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-ink-2); }
.score-status b { font-weight: 600; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--blue-2); animation: spin .8s linear infinite; }
.score.done .spin { border: none; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307080d' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/10px no-repeat; animation: pop .4s var(--spring); }
.score.done .score-status { color: var(--ok); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(0); } }
.score-row { display: flex; align-items: center; gap: 16px; margin: 16px 0; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ring { width: 58px; height: 58px; transform: rotate(-90deg); flex-shrink: 0; }
.ring circle { fill: none; stroke-width: 7; }
.ring-bg { stroke: rgba(255,255,255,.1); }
.ring-fg { stroke: var(--marker); stroke-linecap: round; stroke-dasharray: 163.4; stroke-dashoffset: 143.8; }
.motion .ring-fg { stroke-dashoffset: 163.4; transition: stroke-dashoffset 1.2s var(--ease); }
.score-num { font-size: 38px; font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.score-lbl { font-size: 13px; color: var(--on-ink-2); margin-top: 2px; }
.score-ai-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--on-ink-2); }
.score-ai-top b { color: var(--on-ink); font-family: var(--mono); font-weight: 500; }
.meter { height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); margin-top: 9px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 3%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-2), var(--violet)); }
.motion .meter span { width: 0; transition: width 1.2s var(--ease); }

.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 12px; background: rgba(255,255,255,.95); color: var(--text); font-size: 13px; font-weight: 600; box-shadow: 0 20px 40px -12px rgba(0,0,0,.6); white-space: nowrap; }
.chip i { font-style: normal; font-family: var(--mono); font-size: 10px; font-weight: 600; color: #fff; background: #e5484d; border-radius: 6px; padding: 4px 6px; }
.chip-1 { left: -46px; top: 38%; transform: translateZ(90px); }
.chip-2 { left: 8%; bottom: -70px; transform: translateZ(40px); }
.motion .chip { opacity: 0; scale: .6; transition: opacity .5s var(--ease), scale .6s var(--spring); }
.motion .chip.show { opacity: 1; scale: 1; }
.motion .chip.show.chip-1 { animation: float 5s ease-in-out infinite; }
.motion .chip.show.chip-2 { animation: float 6s ease-in-out -2s infinite; }
@keyframes float { 50% { translate: 0 -10px; } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border-radius: 99px; border: 1.5px solid rgba(255,255,255,.3); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--on-ink); }
.motion .scroll-cue span { animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ── Marquee ─────────────────────────────────────────────────────────── */
.marquee { background: var(--ink); border-top: 1px solid rgba(255,255,255,.08); overflow: hidden; padding: 26px 0 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.04em; color: var(--on-ink); white-space: nowrap; }
.marquee-track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(245, 244, 240, .55); }
.marquee-track i { font-style: normal; font-size: .5em; color: var(--marker); }
.motion .marquee-track { animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Statement: words light up with scroll ──────────────────────────── */
.statement { padding: 160px 0 150px; }
.big-text { font-weight: 700; font-size: clamp(30px, 4vw, 54px); line-height: 1.14; letter-spacing: -.04em; margin-top: 26px; max-width: 17em; }
.big-text .sw { transition: color .35s var(--ease); }
.motion .big-text .sw { color: #8f8b83; }
.motion .big-text .sw.lit { color: var(--text); }
.motion .big-text .sw.lit.em { color: var(--blue); }

/* ── Scroll reveals ──────────────────────────────────────────────────── */
.motion .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 1s); }
.motion .reveal.in { opacity: 1; transform: none; }

/* ═════════════════════════════════════════════════════════════════════
   HOW IT WORKS — sticky device, steps scroll past it
   ═════════════════════════════════════════════════════════════════════ */
.how { padding: 60px 0 120px; }
.how-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; }
.how-sticky { position: sticky; top: 120px; height: min(560px, 72vh); align-self: start; }
.device { position: relative; height: 100%; border-radius: 22px; background: var(--ink); overflow: hidden; box-shadow: 0 50px 100px -40px rgba(7, 8, 13, .55); }
.device::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 70% 10%, rgba(31, 59, 255, .45), transparent), radial-gradient(50% 40% at 10% 100%, rgba(123, 92, 255, .3), transparent); }
.device-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 7px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.device-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.device-bar em { margin: 0 auto; font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--on-ink-3); padding: 4px 14px; border-radius: 8px; background: rgba(255,255,255,.06); }
.scene { position: absolute; inset: 58px 0 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 30px 44px; color: var(--on-ink); opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .6s var(--ease), transform .7s var(--ease); pointer-events: none; }
.device[data-scene="1"] .scene-1, .device[data-scene="2"] .scene-2, .device[data-scene="3"] .scene-3 { opacity: 1; transform: none; }

/* scene 1: upload */
.sc-drop { position: relative; height: 210px; border-radius: 16px; border: 1.5px dashed rgba(255,255,255,.25); background: rgba(255,255,255,.03); display: flex; align-items: center; justify-content: center; }
.sc-drop-label { color: var(--on-ink-3); font-size: 15px; transition: opacity .3s; }
.sc-file { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; border-radius: 14px; background: #fff; color: var(--text); box-shadow: 0 30px 50px -15px rgba(0,0,0,.6); }
.sc-file i, .sc-pdf i { font-style: normal; font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: #fff; background: var(--blue); border-radius: 7px; padding: 10px 7px; }
.sc-file b { display: block; font-size: 15px; }
.sc-file small { color: var(--text-3); font-size: 12.5px; }
.sc-progress { height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.sc-progress span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-2), var(--violet)); }
.sc-note { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--on-ink-2); }
.ok-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307080d' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; flex-shrink: 0; }
.motion .device[data-scene="1"] .sc-file { animation: drop 1.1s var(--spring) .2s both; }
.motion .device[data-scene="1"] .sc-drop-label { animation: fadeout .2s .6s both; }
.motion .device[data-scene="1"] .sc-progress span { animation: fill 1.4s var(--ease) 1.1s both; }
.motion .device[data-scene="1"] .sc-note { animation: up .6s var(--ease) 2.3s both; }
@keyframes drop { from { opacity: 0; transform: translateY(-150px) rotate(-8deg); } 60% { opacity: 1; } }
@keyframes fadeout { to { opacity: 0; } }
@keyframes fill { from { width: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(12px); } }

/* scene 2: pay */
.sc-line { display: flex; justify-content: space-between; font-size: 17px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sc-line b { font-weight: 800; font-size: 26px; letter-spacing: -.04em; line-height: 1; }
.sc-muted { color: var(--on-ink-2); font-size: 15px; }
.sc-cardnum { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: 14px; color: var(--on-ink-2); }
.sc-cardnum .type { font-family: var(--mono); color: var(--on-ink); overflow: hidden; white-space: nowrap; border-right: 2px solid transparent; }
.sc-pay { text-align: center; padding: 15px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 600; box-shadow: 0 16px 30px -10px rgba(31, 59, 255, .8); }
.sc-paid { text-align: center; color: var(--ok); font-weight: 600; font-size: 15px; }
.motion .device[data-scene="2"] .sc-cardnum .type { animation: type 1.2s steps(19) .4s both, caret .7s step-end 5 .4s; }
.motion .device[data-scene="2"] .sc-pay { animation: press .5s var(--ease) 1.9s both; }
.motion .device[data-scene="2"] .sc-paid { animation: up .6s var(--spring) 2.3s both; }
@keyframes type { from { max-width: 0; } to { max-width: 20ch; } }
@keyframes caret { 50% { border-right-color: var(--on-ink); } }
@keyframes press { 40% { transform: scale(.95); filter: brightness(1.2); } }

/* scene 3: done */
.sc-mail { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: #fff; color: var(--text); box-shadow: 0 30px 50px -18px rgba(0,0,0,.6); }
.mail-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--marker); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--ink); flex-shrink: 0; }
.sc-mail b { display: block; font-size: 15.5px; }
.sc-mail small { color: var(--text-3); font-size: 13px; }
.sc-pdfs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sc-pdf { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.sc-pdf i { align-self: flex-start; background: #e5484d; padding: 6px 7px; }
.sc-pdf b { font-size: 15px; margin-top: 6px; }
.sc-pdf span { font-size: 34px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.sc-pdf em { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-style: normal; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.motion .device[data-scene="3"] .sc-mail { animation: slidein .8s var(--spring) .2s both; }
.motion .device[data-scene="3"] .sc-pdf { animation: up .7s var(--spring) both; }
.motion .device[data-scene="3"] .sc-pdf:nth-child(1) { animation-delay: .8s; }
.motion .device[data-scene="3"] .sc-pdf:nth-child(2) { animation-delay: 1s; }
.motion .device[data-scene="3"] .sc-pdf em { animation: bob 1.4s ease-in-out 1.8s infinite; }
@keyframes slidein { from { opacity: 0; transform: translateY(-40px) scale(.9); } }
@keyframes bob { 50% { transform: translateY(4px); } }

.how-steps { position: relative; padding-left: 40px; }
.rail { position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--line); border-radius: 2px; }
.rail span { position: absolute; inset: 0 0 auto; height: calc(var(--p, 0) * 100%); background: linear-gradient(var(--blue), var(--violet)); border-radius: inherit; }
.how-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; }
.how-step:first-of-type { min-height: 48vh; justify-content: flex-start; padding-top: 70px; }
.how-step:last-of-type { min-height: 56vh; }
.how-n { font-family: var(--mono); font-size: 14px; color: var(--text-3); transition: color .4s; }
.how-step h3 { font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -.045em; margin: 12px 0 16px; color: var(--text-3); transition: color .4s var(--ease); }
.how-step p { color: var(--text-3); max-width: 30em; transition: color .4s var(--ease); }
.how-step.active .how-n { color: var(--blue); }
.how-step.active h3 { color: var(--text); }
.how-step.active p { color: var(--text-2); }
html:not(.js) .how-step h3, html:not(.js) .how-step p { color: var(--text); }

/* ═════════════════════════════════════════════════════════════════════
   REPORTS
   ═════════════════════════════════════════════════════════════════════ */
.reports { padding: 120px 0; background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rcard { position: relative; padding: 34px; border-radius: 24px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.rcard:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -40px rgba(19, 21, 30, .35); }
/* cursor spotlight (--mx/--my set by JS) */
.spot::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(80, 104, 255, .12), transparent 60%); }
.spot:hover::after { opacity: 1; }
.rcard h3 { font-weight: 800; font-size: 30px; letter-spacing: -.045em; margin: 30px 0 10px; }
.rcard p { color: var(--text-2); }
.rcard-vis { padding: 22px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); min-height: 190px; display: flex; flex-direction: column; justify-content: center; }
.src { display: grid; grid-template-columns: 28px 1fr 90px 40px; gap: 12px; align-items: center; font-size: 14.5px; padding: 10px 0; }
.src + .src { border-top: 1px dashed #d8d2c4; }
.src i { width: 26px; height: 26px; border-radius: 7px; background: var(--c); font-style: normal; font-family: var(--mono); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.src span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src b { height: 6px; border-radius: 9px; background: #ebe7dd; position: relative; overflow: hidden; }
.src b::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--blue); }
.motion .src b::after { width: 0; transition: width 1.4s var(--ease) .3s; }
.motion .in .src b::after { width: var(--w); }
.src em { font-style: normal; font-family: var(--mono); font-size: 13px; text-align: right; }
.ai-top { display: flex; justify-content: space-between; align-items: baseline; color: var(--text-2); font-size: 15px; }
.ai-top b { font-weight: 800; font-size: 48px; letter-spacing: -.05em; line-height: 1; color: var(--text); }
.ai-bars { display: flex; gap: 5px; height: 44px; align-items: flex-end; margin: 14px 0 12px; }
/* each bar = a stretch of the paper; all "human" (green) because the example scores 0% AI */
.ai-bars i { flex: 1; height: var(--h, 60%); border-radius: 4px; background: rgba(30, 201, 141, .32); transform-origin: bottom; }
.motion .ai-bars i { transform: scaleY(.1); transition: transform .8s var(--spring); }
.motion .in .ai-bars i { transform: none; }
.motion .in .ai-bars i:nth-child(n) { transition-delay: calc(var(--k, 0) * 30ms); }
.ai-foot { font-size: 13px; color: var(--text-3); font-family: var(--mono); }

/* ═════════════════════════════════════════════════════════════════════
   NUMBERS (dark band)
   ═════════════════════════════════════════════════════════════════════ */
.numbers { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); padding: 110px 0; }
.aurora-soft .a1 { opacity: .6; } .aurora-soft .a2 { opacity: .6; }
.num-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.num { padding: 26px 0 0; border-top: 1px solid rgba(255,255,255,.15); }
.num b { display: block; font-weight: 800; font-size: clamp(48px, 5.4vw, 76px); line-height: 1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.num b small { font-size: .42em; margin-left: 6px; color: var(--on-ink-2); letter-spacing: 0; }
.num > span { display: block; margin-top: 12px; color: var(--on-ink-2); font-size: 15.5px; max-width: 14em; }

/* ═════════════════════════════════════════════════════════════════════
   PRICING
   ═════════════════════════════════════════════════════════════════════ */
.pricing { padding: 140px 0 120px; }
.speed { position: relative; display: flex; width: max-content; margin: -24px auto 48px; padding: 5px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); }
.speed button { position: relative; z-index: 1; height: 42px; padding: 0 22px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--text-2); transition: color .3s; }
.speed button.on { color: var(--text); }
.speed button small { font-family: var(--mono); font-size: 12px; color: var(--blue); margin-left: 4px; }
.speed-thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: var(--tw, 50%); transform: translateX(var(--tx, 0)); border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(19, 21, 30, .12); transition: transform .45s var(--spring), width .45s var(--spring); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px 30px 30px; border-radius: 24px; background: #fff; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.plan:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -40px rgba(19, 21, 30, .3); }
.plan h3 { font-size: 18px; font-weight: 600; }
.plan > p { color: var(--text-2); font-size: 15px; margin-top: 4px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 26px 0 8px; }
.plan-price span { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.plan-price small { color: var(--text-3); font-size: 15px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 22px 0 30px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15.5px; color: var(--text-2); }
.plan li::before { content: ''; width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; border-radius: 50%; background: rgba(30, 201, 141, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311a574' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }
/* Featured plan: rotating gradient border */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.plan-hot { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from var(--ang), var(--blue), var(--violet), var(--marker), var(--blue)) border-box; box-shadow: 0 40px 90px -40px rgba(31, 59, 255, .55); }
.motion .plan-hot { animation: spinborder 6s linear infinite; }
@keyframes spinborder { to { --ang: 360deg; } }
.plan-tag { position: absolute; top: -14px; left: 30px; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: var(--marker); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.fine { text-align: center; color: var(--text-3); font-size: 14px; margin-top: 30px; }
.fine a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.fine a:hover { color: var(--blue); }

/* ═════════════════════════════════════════════════════════════════════
   FAQ
   ═════════════════════════════════════════════════════════════════════ */
.faq { padding: 40px 0 140px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; }
.faq-grid > div:first-child { position: sticky; top: 120px; align-self: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; transition: color .2s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--blue); }
.faq-list summary i { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); flex-shrink: 0; transition: transform .4s var(--ease), background-color .3s, border-color .3s; }
.faq-list summary i::before, .faq-list summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; border-radius: 2px; }
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: #fff; }
.ans { overflow: hidden; }
.ans p { color: var(--text-2); padding: 0 56px 26px 0; }

/* ═════════════════════════════════════════════════════════════════════
   FINAL CTA
   ═════════════════════════════════════════════════════════════════════ */
.final { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); padding: 170px 0; text-align: center; }
.final-in { position: relative; z-index: 2; }
.final-title { font-weight: 800; font-size: clamp(46px, 7.6vw, 116px); line-height: 1; letter-spacing: -.06em; }
.final-title .stroke { color: var(--ink); }
.final-title .stroke::before { height: .72em; bottom: .04em; --sd: .5s; }
.final p { color: var(--on-ink-2); font-size: 20px; margin: 26px 0 40px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.foot { background: var(--paper); border-top: 1px solid var(--line); padding: 70px 0 34px; }
.foot-in { display: grid; grid-template-columns: 1.2fr 2fr; gap: 60px; }
.foot-in > div > p { color: var(--text-2); font-size: 15px; margin-top: 16px; max-width: 24em; }
.brand-dark { color: var(--text); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.foot-cols h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.foot-cols a { display: block; color: var(--text-2); font-size: 15px; margin-bottom: 10px; transition: color .2s; }
.foot-cols a:hover { color: var(--blue); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }

/* ═════════════════════════════════════════════════════════════════════
   Responsive
   ═════════════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; gap: 90px; }
  .stage { max-width: 560px; width: 100%; margin: 0 auto; }
  .how-grid { grid-template-columns: 1fr; gap: 40px; }
  /* one column: the device sits above the steps and plays the scenes by itself */
  .how-sticky { position: relative; top: 0; height: 440px; }
  .how-steps { padding-left: 0; }
  .rail { display: none; }
  .how-step, .how-step:first-of-type, .how-step:last-of-type { min-height: auto; padding: 36px 0; justify-content: flex-start; }
  /* stacked layout: every step stays readable; the playing scene only lights up its number */
  .how-step h3 { color: var(--text); }
  .how-step p { color: var(--text-2); }
  .num-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-grid > div:first-child { position: static; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .report-grid, .plans { grid-template-columns: 1fr; }
  .plans { max-width: 480px; margin: 0 auto; }
  .foot-in { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav-in { gap: 12px; }
  .nav-signin { display: none; }
  .hero { padding: 104px 0 80px; }
  .hero-title { margin: 22px 0 20px; }
  .hero-sub { font-size: 17px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .doc-body { padding: 20px 22px 26px; }
  .doc-title { font-size: 23px; }
  .doc-body p { font-size: 15px; }
  .score { right: -8px; bottom: -64px; width: 220px; padding: 14px; }
  .score-num { font-size: 36px; }
  .chip-1 { left: -6px; top: -26px; }
  .chip-2 { display: none; }
  .scroll-cue { display: none; }
  .statement { padding: 110px 0 90px; }
  .scene { padding: 24px; }
  .sc-drop { height: 170px; }
  .how-sticky { height: 400px; }
  .rcard { padding: 22px; }
  .rcard h3 { font-size: 32px; }
  .src { grid-template-columns: 26px 1fr 50px 36px; font-size: 13.5px; }
  .num-grid { grid-template-columns: 1fr; }
  .speed button { padding: 0 16px; }
  .plan-price span { font-size: 56px; }
  .ans p { padding-right: 0; }
  .final { padding: 120px 0; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (hover: none) {
  .stage-tilt { transition: none; }
}
