/* =========================================================================
   Linky Dots — site styles
   Layout: soft lavender content bands alternate with "night" bands taken from
   the game's own navy screens. Motif: violet dots joined by a teal line.
   ========================================================================= */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Outfit"; src: url("fonts/outfit-500-800-latin.woff2") format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-500-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-600-latin.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Content surfaces (light) */
  --bg: #F6F5FC;
  --bg-soft: #EEECFA;
  --surface: #FFFFFF;
  --fg: #16152B;
  --muted: #59567A;
  --line: #E1DEF3;
  --violet: #7B6CFF;
  --violet-ink: #5140D6;
  --violet-soft: #EAE7FF;
  --teal: #2FD3BD;
  --teal-ink: #08796A;
  --dot-idle: #C9C5E6;
  --shadow-sm: 0 1px 2px rgba(22, 21, 43, .06);
  --shadow: 0 1px 2px rgba(22, 21, 43, .05), 0 18px 40px -18px rgba(81, 64, 214, .28);
  --ph-bg: #FFF1C9;
  --ph-fg: #6B4A00;

  /* Night bands (fixed in both themes; match the in-game screens) */
  --night: #131533;
  --night-2: #1A1D44;
  --night-3: #23275A;
  --night-fg: #F3F2FF;
  --night-muted: #B0B1D8;
  --night-line: rgba(255, 255, 255, .09);
  --night-dot: rgba(255, 255, 255, .08);

  --on-violet: #FFFFFF;

  /* Type */
  --font-head: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.375rem, 1.1rem + .9vw, 1.75rem);
  --fs-2xl: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem);
  --fs-3xl: clamp(2.375rem, 1.6rem + 3vw, 4.25rem);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --wrap: 1160px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0F25; --bg-soft: #131531; --surface: #1A1C3E; --fg: #EDECFB; --muted: #A7A7CB;
    --line: #2A2D57; --violet: #8F82FF; --violet-ink: #B2A9FF; --violet-soft: #26264F;
    --teal: #3FE0CA; --teal-ink: #5FE6D3; --dot-idle: #3A3E70;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35); --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 18px 40px -18px rgba(0, 0, 0, .6);
    --ph-bg: #4A3A0E; --ph-fg: #FFE3A1;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0F25; --bg-soft: #131531; --surface: #1A1C3E; --fg: #EDECFB; --muted: #A7A7CB;
  --line: #2A2D57; --violet: #8F82FF; --violet-ink: #B2A9FF; --violet-soft: #26264F;
  --teal: #3FE0CA; --teal-ink: #5FE6D3; --dot-idle: #3A3E70;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35); --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 18px 40px -18px rgba(0, 0, 0, .6);
  --ph-bg: #4A3A0E; --ph-fg: #FFE3A1;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: var(--fs-md); line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.015em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
