/* ==========================================================================
   Leanos — site stylesheet (v2: neutral, structured, framed layout)
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  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; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/inter-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/inter-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  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; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/assets/fonts/manrope-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/assets/fonts/manrope-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('/assets/fonts/jbmono-latin.woff2') format('woff2');
  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; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('/assets/fonts/jbmono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('/assets/fonts/jbmono-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('/assets/fonts/jbmono-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

/* ---------- Tokens ---------- */
:root {
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Manrope', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bg: #ffffff;
  --bg-soft: #fbfbfb;
  --bg-muted: #f6f6f6;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --text: #18181a;
  --text-2: #4d4d55;
  --text-3: #7d7d85;
  --line-strong: #e6e6e6;
  --border: #e6e6e6;
  --border-strong: #d6d6d9;
  --accent: #316bff;
  --accent-hover: #134cdd;
  --accent-soft: #e9f3ff;
  --accent-text: #1e4fd8;
  --btn-bg: #18181a;
  --btn-bg-hover: #2e2e33;
  --btn-text: #ffffff;
  --success: #12804a;
  --success-soft: #e8f6ee;
  --warn: #9a5b00;
  --warn-soft: #fff5e6;
  --danger: #c4281c;
  --danger-soft: #fdeeec;
  --header-bg: rgba(255, 255, 255, 0.86);
  --shadow-sm: 0 1px 2px rgba(24, 24, 26, 0.05);
  --shadow-md: 0 10px 30px -14px rgba(24, 24, 26, 0.18);
  --shadow-lg: 0 30px 70px -36px rgba(24, 24, 26, 0.35);
  --dot: rgba(24, 24, 26, 0.09);
  --container: 1280px;
  --gutter: 24px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121116;
  --bg-soft: #16151b;
  --bg-muted: #1d1c22;
  --surface: #1a191f;
  --surface-2: #25242b;
  --text: #f5f5f7;
  --text-2: #b8b8c0;
  --text-3: #8b8b95;
  --line-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --accent: #5a8bff;
  --accent-hover: #7aa2ff;
  --accent-soft: rgba(90, 139, 255, 0.14);
  --accent-text: #8fb0ff;
  --btn-bg: #f5f5f7;
  --btn-bg-hover: #ffffff;
  --btn-text: #121116;
  --success: #45c98a;
  --success-soft: rgba(69, 201, 138, 0.12);
  --warn: #f0b45c;
  --warn-soft: rgba(240, 180, 92, 0.12);
  --danger: #ff8077;
  --danger-soft: rgba(255, 128, 119, 0.12);
  --header-bg: rgba(26, 25, 31, 0.86);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -14px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 30px 70px -36px rgba(0, 0, 0, 0.9);
  --dot: rgba(255, 255, 255, 0.07);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { font-family: var(--font-sans); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }
.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; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); box-shadow: 0 1px 2px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--border-strong); background: var(--bg-soft); }
.btn-soft { background: var(--surface-2); color: var(--text); }
.btn-soft:hover { background: var(--line-strong); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-lg { height: 48px; padding: 0 20px; font-size: 16px; border-radius: 12px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------- Header (floating card) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 0; pointer-events: none; }
.site-header .header-inner { pointer-events: auto; display: flex; align-items: center; gap: 24px; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--container) - 2 * var(--gutter)); margin: 0 auto; height: 64px; padding: 0 10px 0 20px; background: var(--header-bg); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 6px 24px -12px rgba(24, 24, 26, .14); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 36px; width: auto; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.main-nav a { white-space: nowrap; padding: 6px 12px; border-radius: 8px; font-size: 15px; color: var(--text); transition: background .15s; }
.main-nav a:hover { background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; color: var(--text-2); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.theme-toggle .i-moon { display: block; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
.lang-menu { position: relative; }
.lang-trigger { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 10px; color: var(--text); font-size: 14px; font-weight: 500; }
.lang-trigger:hover, .lang-menu.open .lang-trigger { background: var(--surface-2); }
.lang-list { position: absolute; top: calc(100% + 8px); right: 0; min-width: 190px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); display: none; z-index: 60; }
.lang-menu.open .lang-list { display: block; }
.lang-list button { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 12px; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--text-2); text-align: left; }
.lang-list button:hover { background: var(--surface-2); color: var(--text); }
.lang-list button[aria-checked="true"] { color: var(--text); font-weight: 600; }
.lang-list .code { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
.flag { display: inline-block; width: 20px; height: 14px; flex: none; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); background: var(--surface-2); }
:root[data-theme="dark"] .flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.flag svg { display: block; width: 100%; height: 100%; }
.lang-flag { display: inline-flex; }
.lang-name { display: inline-flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; }
.mobile-panel { display: none; }
@media (max-width: 1180px) { .main-nav a { padding: 6px 9px; font-size: 14.5px; } .site-header .header-inner { gap: 14px; } }
@media (max-width: 1060px) {
  .main-nav, .header-actions .hide-mobile { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-panel { display: block; position: fixed; inset: 88px 0 0 0; z-index: 49; background: var(--bg); padding: 8px var(--gutter) 32px; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
  body.menu-open .mobile-panel { transform: none; opacity: 1; visibility: visible; }
  body.menu-open { overflow: hidden; }
  .mobile-panel nav a { display: block; padding: 14px 4px; font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; border-bottom: 1px solid var(--line-strong); }
  .mobile-panel .mobile-cta { display: grid; gap: 10px; margin-top: 24px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .site-header { padding: 8px 0; }
  .site-header .header-inner { height: 58px; gap: 4px; padding: 0 6px 0 14px; border-radius: 14px; }
  .brand img { height: 30px; }
  .mobile-panel { inset: 74px 0 0 0; }
  .lang-trigger { padding: 0 8px; }
  .header-actions { gap: 2px; }
}

/* ---------- Framed layout ---------- */
.band { position: relative; border-top: 1px solid var(--line-strong); }
.band.first { border-top: 0; }
.frame { position: relative; max-width: var(--container); margin: 0 auto; border-left: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); }
.band > .frame::before, .band > .frame::after { content: ''; position: absolute; top: -5px; width: 9px; height: 9px; z-index: 2; opacity: .55;
  background: linear-gradient(var(--text-3), var(--text-3)) center / 1px 9px no-repeat, linear-gradient(var(--text-3), var(--text-3)) center / 9px 1px no-repeat; }
.band > .frame::before { left: -5px; }
.band > .frame::after { right: -5px; }
.band.first > .frame::before, .band.first > .frame::after { display: none; }
.pad { padding: 96px 64px; }
.pad-sm { padding: 56px 64px; }
.hatch { height: 44px; border-top: 1px solid var(--line-strong); }
.hatch > .frame { height: 100%; background: repeating-linear-gradient(135deg, var(--line-strong) 0 1px, transparent 1px 11px); }
@media (max-width: 1340px) { .frame { border-left-color: transparent; border-right-color: transparent; } .band > .frame::before, .band > .frame::after { display: none; } }
@media (max-width: 900px) { .pad { padding: 72px var(--gutter); } .pad-sm { padding: 44px var(--gutter); } }

/* ---------- Typography ---------- */
.label-pill, .eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-sm); }
.label-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.04em; line-height: 1.08; font-size: clamp(38px, 5vw, 60px); text-wrap: balance; }
.display em { font-style: normal; color: var(--text-3); }
.h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.12; font-size: clamp(30px, 3.6vw, 44px); text-wrap: balance; }
.h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.22; font-size: 22px; }
.lead { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.muted { color: var(--text-3); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .h2 { margin: 18px 0 14px; }
@media (max-width: 720px) { .section-head { margin-bottom: 36px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, var(--dot) 1px, transparent 1.2px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 50%, transparent 92%); mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 50%, transparent 92%); }
.hero-top { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: end; padding: 64px 64px 48px; }
.hero-top .label-pill { margin-bottom: 22px; }
.hero-side .lead { margin-bottom: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--text-3); }
.hero-window { position: relative; padding: 0 64px 72px; }
@media (max-width: 960px) { .hero-top { grid-template-columns: 1fr; gap: 24px; padding: 36px var(--gutter) 32px; } .hero-window { padding: 0 var(--gutter) 48px; } }

