/* ==========================================================================
   G1 Driving: one-page site (home + Study guide + Privacy + Terms + Delete my
   data) and 404.
   Two themes: light (the default) and dark, picked by data-theme on <html>.
   Soft aurora, hairline borders, glass panels with a cursor spotlight,
   scroll-driven motion.
   ========================================================================== */

/* Light theme (default). Every colour the page uses is a token here so the
   dark block below can swap them all. */
:root {
  --bg: #f5f7fb;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, .72);
  --surface-2: rgba(15, 23, 42, .05);
  --border: rgba(15, 23, 42, .10);
  --border-2: rgba(15, 23, 42, .18);
  --border-3: rgba(15, 23, 42, .32);
  --text: #0b0f1a;
  --text-2: #4b5567;
  --text-3: #7b8494;
  --doc-text: #2b3342;
  --link: #2f5fd6;

  --accent: #2f5fd6;
  --violet: #7c3aed;
  --maple: #e0313f;
  --mint: #0f9f6e;
  --amber: #f59e0b;
  --grad: linear-gradient(92deg, #0b0f1a 0%, #2f5fd6 55%, #7c3aed 100%);

  /* Solid button: dark on light, white on dark. */
  --solid-bg: #0b0f1a;
  --solid-bg-hover: #1b2332;
  --solid-fg: #ffffff;
  --solid-fg-2: #a7aebd;
  --solid-glow: rgba(11, 15, 26, .18);
  --solid-glow-2: rgba(11, 15, 26, .26);

  /* Frosted glass: header bar, floating chips, carousel arrows, menu. */
  --glass: rgba(255, 255, 255, .66);
  --glass-2: rgba(255, 255, 255, .86);
  --glass-3: rgba(255, 255, 255, .97);
  --fill-hover: rgba(15, 23, 42, .08);

  --grid-line: rgba(15, 23, 42, .06);
  --aurora-opacity: .42;
  --noise-opacity: .035;
  --ring-track: rgba(15, 23, 42, .08);

  --shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 20px 60px rgba(15, 23, 42, .10);
  --shadow-bar: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 10px 40px rgba(15, 23, 42, .10);
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, .12);
  --shadow-pop: 0 20px 50px rgba(15, 23, 42, .16);
  --shadow-phone: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 2px 4px rgba(15, 23, 42, .18), 0 30px 70px rgba(15, 23, 42, .28);
  --shadow-phone-main: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 1px rgba(47, 95, 214, .25), 0 40px 90px rgba(15, 23, 42, .32), 0 0 80px rgba(91, 140, 255, .18);
  --shadow-phone-hover: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 1px rgba(47, 95, 214, .35), 0 30px 70px rgba(15, 23, 42, .3), 0 0 60px rgba(91, 140, 255, .18);

  --wrap: 1140px;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* Dark theme: near-black with a soft aurora. */
html[data-theme="dark"] {
  --bg: #07090f;
  --bg-2: #0b0f1a;
  --surface: rgba(255, 255, 255, .03);
  --surface-2: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .08);
  --border-2: rgba(255, 255, 255, .16);
  --border-3: rgba(255, 255, 255, .3);
  --text: #f2f4f8;
  --text-2: #a7aebd;
  --text-3: #6d7585;
  --doc-text: #d3d8e3;
  --link: #9db8ff;

  --accent: #5b8cff;
  --violet: #8b5cf6;
  --maple: #ff3d4d;
  --mint: #34d399;
  --amber: #fbbf24;
  --grad: linear-gradient(92deg, #ffffff 0%, #b9c8ff 45%, #a78bfa 100%);

  --solid-bg: #ffffff;
  --solid-bg-hover: #e9edf5;
  --solid-fg: #06080d;
  --solid-fg-2: #5b6272;
  --solid-glow: rgba(255, 255, 255, .08);
  --solid-glow-2: rgba(255, 255, 255, .12);

  --glass: rgba(11, 15, 26, .62);
  --glass-2: rgba(11, 15, 26, .82);
  --glass-3: rgba(11, 15, 26, .96);
  --fill-hover: rgba(255, 255, 255, .12);

  --grid-line: rgba(255, 255, 255, .035);
  --aurora-opacity: .5;
  --noise-opacity: .045;
  --ring-track: rgba(255, 255, 255, .07);

  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 60px rgba(0, 0, 0, .45);
  --shadow-bar: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 10px 40px rgba(0, 0, 0, .35);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, .4);
  --shadow-pop: 0 20px 50px rgba(0, 0, 0, .45);
  --shadow-phone: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 2px 4px rgba(0, 0, 0, .3), 0 30px 70px rgba(0, 0, 0, .55);
  --shadow-phone-main: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 1px rgba(91, 140, 255, .25), 0 40px 90px rgba(0, 0, 0, .6), 0 0 80px rgba(91, 140, 255, .18);
  --shadow-phone-hover: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 1px rgba(91, 140, 255, .35), 0 30px 70px rgba(0, 0, 0, .55), 0 0 60px rgba(91, 140, 255, .18);
  color-scheme: dark;
}

