/* OraDraft landing — styles. Colours are the brand tokens; change them here only.
   Neutrals are tinted warm (brass and candlelight); brass is the one accent. */
/* Inter, self-hosted (SIL Open Font License, fonts/OFL.txt): no request to a third party, one variable file per script */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("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: 400 700; font-display: swap;
  src: url("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;
}

:root {
  --bg: #12110F;
  --surface: #1C1A18;
  --surface-2: #262421;
  --window-bar: #171614;
  --band: #171614; /* every other section: one step up from the page, same warm tint */
  --border: rgba(239, 233, 222, 0.08);
  --border-strong: rgba(239, 233, 222, 0.13);
  --border-hover: rgba(239, 233, 222, 0.22);
  --text: #EFE9DE;
  --text-2: #AAA398;
  --muted: #8A847A;
  --accent: #C9A45C;
  --accent-hover: #D6B36D;
  --on-accent: #17140D;
  --good: #4CC38A;
  --bad: #E5484D;

  --radius: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --container: 1180px;
  --gutter: 16px;
  --header-h: 64px;
  --section-y: 88px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --land: cubic-bezier(0.16, 1.18, 0.28, 1); /* a small overshoot: blocks land like they were placed */
  --shadow-shot: 0 24px 64px -24px rgba(0, 0, 0, 0.7), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}
@media (min-width: 640px) { :root { --gutter: 24px; --section-y: 112px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --section-y: 136px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
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;
}
@media (min-width: 640px) { body { font-size: 17px; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; color: var(--text); text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code {
  font-family: var(--mono); font-size: 0.86em; background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: 6px; padding: 0.08em 0.4em; color: var(--text); white-space: nowrap;
}
/* Signature: the F8 keycap */
kbd {
  display: inline-block; min-width: 1.9em; padding: 0.1em 0.45em; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-bottom-width: 2px;
  font: 500 0.82em/1.35 var(--font); color: var(--text); text-align: center; vertical-align: 0.08em; white-space: nowrap;
}
strong { color: var(--text); font-weight: 500; }
::selection { background: rgba(201, 164, 92, 0.35); color: var(--text); }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 16px;
  background: var(--accent); color: var(--on-accent); border-radius: var(--radius-sm); font-weight: 500;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section + .section { border-top: 1px solid var(--border); }
.band { background: var(--band); }

/* ---------- Type ---------- */
.eyebrow { color: var(--muted); font-size: 15px; font-weight: 500; margin-bottom: 16px; }
.h1 { font-size: clamp(40px, 8.4vw, 76px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 600; }
.h2 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
.h3 { font-size: 19px; line-height: 1.3; font-weight: 600; }
.lead { color: var(--text-2); font-size: clamp(17px, 2vw, 20px); line-height: 1.55; max-width: 640px; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .lead { margin-top: 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--radius-sm);
  font: 500 15px/1 var(--font); white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .12s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.btn-secondary:hover { border-color: var(--border-hover); }
.btn:active { transform: scale(0.98); }
.btn[aria-disabled="true"] {
  background: var(--surface-2); color: var(--text-2); border-color: var(--border-strong); box-shadow: none;
  cursor: default; transform: none; white-space: normal; text-align: center; line-height: 1.3; padding-top: 12px; padding-bottom: 12px;
}
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-solid, .site-header.menu-open {
  background: rgba(18, 17, 15, 0.86); border-bottom-color: var(--border);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-mark .star { transform-box: fill-box; transform-origin: center; }
.brand:hover .brand-mark .star, .brand:focus-visible .brand-mark .star { animation: star-spin 6s linear infinite; }
@keyframes star-spin { to { transform: rotate(360deg); } }
.wordmark-ora { color: var(--accent); }
.wordmark-draft { color: var(--text); }

.nav { display: none; gap: 4px; margin-left: 8px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px;
  color: var(--text-2); font-size: 15px; font-weight: 500; transition: color .15s var(--ease);
}
.nav a:hover { color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-actions .btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
.header-actions .btn-secondary, .header-actions .lang-switch { display: none; }
.header-actions .lang-switch.always { display: inline-flex; }

.lang-switch { display: inline-flex; align-items: center; padding: 0; border: 1px solid var(--border); border-radius: 10px; }
.lang-switch button {
  min-width: 44px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 9px; background: none;
  color: var(--muted); font: 500 13px/1 var(--font); letter-spacing: 0.02em; cursor: pointer; transition: color .15s var(--ease);
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -8px;
  border: 0; border-radius: 10px; background: none; color: var(--text); cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
  background: rgba(18, 17, 15, 0.98); border-bottom: 1px solid var(--border);
  padding: 8px var(--gutter) 24px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a.link {
  display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--border);
  font-size: 17px; font-weight: 500; color: var(--text);
}
.mobile-nav .row { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.mobile-nav .row .btn { flex: 1; }

@media (min-width: 640px) {
  .header-actions .btn-secondary { display: inline-flex; }
}
@media (min-width: 980px) {
  .nav { display: flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
  .header-actions .lang-switch { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: clamp(48px, 9vw, 104px) 0 clamp(80px, 10vw, 136px); overflow-x: clip; }

/* The background: an engraved brass astrolabe drawn from the logo's rings, its beam and ten heroes on the dial.
   Hairlines at low opacity; the middle is masked out so the headline sits on calm space. */
.hero-art, .section-art { position: absolute; z-index: -1; pointer-events: none; color: var(--accent); }
.hero-art {
  left: 50%; top: clamp(150px, 20vw, 250px); width: clamp(760px, 112vw, 1440px); aspect-ratio: 1;
  transform: translate(-50%, -50%); opacity: 0.3;
  -webkit-mask-image: radial-gradient(closest-side, transparent 30%, #000 52%, #000 88%, transparent 100%);
  mask-image: radial-gradient(closest-side, transparent 30%, #000 52%, #000 88%, transparent 100%);
}
.has-art { position: relative; isolation: isolate; overflow: clip; }
.section-art {
  left: 50%; top: 58%; width: clamp(640px, 80vw, 1000px); aspect-ratio: 1;
  transform: translate(-50%, -50%); opacity: 0.16;
  -webkit-mask-image: radial-gradient(closest-side, transparent 40%, #000 62%, #000 85%, transparent 100%);
  mask-image: radial-gradient(closest-side, transparent 40%, #000 62%, #000 85%, transparent 100%);
}
.hero-copy { text-align: center; max-width: 880px; margin: 0 auto; }
.hero-kicker { margin-bottom: 24px; color: var(--text-2); font-size: 15px; font-weight: 500; }
.hero .lead { margin: 24px auto 0; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.hero-meta { margin-top: 16px; color: var(--muted); font-size: 14px; }
.hero-trust {
  display: inline-flex; align-items: flex-start; gap: 8px; margin-top: 8px; color: var(--text-2); font-size: 14px; text-align: left;
}
.hero-trust svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--muted); }
@media (max-width: 479px) { .hero-cta .btn { width: 100%; } .hide-xs { display: none !important; } }

.hero-visual { position: relative; max-width: 1080px; margin: clamp(48px, 7vw, 80px) auto 0; }
.window {
  position: relative; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.85);
}
.window-bar {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px;
  border-bottom: 1px solid var(--border); background: var(--window-bar); color: var(--muted); font-size: 12px; font-weight: 500;
}
.window-bar .mark { width: 14px; height: 14px; }
.window-controls { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.window-controls i { display: block; width: 9px; height: 9px; border: 1px solid rgba(239, 233, 222, 0.28); border-radius: 1px; }
.window-controls i:first-child { height: 1px; border-width: 1px 0 0; border-radius: 0; }

/* The moment: the win-chance bar over the product shot */
.winmock {
  position: relative; z-index: 2; width: min(100%, 360px); margin: -28px auto 0;
  padding: 20px; background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: 14px; box-shadow: 0 24px 64px -20px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
@media (min-width: 900px) {
  .winmock { position: absolute; left: -32px; bottom: -44px; margin: 0; }
}
.winmock-label { color: var(--text-2); font-size: 13px; }
.winmock-values { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 16px; font-variant-numeric: tabular-nums; }
.winmock-values .from { color: var(--text-2); font-size: 18px; }
.winmock-values .arrow { color: var(--text-2); font-size: 16px; }
.winmock-values .to { font-size: 36px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.winmock-values .delta { margin-left: auto; color: var(--good); font-size: 14px; font-weight: 500; }
.winbar { position: relative; height: 8px; border-radius: 4px; background: var(--bad); overflow: hidden; }
.winbar .fill { position: absolute; inset: 0 auto 0 0; width: 54.1%; background: var(--good); }
.winbar::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--surface-2); }
.winmock-sides { display: flex; justify-content: space-between; margin-top: 8px; color: var(--text-2); font-size: 12px; }

/* ---------- Screenshots ---------- */
.shot { position: relative; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: var(--shadow-shot); }
.shot img { width: 100%; }
.shot-pair { position: relative; }
.shot-pair .shot + .shot { margin-top: 16px; }
@media (min-width: 960px) {
  .shot-pair { padding-bottom: 96px; }
  .shot-pair .shot:first-child { width: 86%; }
  .shot-pair .shot + .shot { position: absolute; right: 0; bottom: 0; width: 58%; margin: 0; }
}

/* ---------- How it works ---------- */
.steps { display: grid; gap: 16px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { position: relative; padding: 28px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.step-no { color: var(--muted); font: 400 13px/1 var(--mono); }
.step-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border-strong);
}
.step-icon svg { width: 20px; height: 20px; }
.step-icon.keycap { border-bottom-width: 3px; color: var(--text); font: 600 16px/1 var(--font); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 16px; }
.how-note { margin-top: 32px; text-align: center; color: var(--text-2); font-size: 15px; }

/* ---------- Features ---------- */
.features { display: grid; gap: clamp(80px, 11vw, 144px); }
.feature { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) {
  .feature { grid-template-columns: 5fr 7fr; gap: 64px; }
  .feature.flip { grid-template-columns: 7fr 5fr; }
  .feature.flip .feature-copy { order: 2; }
  .feature.flip .feature-media { order: 1; }
}
.feature-copy .h2 { font-size: clamp(28px, 3.6vw, 38px); }
.bullets { display: grid; gap: 16px; margin-top: 28px; }
.bullets li { position: relative; padding-left: 24px; color: var(--text-2); }
.bullets li::before {
  content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 1px; background: var(--muted);
}
.also { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; }
.also b { color: var(--text-2); font-weight: 500; }

.extras { display: grid; gap: 12px; margin-top: clamp(80px, 10vw, 128px); grid-template-columns: 1fr; }
@media (min-width: 560px) { .extras { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .extras { grid-template-columns: repeat(4, 1fr); } }
.extras li {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--text-2); font-size: 15px; line-height: 1.4;
}
.extras svg { width: 18px; height: 18px; flex: none; color: var(--muted); }

/* ---------- What makes it different ---------- */
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card { padding: 28px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card-icon { width: 20px; height: 20px; color: var(--text-2); margin-bottom: 20px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 16px; }

/* ---------- Numbers: a spec panel under "what makes it different" ---------- */
#different { padding-bottom: 0; }
.numbers { padding: clamp(48px, 6vw, 64px) 0 var(--section-y); }
.numbers + .section { border-top: 1px solid var(--border); }
.specs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius);
}
@media (min-width: 900px) { .specs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.spec { display: flex; flex-direction: column; min-width: 0; padding: 20px 16px; background: var(--surface); }
@media (min-width: 640px) { .spec { padding: 28px 28px 24px; } }
.spec-label { color: var(--text-2); font-size: 14px; line-height: 1.4; min-height: 2.8em; }
.spec-value {
  margin-top: 16px; color: var(--text); font-size: clamp(40px, 5vw, 56px); line-height: 1; font-weight: 500;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.spec-value .unit { margin-left: 4px; color: var(--accent); font-size: 0.42em; letter-spacing: 0; font-weight: 500; }
.spec-note { margin-top: 16px; min-height: 22px; display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; }
.spec-note kbd { font-size: 12px; }
/* the Dota top bar in miniature: five portraits, the clock, five portraits */
.topbar { max-width: 228px; }
.topbar i { flex: 1 1 16px; min-width: 0; max-width: 16px; height: 10px; border-radius: 2px; border: 1px solid; }
.topbar i:nth-child(-n+5) { border-color: rgba(76, 195, 138, 0.55); background: rgba(76, 195, 138, 0.12); }
.topbar i:nth-child(n+7) { border-color: rgba(229, 72, 77, 0.55); background: rgba(229, 72, 77, 0.12); }
.topbar b {
  flex: none; width: 9px; height: 9px; margin: 0 4px; background: var(--accent);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

/* ---------- Pricing ---------- */
.price-card {
  position: relative; max-width: 460px; margin: 0 auto; padding: 36px 24px 32px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 20px;
  box-shadow: 0 32px 80px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
@media (min-width: 640px) { .price-card { padding: 44px 40px 40px; } }
.price-name { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; }
.price-name svg { width: 24px; height: 24px; }
.price-amount { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 8px; }
.price-amount .amount { font-size: 56px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price-amount .per { color: var(--text-2); font-size: 17px; }
.price-sub { color: var(--muted); font-size: 15px; }
.checks { display: grid; gap: 12px; margin: 28px 0 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 16px; }
.checks svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--text-2); }
.fineprint { margin-top: 20px; color: var(--muted); font-size: 13px; line-height: 1.55; text-align: center; }
.have-key { max-width: 560px; margin: 28px auto 0; text-align: center; color: var(--text-2); font-size: 15px; }
.have-key a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Download ---------- */
.download { display: grid; gap: 48px; }
@media (min-width: 960px) { .download { grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; } }
.download .lead { margin-top: 16px; }
.download .btn-lg { margin-top: 32px; }
.file-note { margin-top: 12px; color: var(--muted); font: 400 13px/1.5 var(--mono); }
.reqs { margin-top: 40px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.reqs h3 { font-size: 15px; font-weight: 500; margin-bottom: 12px; }
.reqs ul { display: grid; gap: 8px; color: var(--text-2); font-size: 15px; }
.reqs li { display: flex; gap: 12px; }
.reqs li::before { content: ""; width: 8px; height: 1px; margin-top: 0.8em; background: var(--muted); flex: none; }
.install { counter-reset: n; display: grid; }
.install li {
  counter-increment: n; position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--border); color: var(--text-2);
}
.install li:first-child { padding-top: 0; }
.install li:last-child { border-bottom: 0; }
.install li::before {
  content: counter(n); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border-strong); color: var(--text-2); font: 400 13px/1 var(--mono);
}
.install li p { padding-top: 4px; }
.install code { white-space: normal; overflow-wrap: anywhere; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0;
  font-size: 17px; font-weight: 500; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .2s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding: 0 0 24px; color: var(--text-2); max-width: 720px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.5fr 1fr auto; align-items: start; } }
.footer-tagline { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.footer-legal { margin-top: 12px; max-width: 460px; line-height: 1.55; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--text-2); transition: color .15s var(--ease); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) 0 var(--section-y); }
.legal .back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text-2); font-size: 15px; margin-bottom: 20px; }
.legal .back svg { width: 16px; height: 16px; }
.legal .back:hover { color: var(--text); }
.legal h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 12px; }
.legal h2 { font-size: 22px; margin: 44px 0 16px; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 16px; }
.legal ul { display: grid; gap: 12px; margin: 16px 0; }
.legal ul li { position: relative; padding-left: 20px; }
.legal ul li::before { content: ""; position: absolute; left: 2px; top: 0.8em; width: 8px; height: 1px; background: var(--muted); }
.legal em { font-style: normal; color: var(--muted); }
.legal .table-wrap { margin: 20px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); color: var(--text-2); }
.legal th { color: var(--text); font-weight: 500; background: var(--surface); }
.legal tr:last-child td { border-bottom: 0; }
html[lang="en"] [data-only="uk"], html:not([lang="en"]) [data-only="en"] { display: none !important; }

/* ---------- Reveal on scroll: rise with a slight turn, then land ---------- */
.js .reveal {
  opacity: 0; transform: translateY(24px) rotate(var(--turn, 0deg));
  transition: opacity .6s var(--ease), transform .7s var(--land);
}
.js .reveal.in { opacity: 1; transform: none; }
.steps .reveal:nth-child(odd), .cards .reveal:nth-child(odd) { --turn: -0.8deg; }
.steps .reveal:nth-child(even), .cards .reveal:nth-child(even) { --turn: 0.8deg; }
.feature-copy.reveal { --turn: -0.5deg; }
.steps .reveal:nth-child(2), .cards .reveal:nth-child(3n+2), .numbers li:nth-child(2) { transition-delay: .06s; }
.steps .reveal:nth-child(3), .cards .reveal:nth-child(3n), .numbers li:nth-child(3) { transition-delay: .12s; }
.numbers li:nth-child(4) { transition-delay: .18s; }

/* ---------- Scroll-driven motion (script.js adds .motion; off with reduced motion) ---------- */
.scroll-gauge {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; opacity: 0.85;
}
.motion .hero-art, .motion .section-art, .motion .hero-visual, .motion .hero-copy, .motion .feature-media > * { will-change: transform; }
.motion .hero-visual { transform-origin: 50% 0; }
.lang-pending [data-i18n] { visibility: hidden; }

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