/* Product window */
.window { position: relative; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 16px; height: 52px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--bg-soft); overflow-x: auto; scrollbar-width: none; }
.window-bar::-webkit-scrollbar { display: none; }
.lights { display: flex; gap: 7px; flex: none; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.tabs { display: flex; gap: 4px; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px; font-size: 14px; color: var(--text-3); white-space: nowrap; border: 1px solid transparent; transition: color .15s, background .15s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-sm); }
.tab .icon { width: 16px; height: 16px; }
.window-body { position: relative; min-height: 480px; }
.pv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 480px; animation: fadeIn .35s ease; }
.pv > div { padding: 32px; }
.pv > div + div { border-left: 1px solid var(--border); }
.pv.center { grid-template-columns: 1fr; place-items: center; background: radial-gradient(circle, var(--dot) 1px, transparent 1.2px) 0 0 / 20px 20px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .pv, .pv.center { grid-template-columns: minmax(0, 1fr); min-height: 0; } .kv-list > div { flex-wrap: wrap; } .status-dot { white-space: normal; } .mini-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pv > div + div { border-left: 0; border-top: 1px solid var(--border); } .pv > div { padding: 22px 18px; } .window-body { min-height: 0; } }
.pv-label { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 14px; }

/* Buyer view */
.buyer { max-width: 320px; margin: 0 auto; border-radius: 22px; padding: 9px; background: #0d0d10; box-shadow: 0 20px 50px -24px rgba(0,0,0,.6), inset 0 0 0 1px #2a2a30; }
.buyer-screen { border-radius: 15px; overflow: hidden; background: #141318; color: #f3f3f6; display: flex; flex-direction: column; }
.buyer-url { margin: 10px 10px 0; height: 30px; border-radius: 9px; background: #1f1e25; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11.5px; color: #b9b9c4; font-family: var(--font-mono); }
.buyer-url .icon { width: 11px; height: 11px; }
.unlock { display: flex; flex-direction: column; padding: 14px; gap: 11px; }
.creator-row { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; background: linear-gradient(135deg, #ffb48a, #d97aa8 55%, #6b8cff); }
.creator-row strong { display: block; font-size: 13.5px; font-weight: 600; }
.creator-row small { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: #9d9dab; }
.creator-row small .icon { width: 12px; height: 12px; color: #6f9bff; }
.media { position: relative; height: 160px; border-radius: 12px; overflow: hidden; background: radial-gradient(40% 45% at 28% 35%, #f0a37f 0%, transparent 70%), radial-gradient(45% 45% at 72% 40%, #9e7ad8 0%, transparent 72%), radial-gradient(55% 50% at 50% 88%, #e2708f 0%, transparent 70%), linear-gradient(160deg, #3a2f52, #1c1729); }
.media::after { content: ''; position: absolute; inset: 0; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.media-lock { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; }
.media-lock .lock { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.95); color: #15151a; }
.media-lock .lock .icon { width: 19px; height: 19px; }
.media-chips { display: flex; gap: 6px; }
.media-chips span { padding: 3px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 600; background: rgba(0,0,0,.5); color: #fff; }
.unlock-title { font-size: 14px; font-weight: 600; }
.unlock-desc { font-size: 11.5px; color: #a3a3b1; margin-top: 2px; }
.unlock-age { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 9px; background: rgba(90, 139, 255, .13); color: #b9ccff; font-size: 11.5px; font-weight: 500; }
.unlock-age .icon { width: 14px; height: 14px; }
.unlock-btn { height: 42px; border-radius: 10px; background: #f5f5f7; color: #121116; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 13.5px; }
.unlock-btn .icon { width: 15px; height: 15px; }
.unlock-foot { display: flex; justify-content: center; gap: 12px; font-size: 10.5px; color: #8d8d9b; }
.unlock-foot span { display: inline-flex; align-items: center; gap: 4px; }
.unlock-foot .icon { width: 11px; height: 11px; }

/* Creator-side widgets */
.kv-list { display: grid; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.kv-list > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 14px; font-size: 14px; }
.kv-list > div + div { border-top: 1px solid var(--border); }
.kv-list dt { color: var(--text-3); }
.kv-list dd { font-weight: 500; text-align: right; }
.status-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--success); white-space: nowrap; }
.status-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px var(--success-soft); }
.link-field { display: flex; align-items: center; gap: 10px; height: 46px; margin-top: 14px; padding: 0 6px 0 14px; border-radius: 11px; background: var(--bg-soft); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 13.5px; }
.link-field .icon { color: var(--text-3); }
.link-field > span:not(.btn) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-field .btn { margin-left: auto; font-family: var(--font-sans); }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.mini-stat { padding: 14px; border: 1px solid var(--border); border-radius: 12px; }
.mini-stat span { display: block; font-size: 12.5px; color: var(--text-3); margin-bottom: 4px; }
.mini-stat strong { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 36px; margin-top: 10px; }
.bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--accent-soft); }
.bars i:last-child { background: var(--accent); }
.check-rows { display: grid; gap: 10px; }
.check-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 12px; font-size: 14.5px; background: var(--surface); }
.check-row .ic { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.check-row .status-dot { margin-left: auto; }
.ok-banner { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--success-soft); color: var(--success); font-size: 14px; font-weight: 500; }
.ok-banner .icon { width: 18px; height: 18px; }
.age-card { width: min(440px, 100%); padding: 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.age-card .shield { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 16px; }
.age-card h4 { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 10px 0 8px; }
.age-card p { font-size: 14.5px; color: var(--text-2); margin-bottom: 18px; }
.age-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border-strong); font-size: 14px; color: var(--text-2); }
.balance { font-family: var(--font-display); font-size: 44px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; margin: 4px 0 18px; font-variant-numeric: tabular-nums; }
.pay-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pay-table td { padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text-2); }
.pay-table td:last-child { text-align: right; }
.pay-table .amt { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- Cells (trust strip) ---------- */
.cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cell { padding: 32px; border-right: 1px solid var(--line-strong); }
.cell:last-child { border-right: 0; }
.cell .big { display: block; font-family: var(--font-display); font-size: 36px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin-bottom: 12px; }
.cell p { font-size: 14.5px; color: var(--text-2); }
@media (max-width: 960px) { .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cell:nth-child(2) { border-right: 0; } .cell:nth-child(-n+2) { border-bottom: 1px solid var(--line-strong); } }
@media (max-width: 520px) { .cells { grid-template-columns: 1fr; } .cell { border-right: 0; border-bottom: 1px solid var(--line-strong); padding: 24px var(--gutter); } .cell:last-child { border-bottom: 0; } }

/* ---------- Steps ---------- */
.step-cards { display: grid; gap: 24px; }
.step-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 48px; border: 1px solid var(--border); border-radius: 28px; background: var(--surface); }
.step-card:nth-child(even) .step-text { order: 2; }
.num-badge { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #2b2b31, #55555f); box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--border); margin-bottom: 22px; }
.step-card .h3 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 14px; }
.step-card p { color: var(--text-2); font-size: 16px; }
.step-visual { padding: 18px; border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--border); display: grid; gap: 10px; }
.sv-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 500; }
.sv-row .icon { color: var(--text-3); }
.sv-row .ok { margin-left: auto; color: var(--success); }
.sv-price { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 14px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); }
.sv-price span { font-size: 13.5px; color: var(--text-3); }
.sv-price strong { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.sv-link { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 11px; background: var(--btn-bg); color: var(--btn-text); font-size: 13px; font-family: var(--font-mono); }
.sv-link em { margin-left: auto; font-style: normal; font-family: var(--font-sans); font-size: 12.5px; opacity: .75; }
.sv-places { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-places > span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.sv-places .icon { width: 14px; height: 14px; color: var(--text-3); }
@media (max-width: 900px) { .step-card { grid-template-columns: 1fr; gap: 28px; padding: 28px 22px; border-radius: 22px; } .step-card:nth-child(even) .step-text { order: 0; } }

/* ---------- Split (share) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split > div { padding: 72px 64px; }
.split > div + div { border-left: 1px solid var(--line-strong); background: var(--bg-soft); display: flex; flex-direction: column; justify-content: center; }
.split .h2 { margin: 18px 0 14px; }
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.place { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); }
.place .icon { color: var(--text-3); width: 18px; height: 18px; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } .split > div { padding: 56px var(--gutter); } .split > div + div { border-left: 0; border-top: 1px solid var(--line-strong); } }
@media (max-width: 560px) { .places { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; font-size: 15.5px; color: var(--text-2); }
.check-list .icon { color: var(--accent); margin-top: 2px; width: 18px; height: 18px; }

/* ---------- Feature grid ---------- */
.grid-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.grid-cells > * { padding: 40px 36px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.grid-cells > *:nth-child(3n) { border-right: 0; }
.grid-cells > *:nth-last-child(-n+3) { border-bottom: 0; }
.f-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--text); margin-bottom: 22px; }
.feature .h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 15px; }
@media (max-width: 960px) {
  .grid-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cells > *:nth-child(3n) { border-right: 1px solid var(--line-strong); }
  .grid-cells > *:nth-child(2n) { border-right: 0; }
  .grid-cells > *:nth-last-child(-n+3) { border-bottom: 1px solid var(--line-strong); }
  .grid-cells > *:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 600px) {
  .grid-cells { grid-template-columns: 1fr; }
  .grid-cells > * { border-right: 0 !important; padding: 32px var(--gutter); }
  .grid-cells > *:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-strong); }
  .grid-cells > *:last-child { border-bottom: 0; }
}

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line-strong); }
.pricing-grid > div { padding: 48px 56px; display: flex; flex-direction: column; }
.pricing-grid > div + div { border-left: 1px solid var(--line-strong); background: var(--bg-soft); }
.price-tag { display: flex; align-items: flex-end; gap: 14px; margin: 18px 0 12px; }
.price-tag .big { font-family: var(--font-display); font-weight: 600; font-size: 88px; line-height: .9; letter-spacing: -0.05em; }
.price-tag .per { font-size: 15px; color: var(--text-2); padding-bottom: 6px; line-height: 1.35; }
.price-sub { color: var(--text-2); font-size: 16px; margin-bottom: 26px; }
.pricing-grid .check-list { margin-bottom: 32px; }
.pricing-grid .btn-lg { margin-top: auto; }
.calc-title { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.025em; margin: 18px 0 28px; }
.calc-row { margin-bottom: 26px; }
.calc-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 15px; color: var(--text-2); }
.calc-label output { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 999px; background: var(--line-strong); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1px solid var(--border-strong); box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1px solid var(--border-strong); cursor: pointer; }
.calc-result { margin-top: auto; padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 10px; }
.calc-line { display: flex; justify-content: space-between; font-size: 15px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.calc-line.total { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--border); color: var(--text); font-weight: 500; align-items: baseline; }
.calc-line.total strong { font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -0.04em; }
.calc-note { margin-top: 14px; font-size: 13px; color: var(--text-3); }
@media (max-width: 960px) { .pricing-grid { grid-template-columns: minmax(0, 1fr); } .pricing-grid > div { padding: 40px var(--gutter); } .pricing-grid > div + div { border-left: 0; border-top: 1px solid var(--line-strong); } }
@media (max-width: 560px) { .price-tag .big { font-size: 68px; } }

