/* ============================================================================
   vocognix.com — design system
   The four comfort palettes are lifted verbatim from the app's runtime palette
   engine (app/MainWindow.xaml.cpp PaletteFor) — WCAG-audited there, reused here.
   Brand constants: mark blue #275DFB (palette-invariant); the signature gradient
   #00E5FF -> #2962FF -> #7B3CFF is reserved for exactly ONE hero moment.
   ========================================================================== */

/* ---- fonts (self-hosted, SIL OFL — see assets/fonts/OFL.txt) ---- */
@font-face {
  font-family: 'Sora'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('fonts/Sora-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Sora'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('fonts/Sora-SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Sora'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('fonts/Sora-Bold.ttf') format('truetype');
}

/* ---- palettes ---- */
/* Soft Slate — the app's default (dark) */
:root, :root[data-theme="slate"] {
  color-scheme: dark;
  --bg: #0F1623; --bg-alt: #111827; --panel: #151E2C; --card: #182131;
  --text: #F3F6FA; --text-2: #B8C2D1; --muted: #8793A5;
  --border: #2B3547; --border-strong: #3A4761;
  --accent: #6D8DFF; --accent-hover: #8AA3FF; --accent-soft: #23335F; --accent-text: #9DB4FF;
  --ok: #4ADE80;
  --grad-a: #00E5FF; --grad-b: #2962FF; --grad-c: #7B3CFF;
  --mark-filter: none;
}
/* Polar White — the app's default light */
:root[data-theme="polar"] {
  color-scheme: light;
  --bg: #F7F8FC; --bg-alt: #F3F5FA; --panel: #FBFCFE; --card: #FFFFFF;
  --text: #111827; --text-2: #475569; --muted: #64748B;
  --border: #D8DEE9; --border-strong: #B9C2D4;
  --accent: #3B63F6; --accent-hover: #2F52D9; --accent-soft: #E8EDFF; --accent-text: #2A4BD7;
  --ok: #12873D;
  --grad-a: #00B8D9; --grad-b: #2962FF; --grad-c: #7B3CFF;
}
/* Blue Mist */
:root[data-theme="mist"] {
  color-scheme: light;
  --bg: #F3F7FF; --bg-alt: #EEF4FF; --panel: #F8FBFF; --card: #FBFDFF;
  --text: #102033; --text-2: #40566F; --muted: #64748B;
  --border: #CBDDF5; --border-strong: #A9C4E8;
  --accent: #2563EB; --accent-hover: #1D4ED8; --accent-soft: #DCEBFF; --accent-text: #1D4ED8;
  --ok: #12873D;
  --grad-a: #00B8D9; --grad-b: #2962FF; --grad-c: #7B3CFF;
}
/* Graphite Gray */
:root[data-theme="graphite"] {
  color-scheme: light;
  --bg: #EDEFF3; --bg-alt: #E4E7EC; --panel: #F2F4F8; --card: #F8FAFC;
  --text: #171A20; --text-2: #4B5563; --muted: #6B7280;
  --border: #C9D0DA; --border-strong: #A8B1BF;
  --accent: #4F46E5; --accent-hover: #4338CA; --accent-soft: #E4E1FF; --accent-text: #4338CA;
  --ok: #107D38;
  --grad-a: #00B8D9; --grad-b: #2962FF; --grad-c: #7B3CFF;
}
/* No stored choice + OS prefers light -> Polar White */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #F7F8FC; --bg-alt: #F3F5FA; --panel: #FBFCFE; --card: #FFFFFF;
    --text: #111827; --text-2: #475569; --muted: #64748B;
    --border: #D8DEE9; --border-strong: #B9C2D4;
    --accent: #3B63F6; --accent-hover: #2F52D9; --accent-soft: #E8EDFF; --accent-text: #2A4BD7;
    --ok: #12873D;
    --grad-a: #00B8D9; --grad-b: #2962FF; --grad-c: #7B3CFF;
  }
}