a { color: var(--violet-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2.5px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--violet); color: var(--on-violet); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.ph { background: var(--ph-bg); color: var(--ph-fg); font-weight: 500; padding: .05em .4em; border-radius: 6px; font-size: .92em; white-space: normal; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.wrap.narrow { max-width: 860px; }
.band { padding-block: clamp(64px, 8vw, 112px); position: relative; }
.band--soft { background: var(--bg-soft); }
.band--night {
  background: var(--night); color: var(--night-fg);
  background-image: radial-gradient(var(--night-dot) 1.3px, transparent 1.5px);
  background-size: 28px 28px;
  isolation: isolate; overflow: hidden;
}
.band--night::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42rem 30rem at 0% 70%, rgba(95, 80, 220, .30), transparent 70%),
    radial-gradient(36rem 28rem at 100% 100%, rgba(32, 150, 150, .22), transparent 70%);
}
.band--night a:not(.btn):not(.play-btn) { color: #C9C2FF; }

/* ---------- Type helpers ---------- */
.eyebrow { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--violet-ink); }
.eyebrow--teal { color: var(--teal); }
.display-1 { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
.display-2 { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.025em; }
.display-3 { font-size: var(--fs-xl); font-weight: 650; letter-spacing: -.015em; }
.lead { font-size: var(--fs-lg); color: var(--muted); max-width: 38em; }
.band--night .lead { color: var(--night-muted); }
.accent { color: var(--teal); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-link { margin-top: 40px; display: flex; justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow .icon { transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--fg); --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 600 var(--fs-sm)/1 var(--font-body); text-decoration: none; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 40px; padding: 9px 16px; font-size: .875rem; }
.btn--primary { --btn-bg: var(--violet); --btn-fg: var(--on-violet); --btn-bd: transparent; box-shadow: 0 8px 22px -10px rgba(123, 108, 255, .9); }
.btn--primary:hover { box-shadow: 0 12px 28px -10px rgba(123, 108, 255, 1); }
.btn--quiet { --btn-bg: var(--surface); --btn-fg: var(--fg); --btn-bd: var(--line); }
.btn--quiet:hover { border-color: var(--violet); }
.btn--ghost-night { --btn-bg: rgba(255, 255, 255, .06); --btn-fg: var(--night-fg); --btn-bd: rgba(255, 255, 255, .16); }
.btn--ghost-night:hover { --btn-bd: rgba(255, 255, 255, .34); }
.btn--light { --btn-bg: var(--night-fg); --btn-fg: var(--night); --btn-bd: transparent; }
.btn .icon { width: 1.1em; height: 1.1em; }

.play-btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  border-radius: 16px; padding: 10px 22px 10px 18px; min-height: 58px;
  background: #0B0C1F; color: #FFFFFF; border: 1px solid rgba(255, 255, 255, .22);
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; line-height: 1.1;
  transition: transform .18s ease, border-color .18s ease;
}
.play-btn .icon { width: 26px; height: 26px; color: var(--teal); }
.play-btn small { display: block; font: 500 .7rem/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; opacity: .8; margin-bottom: 2px; }
a.play-btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, .5); }
.play-btn.is-soon { cursor: default; border-style: dashed; }
.play-btn.is-soon small { color: var(--teal); opacity: 1; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, background-color .2s ease;
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; background: #FFFFFF; box-shadow: var(--shadow-sm); }
.brand span { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul { display: flex; gap: 4px; list-style: none; }
.primary-nav ul a {
  display: block; padding: 8px 14px; border-radius: 999px; color: var(--muted);
  font-size: var(--fs-sm); font-weight: 500; text-decoration: none; transition: color .15s, background-color .15s;
}
.primary-nav ul a:hover { color: var(--fg); background: var(--violet-soft); }
.primary-nav ul a[aria-current="page"] { color: var(--violet-ink); background: var(--violet-soft); }
.nav-toggle { display: none; }

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--line); color: var(--fg); cursor: pointer;
  }
  .nav-toggle .icon { width: 22px; height: 22px; grid-area: 1 / 1; }
  .nav-toggle .icon:last-child { display: none; }
  .nav-toggle[aria-expanded="true"] .icon:nth-child(2) { display: none; }
  .nav-toggle[aria-expanded="true"] .icon:last-child { display: block; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px var(--gutter-r) 24px var(--gutter);
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .35);
    display: none;
  }
  .js .primary-nav.is-open { display: flex; animation: drop .22s ease both; }
  html:not(.js) .primary-nav { position: static; display: flex; padding: 0 0 12px; box-shadow: none; border: 0; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
  .primary-nav ul { flex-direction: column; gap: 2px; }
  .primary-nav ul a { padding: 12px 14px; border-radius: 12px; font-size: 1rem; }
  .nav-cta { min-height: 50px; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Hero (home) ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 500;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--night-line); color: var(--night-muted);
}
.pill-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(63, 224, 202, .18); }
.hero-title { font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem); font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.hero .lead { font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem); max-width: 31em; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; color: var(--night-muted); font-size: var(--fs-sm); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .icon { color: var(--teal); }