/* ---------- Safety ---------- */
.safety-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.safety-item { padding: 36px 32px; border-right: 1px solid var(--line-strong); }
.safety-item:last-child { border-right: 0; }
.safety-item h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.safety-item p { font-size: 14.5px; color: var(--text-2); }
.zero-tolerance { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 24px 32px; border-top: 1px solid var(--line-strong); background: var(--bg-soft); }
.zero-tolerance p { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 14.5px; max-width: 780px; }
.zero-tolerance .icon { color: var(--danger); margin-top: 1px; }
.zero-tolerance .links { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 1020px) { .safety-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .safety-item:nth-child(2) { border-right: 0; } .safety-item:nth-child(-n+2) { border-bottom: 1px solid var(--line-strong); } }
@media (max-width: 560px) { .safety-grid { grid-template-columns: 1fr; } .safety-item { border-right: 0; border-bottom: 1px solid var(--line-strong); padding: 28px var(--gutter); } .safety-item:last-child { border-bottom: 0; } .zero-tolerance { padding: 24px var(--gutter); } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-side { position: sticky; top: 110px; }
.faq-side .h2 { margin: 18px 0 18px; }
.faq-side p { color: var(--text-2); font-size: 15px; }
.faq-side a { color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 2px; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--text-3); }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--text); }
.faq .answer { padding: 0 2px 22px; color: var(--text-2); font-size: 15.5px; line-height: 1.65; max-width: 680px; }
.faq .answer a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 28px; } .faq-side { position: static; } }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; padding: 72px 48px; border-radius: 24px; text-align: center; background: #18181a; color: #f5f5f7; }
:root[data-theme="dark"] .cta-band { background: var(--surface-2); }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1.2px) 0 0 / 22px 22px; pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band .h2 { margin-bottom: 14px; }
.cta-band p { max-width: 560px; margin: 0 auto 30px; color: #b5b5be; font-size: 17px; }
.cta-band .btn-primary { background: #fff; color: #18181a; }
.cta-band .btn-primary:hover { background: #ececee; }
.cta-band .btn-outline { background: transparent; color: #f5f5f7; border-color: rgba(255,255,255,.22); box-shadow: none; }
.cta-band .btn-outline:hover { border-color: rgba(255,255,255,.4); }
@media (max-width: 560px) { .cta-band { padding: 48px 20px; border-radius: 20px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-strong); background: var(--bg); }
.site-footer > .frame { padding: 64px 64px 36px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand img { height: 34px; width: auto; margin-bottom: 16px; }
.footer-brand .logo-dark { display: none; }
:root[data-theme="dark"] .footer-brand .logo-light { display: none; }
:root[data-theme="dark"] .footer-brand .logo-dark { display: block; }
.footer-brand p { font-size: 14.5px; color: var(--text-2); max-width: 330px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { font-size: 14.5px; color: var(--text-2); }
.footer-col a:hover { color: var(--text); }
.footer-mid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 48px; padding: 18px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.pay-badge { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; color: var(--text-2); }
.pay-badge .icon { color: var(--text-3); }
.pay-badge strong { color: var(--text); font-weight: 600; }
.card-chip { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; padding: 3px 7px; border: 1px solid var(--border); border-radius: 6px; color: var(--text-2); background: var(--surface); }
.social { display: flex; gap: 8px; }
.social-btn { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); transition: color .15s, border-color .15s; }
.social-btn .icon { width: 18px; height: 18px; }
a.social-btn:hover { color: var(--text); border-color: var(--border-strong); }
.footer-legal { display: grid; gap: 8px; margin-top: 20px; font-size: 13px; color: var(--text-3); }
.footer-legal p { display: block; } .footer-legal .age-badge { vertical-align: 1px; }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer-statements { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-strong); display: grid; gap: 8px; font-size: 13px; color: var(--text-3); }
.footer-statements a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-strong); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-3); }
.age-badge { display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 7px; border-radius: 6px; border: 1px solid currentColor; font-family: var(--font-mono); font-weight: 600; font-size: 11px; margin-right: 8px; }
@media (max-width: 900px) { .site-footer > .frame { padding: 56px var(--gutter) 32px; } .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-min { padding: 24px 0; border-top: 1px solid var(--line-strong); font-size: 13px; color: var(--text-3); background: var(--bg); }
.footer-min .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-min nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-min a:hover { color: var(--text); }

/* ---------- Legal pages ---------- */
.legal { padding: 40px 0 96px; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-sidebar { position: sticky; top: 104px; }
.legal-sidebar h4 { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 0 0 12px 10px; }
.legal-sidebar ul { list-style: none; display: grid; gap: 1px; }
.legal-sidebar a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 14.5px; color: var(--text-2); line-height: 1.35; }
.legal-sidebar a:hover { background: var(--surface-2); color: var(--text); }
.legal-sidebar a[aria-current="page"] { background: var(--surface-2); color: var(--text); font-weight: 600; }
.legal-body { max-width: 780px; min-width: 0; }
.legal-lang-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 28px; border-radius: 12px; background: var(--warn-soft); color: var(--text); font-size: 14.5px; }
.legal-lang-note .icon { color: var(--warn); margin-top: 2px; }
.legal-doc { color: var(--text-2); font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.legal-kicker { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 18px; }
.legal-doc h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.12; font-size: clamp(32px, 4vw, 46px); color: var(--text); margin-bottom: 12px; overflow-wrap: normal; text-wrap: balance; }
.legal-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); margin-bottom: 24px; }
.legal-lead { font-size: 18px; color: var(--text); line-height: 1.6; margin-bottom: 32px; }
.legal-toc { padding: 20px 22px; margin-bottom: 44px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--border); }
.legal-toc-title { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 10px; }
.legal-toc ol { padding-left: 0; list-style: none; columns: 2; column-gap: 32px; counter-reset: toc; }
.legal-toc li { break-inside: avoid; margin-bottom: 6px; font-size: 14.5px; counter-increment: toc; }
.legal-toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); margin-right: 10px; }
.legal-doc .legal-toc a { color: var(--text-2); text-decoration: none; }
.legal-doc .legal-toc a:hover { color: var(--text); text-decoration: underline; }
.legal-doc section { padding-top: 8px; margin-bottom: 36px; }
.legal-doc h2 { font-family: var(--font-display); font-size: 23px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.3; color: var(--text); margin: 8px 0 14px; scroll-margin-top: 104px; }
.legal-doc h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); margin: 24px 0 10px; }
.legal-doc p { margin-bottom: 14px; }
.legal-doc ul, .legal-doc ol { margin: 0 0 16px 22px; }
.legal-doc li { margin-bottom: 8px; }
.legal-doc li::marker { color: var(--text-3); }
.legal-doc strong { color: var(--text); font-weight: 600; }
.legal-doc a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc address { font-style: normal; padding: 16px 18px; margin: 16px 0 20px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); line-height: 1.7; }
.legal-doc .callout { padding: 14px 18px; margin: 18px 0 22px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); border-left: 3px solid var(--text); color: var(--text); }
.legal-doc .callout p:last-child { margin-bottom: 0; }
.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14.5px; line-height: 1.55; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--border); min-width: 120px; }
.legal-table th { color: var(--text); font-weight: 600; background: var(--bg-soft); }
@media (max-width: 960px) { .legal-layout { grid-template-columns: 1fr; gap: 28px; } .legal-sidebar { position: static; order: 2; padding-top: 28px; border-top: 1px solid var(--line-strong); } .legal-toc ol { columns: 1; } }
.report-form { margin: 20px 0 28px; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); }
.report-form h3 { margin-top: 0 !important; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label, .field .label { font-size: 14px; font-weight: 500; color: var(--text); }
.field .hint { font-size: 13px; color: var(--text-3); }
.input, .textarea { width: 100%; height: 44px; padding: 0 13px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); font-size: 15px; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.textarea { height: auto; min-height: 120px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 5px; top: 5px; width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.pw-toggle:hover { color: var(--text); background: var(--surface-2); }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.pw-meter i { height: 3px; border-radius: 3px; background: var(--line-strong); transition: background .2s; }
.pw-meter[data-score="1"] i:nth-child(-n+1) { background: var(--danger); }
.pw-meter[data-score="2"] i:nth-child(-n+2) { background: var(--warn); }
.pw-meter[data-score="3"] i:nth-child(-n+3) { background: var(--success); }
.pw-meter[data-score="4"] i { background: var(--success); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 14px; color: var(--text-2); line-height: 1.5; cursor: pointer; }
.check input { -webkit-appearance: none; appearance: none; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 5px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; display: grid; place-content: center; transition: background .15s, border-color .15s; }
.check input::after { content: ''; width: 9px; height: 5px; border: 2px solid var(--btn-text); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--btn-bg); border-color: var(--btn-bg); }
.check input:checked::after { opacity: 1; }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.check[aria-invalid="true"] input { border-color: var(--danger); }
.form-msg { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; }
.form-msg .icon { margin-top: 1px; width: 18px; height: 18px; }
.form-msg.error { background: var(--danger-soft); color: var(--danger); }
.form-msg.success { background: var(--success-soft); color: var(--success); }
.form-msg.info { background: var(--bg-muted); color: var(--text-2); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 13.5px; color: var(--text-2); cursor: pointer; transition: all .15s; }
.chip input:checked + span { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Auth pages ---------- */
.page-auth { min-height: 100vh; display: flex; flex-direction: column; background-color: var(--bg-soft); background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.2px); background-size: 22px 22px; }
.auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 40px var(--gutter) 72px; }
.auth-card { width: 100%; max-width: 440px; padding: 36px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.auth-card .h2 { font-size: 30px; margin-bottom: 8px; }
.auth-card .sub { color: var(--text-2); margin-bottom: 26px; font-size: 15px; }
.auth-alt { margin-top: 22px; text-align: center; font-size: 14px; color: var(--text-2); }
.auth-alt a, .link { color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; }
.field-row .link { font-weight: 400; color: var(--text-2); }
.auth-done { text-align: center; }
.auth-done .done-icon { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.auth-done .done-icon .icon { width: 24px; height: 24px; }
.auth-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; font-size: 12.5px; color: var(--text-3); text-align: center; }
.auth-kyc { display: flex; gap: 10px; align-items: flex-start; padding: 12px 13px; margin-bottom: 20px; border-radius: 10px; background: var(--bg-muted); border: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); }
.auth-kyc .icon { width: 18px; height: 18px; color: var(--text); margin-top: 1px; }
@media (max-width: 560px) { .auth-main { padding: 16px 12px 48px; } .auth-card { padding: 24px 18px; border-radius: 18px; } }