/* Crossfade while the theme switches (the class is on <html> for ~350ms). */
html.theming, html.theming *, html.theming *::before, html.theming *::after {
  transition: background-color .3s ease, background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease, fill .3s ease, stroke .3s ease, opacity .3s ease !important;
}
html.theming .theme-toggle .ic { transition: transform .35s var(--ease), opacity .25s ease !important; }

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -.025em; margin: 0 0 .5em; }
p { margin: 0 0 1.1em; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.fill { fill: currentColor; stroke: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.narrow { max-width: 820px; }
.muted { color: var(--text-2); }
.small { font-size: .92rem; }
@media (max-width: 480px) { .wrap { padding: 0 18px; } }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--solid-bg); color: var(--solid-fg); font-weight: 600;
  padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }
.mono-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); text-align: center; margin: 0 0 20px; }

/* ----------------------------------------------------------- background */

.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--aurora-opacity); will-change: transform; animation: drift 26s ease-in-out infinite alternate; }
.a1 { width: 720px; height: 720px; left: -220px; top: -260px; background: radial-gradient(circle, rgba(91, 140, 255, .55), transparent 65%); }
.a2 { width: 640px; height: 640px; right: -200px; top: 10%; background: radial-gradient(circle, rgba(139, 92, 246, .45), transparent 65%); animation-delay: -9s; }
.a3 { width: 520px; height: 520px; left: 30%; bottom: -260px; background: radial-gradient(circle, rgba(255, 61, 77, .22), transparent 65%); animation-delay: -17s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(60px, 40px, 0) scale(1.12); }
}
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 10%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 10%, transparent 100%);
}
.noise {
  position: absolute; inset: 0; opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .site-footer { position: relative; z-index: 1; }

.progress {
  position: fixed; top: 0; left: 0; z-index: 210;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--violet), var(--maple));
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
}