.hero-visual { position: relative; display: grid; place-items: center; min-width: 0; padding-block: 12px; }
.net { position: absolute; inset: -6% -10%; width: 120%; height: 112%; z-index: 0; overflow: visible; }
.net-edges line { stroke: rgba(255, 255, 255, .10); stroke-width: 2; }
.net-line, .net-glow { fill: none; stroke: var(--teal); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.net-line { stroke-width: 5; }
.net-glow { stroke-width: 18; opacity: .16; }
.net-node { fill: var(--night-3); stroke: rgba(255, 255, 255, .22); stroke-width: 2.5; }
.net-node.is-start { stroke: var(--violet); stroke-width: 4; }
.phone { margin: 0; position: relative; }
.phone img { width: 100%; border-radius: 10.2% / 5.3%; }
.phone--hero { z-index: 1; width: min(330px, 74vw); filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .5)) drop-shadow(0 0 80px rgba(123, 108, 255, .25)); }
.hero-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 14px; font-size: var(--fs-sm); font-weight: 500;
  background: rgba(26, 29, 68, .86); border: 1px solid var(--night-line); color: var(--night-fg);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5);
}
.hero-chip strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--teal); }
.hero-chip .icon { color: var(--teal); }
.hero-chip--a { left: 2%; top: 22%; }
.hero-chip--b { right: 0; bottom: 18%; }

@media (prefers-reduced-motion: no-preference) {
  .js .net-line, .js .net-glow { animation: draw 9s linear infinite; }
  .js .net-node { animation: 9s linear infinite; animation-name: var(--k); }
  .js .net-node.is-start { animation: none; fill: var(--violet); }
  .js .hero-chip { animation: float 7s ease-in-out infinite; }
  .js .hero-chip--b { animation-delay: -3.5s; }
}
@keyframes draw {
  0% { stroke-dashoffset: 1; opacity: 1; }
  62% { stroke-dashoffset: 0; opacity: 1; }
  88% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes float { 50% { transform: translateY(-8px); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { align-items: flex-start; }
  .hero-visual { margin-top: 8px; }
  .hero-chip--a { left: 0; top: 14%; }
  .hero-chip--b { right: 0; bottom: 12%; }
}
@media (max-width: 480px) {
  .hero-chip { font-size: .8125rem; padding: 8px 12px; }
  .hero-chip strong { font-size: 1.05rem; }
  .cta-row > * { width: 100%; justify-content: center; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 80px); }
.page-hero-inner { display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 1; }
.page-hero .display-1 { max-width: 14em; }
.hero-dots { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: min(560px, 60vw); height: auto; opacity: .55; z-index: 0; }
.hero-dots path { fill: none; stroke: var(--teal); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-dots circle { fill: var(--violet); stroke: var(--night); stroke-width: 3; }
.hero-dots circle.ring { fill: var(--night); stroke: var(--violet); stroke-width: 3.5; }
@media (max-width: 700px) { .hero-dots { opacity: .22; width: 90vw; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-xs); color: var(--muted); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--fg); text-decoration: underline; }
.crumbs--night { color: var(--night-muted); }
.band--night .crumbs--night a { color: var(--night-muted); }
.band--night .crumbs--night a:hover { color: var(--night-fg); }

/* ---------- Showcase ---------- */
.showcase-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); list-style: none; }
.showcase-item { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.showcase-item .phone { margin-bottom: 10px; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.showcase-item .phone img { box-shadow: 0 26px 40px -22px rgba(20, 20, 60, .45); }
.showcase-item:hover .phone { transform: translateY(-6px); }
.showcase-item:nth-child(even) { margin-top: 48px; }
.showcase-label { font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); }
.showcase-item h3 { font-size: 1.2rem; font-weight: 650; }
.showcase-item p:last-child { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 960px) {
  .showcase-rail {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(230px, 62vw);
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; margin-right: calc(-1 * var(--gutter-r)); padding-right: var(--gutter-r);
    scrollbar-width: thin;
  }
  .showcase-item { scroll-snap-align: start; }
  .showcase-item:nth-child(even) { margin-top: 0; }
}

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; }
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--violet) 40%, var(--line)); }
.feature-card h3 { font-size: 1.2rem; font-weight: 650; }
.feature-card p { color: var(--muted); font-size: var(--fs-sm); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px; display: inline-grid; place-items: center; flex: none;
  background: var(--violet-soft); color: var(--violet-ink);
}
.feature-icon .icon { width: 24px; height: 24px; }
.feature-icon--lg { width: 60px; height: 60px; border-radius: 18px; }
.feature-icon--lg .icon { width: 28px; height: 28px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) {
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 22px; flex-direction: row; flex-wrap: wrap; column-gap: 16px; }
  .feature-card h3 { flex: 1; align-self: center; min-width: 0; }
  .feature-card p { flex-basis: 100%; }
}