/* ---------- App (dashboard) ---------- */
.page-app { background: var(--bg-soft); }
.app-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.app-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 12px; background: var(--surface); border-right: 1px solid var(--border); }
.app-side .brand { padding: 4px 10px 22px; }
.app-side .brand img { height: 32px; }
.app-nav { display: grid; gap: 2px; }
.app-nav a, .app-nav span { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; font-size: 14.5px; color: var(--text-2); }
.app-nav a:hover { background: var(--surface-2); color: var(--text); }
.app-nav .active { background: var(--surface-2); color: var(--text); font-weight: 600; }
.app-nav .locked { color: var(--text-3); cursor: not-allowed; }
.app-nav .locked .lock-mini { margin-left: auto; width: 14px; height: 14px; }
.app-side-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--border); display: grid; gap: 6px; }
.app-side-foot .user { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-main { min-width: 0; }
.app-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; height: 64px; padding: 0 28px; background: var(--header-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.app-top .brand { display: none; }
.app-top .title { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-right: auto; }
.app-content { padding: 32px 28px 64px; max-width: 1080px; }
.app-hello { margin-bottom: 24px; }
.app-hello .h2 { font-size: clamp(26px, 3vw, 32px); margin-bottom: 6px; }
.status-banner { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: var(--warn-soft); margin-bottom: 24px; }
.status-banner .icon { color: var(--warn); margin-top: 2px; }
.status-banner strong { display: block; margin-bottom: 4px; font-weight: 600; }
.status-banner p { color: var(--text-2); font-size: 14.5px; }
.status-banner.ok { background: var(--success-soft); }
.status-banner.ok .icon { color: var(--success); }
.status-banner.bad { background: var(--danger-soft); }
.status-banner.bad .icon { color: var(--danger); }
.app-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.panel + .panel { margin-top: 20px; }
.panel h3 { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; margin-bottom: 14px; letter-spacing: -0.01em; }
.onboard { list-style: none; display: grid; }
.onboard li { display: flex; gap: 14px; padding: 14px 2px; border-bottom: 1px solid var(--border); }
.onboard li:last-child { border-bottom: 0; }
.onboard .dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-3); }
.onboard .done .dot { background: var(--success-soft); color: var(--success); }
.onboard .current .dot { background: var(--btn-bg); color: var(--btn-text); }
.onboard strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.onboard p { font-size: 14px; color: var(--text-2); }
.onboard .tag { margin-left: auto; align-self: center; flex: none; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-3); }
.onboard .done .tag { background: var(--success-soft); color: var(--success); }
.onboard .current .tag { background: var(--warn-soft); color: var(--warn); }
.prep-list { list-style: none; display: grid; gap: 12px; }
.prep-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.prep-list .icon { color: var(--text-3); margin-top: 2px; }
.kv { display: grid; gap: 12px; font-size: 14.5px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; }
.kv dt { color: var(--text-3); }
.kv dd { color: var(--text); font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.app-loading { min-height: 100vh; display: flex; align-items: center; justify-content: center; color: var(--text-3); }
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-top .brand { display: inline-flex; margin-right: auto; }
  .app-top .brand img { height: 28px; }
  .app-top .title { display: none; }
  .app-top { padding: 0 var(--gutter); }
  .app-grid { grid-template-columns: 1fr; }
  .app-content { padding: 24px var(--gutter) 56px; }
}

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