/* ---- reset / base ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Sora', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
  font-weight: 400; line-height: 1.65;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 12px; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 14px; padding: 14px 24px; max-width: 1080px; margin: 0 auto; }
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.nav-brand:hover { text-decoration: none; }
.nav-brand img { height: 30px; width: auto; }
.nav-brand .wordmark { height: 17px; width: auto; color: var(--text); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 0.92rem; }
.nav-links a { color: var(--text-2); font-weight: 600; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* palette cycler */
.theme-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 0.85rem; font-weight: 600;
  color: var(--text-2); background: var(--card);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; cursor: pointer;
}
.theme-btn:hover { border-color: var(--border-strong); color: var(--text); }
.theme-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* ---- hero ---- */
.hero { padding: 88px 0 40px; text-align: center; }
.hero .eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-text);
  background: var(--accent-soft); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 16px; margin-bottom: 26px;
}
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.3rem); font-weight: 700; margin-bottom: 20px; }
/* the one gradient moment (used on the privacy headline; also the 404) */
.grad-text {
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b) 50%, var(--grad-c));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* the owner-designed splash lockup as the hero (letters follow the palette via currentColor) */
.hero-lockup { max-width: 580px; margin: 10px auto 30px; }
.hero-lockup .lockup { display: block; width: 100%; height: auto; color: var(--text); }
.hero p.lede {
  max-width: 640px; margin: 0 auto 34px; font-size: 1.12rem; color: var(--text-2);
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1rem; border-radius: 12px;
  padding: 13px 26px; border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-hover); }
:root .btn-primary, :root[data-theme="slate"] .btn-primary { color: #0F1623; } /* dark theme: dark text on light accent */
:root[data-theme="polar"] .btn-primary, :root[data-theme="mist"] .btn-primary,
:root[data-theme="graphite"] .btn-primary { color: #FFFFFF; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .btn-primary { color: #FFFFFF; } }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--panel); }
.btn .soon {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(0,0,0,0.18); border-radius: 6px; padding: 2px 7px;
}
.platform-note { margin-top: 18px; font-size: 0.88rem; color: var(--muted); }

/* ---- live transcription demo ---- */
.demo { padding: 26px 0 80px; }
.demo-panel {
  max-width: 720px; margin: 0 auto; text-align: left;
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 18px 50px -28px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.demo-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-bottom: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 600; color: var(--muted);
}
.demo-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.demo-head .dot.rec { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.demo-body { padding: 22px 24px 26px; min-height: 96px; }
.demo-line { font-size: 1.15rem; line-height: 1.7; color: var(--text); }
.demo-line .caret {
  display: inline-block; width: 2px; height: 1.15em; margin-left: 2px;
  background: var(--accent); vertical-align: text-bottom;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.demo-hint { margin-top: 10px; font-size: 0.82rem; color: var(--muted); }
kbd {
  font-family: inherit; font-size: 0.82em; font-weight: 600;
  background: var(--card); border: 1px solid var(--border-strong);
  border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px;
}

/* ---- feature grid ---- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 620px; margin-bottom: 40px; }
.section-head p { color: var(--text-2); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 26px 24px;
}
.card:hover { border-color: var(--border-strong); }
.card .icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-text);
  margin-bottom: 16px; font-size: 1.2rem;
}
.card h3 { font-size: 1.06rem; margin-bottom: 8px; }
.card p { font-size: 0.94rem; color: var(--text-2); }

/* ---- privacy band ---- */
.privacy-band { text-align: center; }
.privacy-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.privacy-band .sub { max-width: 560px; margin: 0 auto 30px; color: var(--text-2); }
.proofs { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.proof {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 18px; font-size: 0.9rem; font-weight: 600; color: var(--text-2);
}
.proof .tick { color: var(--ok); font-weight: 700; }

/* ---- models strip ---- */
.models { text-align: center; }
.models .chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.chip {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 16px; font-size: 0.88rem; color: var(--text-2);
}
.chip strong { color: var(--text); font-weight: 600; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--border); padding: 44px 0 54px; }
.foot-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-inner img { height: 26px; width: auto; opacity: 0.9; }
.foot-tag { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.foot-links { margin-left: auto; display: flex; gap: 20px; font-size: 0.9rem; }
.foot-links a { color: var(--text-2); }
.foot-copy { margin-top: 14px; font-size: 0.82rem; color: var(--muted); }

/* ---- privacy page ---- */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.doc h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 34px; }
.doc h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc li { margin: 7px 0; }
.doc strong { color: var(--text); }
.doc .lede { font-size: 1.06rem; }

/* ---- motion & small screens ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo-line .caret, .demo-head .dot.rec { animation: none; }
}
@media (max-width: 560px) {
  .nav-links a.hide-sm { display: none; }
  .hero { padding-top: 60px; }
}