/* ---------- Steps / mini boards ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.step-art { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.step-copy { display: flex; flex-direction: column; gap: 8px; }
.step-num { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); }
.step h3 { font-size: 1.3rem; font-weight: 650; }
.step p { color: var(--muted); font-size: var(--fs-sm); }
.mini-board { width: 100%; height: auto; display: block; overflow: visible; }
.b-edges line { stroke: var(--dot-idle); stroke-width: 4; }
.b-path { fill: none; stroke: var(--teal); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.b-dot { fill: var(--surface); stroke: var(--dot-idle); stroke-width: 4; }
.b-dot.on { fill: var(--violet); stroke: var(--surface); stroke-width: 5; }
.b-dot.start { stroke: var(--violet); stroke-width: 5; }
.b-dot.start:not(.on) { fill: var(--violet); filter: drop-shadow(0 0 10px rgba(123, 108, 255, .65)); }
.mini-board.is-done .b-dot.on { fill: var(--violet); }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal:not(.is-in) .b-path { stroke-dashoffset: 1; }
  .js .reveal.is-in .b-path { transition: stroke-dashoffset 1.4s cubic-bezier(.45, .05, .35, 1) .2s; }
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: center; }
}
@media (max-width: 520px) { .step { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.why-statement { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 32px); }
.why-statement .display-2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
.why-path { list-style: none; position: relative; display: flex; flex-direction: column; gap: 34px; padding-left: 44px; }
.why-path::before { content: ""; position: absolute; left: 10px; top: 12px; bottom: 12px; width: 4px; border-radius: 4px; background: var(--teal); }
.why-path li { position: relative; }
.why-path li::before {
  content: ""; position: absolute; left: -44px; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--violet); box-shadow: 0 0 0 5px var(--bg-soft);
}
.why-path li:first-child::before { background: var(--bg-soft); border: 4px solid var(--violet); }
.why-path h3 { font-size: 1.3rem; font-weight: 650; margin-bottom: 4px; }
.why-path p { color: var(--muted); }
@media (max-width: 860px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-statement { position: static; }
}

/* ---------- Privacy band ---------- */
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.privacy-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.privacy-copy .display-2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); }
.check-list { display: flex; flex-direction: column; gap: 12px; list-style: none; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--night-fg); }
.check-list .icon { color: var(--night); background: var(--teal); border-radius: 50%; padding: 4px; width: 24px; height: 24px; stroke-width: 2.6; margin-top: 2px; }
.vault {
  background: linear-gradient(180deg, var(--night-2), var(--night));
  border: 1px solid var(--night-line); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); display: flex; flex-direction: column; gap: 20px;
}
.vault-head { display: flex; align-items: center; gap: 14px; }
.vault-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(123, 108, 255, .2); color: #C9C2FF; }
.vault-icon .icon { width: 24px; height: 24px; }
.vault-title { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.vault-sub { color: var(--night-muted); font-size: var(--fs-xs); }
.vault-list { list-style: none; display: grid; gap: 8px; }
.vault-list li {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--night-line); font-size: var(--fs-sm);
}
.vault-list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); flex: none; }
.vault-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px dashed rgba(255, 255, 255, .18); }
.vault-none { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--teal); }
@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr; } }

