/* MoYu TV – marketing site */
:root {
  --bg: #0a0a12;
  --bg-2: #0f0f1b;
  --surface: #14141f;
  --surface-2: #1b1b2b;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f3f3fa;
  --muted: #a9a9c0;
  --link: #b8acff;
  --brand-1: #6b46ff;
  --brand-2: #d62b73;
  --grad: linear-gradient(135deg, #6b46ff 0%, #d62b73 100%);
  --grad-text: linear-gradient(120deg, #a99bff 0%, #ff6fa5 100%);
  --glow-1: rgba(107, 70, 255, 0.32);
  --glow-2: rgba(214, 43, 115, 0.24);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1120px;
  --header-h: 68px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfaff;
    --bg-2: #f2f0fb;
    --surface: #ffffff;
    --surface-2: #f3f1fb;
    --border: rgba(21, 21, 43, 0.11);
    --text: #15152b;
    --muted: #55556f;
    --link: #5a35e6;
    --grad-text: linear-gradient(120deg, #5a35e6 0%, #c01d63 100%);
    --glow-1: rgba(107, 70, 255, 0.16);
    --glow-2: rgba(214, 43, 115, 0.12);
    --shadow: 0 24px 50px rgba(40, 30, 90, 0.16);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #8f7bff; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ── Header ───────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand b { font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 2px; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang a { text-decoration: none; color: var(--muted); font-size: 0.8rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; letter-spacing: 0.04em; }
.lang a[aria-current] { background: var(--grad); color: #fff; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 50%; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transform: translateX(-50%); transition: transform 0.2s, opacity 0.2s; }
.menu-btn span { top: 50%; margin-top: -1px; }
.menu-btn span::before { top: -6px; left: 0; transform: none; }
.menu-btn span::after { top: 6px; left: 0; transform: none; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav { gap: 12px; flex-wrap: wrap; }
  .nav-actions .nav-cta { display: none; }
  .nav-links { order: 3; width: 100%; margin: 0; padding-bottom: 10px; overflow-x: auto; }
  html.js .menu-btn { display: inline-block; }
  html.js .nav-links { display: none; flex-direction: column; padding: 6px 0 14px; gap: 2px; }
  html.js .nav-links.open { display: flex; }
  html.js .nav-links a { padding: 12px 10px; font-size: 1rem; }
}

/* ── Buttons ──────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s, filter 0.15s, background 0.15s; font-family: inherit; line-height: 1.2; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 28px rgba(107, 70, 255, 0.35); }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff; text-decoration: none; padding: 10px 20px 10px 16px; border-radius: 14px; border: 1px solid #3b3b4d; min-width: 190px; transition: transform 0.15s, border-color 0.15s; }
.store-btn:hover { transform: translateY(-2px); border-color: #7b7b95; }
.store-btn .store-ico { width: 28px; height: 28px; }
.store-btn small { display: block; font-size: 0.7rem; opacity: 0.85; line-height: 1.2; }
.store-btn strong { display: block; font-size: 1.15rem; line-height: 1.2; font-weight: 650; }
.store-btn.is-soon { cursor: default; }
.store-btn.is-soon:hover { transform: none; border-color: #3b3b4d; }

/* ── Hero ─────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0; pointer-events: none; }
.hero::before { width: 520px; height: 520px; background: var(--glow-1); top: -160px; right: -80px; }
.hero::after { width: 420px; height: 420px; background: var(--glow-2); bottom: -160px; left: -120px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 650; color: var(--link); background: color-mix(in srgb, var(--brand-1) 14%, transparent); border: 1px solid color-mix(in srgb, var(--brand-1) 35%, transparent); padding: 6px 12px 6px 10px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 20px; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note .ico { color: #4ade80; }

@media (max-width: 880px) {
  .hero { padding: 40px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow, .hero .sub { margin-left: auto; margin-right: auto; }
  .store-row, .hero-note { justify-content: center; }
}

/* ── Phone mockups (decorative, fictional titles) ─────── */
.phones { position: relative; height: 600px; width: 100%; max-width: 520px; margin: 0 auto; }
.phone { position: absolute; width: 262px; height: 540px; border-radius: 40px; padding: 9px; background: linear-gradient(160deg, #3a3a52, #14141f); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.phone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 76px; height: 20px; margin-left: -38px; background: #05050a; border-radius: 12px; z-index: 3; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #0c0c16; color: #f3f3fa; padding: 44px 14px 14px; font-size: 12px; line-height: 1.4; }
.phone-main { left: 0; top: 24px; transform: rotate(-4deg); z-index: 1; }
.phone-chat { right: 0; top: 70px; transform: rotate(5deg); z-index: 2; }

.app-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.app-top .app-logo { width: 22px; height: 22px; border-radius: 7px; background: var(--grad); }
.app-top .app-name { font-weight: 800; font-size: 14px; letter-spacing: -0.02em; }
.app-top .app-avatar { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #3ad0ff, #6b46ff); }
.ai-pill { display: flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 8px 12px; margin-bottom: 14px; color: #dcd8ff; font-size: 11.5px; }
.ai-pill .ico { width: 15px; height: 15px; color: #ff8cb6; }
.rail-title { font-weight: 700; font-size: 12.5px; margin: 0 0 8px; }
.rail { display: flex; gap: 8px; margin-bottom: 14px; }
.poster { position: relative; flex: 1; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.78)); }
.poster span { position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 1; font-size: 9.5px; font-weight: 700; line-height: 1.15; }
.poster.big { flex: 1.5; }
.p1 { background: radial-gradient(circle at 68% 26%, rgba(255, 255, 255, 0.75) 0 9%, transparent 10%), linear-gradient(165deg, #ff8a5c, #7b2ff7 70%, #2a0a5e); }
.p2 { background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.35) 0 20%, transparent 21%), linear-gradient(165deg, #1fd1f9, #5b3df5 75%); }
.p3 { background: radial-gradient(ellipse at 50% 120%, rgba(255, 215, 120, 0.9) 0 35%, transparent 36%), linear-gradient(180deg, #2b1b4e, #c0397a); }
.p4 { background: linear-gradient(120deg, transparent 0 55%, rgba(255, 255, 255, 0.25) 55% 58%, transparent 58%), linear-gradient(165deg, #0f9b8e, #123b5a); }
.p5 { background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.5) 0 12%, transparent 13%), linear-gradient(165deg, #f857a6, #ff5858 60%, #4a0d3b); }
.p6 { background: repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.08) 0 6px, transparent 6px 14px), linear-gradient(165deg, #4776e6, #8e54e9); }
.tabbar { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-around; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; padding: 9px 6px; color: #9a9ab5; }
.tabbar .ico { width: 18px; height: 18px; }
.tabbar .on { color: #fff; }

.chat { display: flex; flex-direction: column; gap: 8px; }
.chat-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.chat-head .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; }
.chat-head .ico { width: 13px; height: 13px; color: #fff; }
.bubble { max-width: 88%; padding: 9px 12px; border-radius: 16px; font-size: 11.5px; }
.bubble.me { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.bubble.ai { align-self: flex-start; background: rgba(255, 255, 255, 0.09); border-bottom-left-radius: 5px; }
.mini { display: flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, 0.07); border-radius: 12px; padding: 6px; }
.mini .poster { flex: none; width: 34px; aspect-ratio: 2 / 3; border-radius: 6px; }
.mini .poster::after { display: none; }
.mini b { display: block; font-size: 11px; }
.mini small { color: #a9a9c0; font-size: 10px; }
.mini .match { margin-left: auto; font-size: 10px; font-weight: 700; color: #7ee2a8; white-space: nowrap; }
.typing { display: inline-flex; gap: 4px; padding: 10px 12px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #b8b8d0; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

@media (max-width: 560px) {
  .phones { height: 560px; }
  .phone-chat { display: none; }
  .phone-main { left: 50%; margin-left: -131px; transform: rotate(-2deg); }
}
.phones.single { max-width: 340px; height: 580px; }
.phones.single .phone-chat { position: absolute; right: auto; left: 50%; top: 20px; margin-left: -131px; transform: rotate(2deg); display: block; }

/* ── Sections ─────────────────────────────────────────── */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
@media (max-width: 700px) { .section { padding: 60px 0; } }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: transform 0.2s, border-color 0.2s; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand-1) 55%, var(--border)); }
.card h3 { font-size: 1.15rem; margin: 16px 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.icon-chip { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-1) 16%, transparent); color: var(--link); border: 1px solid color-mix(in srgb, var(--brand-1) 30%, transparent); }
.icon-chip .ico { width: 24px; height: 24px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 16px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.showcase h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 16px; }
.showcase > div > p { color: var(--muted); font-size: 1.08rem; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .ico { color: #4ade80; margin-top: 3px; }
@media (max-width: 880px) { .showcase { grid-template-columns: 1fr; gap: 32px; } }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust .card h3 a { color: inherit; text-decoration: none; }
.trust .card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: 0.95rem; }
@media (max-width: 880px) { .trust { grid-template-columns: 1fr; } }

/* ── FAQ ──────────────────────────────────────────────── */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
details summary { cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 650; list-style: none; position: relative; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details > div { padding: 0 20px 18px; color: var(--muted); }
details > div p:last-child { margin-bottom: 0; }

/* ── CTA band ─────────────────────────────────────────── */
.cta { position: relative; overflow: hidden; text-align: center; border-radius: 32px; padding: 64px 24px; background: var(--grad); color: #fff; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.25), transparent 50%); }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.cta p { opacity: 0.92; font-size: 1.1rem; max-width: 34em; margin: 0 auto 28px; }
.cta .store-row { justify-content: center; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { margin-top: 40px; border-top: 1px solid var(--border); background: var(--bg-2); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; margin: 14px 0 8px; max-width: 26em; }
.footer-mail a { color: var(--link); }
.site-footer h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.site-footer ul a:hover { color: var(--link); text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
.footer-bottom p { margin-bottom: 8px; }
.disclaimer { max-width: 62em; opacity: 0.85; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Document pages (privacy, terms, …) ───────────────── */
.doc-hero { position: relative; padding: 56px 0 36px; border-bottom: 1px solid var(--border); background: radial-gradient(900px 300px at 85% -40%, var(--glow-1), transparent 70%), radial-gradient(700px 260px at 0% 130%, var(--glow-2), transparent 70%); }
.doc-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.doc-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; margin-bottom: 14px; }
.doc-meta { color: var(--muted); font-size: 0.9rem; margin: 0; }
.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 44px; padding-bottom: 60px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; font-size: 0.9rem; border-left: 2px solid var(--border); padding-left: 16px; }
.toc-title { font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.75rem; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--link); text-decoration: underline; }
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; max-height: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; background: var(--surface); }
}

.prose { max-width: 760px; min-width: 0; counter-reset: sec; }
.prose h2 { font-size: 1.5rem; margin: 2.4em 0 0.7em; padding-top: 0.2em; scroll-margin-top: calc(var(--header-h) + 16px); counter-increment: sec; }
.prose h2:first-child { margin-top: 0; }
.prose h2::before { content: counter(sec) ". "; color: var(--link); }
.prose h3 { font-size: 1.1rem; margin: 1.6em 0 0.5em; }
.prose p, .prose li { line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--link); }
.prose strong { font-weight: 650; }
.prose a { word-break: break-word; }
.prose code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 0.9em; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

.callout { background: color-mix(in srgb, var(--brand-1) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand-1) 30%, var(--border)); border-left: 4px solid var(--brand-1); border-radius: 12px; padding: 16px 20px; margin: 1.4em 0; }
.callout > :last-child { margin-bottom: 0; }
.callout.warn { background: color-mix(in srgb, #f59e0b 10%, var(--surface)); border-color: color-mix(in srgb, #f59e0b 35%, var(--border)); border-left-color: #f59e0b; }
.callout > strong:first-child { display: block; margin-bottom: 4px; }

.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.95rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-wrap th { background: var(--surface-2); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.table-wrap tr:last-child td { border-bottom: 0; }

.steps-list { list-style: none; padding: 0 !important; counter-reset: s; display: grid; gap: 14px; }
.steps-list li { counter-increment: s; position: relative; padding: 14px 16px 14px 62px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin: 0; min-height: 56px; }
.steps-list li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 0.9rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 1.4em 0; }
.cards .card { padding: 22px; }
.cards .card h3 { margin-top: 12px; font-size: 1.05rem; }
.cards .card p { font-size: 0.93rem; }
.cards .card a { word-break: break-all; font-weight: 600; }

/* Forms */
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin: 1.4em 0; display: grid; gap: 16px; }
.form label { font-weight: 600; font-size: 0.95rem; display: grid; gap: 6px; }
.form input[type="email"], .form select, .form textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid #8f7bff; outline-offset: 1px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.form .check input { margin-top: 5px; width: 18px; height: 18px; accent-color: #6b46ff; flex: none; }
.form-msg { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* 404 */
.nf { padding: 90px 0 60px; text-align: center; }
.nf-block { margin-bottom: 48px; }
.nf-block h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 10px; }
.nf-block p { color: var(--muted); }

@media print {
  .site-header, .site-footer, .toc, .skip-link, .form { display: none !important; }
  body { background: #fff; color: #000; }
  .prose a { color: #000; }
}

/* inside document pages */
.prose .faq { max-width: none; margin: 0 0 1.8em; }
.cards .card p { margin-bottom: 10px; }
