/* Sato landing — spec: docs/superpowers/specs/2026-09-30-sato-landing.md
   Palette from the storefront theme (web/src/casino/theme.ts). Motion: transform/opacity only; paused off-screen. */

@font-face {
  font-family: "Sora";
  src: url("../vendor/sora/sora-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallback: if the font misses the first paint, the line boxes and widths stay close. */
@font-face { font-family: "Sora Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"); size-adjust: 112%; ascent-override: 86.6%; descent-override: 25.9%; line-gap-override: 0%; }
@font-face { font-family: "Sora Fallback"; font-weight: 600 800; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"); size-adjust: 107.5%; ascent-override: 90.2%; descent-override: 27%; line-gap-override: 0%; }

:root {
  --bg: #050911; --panel: #0d1420; --panel-2: #121b2a; --border: #1d2a3d; --border-2: #2a3b55;
  --text: #ffffff; --muted: #c3cad6; --dim: #8f9ab0;
  --accent: #6fb6ff; --accent-ink: #04101f; --win: #47d7ac; --loss: #f1a15b; --glow: #1d4fd8; --violet: #9fd4ff;
  --font: "Sora", "Sora Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --r: 18px; --r-sm: 12px; --r-xs: 8px;
  --gutter: 16px; --maxw: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code, pre { font-family: var(--mono); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }
.nowrap { white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ── backdrop: the storefront's blurred colour spots, static ─────────────────────────────── */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; }
.g1 { width: 90vmax; height: 90vmax; right: -38vmax; top: -40vmax; background: radial-gradient(closest-side, rgba(29, 79, 216, .42), rgba(29, 79, 216, 0)); }
.g2 { width: 70vmax; height: 70vmax; left: -34vmax; bottom: -40vmax; background: radial-gradient(closest-side, rgba(71, 215, 172, .16), rgba(71, 215, 172, 0)); }
.g3 { width: 36vmax; height: 36vmax; right: 8vmax; bottom: -22vmax; background: radial-gradient(closest-side, rgba(111, 182, 255, .07), rgba(111, 182, 255, 0)); }
.field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s var(--ease); }
.field.on { opacity: 1; }
.top, main, .foot { position: relative; z-index: 1; }

/* ── buttons and links ─────────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: .005em; border: 1px solid transparent; transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(111, 182, 255, 0); }
.btn-accent:hover { box-shadow: 0 8px 40px -8px rgba(111, 182, 255, .55); }
.btn-ghost { background: rgba(21, 21, 21, .72); border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { text-decoration-thickness: 2px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border-2); background: rgba(21, 21, 21, .72); cursor: pointer; transition: border-color .2s; flex: none; }
.icon-btn:hover { border-color: var(--muted); }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.sm { width: 34px; height: 34px; }
.icon-btn.sm svg { width: 14px; height: 14px; }
.icon-btn .i-play { display: none; }
.icon-btn[aria-pressed="true"] .i-play { display: block; }
.icon-btn[aria-pressed="true"] .i-pause { display: none; }
.i-play path { fill: currentColor; stroke: none; }

/* ── header ────────────────────────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 20; transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.solid { background: rgba(6, 6, 6, .86); border-bottom-color: rgba(255, 255, 255, .06); }
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 60vh; pointer-events: none; }
.top-in { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; flex-direction: column; justify-content: center; gap: 3px; margin-right: auto; color: var(--text); padding: 4px 0; }
.wm { height: 25px; width: auto; aspect-ratio: 2800 / 800; overflow: visible; }
.brand .by { font-size: 10.5px; line-height: 1; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }
.nav { display: none; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.top-actions { display: flex; align-items: center; gap: 10px; }
@media (min-width: 960px) { .nav { display: flex; } }

/* ── type ──────────────────────────────────────────────────────────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; flex: none; }
@media (max-width: 479px) { .eyebrow { font-size: 11px; letter-spacing: .1em; gap: 8px; } .eyebrow::before { width: 14px; } }
h1 { font-size: clamp(2.7rem, 6.6vw, 5.6rem); line-height: 1; letter-spacing: -.04em; font-weight: 700; text-wrap: balance; }
@media (max-width: 480px) { h1 { font-size: min(2.7rem, 10.2vw); } }   /* «Complete control.» is 8.75 em wide: at 2.7rem it ran past a 390 px screen */
h2 { font-size: clamp(2.05rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
h3 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 650; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.62; color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.fine { font-size: 13px; line-height: 1.55; color: var(--dim); max-width: 78ch; }
.head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 820px; }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }
section { padding: clamp(72px, 11vw, 150px) 0; }
/* below the fold, sections are laid out only when they come near the viewport: the first layout costs a third */
main > section:not(.hero):not(.facts) { content-visibility: auto; contain-intrinsic-size: auto 1200px; }
h1, h2, .lead { text-shadow: 0 2px 24px rgba(6, 6, 6, .85); }

/* ── hero ──────────────────────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: min(100svh, 1000px); display: flex; align-items: center; padding: 104px 0 96px; margin-top: -68px; overflow-x: clip; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 32px; }
.hero-copy { display: grid; gap: 24px; justify-items: start; max-width: 800px; position: relative; }
.hero-copy::before { content: ""; position: absolute; inset: -12% -18% -12% -30%; z-index: -1; background: radial-gradient(closest-side, rgba(6, 6, 6, .78), rgba(6, 6, 6, 0)); pointer-events: none; }
.hero .lead { max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-note { font-size: 13.5px; line-height: 1.7; color: var(--dim); }
.hero-note .link { margin-left: 6px; white-space: nowrap; }
.live-dot { display: inline-block; margin-right: 9px; vertical-align: 1px; width: 8px; height: 8px; border-radius: 50%; background: var(--win); box-shadow: 0 0 0 0 rgba(71, 215, 172, .6); animation: live 2.4s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(71, 215, 172, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(71, 215, 172, 0); } }
.hero-art { display: none; }
.ring-art { width: min(440px, 38vw); height: auto; margin-left: auto; transition: opacity 1s; }
html.field-on .ring-art { opacity: 0; }
@media (min-width: 1000px) {
  .hero-in { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); }
  .hero-art { display: block; }
}
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .35); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
/* hero entrance: CSS only, so the first paint never waits for JS */
.hero .reveal { animation: rise .9s var(--ease) both; }
.hero .reveal:nth-child(2) { animation-delay: .08s; }
.hero .reveal:nth-child(3) { animation-delay: .16s; }
.hero .reveal:nth-child(4) { animation-delay: .24s; }
.hero .reveal:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ── facts ─────────────────────────────────────────────────────────────────────────────── */
.facts { padding: 8px 0 clamp(56px, 8vw, 96px); }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--r); background: rgba(21, 21, 21, .78); overflow: hidden; }
.fact { display: grid; gap: 6px; padding: 22px 20px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fact:nth-child(2n) { border-right: 0; }
.fact:last-child { grid-column: 1 / -1; border-bottom: 0; border-right: 0; }
.fact-n { font-size: clamp(2.2rem, 4.4vw, 3.3rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); }
.fact:nth-child(2) .fact-n { color: var(--accent); }
.fact-l { font-size: 14px; color: var(--muted); }
.facts .fine { margin-top: 14px; }
@media (min-width: 900px) {
  .facts-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .fact, .fact:nth-child(2n) { border-bottom: 0; border-right: 1px solid var(--border); }
  .fact:last-child { grid-column: auto; border-right: 0; }
  .fact { padding: 28px 26px; }
}

/* ── demo stage ────────────────────────────────────────────────────────────────────────── */
.stage { border: 1px solid var(--border-2); border-radius: 22px; background: rgba(8, 13, 22, .94); box-shadow: 0 40px 120px -40px rgba(29, 79, 216, .45), 0 0 0 1px rgba(255, 255, 255, .02) inset; overflow: hidden; }
.stage-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: rgba(21, 21, 21, .9); }
.dots { display: none; gap: 6px; padding: 0 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.tabs { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 5px; margin: -5px; }
.tab:focus-visible { outline-offset: 1px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--dim); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: color .2s, background-color .2s, border-color .2s; }
.tab b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--panel-2); color: var(--muted); font-size: 11px; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); background: var(--panel-2); border-color: var(--border-2); }
.tab[aria-selected="true"] b { background: var(--accent); color: var(--accent-ink); }
.stage-ctl { display: flex; gap: 6px; }
@media (max-width: 479px) {
  .stage-bar { gap: 6px; padding: 8px; }
  .tabs { gap: 2px; }
  .tab { padding: 6px 8px; gap: 6px; font-size: 12.5px; }
  .tab b { width: 18px; height: 18px; font-size: 10.5px; }
  .stage-ctl { gap: 4px; }
}
.stage-body { display: flex; position: relative; }
.rail { display: none; width: 196px; flex: none; padding: 18px 12px; border-right: 1px solid var(--border); background: rgba(16, 16, 17, .9); }
.rail-t { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 0 10px 10px; }
.rail li { padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--dim); transition: color .3s, background-color .3s; }
.rail li.hot { color: var(--text); background: var(--panel-2); box-shadow: inset 2px 0 0 var(--accent); }
.chat { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.scenes { position: relative; flex: 1; }
.scene { display: flex; flex-direction: column; gap: 12px; padding: 16px 14px; }
.scene + .scene { border-top: 1px dashed var(--border); }
.js .stage-body { height: 690px; }
.js .scene { position: absolute; inset: 0; overflow: hidden; visibility: hidden; opacity: 0; transition: opacity .35s, visibility 0s .35s; }
.js .scene + .scene { border-top: 0; }
.js .scene.is-active { visibility: visible; opacity: 1; transition: opacity .35s; }
@media (min-width: 640px) { .js .stage-body { height: 610px; } .scene { padding: 22px 24px; gap: 14px; } .dots { display: flex; } }
@media (min-width: 1000px) { .rail { display: block; } .js .stage-body { height: 600px; } }

.msg { max-width: 88%; }
.msg p { padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; }
.msg-user { align-self: flex-end; }
.msg-user p { background: #2a1850; border: 1px solid #3d2470; border-bottom-right-radius: 5px; }
.msg-agent p { background: var(--panel); border: 1px solid var(--border); border-bottom-left-radius: 5px; color: var(--muted); }
.msg-agent b { color: var(--text); font-weight: 600; }
.chip { display: inline-flex; align-items: center; padding: 2px 9px; margin-right: 4px; border-radius: 999px; background: rgba(111, 182, 255, .12); border: 1px solid rgba(111, 182, 255, .4); color: var(--accent); font-family: var(--mono); font-size: 12px; line-height: 1.6; white-space: nowrap; }
.toolrow { display: flex; flex-wrap: wrap; gap: 6px; }
.tool { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 8px; border-radius: 999px; background: #101011; border: 1px solid var(--border); color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.tool::before { content: ""; width: 9px; height: 5px; flex: none; margin: 0 2px 3px 1px; border-left: 2px solid var(--win); border-bottom: 2px solid var(--win); transform: rotate(-45deg); }
.tool.run { color: var(--text); border-color: rgba(111, 182, 255, .45); }
.tool.run::before { width: 12px; height: 12px; margin: 0; border: 2px solid rgba(111, 182, 255, .25); border-top-color: var(--accent); border-radius: 50%; transform: none; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

.card { border: 1px solid var(--border); border-radius: 14px; background: #0f0f10; padding: 12px 14px 14px; }
.card-t { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 10px; font-family: var(--mono); font-size: 12px; color: var(--text); }
.card-sub { color: var(--dim); font-family: var(--font); font-size: 12px; }
.chart svg { width: 100%; height: 118px; }
.bars rect { fill: #5b12c9; transform-box: fill-box; transform-origin: 50% 100%; }
.bars rect:last-child { fill: #8b3dff; }
.line { fill: none; stroke: var(--win); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.kpi { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--border); min-width: 0; }
.kpi-l { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-v { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi-d { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.up { color: var(--win); }
.down { color: var(--loss); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-weight: 500; color: var(--dim); font-size: 11.5px; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--border); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; }
.card-note { margin-top: 8px; font-size: 12px; color: var(--muted); font-family: var(--mono); overflow-wrap: anywhere; }
.pv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pv > div { display: grid; gap: 2px; padding: 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--border); min-width: 0; }
.pv-l { font-size: 11px; color: var(--dim); }
.pv-v { font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pv-seg { margin-top: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.pv-seg code { font-size: 12px; color: var(--text); }
.pv-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.fake-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 650; font-size: 13.5px; }
.pv-wait { font-size: 12px; color: var(--dim); }
.card-campaign.on .fake-btn { animation: beckon 2.2s var(--ease) 1.2s infinite; }
@keyframes beckon { 0%, 100% { box-shadow: 0 0 0 0 rgba(111, 182, 255, .5); } 60% { box-shadow: 0 0 0 10px rgba(111, 182, 255, 0); } }

.ctx { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ctx-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; width: min(360px, 100%); padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: #0f0f10; transition: border-color .3s, box-shadow .3s; }
.ctx-card.picked { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(111, 182, 255, .12); }
.ctx-t { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.ctx-n { font-family: var(--mono); font-size: 12px; }
.ctx-spark { grid-column: 1 / -1; width: 100%; height: 40px; }
.spark { fill: none; stroke: var(--violet); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.ctx-hint { font-size: 12px; color: var(--dim); }
.cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; opacity: 0; pointer-events: none; }
.cursor svg path { fill: #fff; stroke: #060606; stroke-width: 1.2; }
.js .cursor { display: block; }

.composer { position: relative; border-top: 1px solid var(--border); padding: 10px 12px 12px; background: rgba(16, 16, 17, .96); }
/* the context chip floats above the input: adding it never changes the composer's height (no layout shift) */
.composer-chips { position: absolute; left: 12px; bottom: calc(100% + 8px); display: flex; gap: 6px; }
.composer-chips .chip { box-shadow: 0 6px 24px -6px rgba(0, 0, 0, .8); background: #2a2b0c; }
.composer-box { position: relative; display: flex; align-items: center; height: 44px; padding: 0 44px 0 14px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--panel); font-size: 14px; overflow: hidden; }
.composer-text { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; }
.composer-text:not(:empty) { padding-right: 2px; border-right: 2px solid var(--accent); animation: caret 1s steps(1) infinite; }
.composer-ph { color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer-text:not(:empty) + .composer-ph { display: none; }
.composer-send { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--panel-2); color: var(--dim); transition: background-color .2s, color .2s; }
.composer-send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.composer.ready .composer-send { background: var(--accent); color: var(--accent-ink); }
@keyframes caret { 50% { border-right-color: transparent; } }
.caption { margin-top: 16px; }
.hide-xs { display: none; }
.t-short { display: inline; } .t-long { display: none; }
@media (min-width: 560px) { .t-short { display: none; } .t-long { display: inline; } }
@media (min-width: 480px) { .hide-xs { display: table-cell; } }

/* replay mode: every step is laid out from the start and revealed by opacity/transform */
.demo-anim .step { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.demo-anim .step.on { opacity: 1; transform: none; }
.demo-anim .tool { opacity: 0; transform: scale(.9); transition: opacity .3s, transform .3s var(--ease); }
.demo-anim .tool.in { opacity: 1; transform: none; }
.demo-anim .bars rect { transform: scaleY(0); transition: transform .6s var(--ease); }
.demo-anim .card.on .bars rect { transform: none; }
/* the line is revealed by a clip, not a dash: pathLength dashing breaks under non-scaling strokes */
.demo-anim .line { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s var(--ease) .35s; }
.demo-anim .card.on .line { clip-path: inset(0 0 0 0); }
.demo-anim .tbl tbody tr { opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .4s var(--ease); }
.demo-anim .card.on .tbl tbody tr { opacity: 1; transform: none; }
.demo-anim .card.on .tbl tbody tr:nth-child(2) { transition-delay: .12s; }
.demo-anim .pv > div { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.demo-anim .card.on .pv > div { opacity: 1; transform: none; }
.demo-anim .card.on .pv > div:nth-child(2) { transition-delay: .1s; }
.demo-anim .card.on .pv > div:nth-child(3) { transition-delay: .2s; }

/* ── loop ──────────────────────────────────────────────────────────────────────────────── */
.loop-grid { display: grid; gap: 28px; align-items: center; }
.loop-ring { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin: 0 auto; }
.loop-ring svg { position: absolute; inset: 8%; width: 84%; height: 84%; overflow: visible; }
.lr-track { fill: none; stroke: #2a2a2d; stroke-width: 2.5; }
.lr-arc { fill: none; stroke-width: 3; stroke-dasharray: 60 882; stroke-linecap: round; opacity: .9; transform-box: view-box; transform-origin: 200px 200px; transform: rotate(-112.9deg); }
.lr-pulse { transform-box: view-box; transform-origin: 200px 200px; }
.lr-pulse circle { fill: var(--accent); }
.lr-pulse .lr-pulse-halo { fill: rgba(111, 182, 255, .18); }
.lr-node { fill: #151515; stroke: #7b3cf0; stroke-width: 2.5; transform-box: fill-box; transform-origin: center; }
.lr-labels li { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: baseline; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(21, 21, 21, .92); border: 1px solid var(--border); font-size: 13px; font-weight: 600; white-space: nowrap; transition: color .3s; }
.lr-labels b { font-family: var(--mono); font-size: 10.5px; color: var(--dim); font-weight: 500; }
.l1 { left: 50%; top: 4%; } .l2 { left: 86%; top: 29%; } .l3 { left: 86%; top: 71%; }
.l4 { left: 50%; top: 96%; } .l5 { left: 14%; top: 71%; } .l6 { left: 14%; top: 29%; }
.lr-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: 13px; line-height: 1.45; color: var(--dim); }
.finding { border: 1px solid var(--border-2); border-radius: var(--r); background: rgba(15, 15, 16, .95); overflow: hidden; }
.finding-h { display: grid; gap: 6px; padding: 18px 20px 14px; border-bottom: 1px solid var(--border); }
.sev { justify-self: start; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: #ffd08a; background: rgba(255, 176, 58, .1); border: 1px solid rgba(255, 176, 58, .38); }
.f-rows { counter-reset: none; }
.f-row { display: grid; gap: 4px; padding: 14px 20px; border-left: 3px solid transparent; border-bottom: 1px solid var(--border); }
.f-row:last-child { border-bottom: 0; }
.f-k { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.f-row p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.f-row b { color: var(--text); font-weight: 600; }
.src { display: block; margin-top: 4px; font-size: 12px; color: var(--dim); }
.src code { font-size: 11.5px; overflow-wrap: anywhere; }
.f-row .tool { margin-right: 6px; vertical-align: 1px; }
@media (min-width: 1000px) { .loop-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; } }
@media (max-width: 480px) { .lr-labels li { font-size: 11.5px; padding: 4px 9px; } .lr-labels b { display: none; } .lr-center { font-size: 11.5px; } }

/* the pulse travels the ring; each station and its row of the finding light in turn (9 s, 1.5 s per step) */
.loop-grid.run .lr-pulse { animation: orbit 9s linear infinite; }
.loop-grid.run .lr-arc { animation: arc 9s linear infinite; }
.loop-grid.run .lr-node { animation: node 9s linear infinite; }
.loop-grid.run .lr-labels li { animation: label 9s linear infinite; }
.loop-grid.run .f-row { animation: row 9s linear infinite; }
.n2, .l2, .r2 { animation-delay: 1.5s !important; } .n3, .l3, .r3 { animation-delay: 3s !important; }
.n4, .l4, .r4 { animation-delay: 4.5s !important; } .n5, .l5, .r5 { animation-delay: 6s !important; }
.n6, .l6, .r6 { animation-delay: 7.5s !important; }
@keyframes orbit { to { transform: rotate(1turn); } }
@keyframes arc { from { transform: rotate(-112.9deg); } to { transform: rotate(247.1deg); } }
@keyframes node { 0% { fill: var(--accent); stroke: var(--accent); transform: scale(1.35); } 14% { fill: var(--accent); stroke: var(--accent); transform: scale(1.35); } 22%, 100% { fill: #151515; stroke: #7b3cf0; transform: scale(1); } }
@keyframes label { 0%, 15% { color: var(--accent); border-color: rgba(111, 182, 255, .5); } 22%, 100% { color: var(--text); border-color: var(--border); } }
@keyframes row { 0%, 15% { border-left-color: var(--accent); background-color: rgba(111, 182, 255, .045); } 22%, 100% { border-left-color: transparent; background-color: rgba(111, 182, 255, 0); } }

/* ── autonomy ──────────────────────────────────────────────────────────────────────────── */
.auto-grid { display: grid; gap: 24px; align-items: start; }
.levels { display: grid; gap: 10px; }
.lv { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); background: rgba(21, 21, 21, .88); overflow: hidden; }
.lv-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--panel-2); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.lv b { font-size: 15.5px; font-weight: 650; }
.lv p { font-size: 14px; color: var(--muted); line-height: 1.55; margin-top: 2px; }
.lv-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--glow), var(--win)); transform-origin: 0 50%; transform: scaleX(.2); transition: transform 1s var(--ease); }
.lv:nth-child(2) .lv-bar { transform: scaleX(.4); } .lv:nth-child(3) .lv-bar { transform: scaleX(.6); }
.lv:nth-child(4) .lv-bar { transform: scaleX(.8); } .lv:nth-child(5) .lv-bar { transform: scaleX(1); }
.reveal-ready .levels:not(.in) .lv-bar { transform: scaleX(0); }
.lv-3 { border-color: rgba(111, 182, 255, .45); }
.lv-3 .lv-n { background: var(--accent); color: var(--accent-ink); }
.lv-4 .lv-n { background: transparent; border: 1.5px dashed var(--border-2); }
.auto-side { display: grid; gap: 16px; }
.never { padding: 22px; border-radius: var(--r); border: 1px solid rgba(255, 94, 58, .45); background: linear-gradient(160deg, rgba(255, 94, 58, .1), rgba(21, 21, 21, .92) 55%); }
.never h3 { font-size: 1.35rem; margin-bottom: 12px; }
.never ul { display: grid; gap: 10px; margin-bottom: 14px; }
.never li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.never li svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--loss); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.never > p { font-size: 14px; color: var(--muted); }
.console { border-radius: var(--r); border: 1px solid var(--border-2); background: rgba(12, 12, 13, .96); overflow: hidden; }
.console-h { padding: 18px 20px 12px; }
.console-h h3 { font-size: 1.05rem; }
.console-sub { font-size: 13px; color: var(--dim); margin-top: 4px; }
.console-sub code { font-size: 12.5px; color: var(--muted); }
.console-tools { display: grid; gap: 6px; margin: 0; padding: 0 12px; border: 0; }
.console-tools label { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border); cursor: pointer; transition: border-color .2s, background-color .2s; }
.console-tools label:hover { border-color: var(--border-2); }
.console-tools label:has(input:checked) { border-color: rgba(111, 182, 255, .5); background: rgba(111, 182, 255, .04); }
.console-tools input { grid-row: span 2; width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.console-tools code { font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
.console-tools span { font-size: 12.5px; color: var(--dim); }
.console-level { padding: 14px 20px 6px; }
.console-level label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.console-level output { font-family: var(--mono); font-weight: 700; color: var(--accent); }
.console-level input[type="range"] { width: 100%; margin: 10px 0 4px; accent-color: var(--accent); height: 28px; cursor: pointer; }
.ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--dim); padding: 0 4px; }
.console-out { margin: 10px 12px 14px; padding: 12px 14px; border-radius: 10px; background: #080809; border: 1px solid var(--border); font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 5.4em; }
.console-out .cmd { color: var(--dim); }
.console-out .no { color: #ff9b85; }
.console-out .ok { color: var(--win); }
.code { margin-top: 28px; border-radius: var(--r-sm); border: 1px solid var(--border); background: rgba(8, 8, 9, .96); overflow: hidden; }
.code figcaption { padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--dim); }
.code figcaption code { color: var(--muted); }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font-size: 12.5px; line-height: 1.7; color: #d9d4dc; }
.code figcaption b { color: var(--text); font-weight: 600; }
.rules { list-style: none; margin: 0; padding: 18px 16px; display: grid; gap: 14px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.rules li { display: flex; gap: 12px; align-items: flex-start; }
.rules .rn { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-2); font: 600 12.5px/1 var(--mono); color: var(--text); }
.rules p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.rules p b { color: var(--text); font-weight: 600; }
.code-src { border-top: 1px solid var(--border); }
.code-src summary { cursor: pointer; padding: 10px 16px; font-size: 12.5px; color: var(--dim); list-style: none; }
.code-src summary::-webkit-details-marker { display: none; }
.code-src summary::before { content: "▸"; display: inline-block; margin-right: 8px; transition: transform .2s; }
.code-src[open] summary::before { transform: rotate(90deg); }
.code-src summary:hover { color: var(--muted); }
.code-src summary code { color: var(--muted); }
.code-src pre { border-top: 1px solid var(--border); }
.code .k { color: #c792ff; } .code .s { color: #b9e4a8; } .code .n { color: #ffcf8a; }
@media (min-width: 1000px) { .auto-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; } }

/* ── architecture ──────────────────────────────────────────────────────────────────────── */
.doors { margin-bottom: 28px; padding: 22px; border-radius: var(--r); border: 1px solid var(--border); background: rgba(15, 15, 16, .9); }
.doors-in { display: grid; gap: 14px; justify-items: stretch; }
.doors-l, .doors-r { display: grid; gap: 8px; }
.doors li { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); }
.d-k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.d-v { font-size: 14px; }
.d-v code { font-size: 12.5px; overflow-wrap: anywhere; }
.doors-wires { display: none; }
.doors-core { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 18px; border-radius: 14px; border: 1px solid rgba(111, 182, 255, .5); background: radial-gradient(120% 140% at 50% 0%, rgba(111, 182, 255, .09), rgba(21, 21, 21, .95) 70%); box-shadow: 0 0 60px -20px rgba(111, 182, 255, .35); }
.doors-core code { font-size: 14px; color: var(--accent); }
.doors-core span { font-size: 12.5px; color: var(--muted); }
.doors-core::before, .doors-core::after { content: ""; }
@media (min-width: 900px) {
  .doors { padding: 30px; }
  .doors-in { grid-template-columns: minmax(0, 1fr) 70px minmax(0, .9fr) 70px minmax(0, 1fr); align-items: center; gap: 0; }
  .doors-wires { display: block; width: 100%; height: 190px; overflow: visible; }
  .doors-wires path { fill: none; stroke: #3b3b3e; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
  .doors-wires path { stroke-dasharray: 4 6; }
  .doors.run .doors-wires path { animation: flow 1.2s linear infinite; }
  .doors-l li, .doors-r li { min-height: 56px; }
}
@keyframes flow { to { stroke-dashoffset: -20; } }
.principles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.pr { padding: 22px; border-radius: var(--r); border: 1px solid var(--border); background: rgba(21, 21, 21, .88); }
.pr h3 { margin-bottom: 8px; }
.pr p { font-size: 14.5px; color: var(--muted); line-height: 1.62; }

/* ── modules ───────────────────────────────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-2); background: rgba(21, 21, 21, .8); color: var(--muted); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.filter:hover { color: var(--text); border-color: var(--muted); }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.mgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
/* a card turns over on click (Dana 07.10): front — name, one line, tool count; back — the back-office screen and the details */
.m { --c: var(--win); position: relative; perspective: 1100px; transition: transform .5s var(--ease); transform-style: preserve-3d; cursor: pointer; }
.m-in { display: grid; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .75, .2, 1); }
.m.flipped .m-in { transform: rotateY(180deg); }
.m-face { grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 18px 18px 14px; border-radius: 16px; border: 1px solid var(--border); background: rgba(21, 21, 21, .96); backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; transition: border-color .3s, box-shadow .5s var(--ease); }
.m-back { transform: rotateY(180deg); padding: 0 0 12px; gap: 9px; }
.m-front::before { content: ""; position: absolute; left: 18px; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.m-face::after { content: ""; position: absolute; width: 260px; height: 260px; left: -130px; top: -130px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0)); opacity: 0; transform: translate(var(--hx, 0px), var(--hy, 0px)); transition: opacity .3s; pointer-events: none; }
.m h3 { padding-left: 17px; font-size: 1rem; }
.m-front p { font-size: 14px; color: var(--muted); line-height: 1.5; flex: 1; }
.m-back > p { padding: 0 16px; font-size: 12.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.m-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m-back .m-foot { padding: 0 16px; flex-direction: row-reverse; }
.m-back .m-foot .m-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-n { font-size: 12px; color: var(--dim); font-family: var(--mono); }
.m-n b { color: var(--text); font-weight: 600; }
.m-turn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.4; cursor: pointer; transition: color .2s, border-color .2s; }
.m:hover .m-turn, .m-turn:focus-visible { color: var(--text); border-color: var(--border-2); }
.m-shot { position: relative; display: block; width: 100%; height: 76px; padding: 0; border: 0; border-bottom: 1px solid var(--border); background: #0b0e14; cursor: zoom-in; overflow: hidden; }
.m-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.m-shot::after { content: ""; position: absolute; inset: auto 0 0; height: 36px; background: linear-gradient(rgba(21, 21, 21, 0), rgba(21, 21, 21, .9)); }
.m-zoom { position: absolute; right: 8px; top: 8px; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(5, 9, 17, .78); border: 1px solid var(--border-2); color: var(--text); font-size: 14px; }
.m-tools { list-style: none; margin: 0; padding: 14px 16px 2px; display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--border); min-height: 76px; align-content: flex-start; background: #0b0e14; }
.m-tools code { display: inline-block; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border); font-size: 11.5px; color: var(--muted); }
.m[data-g="money"] { --c: var(--win); } .m[data-g="rewards"] { --c: var(--accent); } .m[data-g="crm"] { --c: var(--violet); }
.m[data-g="intel"] { --c: #6ec8ff; } .m[data-g="games"] { --c: #ff9a6b; } .m[data-g="site"] { --c: #e7e1ea; } .m[data-g="partners"] { --c: #ff7fbf; }
.m.tilt { transition: none; }
.m.tilt .m-face { border-color: var(--border-2); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03); }
.m.tilt .m-face::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .m-in { transition: none; } }
.motion-off .m-in { transition: none; }
.shot-dlg { width: min(1180px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--border-2); border-radius: 14px; background: #070b12; color: var(--text); overflow: auto; }
.shot-dlg::backdrop { background: rgba(2, 4, 8, .82); backdrop-filter: blur(4px); }
.shot-dlg figure { margin: 0; }
.shot-dlg img { display: block; width: 100%; height: auto; }
.shot-dlg figcaption { padding: 10px 52px 12px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); }
.shot-x { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-2); background: rgba(5, 9, 17, .85); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.m[hidden] { display: none; }
.more { display: none; margin-top: 16px; }
/* Свёрнуто на всех ширинах (Даня 07.10, 757844: «скрой под show all — занимает слишком много места»): первые 8, остальное — по кнопке */
.mgrid.collapsed .m.extra { display: none; }
.more:not([hidden]) { display: inline-flex; }
.modules > .wrap > .fine { margin-top: 22px; }

/* ── try ───────────────────────────────────────────────────────────────────────────────── */
.try-grid { display: grid; gap: 16px; }
.door { position: relative; display: grid; gap: 8px; align-content: start; padding: 26px; border-radius: 22px; border: 1px solid var(--border-2); background: rgba(15, 15, 16, .94); overflow: hidden; transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease); }
.door:hover { transform: translateY(-4px); border-color: rgba(111, 182, 255, .55); box-shadow: 0 30px 80px -30px rgba(29, 79, 216, .55); }
.door-art { position: relative; height: 150px; margin-bottom: 12px; border-radius: 14px; background: radial-gradient(90% 120% at 30% 0%, rgba(29, 79, 216, .45), rgba(21, 21, 21, .9) 70%); border: 1px solid var(--border); overflow: hidden; }
.door-art.store { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 26px 22px; }
.door-art.store i { border-radius: 10px; background: linear-gradient(160deg, rgba(111, 182, 255, .85), rgba(71, 215, 172, .6)); opacity: .85; }
.door-art.store i:nth-child(2) { background: linear-gradient(160deg, #8b3dff, #3b0d8c); }
.door-art.store i:nth-child(3) { background: linear-gradient(160deg, #47d7ac, #115a48); }
.door-art.store i:nth-child(4) { background: linear-gradient(160deg, #ff7a52, #6a1b0c); }
.door-art.bo { display: grid; grid-template-columns: 70px 1fr; grid-template-rows: 1fr 1fr; gap: 10px; padding: 18px; background: radial-gradient(90% 120% at 70% 0%, rgba(71, 215, 172, .3), rgba(21, 21, 21, .9) 70%); }
.door-art.bo i { border-radius: 8px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); }
.door-art.bo i:first-child { grid-row: span 2; }
.door-art.bo i:nth-child(2) { background: linear-gradient(90deg, rgba(29, 79, 216, .55), rgba(29, 79, 216, .15)); }
.door-art.bo i:nth-child(3) { background: linear-gradient(90deg, rgba(111, 182, 255, .35), rgba(111, 182, 255, .05)); }
.door-k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.door-t { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.door-p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.door-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 600; color: var(--text); }
.door-cta svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.door:hover .door-cta svg { transform: translateX(4px); }
.try-cta { display: grid; justify-items: center; gap: 12px; margin-top: 40px; text-align: center; }
@media (min-width: 800px) { .try-grid { grid-template-columns: 1fr 1fr; } }

/* ── footer ────────────────────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--border); background: rgba(6, 6, 6, .92); padding: 44px 0 56px; }
.foot-in { display: grid; gap: 26px; }
.wm-lg { height: 40px; color: var(--text); }
.foot-brand .by { margin-top: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-nav a { color: var(--muted); font-size: 14.5px; }
.foot-nav a:hover { color: var(--text); }
.foot-notes { display: grid; gap: 6px; font-size: 13px; color: var(--dim); }
@media (min-width: 900px) { .foot-in { grid-template-columns: auto 1fr; align-items: start; column-gap: 80px; } .foot-notes { grid-column: 2; } }

/* ── reveals (JS adds .in once) ────────────────────────────────────────────────────────── */
.reveal-ready main section:not(.hero) .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-ready main section:not(.hero) .reveal.in { opacity: 1; transform: none; }
.reveal-ready .principles .reveal.in:nth-child(2), .reveal-ready .facts-grid .reveal.in:nth-child(2) { transition-delay: .06s; }
.reveal-ready .principles .reveal.in:nth-child(3), .reveal-ready .facts-grid .reveal.in:nth-child(3) { transition-delay: .12s; }
.reveal-ready .principles .reveal.in:nth-child(4), .reveal-ready .facts-grid .reveal.in:nth-child(4) { transition-delay: .18s; }
.reveal-ready .principles .reveal.in:nth-child(5), .reveal-ready .facts-grid .reveal.in:nth-child(5) { transition-delay: .24s; }
.reveal-ready .principles .reveal.in:nth-child(6) { transition-delay: .3s; }

/* ── motion off (toggle) and reduced motion: a calm, static page ───────────────────────── */
html.motion-off *, html.motion-off *::before, html.motion-off *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
html.motion-off .field { display: none; }
html.motion-off .ring-art { opacity: 1 !important; }
html.motion-off main section:not(.hero) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; }
  .field { display: none; }
  .ring-art { opacity: 1 !important; }
  .reveal-ready main section:not(.hero) .reveal { opacity: 1; transform: none; }
}

/* Retention: the player's path (moved here from satome.group). Palette: deep navy with a cold blue light */
.player { --pl-blue: #4da3ff; --pl-ice: #9fd4ff; --pl-line: rgba(77, 163, 255, .26); position: relative; padding: clamp(56px, 8vw, 112px) 0; background: radial-gradient(70% 55% at 12% 0%, rgba(40, 110, 220, .22), transparent 70%), radial-gradient(60% 50% at 100% 100%, rgba(30, 80, 170, .16), transparent 70%); }
.player .eyebrow { color: var(--pl-ice); }
.player-path { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 20px; }
@media (min-width: 640px) { .player-path { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .player-path { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.player-step { display: flex; flex-direction: column; gap: 10px; }
.player-step__num { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; color: var(--pl-blue); }
.player-mock { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 124px; padding: 16px; background: linear-gradient(180deg, rgba(14, 24, 44, .92), rgba(7, 11, 20, .96)); border: 1px solid var(--pl-line); border-radius: var(--r); box-shadow: 0 0 40px -18px rgba(77, 163, 255, .5); }
.player-step h3 { margin: 6px 0 0; font-size: 1.15rem; letter-spacing: -.01em; }
.player-step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.pm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pm-row--start { justify-content: flex-start; }
.pm-title { font-weight: 600; font-size: 14px; line-height: 1.35; color: var(--text); }
.pm-muted { font-size: 12.5px; color: #aab6c8; }
.pm-arrow { color: var(--pl-blue); }
.pm-chip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--pl-line); color: #aab6c8; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pm-btn { background: var(--pl-blue); border-color: var(--pl-blue); color: #04101f; }
.pm-chip--amber { color: var(--pl-ice); border-color: rgba(159, 212, 255, .5); }
.pm-chip--gold { color: var(--pl-ice); border-color: rgba(159, 212, 255, .5); background: rgba(77, 163, 255, .12); }
.pm-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.pm-seg i { height: 6px; border-radius: 3px; background: rgba(77, 163, 255, .18); }
.pm-seg i.on { background: var(--pl-blue); }
.pm-bar { height: 6px; border-radius: 3px; background: rgba(77, 163, 255, .18); overflow: hidden; }
.pm-bar i { display: block; width: 62%; height: 100%; background: linear-gradient(90deg, #2c6fd6, var(--pl-ice)); }