/* ---------- Download CTA ---------- */
.download { text-align: center; border-top: 1px solid var(--night-line); }
.download::before {
  background: radial-gradient(40rem 22rem at 50% 0%, rgba(123, 108, 255, .35), transparent 70%),
              radial-gradient(30rem 18rem at 50% 110%, rgba(47, 211, 189, .18), transparent 70%);
}
.download-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.download-logo { width: 88px; height: 88px; border-radius: 24px; background: #FFFFFF; box-shadow: 0 20px 50px -14px rgba(123, 108, 255, .7); }
.download .display-2 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.6rem); }
.download .lead { margin: 0 auto; }
.download .cta-row { justify-content: center; }
.download .fine { color: var(--night-muted); font-size: var(--fs-sm); }

/* ---------- Feature rows (features page) ---------- */
.feature-rows { display: flex; flex-direction: column; gap: clamp(64px, 9vw, 120px); }
.feature-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature-row.is-flipped { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.feature-row.is-flipped .feature-row-media { order: 2; }
.feature-row-media {
  display: grid; place-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg);
  background: var(--night); background-image: radial-gradient(var(--night-dot) 1.3px, transparent 1.5px); background-size: 24px 24px;
}
.feature-row-media .phone { width: min(300px, 100%); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.feature-row-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.point-list { list-style: none; display: grid; gap: 12px; margin-top: 8px; }
.point-list li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.point-list .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--violet-soft); color: var(--violet-ink); }
@media (max-width: 820px) {
  .feature-row, .feature-row.is-flipped { grid-template-columns: 1fr; }
  .feature-row.is-flipped .feature-row-media { order: 0; }
  .feature-row-media .phone { width: min(240px, 70vw); }
}

.spec-table { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.spec-table div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 14px 24px; border-top: 1px solid var(--line); }
.spec-table div:first-child { border-top: 0; }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; font-weight: 600; }
@media (max-width: 480px) { .spec-table div { grid-template-columns: 1fr; gap: 0; padding: 12px 18px; } }