/* ---------------------------------------------------------------- header */

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; padding: 14px 16px 0; pointer-events: none; }
.site-header .bar {
  pointer-events: auto;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow-bar);
  transition: background .3s ease, border-color .3s ease;
}
.site-header.scrolled .bar { background: var(--glass-2); border-color: var(--border-2); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; flex: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav a.nav-cta { margin-left: 8px; background: var(--solid-bg); color: var(--solid-fg); font-weight: 600; }
.nav a.nav-cta:hover { background: var(--solid-bg-hover); color: var(--solid-fg); }

/* Light / dark switch: a moon in light mode, a sun in dark mode. */
.theme-toggle {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--border-2); background: var(--fill-hover); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle .ic { width: 18px; height: 18px; stroke-width: 2; grid-area: 1 / 1; transition: transform .35s var(--ease), opacity .25s ease; }
.theme-toggle .sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
.theme-toggle .moon { opacity: 1; transform: none; }
html[data-theme="dark"] .theme-toggle .sun { opacity: 1; transform: none; }
html[data-theme="dark"] .theme-toggle .moon { opacity: 0; transform: rotate(90deg) scale(.6); }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-2);
  cursor: pointer;
  place-content: center;
  gap: 5px;
}
.menu-toggle span { display: block; width: 16px; height: 1.5px; border-radius: 2px; background: var(--text); transition: transform .2s ease; }
.menu-open .menu-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 960px) {
  .js .menu-toggle { display: grid; }
  .js .theme-toggle { margin-left: auto; }
  .js .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: 24px;
    background: var(--glass-3);
    border: 1px solid var(--border-2);
    box-shadow: var(--shadow-pop);
  }
  .js .menu-open .nav { display: flex; }
  .js .nav a { padding: 12px 16px; border-radius: 14px; font-size: 1rem; }
  .js .nav a.nav-cta { margin: 6px 0 0; text-align: center; }
}
html:not(.js) .nav { flex-wrap: wrap; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
/* The solid store button (class name kept for the HTML): white on dark, near-black on light. */
.btn-light { background: var(--solid-bg); color: var(--solid-fg); padding: 10px 22px 10px 16px; box-shadow: 0 10px 30px var(--solid-glow); }
.btn-light:hover { transform: translateY(-2px); background: var(--solid-bg-hover); color: var(--solid-fg); box-shadow: 0 16px 40px var(--solid-glow-2); }
.btn-light .ic { width: 24px; height: 24px; }
.btn-light i { display: block; font-style: normal; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--solid-fg-2); line-height: 1.3; }
.btn-light b { display: block; font-family: var(--display); font-size: 1.05rem; line-height: 1.15; }
.btn-ghost { color: var(--text); border: 1px solid var(--border-2); background: var(--surface); padding: 15px 22px; }
.btn-ghost:hover { border-color: var(--border-3); background: var(--surface-2); color: var(--text); transform: translateY(-2px); }
.btn-ghost .ic { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ hero */

.hero { padding: 168px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; min-height: 640px; }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.5rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 22px; }
.hero .lead { font-size: 1.15rem; color: var(--text-2); max-width: 50ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: var(--text-2); }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust .ic { width: 16px; height: 16px; color: var(--mint); stroke-width: 2.4; }

