/* HereWord website — warm paper / ink / terracotta (Docs/BRAND_HEREWORD.md).
   Type: Golos Text (UI/body) + Playfair Display (display ≥28px only). Self-hosted,
   cyrillic+latin subsets — CSP is same-origin, external font hosts are forbidden. */

@font-face {
  font-family: "Golos Text";
  src: url("fonts/golos-text.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #1c1813;
  --ink-soft: #6b5f4d;
  --ink-mute: #796c58;          /* ≥4.5:1 on every light surface */
  --bg: #f5f0e6;
  --surface-1: #faf5ea;
  --surface-2: #fffdf8;
  --surface-3: #f0e9db;
  --accent: #b8472a;
  --accent-strong: #8c331c;
  --accent-soft: rgba(184, 71, 42, .1);
  --ok: #3f6d57;
  --line: rgba(28, 24, 19, .13);
  --line-strong: rgba(28, 24, 19, .22);
  --shadow-1: 0 1px 2px rgba(35, 26, 18, .06), 0 8px 24px rgba(35, 26, 18, .07);
  --shadow-2: 0 2px 4px rgba(35, 26, 18, .07), 0 24px 56px rgba(35, 26, 18, .12);
  --radius: 20px;
  --radius-lg: 26px;
  --shell: min(1180px, calc(100% - 48px));
  --font-ui: "Golos Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}
/* The theme lives on <html>: static/theme.js sets it from ?theme= / localStorage /
   prefers-color-scheme before the first paint, so a dark visitor never sees a light flash. */
:root[data-theme="dark"] {
  --ink: #efe6d2;
  --ink-soft: #a89a82;
  --ink-mute: #9c8f78;
  --bg: #16130e;
  --surface-1: #1d1914;
  --surface-2: #241f18;
  --surface-3: #2c261d;
  --accent: #e07246;
  --accent-strong: #f08b61;
  --accent-soft: rgba(224, 114, 70, .14);
  --ok: #7fae94;
  --line: rgba(239, 230, 210, .12);
  --line-strong: rgba(239, 230, 210, .24);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .35), 0 24px 56px rgba(0, 0, 0, .5);
}
/* Same palette without any script: a visitor with JavaScript off and a dark system theme gets
   the dark page, unless they have explicitly chosen the light one. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #efe6d2;
    --ink-soft: #a89a82;
    --ink-mute: #9c8f78;
    --bg: #16130e;
    --surface-1: #1d1914;
    --surface-2: #241f18;
    --surface-3: #2c261d;
    --accent: #e07246;
    --accent-strong: #f08b61;
    --accent-soft: rgba(224, 114, 70, .14);
    --ok: #7fae94;
    --line: rgba(239, 230, 210, .12);
    --line-strong: rgba(239, 230, 210, .24);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-2: 0 2px 4px rgba(0, 0, 0, .35), 0 24px 56px rgba(0, 0, 0, .5);
  }
  /* Text on the brighter dark-theme accent stays dark, as it does with the script. */
  :root:not([data-theme="light"]) .button-primary,
  :root:not([data-theme="light"]) .early-label,
  :root:not([data-theme="light"]) .final-cta,
  :root:not([data-theme="light"]) .step-card.featured .icon-tile { color: #1a120c; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: color .3s ease, background-color .3s ease;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
.shell { width: var(--shell); margin-inline: auto; min-width: 0; }
main section[id] { scroll-margin-top: 100px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  color: #fff; background: var(--accent); font-weight: 600;
}
.skip-link:focus { left: 8px; }

/* ── type scale ─────────────────────────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 550;
  letter-spacing: -.01em;
  line-height: 1.04;
}
.eyebrow, .kicker {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-soft); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.lead { font-size: 18.5px; line-height: 1.65; color: var(--ink-soft); }

/* ── header ─────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  min-height: 78px;
  padding-inline: max(24px, calc((100% - 1180px) / 2));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; }
.brand-mark { display: block; border-radius: 10px; }
.brand-name { font-family: var(--font-display); font-size: 24px; font-weight: 550; letter-spacing: -.01em; }
.brand-name b { color: var(--accent); font-weight: inherit; }
.site-header { transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(35, 26, 18, .07); }
[data-theme="dark"] .site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .4); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; font-weight: 550; color: var(--ink-soft); }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--accent); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); background: transparent; cursor: pointer;
  transition: border-color .2s;
}
.theme-toggle:hover { border-color: var(--line-strong); }
.theme-toggle svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-sun { display: none; }
[data-theme="dark"] .theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: block; }

/* ── buttons ────────────────────────────────────────────────────────────────── */
.button {
  min-height: 50px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 650; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.button-primary { color: #fff; background: var(--accent); box-shadow: var(--shadow-1); }
.button-primary:hover { background: var(--accent-strong); }
[data-theme="dark"] .button-primary { color: #1a120c; }
.button-secondary { border-color: var(--line-strong); color: var(--ink); background: var(--surface-2); }
.button-secondary:hover { border-color: var(--accent); color: var(--accent); }
.button-quiet { min-height: 42px; padding-inline: 18px; border-color: var(--line); color: var(--ink); background: var(--surface-1); }
.button-quiet:hover { border-color: var(--line-strong); }
.button-small { min-height: 40px; padding-inline: 18px; font-size: 14px; }
.button-link { padding-inline: 4px; min-height: 44px; color: var(--ink-soft); font-weight: 600; }
.button-link:hover { color: var(--accent); }
.button-light { color: #1c1813; background: #fffdf8; }
.button-light:hover { background: #f2ead9; }
.button-disabled { color: var(--ink-mute); background: var(--surface-3); cursor: not-allowed; box-shadow: none; }

/* ── hero ───────────────────────────────────────────────────────────────────── */
.hero { padding: 72px 0 88px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 64px; }
.hero-copy { min-width: 0; }
.hero h1 { margin: 18px 0 22px; font-size: clamp(40px, 4.6vw, 66px); }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-lead { max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 10px 0;
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--ink-soft); font-size: 13.5px;
}
.trust-row span { padding: 0 16px; border-right: 1px solid var(--line); }
.trust-row span:first-child { padding-left: 0; }
.trust-row span:last-child { border: 0; }
.trust-row b { color: var(--ink); font-weight: 650; }

.nowrap { white-space: nowrap; }

/* Live dictation: a Windows editor and the application's medium recording plate. */
.hero-privacy { max-width: 500px; color: var(--ink-soft); font-size: 14px; line-height: 1.65; margin: -14px 0 28px; }
.hero-demo { min-width: 0; scroll-margin-top: 120px; }
.demo-scenarios { display: flex; align-items: center; gap: 4px; margin: 0 0 15px; }
.demo-scenarios button { border: 1px solid transparent; border-radius: 9px; padding: 9px 13px; background: transparent; color: var(--ink-soft); font-size: 13px; cursor: pointer; }
.demo-scenarios button:hover { color: var(--accent); }
.demo-scenarios button[aria-pressed="true"] { color: var(--ink); background: var(--surface-2); border-color: var(--line); box-shadow: var(--shadow-1); }
.demo-window { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-2); box-shadow: var(--shadow-2); }
.demo-titlebar { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 0 0 14px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-family: "Segoe UI", var(--font-ui); font-size: 12px; }
.demo-app-icon { display: inline-flex; color: var(--accent); }
.demo-app-icon svg { height: 15px; width: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.window-controls { display: flex; align-items: center; gap: 28px; margin-left: auto; padding: 0 17px; height: 100%; }
.window-controls i { width: 9px; height: 9px; display: block; position: relative; }
.window-min { border-bottom: 1px solid currentColor; transform: translateY(-4px); }
.window-max { border: 1px solid currentColor; }
.window-close::before, .window-close::after { content: ""; position: absolute; left: 4px; height: 11px; border-left: 1px solid currentColor; transform: rotate(45deg); }
.window-close::after { transform: rotate(-45deg); }
.demo-workspace { position: relative; height: 385px; padding: 22px 24px 100px; background: linear-gradient(155deg, var(--surface-1), var(--surface-3)); }
.demo-context { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }
.demo-context-label { color: var(--ink); font-size: 15px; font-weight: 650; }
.demo-context-detail { color: var(--ink-mute); font-size: 11px; }
.demo-editor { padding: 17px 19px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); box-shadow: 0 2px 4px rgba(35, 26, 18, .025); }
.demo-editor-label { display: block; margin-bottom: 10px; color: var(--ink-mute); font-size: 11px; }
.demo-input { min-height: 112px; margin-bottom: 10px; color: var(--ink); font-size: 16px; line-height: 1.6; }
.demo-input .caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.1em; background: var(--accent); }
.demo-editor-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; color: var(--ink-mute); font-size: 10px; }
.demo-editor-footer svg { width: 22px; height: 22px; padding: 4px; border-radius: 5px; background: var(--surface-3); fill: none; stroke: currentColor; stroke-width: 1.8; }
/* Same medium preview layout, palette and 14-bar VU meter as ui/overlay_mini.py. */
.hw-pill { position: absolute; left: 50%; bottom: 17px; transform: translateX(-50%); width: 264px; height: 78px; padding: 10px 12px; border: 1px solid rgba(239, 230, 210, .18); border-radius: 12px; background: rgba(26, 22, 17, .95); box-shadow: 0 4px 12px rgba(26, 22, 17, .16); }
.hw-row { display: flex; align-items: center; gap: 8px; }
.hw-dot { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: #e07246; }
.hw-vu { display: flex; align-items: center; gap: 1px; width: 48px; height: 15px; }
.hw-vu i { flex: 1; height: 100%; border-radius: 1px; background: rgba(239, 230, 210, .18); }
.hw-vu i.on { background: #efe6d2; }
.hw-vu i.hot { background: #e07246; }
.hw-time { margin-left: auto; color: #efe6d2; font-family: ui-monospace, Consolas, "Cascadia Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: .04em; white-space: pre; }
.hw-preview { margin-top: 7px; height: 31px; overflow: hidden; color: #efe6d2; font-family: "Segoe UI", var(--font-ui); font-size: 11px; line-height: 1.4; }
.demo-caption { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 18px; }
.demo-caption p { margin: 0; font-size: 12px; color: var(--ink-soft); }
.demo-caption small { display: block; margin-top: 3px; color: var(--ink-mute); font-size: 10.5px; }
.demo-caption-dot { display: inline-block; width: 5px; height: 5px; margin-right: 5px; vertical-align: 2px; border-radius: 50%; background: var(--ok); }
.demo-pause { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); background: transparent; cursor: pointer; }
.demo-pause:hover { color: var(--accent); border-color: var(--accent); }
.demo-pause span { width: 8px; height: 10px; border-inline: 2px solid currentColor; }
.demo-pause[data-paused="true"] span { width: 0; height: 0; border: 6px solid transparent; border-right-width: 0; border-left: 8px solid currentColor; margin-left: 2px; }

/* ── sections ───────────────────────────────────────────────────────────────── */
.section { padding: 108px 0; }
.section-heading { max-width: 780px; margin-bottom: 52px; }
.section h2 { margin: 0; font-size: clamp(32px, 3.9vw, 52px); }
.section h2 em { color: var(--accent); font-style: italic; }

.icon-tile {
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 15px;
  color: var(--accent); background: var(--surface-2);
}
.icon-tile svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card {
  padding: 28px; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-1);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); border-color: var(--line-strong); }
.step-card > span { display: block; margin-bottom: 22px; color: var(--ink-mute); font-size: 12.5px; font-weight: 650; letter-spacing: .06em; }
.step-card h3 { margin: 20px 0 8px; font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.step-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.step-card.featured { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--surface-2); box-shadow: var(--shadow-1); }
.step-card.featured .icon-tile { color: #fff; background: var(--accent); border-color: transparent; }
[data-theme="dark"] .step-card.featured .icon-tile { color: #1a120c; }

/* ── features bento ─────────────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card {
  min-width: 0; padding: 28px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-1);
  display: flex; flex-direction: column; gap: 0;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); border-color: var(--line-strong); }
.feature-card h3 { margin: 18px 0 8px; font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.feature-wide { grid-column: span 2; }
.feature-main { background: var(--surface-2); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow-1); }
.pill {
  align-self: flex-start;
  display: inline-flex; margin-bottom: 16px; padding: 5px 10px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-mute); font-size: 12px; font-weight: 650; letter-spacing: .05em;
}
.pill-accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
.feature-example {
  margin-top: 20px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 13px; background: var(--surface-1);
  color: var(--ink); font-size: 15px; line-height: 1.55;
}
.feature-example mark { padding: 1px 5px; border-radius: 6px; color: inherit; background: var(--accent-soft); }

/* ── privacy ────────────────────────────────────────────────────────────────── */
.privacy-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.privacy-copy { min-width: 0; }
.privacy-copy .lead { max-width: 540px; }
.check-list { margin: 26px 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin: 13px 0; padding-left: 32px; font-size: 15px; font-weight: 550; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; display: grid; place-items: center;
  border-radius: 50%; color: #fff; background: var(--ok); font-size: 11px;
}
.privacy-copy small { display: block; max-width: 520px; color: var(--ink-mute); font-size: 13px; line-height: 1.55; }
.privacy-diagram {
  position: relative; min-width: 0; padding: 34px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface-1);
}
.pc-contour {
  padding: 26px;
  border: 1.5px solid var(--line-strong); border-radius: 18px;
  background: var(--surface-2);
}
.pc-contour > b { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; font-size: 13.5px; font-weight: 650; }
.pc-contour > b svg { width: 17px; height: 17px; fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow-row { display: flex; align-items: center; gap: 12px; }
.flow-node {
  flex: 1; min-width: 0; padding: 13px 8px; text-align: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-1);
  font-size: 12.5px; font-weight: 600;
}
.flow-node small { display: block; margin-top: 3px; color: var(--ink-mute); font-size: 11.5px; font-weight: 500; }
.flow-arrow { color: var(--accent); font-size: 16px; flex: 0 0 auto; }
.no-cloud-line {
  display: flex; align-items: center; gap: 10px;
  margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line-strong);
  color: var(--ink-mute); font-size: 13px;
}
.no-cloud-line svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

/* ── price ──────────────────────────────────────────────────────────────────── */
.price-section { border-block: 1px solid var(--line); background: var(--surface-1); }
.price-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.price-copy { min-width: 0; }
.price-copy .lead { max-width: 420px; }
.price-copy .price-alt { margin-top: 22px; color: var(--ink-mute); font-size: 13.5px; }
.price-copy .price-alt a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .price-copy .price-alt a { color: var(--accent); }
.price-card {
  min-width: 0; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface-2); box-shadow: var(--shadow-2);
}
.early-label {
  padding: 11px 16px; text-align: center;
  color: #fff; background: var(--accent);
  font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase;
}
[data-theme="dark"] .early-label { color: #1a120c; }
.price-head { padding: 28px 32px 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.price-head .product b { display: block; font-size: 19px; font-weight: 700; }
.price-head .product small { display: block; margin-top: 6px; color: var(--ink-mute); font-size: 13px; line-height: 1.5; }
.price-figure { text-align: right; flex: 0 0 auto; }
.price-figure strong { display: block; font-family: var(--font-display); font-size: clamp(30px, 3vw, 40px); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.price-figure s { display: block; margin-top: 7px; color: var(--ink-mute); font-size: 15px; }
.price-figure small { display: block; margin-top: 4px; color: var(--ink-mute); font-size: 12.5px; }
.price-list { margin: 0; padding: 24px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; list-style: none; }
.price-list li { position: relative; padding-left: 24px; font-size: 14px; }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.purchase-form { padding: 2px 32px 24px; }
.promo-form { padding: 4px 32px 12px; }
.promo-form > label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 650; }
.promo-form .form-message { margin-bottom: 0; }
.promo-note { color: var(--ink-mute); font-size: 12px; line-height: 1.6; margin: 6px 0 0; }
.payment-pause { padding: 0 32px 24px; }
.payment-pause .button { width: 100%; text-align: center; }
.payment-pause p { color: var(--ink-soft); font-size: 13px; line-height: 1.6; margin: 12px 0 0; }
.purchase-form > label:first-child { display: block; margin-bottom: 9px; font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.email-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input[type="email"], #promo-code {
  min-width: 0; width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 13px; outline: none;
  color: var(--ink); background: var(--surface-1);
  transition: border-color .2s, box-shadow .2s;
}
input[type="email"]::placeholder, #promo-code::placeholder { color: var(--ink-mute); opacity: 1; }
input[type="email"]:focus, #promo-code:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.consent {
  margin-top: 13px; display: flex; align-items: flex-start; gap: 10px;
  color: var(--ink-soft); font-size: 13px; line-height: 1.5;
}
.consent input { margin-top: 3px; width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--accent); }
.consent a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
[data-theme="dark"] .consent a { color: var(--accent); }
.form-message { min-height: 20px; margin: 12px 0 0; color: var(--accent-strong); font-size: 13.5px; }
[data-theme="dark"] .form-message { color: var(--accent); }
.form-message.success { color: var(--ok); }
.price-foot { padding: 15px 32px; display: flex; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--line); color: var(--ink-mute); font-size: 12.5px; }
.price-foot span::before { content: "·"; margin-right: 7px; color: var(--accent); }
.price-foot span:first-child::before { content: ""; margin: 0; }

/* ── FAQ ────────────────────────────────────────────────────────────────────── */
.faq-grid { max-width: 860px; border-top: 1px solid var(--line); }
.faq-grid details { border-bottom: 1px solid var(--line); }
.faq-grid summary { padding: 22px 44px 22px 0; position: relative; cursor: pointer; list-style: none; font-size: 17px; font-weight: 650; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after { content: "+"; position: absolute; right: 6px; top: 16px; color: var(--accent); font-family: var(--font-display); font-size: 26px; font-weight: 400; }
.faq-grid details[open] summary::after { content: "−"; }
.faq-grid details p { max-width: 740px; padding: 0 50px 22px 0; margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; }
.faq-grid details a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .faq-grid details a { color: var(--accent); }

/* ── final CTA ──────────────────────────────────────────────────────────────── */
.final-cta { padding: 88px 0; color: #fff; background: var(--accent); }
[data-theme="dark"] .final-cta { color: #1a120c; }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.final-cta .eyebrow { color: color-mix(in srgb, currentColor 75%, transparent); }
.final-cta h2 { margin: 0; font-size: clamp(34px, 4.4vw, 62px); }

/* ── footer ─────────────────────────────────────────────────────────────────── */
.site-footer { width: var(--shell); margin: 0 auto; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 40px 56px; }
.footer-main p { margin: 16px 0 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 11px; font-size: 13.5px; color: var(--ink-soft); }
.footer-col b { margin-bottom: 3px; color: var(--ink); font-size: 13px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.footer-col a:hover { color: var(--accent); }
.footer-meta {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  color: var(--ink-mute); font-size: 12.5px;
}

/* ── download page ──────────────────────────────────────────────────────────── */
.platform-selector { padding-top: 54px; }
.platform-selector > .eyebrow { margin-bottom: 12px; }
.platform-switch {
  width: min(560px, 100%); padding: 5px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px;
  border: 1px solid var(--line); border-radius: 17px; background: var(--surface-1);
  box-shadow: 0 1px 2px rgba(35, 26, 18, .04);
}
.platform-switch button {
  min-width: 0; min-height: 54px; padding: 9px 18px; border: 1px solid transparent;
  border-radius: 12px; color: var(--ink-soft); background: transparent; cursor: pointer;
  font: inherit; text-align: left;
}
.platform-switch button:hover { color: var(--ink); background: var(--surface-2); }
.platform-switch button[aria-selected="true"] {
  border-color: var(--line); color: var(--ink); background: var(--surface-2); box-shadow: var(--shadow-1);
}
.platform-switch button span { display: block; font-size: 15px; font-weight: 700; }
.platform-switch button small { display: block; margin-top: 3px; color: var(--ink-mute); font-size: 11.5px; }
.platform-switch button[aria-selected="true"] small { color: var(--accent); }
[data-platform-panel] { scroll-margin-top: 92px; }
.macos-wait { padding: 72px 0 110px; }
.macos-wait-card {
  max-width: 780px; padding: clamp(30px, 5vw, 54px); border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--surface-2); box-shadow: var(--shadow-2);
}
.macos-wait-card h1 { margin: 10px 0 20px; font-size: clamp(36px, 5vw, 58px); }
.macos-wait-card h1 em { color: var(--accent); font-style: italic; }
.macos-wait-card .lead { max-width: 690px; }
.macos-wait-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.macos-wait-card .download-note { margin-bottom: 0; }
.download-hero { padding: 76px 0 84px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.download-copy { min-width: 0; }
.download-copy h1 { margin: 16px 0 20px; font-size: clamp(38px, 4.4vw, 62px); }
.download-copy h1 em { color: var(--accent); font-style: italic; }
.download-copy > p { max-width: 560px; color: var(--ink-soft); font-size: 17.5px; line-height: 1.65; }
.button-download { margin-top: 16px; }
.button-download small { padding-left: 10px; border-left: 1px solid color-mix(in srgb, currentColor 35%, transparent); font-size: 11px; }
.download-note { max-width: 540px; margin-top: 14px; color: var(--ink-mute); font-size: 13px; line-height: 1.6; }
.download-trust { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-soft); font-size: 13px; }
.download-trust span::before { content: "✓"; margin-right: 7px; color: var(--ok); font-weight: 800; }
.installer-card { min-width: 0; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-2); box-shadow: var(--shadow-1); }
.installer-head { display: flex; align-items: center; gap: 16px; }
.installer-head img { width: 62px; height: 62px; border-radius: 17px; }
.installer-head b { display: block; font-size: 20px; }
.installer-head span { display: block; margin-top: 3px; color: var(--ink-mute); font-size: 12.5px; }
.installer-card ol { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.installer-card li { padding: 17px 0; display: flex; gap: 14px; border-bottom: 1px solid var(--line); }
.installer-card li:last-child { border-bottom: 0; padding-bottom: 4px; }
.installer-card li > i {
  width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto;
  border-radius: 50%; color: var(--accent); background: var(--accent-soft);
  font-size: 12px; font-style: normal; font-weight: 700;
}
.installer-card li p { margin: 0; }
.installer-card li b { display: block; font-size: 14px; font-weight: 650; }
.installer-card li span { display: block; margin-top: 4px; color: var(--ink-mute); font-size: 12.5px; line-height: 1.5; }
.requirements { padding: 72px 0 100px; border-top: 1px solid var(--line); }
.requirements h2 { margin-bottom: 30px; font-size: clamp(28px, 3.4vw, 42px); }
.requirement-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.requirement-grid article { min-width: 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-1); }
.requirement-grid span { display: block; margin-bottom: 16px; color: var(--accent); font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.requirement-grid b { display: block; font-size: 15px; }
.requirement-grid small { display: block; margin-top: 6px; color: var(--ink-mute); font-size: 12.5px; line-height: 1.5; }
.activate-note { margin-top: 44px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-1); }
.activate-note > b { display: block; margin-bottom: 8px; font-size: 15px; }
.activate-note p b { display: inline; font-weight: 650; } /* inline emphasis inside the note text */
.activate-note p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }

/* ── status pages / support ─────────────────────────────────────────────────── */
.status-page { min-height: 62vh; padding: 88px 0; display: grid; place-items: center; }
.status-card {
  width: min(620px, 100%); padding: 44px 44px 40px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); text-align: center;
  background: var(--surface-2); box-shadow: var(--shadow-2);
}
.status-card h1 { margin: 6px 0 14px; font-size: clamp(30px, 4vw, 42px); }
.status-card > p:not(.eyebrow):not(.form-message) { max-width: 480px; margin: 0 auto 24px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; }
.status-spinner { width: 44px; height: 44px; margin: 0 auto 24px; border: 4px solid var(--surface-3); border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-logo { width: 66px; height: 66px; margin-bottom: 18px; border-radius: 18px; }
.license-result { margin: 26px 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; text-align: left; background: var(--surface-1); }
.license-result > label, .license-result > span.label { display: block; margin-bottom: 9px; color: var(--ink-soft); font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.license-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.license-row code { padding: 13px; overflow-x: auto; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.license-result p { margin: 12px 0 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.55; }
.status-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 18px; align-items: center; }
.payment-details { margin: 24px 0; text-align: left; }
.payment-details > div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.payment-details dt { color: var(--ink-soft); font-size: 13px; }
.payment-details dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.payment-instructions { white-space: pre-line; text-align: left; overflow-wrap: anywhere; }
.steps-inline { margin: 22px 0 26px; padding: 0; list-style: none; text-align: left; }
.steps-inline li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.steps-inline li:last-child { border-bottom: 0; }
.steps-inline li i { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: var(--accent-soft); font-size: 11px; font-style: normal; font-weight: 700; }
.steps-inline li b { color: var(--ink); font-weight: 600; }
.resend-form { text-align: left; }
.resend-form h1, .resend-form > p, .resend-form .eyebrow { text-align: center; }
.resend-form label { display: block; margin-bottom: 9px; font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.resend-form input { margin-bottom: 12px; }
.resend-form > .button { width: 100%; }
.kv-row { padding: 10px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv-row:last-child { border-bottom: 0; }
.kv-row span { color: var(--ink-mute); }
.kv-row b { font-weight: 650; text-align: right; overflow-wrap: anywhere; }

.support-page { padding: 76px 0 108px; }
.support-page h1 { margin: 14px 0 18px; font-size: clamp(36px, 4.4vw, 58px); }
.support-page .lead { max-width: 620px; }
.support-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.support-card { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-1); }
.support-card h2 { margin: 16px 0 8px; font-size: 18px; font-weight: 650; font-family: var(--font-ui); }
.support-card p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.support-card a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .support-card a { color: var(--accent); }
.support-seller-link { margin-top: 24px; font-size: 14px; }
.support-seller-link a { color: var(--accent-strong); text-underline-offset: 3px; }
.requisites-page a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.seller-details {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px;
  margin-top: 40px; padding: 32px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface-1);
}
.seller-identity h2 { margin: 0 0 16px; color: var(--ink-mute); font: 500 13px var(--font-ui); }
.seller-name { margin: 0; font-size: clamp(23px, 2.8vw, 32px); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.seller-status { margin: 16px 0 0; max-width: 360px; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.seller-contacts { margin: 0; }
.seller-contacts > div + div { margin-top: 21px; padding-top: 18px; border-top: 1px solid var(--line); }
.seller-contacts dt { margin-bottom: 7px; color: var(--ink-mute); font-size: 12px; }
.seller-contacts dd { margin: 0; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.seller-payment-note { margin: 20px 0 0; padding: 17px 20px; background: var(--accent-soft); border-radius: 14px; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }
.seller-payment-note b { color: var(--ink); }
.seller-purchase-info { margin-top: 32px; }
.seller-purchase-info .eyebrow { color: var(--ink-mute); font-size: 11px; }
.seller-document-links { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 30px; font-size: 13px; line-height: 1.6; }
[data-theme="dark"] .requisites-page a, [data-theme="dark"] .support-seller-link a { color: var(--accent); }
@media (max-width: 680px) {
  .seller-details { grid-template-columns: 1fr; gap: 28px; padding: 24px; }
}
.activate-note a, .status-support a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .activate-note a, [data-theme="dark"] .status-support a { color: var(--accent); }

/* ── legal pages ────────────────────────────────────────────────────────────── */
.legal-page { padding: 76px 0 110px; }
.legal-page h1 { margin: 8px 0 12px; font-family: var(--font-display); font-size: clamp(36px, 4.6vw, 60px); font-weight: 550; letter-spacing: -.01em; overflow-wrap: anywhere; hyphens: auto; }
.legal-lead { max-width: 740px; margin-bottom: 48px; color: var(--ink-soft); font-size: 17px; line-height: 1.6; }
.legal-page h2 { margin: 40px 0 12px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.legal-page h2[id] { scroll-margin-top: 160px; }
.legal-page > p:not(.eyebrow):not(.legal-lead), .legal-page > ul { max-width: 820px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.75; }
.legal-page li { margin: 8px 0; }
.legal-page a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .legal-page a { color: var(--accent); }
.legal-warning {
  margin-bottom: 36px; padding: 16px 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 14px; color: var(--accent-strong); background: var(--accent-soft);
  font-size: 13px; line-height: 1.55;
}
[data-theme="dark"] .legal-warning { color: var(--accent); }

/* ── error page ─────────────────────────────────────────────────────────────── */
.error-code { font-family: var(--font-display); font-size: clamp(72px, 10vw, 120px); font-weight: 550; line-height: 1; color: var(--accent); }

/* ── responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .site-header { grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 0; padding-top: 12px; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 0 20px; padding-block: 6px; }
  .nav-links a { min-height: 36px; display: inline-flex; align-items: center; }
  main section[id] { scroll-margin-top: 155px; }
  .hero, .privacy-grid, .price-grid, .download-hero { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; gap: 56px; }
  .hero-demo { max-width: 640px; }
  .steps-grid, .support-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .requirement-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  :root { --shell: calc(100% - 32px); --radius: 16px; --radius-lg: 20px; }
  body { font-size: 15px; }
  .site-header { min-height: 68px; padding-inline: 16px; }
  .brand { gap: 7px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-name { font-size: 20px; }
  .header-actions { gap: 6px; }
  .header-download { padding-inline: 10px; }
  .theme-toggle { width: 36px; height: 36px; }
  .nav-links { gap: 0 16px; font-size: 13px; }
  .hero { padding: 44px 0 76px; gap: 48px; }
  main section[id], .hero-demo { scroll-margin-top: 156px; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 44px); }
  .hero-lead { font-size: 16.5px; }
  .hero-actions .button { width: 100%; }
  .trust-row { gap: 8px 0; font-size: 12.5px; }
  .trust-row span { padding: 0 10px 0 0; border-right: 0; }
  .section { padding: 72px 0; }
  .section h2 { font-size: clamp(27px, 7.6vw, 36px); }
  .demo-workspace { height: 425px; padding: 20px 14px 106px; }
  .demo-input { min-height: 146px; }
  .window-controls { gap: 21px; padding-inline: 13px; }
  .demo-scenarios button { padding-inline: 12px; }
  .demo-input { font-size: 15px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: span 1; }
  .price-head { flex-direction: column; }
  .price-figure { text-align: left; }
  .price-list { grid-template-columns: 1fr; }
  .email-row { grid-template-columns: 1fr; }
  .email-row .button { width: 100%; }
  .final-cta-inner { flex-direction: column; align-items: flex-start; }
  .status-card { padding: 32px 22px 30px; }
  .license-row { grid-template-columns: 1fr; }
  .license-row .button { width: 100%; }
  .payment-details > div { grid-template-columns: 1fr; gap: 4px; }
  .download-copy h1 { font-size: clamp(32px, 9vw, 42px); }
  .button-download { width: 100%; }
  .platform-selector { padding-top: 34px; }
  .platform-switch { width: 100%; }
  .platform-switch button { min-height: 50px; padding-inline: 12px; text-align: center; }
  .macos-wait { padding: 48px 0 84px; }
  .macos-wait-card { padding: 30px 22px; }
  .macos-wait-actions .button { width: 100%; }
  .legal-page h1 { font-size: clamp(30px, 8.6vw, 42px); }
}
@media (max-width: 360px) {
  .legal-page h1 { font-size: 26px; }
}
/* ── scroll reveal (classes are attached by app.js; skipped for reduced motion) ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Compact download page: the installer owns installation details. */
.download-product-card { padding: 28px; }
.download-preview { min-height: 180px; display: flex; align-items: center; gap: 25px; padding: 30px 12px; font-size: 19px; line-height: 1.55; }
.download-preview b { font-size: 24px; font-weight: 600; }
.download-wave { display: flex; align-items: center; gap: 5px; height: 70px; color: var(--accent); }
.download-wave i { width: 4px; height: 18px; border-radius: 4px; background: currentColor; }
.download-wave i:nth-child(2n) { height: 37px; }
.download-wave i:nth-child(3n) { height: 55px; }
.download-wave i:nth-child(5n) { height: 70px; }
.download-card-note { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-mute); font-size: 12px; }
.download-help { padding-bottom: 84px; color: var(--ink-soft); font-size: 14px; }
.download-help p { margin-bottom: 8px; }
.download-help a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 400px) { .download-preview { gap: 16px; padding-inline: 0; } .download-preview b { font-size: 21px; } .download-wave { gap: 3px; } }

/* Both plans are also selectable through a regular POST when JavaScript is off. */
.plan-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 24px 24px 0; }
.plan-selector button { min-width: 0; text-align: left; display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface-1); cursor: pointer; }
.plan-selector button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.plan-selector b { font-size: 14px; }
.plan-selector span { margin-top: 5px; font-size: 16px; font-weight: 600; }
.plan-selector small { font-size: 11px; font-weight: 400; color: var(--ink-soft); }
.plan-selector em { margin-top: 7px; color: var(--accent); font-size: 10px; font-weight: 600; font-style: normal; }
.launch-price-note { margin: 12px 26px 0; color: var(--ink-mute); font-size: 11.5px; line-height: 1.55; }
@media (max-width: 680px) { .plan-selector { padding: 20px 20px 0; } .plan-selector button { padding: 13px 11px; } .plan-selector small { display: block; } .launch-price-note { margin-inline: 22px; } }

.monthly-online-note { margin: 0 32px 20px; color: var(--ink-mute); font-size: 12px; line-height: 1.6; }

.support-installation { margin-top: 40px; }