/* ---------- Demo (how to play) ---------- */
.try-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.try-copy { display: flex; flex-direction: column; gap: 16px; }
.demo {
  background: var(--night); color: var(--night-fg); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--night-line); box-shadow: 0 40px 80px -40px rgba(20, 18, 70, .65);
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.demo-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-head); }
.demo-level { font-size: 1.25rem; font-weight: 700; }
.demo-time { color: var(--night-muted); font-variant-numeric: tabular-nums; }
.demo-board {
  width: 100%; height: auto; display: block; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer;
  background: #11132C; border-radius: 18px; padding: 6%; box-sizing: border-box; overflow: visible;
}
.demo-board:focus-visible { outline-offset: 4px; }
.demo-board .d-edge { stroke: rgba(255, 255, 255, .22); stroke-width: 3; }
.demo-board .d-path { fill: none; stroke: var(--teal); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.demo-board .d-dot { fill: #1C1F3F; stroke: rgba(255, 255, 255, .45); stroke-width: 3; transition: fill .15s ease; }
.demo-board .d-dot.on { fill: #7B6CFF; stroke: #FFFFFF; stroke-width: 4; }
.demo-board .d-dot.head { filter: drop-shadow(0 0 12px rgba(123, 108, 255, .9)); }
.demo-board .d-ring { fill: none; stroke: #7B6CFF; stroke-width: 3; opacity: .7; }
.demo.is-done .d-dot.on { fill: var(--teal); stroke: #FFFFFF; }
.demo-progress { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.demo-progress span { display: block; height: 100%; width: 12.5%; background: var(--teal); border-radius: 8px; transition: width .2s ease; }
.demo-status { color: var(--night-muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.demo-status strong { color: var(--night-fg); }
.demo-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.demo .btn--quiet { --btn-bg: rgba(255, 255, 255, .06); --btn-fg: var(--night-fg); --btn-bd: rgba(255, 255, 255, .14); }
@media (max-width: 860px) { .try-grid { grid-template-columns: 1fr; } }

.control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; }
.control { display: flex; gap: 18px; align-items: flex-start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.control h3 { font-size: 1.15rem; font-weight: 650; margin-bottom: 4px; }
.control p { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 680px) { .control-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item[open] { border-color: color-mix(in srgb, var(--violet) 45%, var(--line)); box-shadow: var(--shadow); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px; cursor: pointer; list-style: none; border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.faq-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--violet-soft); position: relative; flex: none; transition: transform .25s ease, background-color .2s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--violet-ink); border-radius: 2px; transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s ease; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 24px 22px; color: var(--muted); max-width: 62em; }
.faq-item:target { border-color: var(--violet); }

.help-card {
  margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 28px 32px; border-radius: var(--radius-lg); background: var(--violet-soft);
}
.help-card p { color: var(--muted); margin-top: 6px; }

/* ---------- Support ---------- */
.contact-panel {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center;
  padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.contact-copy { display: flex; gap: 22px; align-items: flex-start; }
.contact-copy > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.contact-copy p { color: var(--muted); }
.contact-action { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: var(--radius); background: var(--bg-soft); min-width: 0; }
.email-big { font-family: var(--font-head); font-weight: 650; font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem); color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
.email-big:hover { color: var(--violet-ink); }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.dot-list { list-style: none; display: grid; gap: 6px; }
.dot-list li { display: flex; gap: 12px; align-items: baseline; }
.dot-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); flex: none; transform: translateY(-2px); }
@media (max-width: 860px) { .contact-panel { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-copy { flex-direction: column; gap: 14px; } }

.trouble-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; }
.trouble { padding: 24px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.trouble h3 { font-size: 1.15rem; font-weight: 650; margin-bottom: 6px; }
.trouble p { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 680px) { .trouble-grid { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.info-card { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 14px; }
.info-card p { color: var(--muted); }
.num-list { padding-left: 22px; display: grid; gap: 6px; }
.num-list li::marker { color: var(--violet-ink); font-weight: 600; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding-block: clamp(40px, 6vw, 72px) clamp(32px, 4vw, 48px); }
.legal-hero .wrap { display: flex; flex-direction: column; gap: 14px; }
.legal-hero h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); font-weight: 750; letter-spacing: -.03em; }
.legal-intro { font-size: var(--fs-lg); max-width: 42em; padding-left: 18px; border-left: 3px solid var(--teal); }
.legal-dates { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 8px 0 0; font-size: var(--fs-sm); }
.legal-dates dt { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.legal-dates dd { margin: 0; }
.legal-note { font-size: var(--fs-sm); color: var(--muted); }
.draft-banner { margin-top: 6px; padding: 14px 18px; border-radius: 14px; background: var(--ph-bg); color: var(--ph-fg); font-size: var(--fs-sm); max-width: 48em; }
.draft-banner--soft { padding: 10px 16px; }

.legal-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-block: 48px 96px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc-box summary { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); cursor: default; list-style: none; margin-bottom: 12px; }
.toc-box summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 2px; padding: 0; }
.toc a {
  display: block; padding: 6px 12px; border-left: 2px solid var(--line); color: var(--muted);
  font-size: .875rem; line-height: 1.45; text-decoration: none; transition: color .15s, border-color .15s;
}
.toc a:hover { color: var(--fg); }
.toc a.is-active { color: var(--violet-ink); border-left-color: var(--violet); font-weight: 500; }
.toc-group > span { display: block; font-family: var(--font-head); font-weight: 600; font-size: .875rem; color: var(--fg); padding: 14px 0 6px; }
.toc-group:first-child > span { padding-top: 0; }

.legal-content { max-width: 70ch; min-width: 0; }
.legal-group + .legal-group { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.legal-group-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); font-weight: 700; margin-bottom: 8px; }
.group-lead { color: var(--muted); margin-bottom: 8px; }
.legal-section { padding-top: 36px; }
.legal-section h2, .legal-section h3 { font-size: 1.35rem; font-weight: 650; display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.sec-num:empty { display: none; }
.sec-num {
  font-size: .8rem; font-weight: 600; min-width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--violet-soft); color: var(--violet-ink); transform: translateY(-2px); flex: none;
}
.anchor { opacity: 0; color: var(--muted); text-decoration: none; font-weight: 400; transition: opacity .15s; }
.legal-section h2:hover .anchor, .legal-section h3:hover .anchor, .anchor:focus-visible { opacity: 1; }
.legal-section p + p, .legal-section ul + p, .legal-section p + ul { margin-top: 14px; }
.legal-section ul { padding-left: 22px; display: grid; gap: 6px; }
.legal-section li::marker { color: var(--violet); }
.legal-section:target h2, .legal-section:target h3 { color: var(--violet-ink); }
.legal-end { margin-top: 56px; font-size: var(--fs-sm); }

@media (max-width: 900px) {
  .legal-body { grid-template-columns: 1fr; padding-top: 28px; gap: 8px; }
  .toc { position: static; }
  .toc-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 18px; }
  .toc-box summary { margin: 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
  .toc-box summary::after { content: "+"; font-size: 1.2rem; color: var(--violet-ink); }
  .toc-box[open] summary::after { content: "−"; }
  .toc-box[open] summary { margin-bottom: 10px; }
}

/* ---------- 404 ---------- */
.not-found { min-height: 70vh; display: grid; align-items: center; }
.nf-inner { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.nf-art { width: min(300px, 80%); height: auto; margin-bottom: 8px; }
.nf-line { stroke: var(--teal); stroke-width: 8; stroke-linecap: round; }
.nf-art .on { fill: var(--violet); stroke: var(--night); stroke-width: 4; }
.nf-art .off { fill: var(--night-2); stroke: rgba(255, 255, 255, .35); stroke-width: 3; stroke-dasharray: 5 5; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 64px calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer-brand p { color: var(--muted); font-size: var(--fs-sm); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 28px; }
.footer-col h2 { font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a, .footer-col span { color: var(--fg); text-decoration: none; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--violet-ink); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: var(--fs-xs); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal.will-reveal { opacity: 0; transform: translateY(18px); }
  .js .reveal.will-reveal.is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rd, 0s); }
}

/* ---------- Copy feedback ---------- */
[data-copy].is-copied { border-color: var(--teal); }

/* ---------- Print ---------- */
@media print {
  :root { --bg: #fff; --bg-soft: #fff; --surface: #fff; --fg: #000; --muted: #333; --line: #ccc; --violet-ink: #000; --violet-soft: #eee; }
  .site-header, .site-footer, .toc, .skip, .anchor, .legal-end, .nav-toggle { display: none !important; }
  body { font-size: 11pt; line-height: 1.5; background: #fff; color: #000; }
  .legal-hero { background: none; border: 0; padding: 0 0 12pt; }
  .legal-body { display: block; padding: 0; }
  .legal-content { max-width: none; }
  .legal-section { break-inside: avoid; padding-top: 14pt; }
  a { color: #000; text-decoration: underline; }
  .legal-content a[href^="http"]::after, .legal-content a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .band--night { background: #fff !important; color: #000 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