.hero-stage { position: relative; height: 620px; perspective: 1400px; }
.stage-glow {
  position: absolute; left: 50%; top: 50%; width: 520px; height: 520px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(91, 140, 255, .32), rgba(139, 92, 246, .18) 40%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.phone {
  display: block; margin: 0; padding: 7px;
  border-radius: 38px;
  background: linear-gradient(150deg, #2a3142, #0d111b 55%, #1c2231);
  box-shadow: var(--shadow-phone);
}
.phone img { width: 100%; border-radius: 31px; background: #eceae8; }
.para { position: absolute; will-change: transform; }
.tilt { position: absolute; left: 50%; top: 0; width: 292px; margin-left: -146px; z-index: 3; transform-style: preserve-3d; transition: transform .5s var(--ease); }
.phone-main { box-shadow: var(--shadow-phone-main); }
.phone-side { width: 232px; opacity: .92; }
.para.left { left: 0; top: 80px; z-index: 1; }
.para.right { right: 0; top: 80px; z-index: 1; }
.phone-side.left { transform: rotate(-9deg); }
.phone-side.right { transform: rotate(9deg); }

.chip {
  z-index: 4;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: var(--glass-2);
  border: 1px solid var(--border-2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-pop);
}
.chip b { display: block; font-family: var(--display); font-size: 1rem; line-height: 1.15; }
.chip small { display: block; color: var(--text-2); font-size: .76rem; }
.chip-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.chip-ic .ic { width: 18px; height: 18px; stroke-width: 2.2; color: #06080d; }
.chip-ic.ok { background: var(--mint); }
.chip-ic.warn { background: var(--amber); }
.chip-ic.info { background: var(--accent); }
.chip-1 { left: -4%; top: 47%; }
.chip-2 { right: -2%; top: 14%; }
.chip-3 { right: 4%; bottom: 6%; }

@media (max-width: 960px) {
  .hero { padding-top: 130px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; text-align: center; gap: 24px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions, .trust { justify-content: center; }
  .hero-stage { max-width: 560px; width: 100%; margin: 20px auto 0; height: 560px; }
}
@media (max-width: 560px) {
  .hero-stage { height: 460px; }
  .tilt { width: 226px; margin-left: -113px; }
  .phone-side { width: 172px; }
  .para.left { left: -8%; top: 64px; }
  .para.right { right: -8%; top: 64px; }
  .chip { padding: 8px 12px 8px 8px; border-radius: 13px; }
  .chip-ic { width: 30px; height: 30px; }
  .chip b { font-size: .9rem; }
  .chip-1 { left: 0; }
  .chip-2 { right: 0; top: 6%; }
  .chip-3 { right: 0; bottom: 4%; }
}

/* ------------------------------------------------------------------ stats */

section { padding: 120px 0; }
.stats { padding: 60px 0 0; }
.stats-bar {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  overflow: hidden;
}
.stats-bar li { padding: 30px 24px; text-align: center; border-left: 1px solid var(--border); }
.stats-bar li:first-child { border-left: 0; }
.stats-bar b {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stats-bar span { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 720px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stats-bar li:nth-child(3) { border-left: 0; }
  .stats-bar li:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ---------------------------------------------------------- section head */

.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -.03em; margin-bottom: 16px; }
.section-head p:not(.eyebrow) { color: var(--text-2); font-size: 1.1rem; margin: 0; }

/* --------------------------------------------------------------- showcase */

.show { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.show-step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding: 36px 0; opacity: .3; transition: opacity .5s ease; }
.show-step.is-active { opacity: 1; }
.step-index { font-family: var(--mono); font-size: .78rem; color: var(--accent); letter-spacing: .1em; margin-bottom: 18px; display: block; }
.show-step h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.show-step p { color: var(--text-2); font-size: 1.05rem; max-width: 46ch; }
.mini-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.mini-list li { position: relative; padding-left: 26px; color: var(--text); font-size: .96rem; }
.mini-list li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(52, 211, 153, .16);
  -webkit-mask: none;
}
.mini-list li::after {
  content: ""; position: absolute; left: 4px; top: 8px;
  width: 8px; height: 5px;
  border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint);
  transform: rotate(-45deg);
}
.show-step-img { display: none; }

.show-stage { position: sticky; top: 100px; height: calc(100vh - 130px); min-height: 560px; display: grid; place-items: center; }
.show-stage::before {
  content: ""; position: absolute; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(139, 92, 246, .28), rgba(91, 140, 255, .14) 45%, transparent 70%);
  filter: blur(30px);
}
.show-phone { position: relative; width: min(320px, 100%); }
.show-phone .screen { position: relative; aspect-ratio: 660 / 1434; border-radius: 31px; overflow: hidden; background: #eceae8; }
.show-img { position: absolute; inset: 0; width: 100%; border-radius: 0; opacity: 0; transform: scale(1.03); transition: opacity .55s ease, transform .55s var(--ease); }
.show-img.is-active { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .show { grid-template-columns: 1fr; gap: 0; }
  .show-stage { display: none; }
  .show-step { min-height: 0; opacity: 1; padding: 30px 0; border-top: 1px solid var(--border); }
  .show-step:first-child { border-top: 0; }
  .show-step-img { display: block; width: min(250px, 80%); margin: 28px auto 0; }
}

/* ---------------------------------------------------------------- bento */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s;
  grid-column: span 2;
}
.tile:hover { transform: translateY(-3px); border-color: var(--border-2); }
.tile h3 { font-size: 1.3rem; margin: 18px 0 8px; }
.tile p { color: var(--text-2); font-size: .96rem; margin: 0; }
.tile-ic {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}
.tile-handbook { grid-column: span 4; grid-row: span 1; padding-right: 40%; min-height: 380px; }
.chapters { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.chapters li { display: flex; align-items: baseline; gap: 10px; font-size: .92rem; color: var(--text); }
.chapters li span { font-family: var(--mono); font-size: .7rem; color: var(--text-3); }
.tile-shot {
  position: absolute; right: -10px; bottom: -40%; width: 40%; max-width: 250px;
  border-radius: 30px; border: 6px solid #141926;
  box-shadow: var(--shadow-pop);
  transform: rotate(-6deg);
  transition: transform .5s var(--ease);
}
.tile-handbook:hover .tile-shot { transform: rotate(-4deg) translateY(-10px); }
.lang-cloud { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lang-cloud li { padding: 6px 12px; border-radius: 999px; font-size: .9rem; font-weight: 500; background: var(--surface-2); border: 1px solid var(--border); }
.streak { display: flex; gap: 8px; margin-top: 22px; }
.streak i { width: 100%; height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.streak i.on { background: linear-gradient(90deg, var(--amber), var(--maple)); border-color: transparent; box-shadow: 0 0 14px rgba(251, 191, 36, .35); }

/* spotlight border + glow follow the pointer */
.spot { --mx: 50%; --my: 50%; }
.spot::before, .spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; }
.spot::before {
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(91, 140, 255, .7), rgba(139, 92, 246, .25) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.spot::after { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(91, 140, 255, .09), transparent 60%); }
.spot:hover::before, .spot:hover::after { opacity: 1; }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile-handbook { grid-column: span 1; }
  .tile-handbook { grid-column: span 2; padding-right: 30px; min-height: 0; }
  .tile-shot { display: none; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile-handbook { grid-column: span 1; }
  .chapters { grid-template-columns: 1fr; }
  .tile { padding: 26px 22px; }
}

/* -------------------------------------------------------------- the test */

.rings { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; max-width: 900px; margin: 0 auto; }
.ring-card {
  position: relative;
  padding: 34px 28px 30px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.ring { width: 150px; height: 150px; margin: 0 auto 14px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: var(--ring-track); }
.ring .fill { stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 65.3; transition: stroke-dashoffset 1.4s var(--ease) .2s; }
.ring .fill.signs { stroke: url(#ringA); }
.ring .fill.rules { stroke: url(#ringB); }
.js .rings:not(.in) .fill { stroke-dashoffset: 326.7; }
.ring-label { position: absolute; top: 34px; left: 0; right: 0; height: 150px; display: grid; place-content: center; }
.ring-label b { font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; letter-spacing: -.03em; }
.ring-label b small { font-size: 1rem; color: var(--text-2); font-weight: 500; }
.ring-label span { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-top: 6px; }
.ring-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.ring-card p { color: var(--text-2); font-size: .94rem; margin: 0; }
.ring-total { display: grid; place-content: center; text-align: center; padding: 0 22px; }
.ring-total .mono-label { margin-bottom: 8px; }
.ring-total b { font-family: var(--display); font-weight: 700; font-size: 3rem; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ring-total b small { font-size: 1.2rem; }
.ring-total > span:last-child { color: var(--text-2); font-size: .9rem; margin-top: 8px; }
@media (max-width: 700px) {
  .rings { grid-template-columns: 1fr; }
  .ring-total { order: -1; padding: 10px 0 0; }
}

/* ------------------------------------------------------------------ how */

.how-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
.how-grid li { padding: 30px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.how-grid h3 { font-size: 1.35rem; margin-bottom: 8px; }
.how-grid p { color: var(--text-2); margin: 0; }
@media (max-width: 760px) { .how-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- screens */

.shots { position: relative; z-index: 1; }
.shots-track {
  --gutter: max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
  display: flex; gap: 28px;
  list-style: none; margin: 0;
  padding: 16px var(--gutter) 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.shots-track::-webkit-scrollbar { display: none; }
.shots-track li { flex: 0 0 240px; scroll-snap-align: start; text-align: center; }
.shots-track li b { display: block; font-family: var(--display); font-size: 1.05rem; margin-top: 18px; }
.shots-track li > span { display: block; color: var(--text-2); font-size: .9rem; }
.shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 38px; transition: transform .35s var(--ease); }
.shot:hover { transform: translateY(-8px); }
.shot .phone { transition: box-shadow .3s; }
.shot:hover .phone { box-shadow: var(--shadow-phone-hover); }
.shots-nav {
  position: absolute; top: calc(50% - 56px); z-index: 2;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: var(--glass-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform .2s, opacity .2s, background .2s;
}
.shots-nav:hover { transform: scale(1.06); background: var(--fill-hover); }
.shots-nav:disabled { opacity: 0; pointer-events: none; }
.shots-nav.prev { left: max(12px, calc((100vw - var(--wrap)) / 2 - 22px)); }
.shots-nav.next { right: max(12px, calc((100vw - var(--wrap)) / 2 - 22px)); }
@media (max-width: 640px) {
  .shots-nav { display: none; }
  .shots-track { gap: 18px; }
  .shots-track li { flex-basis: 200px; }
}

.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.lightbox::backdrop { background: rgba(4, 6, 12, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lightbox .phone { width: min(400px, calc((100vh - 60px) * .44), calc(100vw - 40px)); }
.lightbox-close {
  position: absolute; top: -12px; right: -12px; z-index: 2;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: #fff; color: #06080d;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

/* ------------------------------------------------------------------ faq */

.faq-list { display: grid; gap: 10px; }
.faq-list details { border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: border-color .25s, background .25s; }
.faq-list details[open] { border-color: var(--border-2); background: var(--surface-2); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border-2);
  background:
    linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 11px no-repeat;
  transition: transform .25s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 24px 22px; margin: 0; color: var(--text-2); }

/* ---------------------------------------------------------------- legal */

.legal { padding-top: 0; }
.legal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.legal-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 26px 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: inherit; text-decoration: none;
  transition: transform .3s var(--ease), border-color .3s;
}
.legal-card:hover { transform: translateY(-3px); border-color: var(--border-2); }
.legal-card h3 { font-size: 1.15rem; margin: 16px 0 6px; }
.legal-card p { color: var(--text-2); font-size: .92rem; margin: 0 0 18px; }
.legal-card .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; font-size: .9rem; word-break: break-all; }
.legal-card .go .ic { width: 16px; height: 16px; transition: transform .2s; }
.legal-card:hover .go .ic { transform: translateX(3px); }
@media (max-width: 1000px) { .legal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .legal-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ cta */

.cta-band { padding-top: 0; }
.cta-card {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 72px 30px;
  border-radius: 32px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow);
}
.cta-aurora {
  position: absolute; inset: -40%;
  background:
    radial-gradient(500px 300px at 20% 30%, rgba(91, 140, 255, .35), transparent 60%),
    radial-gradient(500px 300px at 80% 70%, rgba(139, 92, 246, .3), transparent 60%),
    radial-gradient(400px 260px at 60% 20%, rgba(255, 61, 77, .16), transparent 60%);
  animation: drift 20s ease-in-out infinite alternate;
  pointer-events: none;
}
.cta-card > * { position: relative; }
.cta-card img { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 22px; box-shadow: var(--shadow-pop); }
.cta-card h2 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 10px; }
.cta-card p { color: var(--text-2); font-size: 1.1rem; margin: 0 auto 30px; max-width: 46ch; }

/* ------------------------------------------------------- reveal motion */

.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.hero-copy [data-reveal]:nth-child(2) { transition-delay: .08s; }
.hero-copy [data-reveal]:nth-child(3) { transition-delay: .16s; }
.hero-copy [data-reveal]:nth-child(4) { transition-delay: .24s; }
.hero-copy [data-reveal]:nth-child(5) { transition-delay: .32s; }
.bento [data-reveal]:nth-child(2), .stats-bar [data-reveal]:nth-child(2), .how-grid [data-reveal]:nth-child(2), .legal-grid [data-reveal]:nth-child(2) { transition-delay: .08s; }
.bento [data-reveal]:nth-child(3), .stats-bar [data-reveal]:nth-child(3), .how-grid [data-reveal]:nth-child(3), .legal-grid [data-reveal]:nth-child(3) { transition-delay: .16s; }
.bento [data-reveal]:nth-child(4), .stats-bar [data-reveal]:nth-child(4), .legal-grid [data-reveal]:nth-child(4) { transition-delay: .24s; }
.bento [data-reveal]:nth-child(5) { transition-delay: .32s; }
.bento [data-reveal]:nth-child(6) { transition-delay: .4s; }

/* ---------------------------------------------------------------- views */

/* One page, five views. Without JS every view shows, stacked. */
.js .view { display: none; }
html[data-view="home"] #home,
html[data-view="guide"] #guide,
html[data-view="privacy"] #privacy,
html[data-view="terms"] #terms,
html[data-view="delete-data"] #delete-data { display: block; }

/* Inside the app's web view: the app has its own title bar. */
.embedded .site-header,
.embedded .site-footer,
.embedded .progress { display: none; }
.embedded .page-head { padding-top: 40px; }

/* ------------------------------------------------------------ study guide */

.guide-head p { max-width: 62ch; font-size: 1.1rem; }
.guide { padding: 20px 0 60px; }
.guide-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s;
}
.guide-card:hover { transform: translateY(-3px); border-color: var(--border-2); }
.guide-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--border); }
.guide-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.guide-body .step-index { margin-bottom: 8px; }
.guide-body h2 { font-size: 1.25rem; margin: 0 0 8px; }
.guide-body p { color: var(--text-2); font-size: .95rem; margin: 0; }
.guide-note {
  display: flex; align-items: flex-start; gap: 14px;
  margin-top: 28px; padding: 18px 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.guide-note .ic { margin-top: 3px; color: var(--mint); }
.guide-note p { margin: 0; font-size: .95rem; }
.tile-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; color: var(--text); font-weight: 600; font-size: .92rem; text-decoration: none; }
.tile-link .ic { width: 16px; height: 16px; transition: transform .2s; }
.tile-link:hover .ic { transform: translateX(3px); }
@media (max-width: 1000px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .guide-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- legal documents */

.page-head { padding: 160px 0 30px; }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 3.6rem); font-weight: 700; letter-spacing: -.035em; margin-bottom: 14px; }
.page-head p { color: var(--text-2); margin: 0; font-size: 1rem; }
.page-head code { color: var(--text); }

.doc { padding: 20px 0 100px; color: var(--doc-text); }
.doc h2 { font-size: 1.55rem; margin-top: 2.4em; padding-top: .2em; scroll-margin-top: 110px; color: var(--text); }
.doc h2:first-of-type { margin-top: .6em; }
.doc h3 { margin-top: 1.7em; font-size: 1.1rem; color: var(--text); }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.doc li { margin-bottom: .5em; }
.doc li::marker { color: var(--accent); }
.doc strong { color: var(--text); }
.doc a { color: var(--link); }
.doc a:hover { color: var(--text); }

.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .93rem; }
.doc th, .doc td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface-2); font-weight: 600; color: var(--text); }
.doc td { background: var(--surface); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; }

.note {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 0 0 1.6em;
}
.note :last-child { margin-bottom: 0; }
.note.warn { border-left-color: var(--amber); }
.note.ok { border-left-color: var(--mint); }

.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px 28px; margin-bottom: 44px; }
.toc strong { display: block; margin-bottom: 12px; font-family: var(--mono); font-weight: 500; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.toc ol { columns: 2; column-gap: 34px; margin: 0; padding-left: 1.4em; }
.toc li { margin-bottom: .4em; font-size: .95rem; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--link); }
@media (max-width: 620px) { .toc ol { columns: 1; } }

.doc ol.steps { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: 12px; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 18px 20px; margin: 0;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--solid-bg); color: var(--solid-fg);
  font-family: var(--mono); font-size: .8rem; font-weight: 500;
}
.steps li p { margin: 0; color: var(--text-2); }

code { font-family: var(--mono); font-size: .86em; word-break: break-word; }
.doc code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: var(--text); }
.doc th code, .doc td code { background: transparent; border: 0; padding: 0; }
kbd { font-family: var(--mono); font-size: .86em; background: var(--surface-2); border: 1px solid var(--border-2); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; color: var(--text); }

/* ----------------------------------------------------------------- 404 */

.not-found { text-align: center; padding: 200px 0 120px; position: relative; z-index: 1; }
.not-found .code { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 20px; display: block; }
.not-found h1 { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 700; letter-spacing: -.04em; margin-bottom: 14px; }
.not-found p { color: var(--text-2); max-width: 44ch; margin: 0 auto 32px; font-size: 1.1rem; }

/* --------------------------------------------------------------- footer */

.site-footer { padding: 70px 0 36px; border-top: 1px solid var(--border); margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-col .brand { margin-bottom: 14px; }
.footer-col p { color: var(--text-2); font-size: .93rem; margin: 0; max-width: 36ch; }
.footer-col h4 { font-family: var(--mono); font-weight: 500; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-2); text-decoration: none; font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.legal-line { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-3); font-size: .84rem; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .legal-line { flex-direction: column; }
}

/* ------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.theming, html.theming *, html.theming *::before, html.theming *::after { transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .show-step { opacity: 1; }
}
