/* Froge landing page.
   Light palette is the default (tokens on :root). Dark follows the OS setting
   unless the page is stamped data-theme="light", and data-theme="dark" forces it.
   Dark values match the app's dark theme (src/localflow/ui/theme.py DARK); the
   greens come from packaging/brand/froge/*.svg. System fonts only: nothing is fetched. */

:root {
  --bg: #f7f6f1;
  --bg-alt: #efeee7;
  --bg-deep: #eef2ea;
  --window: #ffffff;
  --window-bar: #f2f2ee;
  --surface: #f6f6f3;
  --border: #dcdcd4;
  --field-border: #c9c9c1;
  --text: #1b1d1a;
  --text-2: #3b3f39;
  --muted: #5a5f57;
  --accent: #2f7d4f;
  --accent-hover: #276a43;
  --on-accent: #ffffff;
  --accent-ink: #1f6b3f;
  --accent-tint: rgba(47, 125, 79, .10);
  --accent-line: rgba(47, 125, 79, .45);
  --header-bg: rgba(247, 246, 241, .86);
  --hairline: rgba(0, 0, 0, .07);
  --hover-tint: rgba(0, 0, 0, .04);
  --notes-bg: #fbf8e8;
  --notes-border: #e2dbb6;
  --ph-bg: #fff3d1;
  --ph-text: #6a4800;
  --ph-border: #d9a93a;
  --shadow: 0 18px 44px -18px rgba(20, 30, 20, .28), 0 2px 6px rgba(20, 30, 20, .08);
  --glow: rgba(47, 125, 79, .16);

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1140px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #202020;
    --bg-alt: #1b1c1b;
    --bg-deep: #181918;
    --window: #2b2b2b;
    --window-bar: #262626;
    --surface: #333333;
    --border: #404040;
    --field-border: #4a4a4a;
    --text: #f2f2f2;
    --text-2: #c9c9c9;
    --muted: #a8a8a8;
    --accent: #3f9e66;
    --accent-hover: #4bb075;
    --on-accent: #0f1a13;
    --accent-ink: #7fd49c;
    --accent-tint: rgba(63, 158, 102, .15);
    --accent-line: rgba(63, 158, 102, .55);
    --header-bg: rgba(32, 32, 32, .84);
    --hairline: rgba(255, 255, 255, .07);
    --hover-tint: rgba(255, 255, 255, .06);
    --notes-bg: #2f2f2a;
    --notes-border: #4d4c43;
    --ph-bg: #3a3014;
    --ph-text: #f5d98a;
    --ph-border: #8a6d1f;
    --shadow: 0 24px 60px -20px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .35);
    --glow: rgba(63, 158, 102, .20);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #202020;
  --bg-alt: #1b1c1b;
  --bg-deep: #181918;
  --window: #2b2b2b;
  --window-bar: #262626;
  --surface: #333333;
  --border: #404040;
  --field-border: #4a4a4a;
  --text: #f2f2f2;
  --text-2: #c9c9c9;
  --muted: #a8a8a8;
  --accent: #3f9e66;
  --accent-hover: #4bb075;
  --on-accent: #0f1a13;
  --accent-ink: #7fd49c;
  --accent-tint: rgba(63, 158, 102, .15);
  --accent-line: rgba(63, 158, 102, .55);
  --header-bg: rgba(32, 32, 32, .84);
  --hairline: rgba(255, 255, 255, .07);
  --hover-tint: rgba(255, 255, 255, .06);
  --notes-bg: #2f2f2a;
  --notes-border: #4d4c43;
  --ph-bg: #3a3014;
  --ph-text: #f5d98a;
  --ph-border: #8a6d1f;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .35);
  --glow: rgba(63, 158, 102, .20);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--text); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: .6rem 1rem;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Placeholder marker: anything not yet decided by the owner. */
.ph {
  display: inline-block; vertical-align: .12em; margin-left: .45rem;
  font: 700 .66rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .45rem; border-radius: 5px;
  background: var(--ph-bg); color: var(--ph-text); border: 1px dashed var(--ph-border);
}
.ph-block {
  display: block; margin-top: .5rem; padding: .55rem .75rem; border-radius: 8px;
  background: var(--ph-bg); color: var(--ph-text); border: 1px dashed var(--ph-border);
  font-size: .9rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: auto; }
.site-header nav { margin-left: auto; }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.35rem; border-radius: 10px;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--field-border); }
.btn-ghost:hover { background: var(--hover-tint); color: var(--text); border-color: var(--muted); }
.btn-small { min-height: 38px; padding: .45rem 1rem; font-size: .92rem; }
.btn-icon { width: 16px; height: 16px; flex: none; }
.btn.is-disabled { opacity: .6; cursor: not-allowed; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(60% 55% at 78% 30%, var(--glow), transparent 70%),
    var(--bg-deep);
  border-bottom: 1px solid var(--hairline);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-mark { width: 84px; margin-bottom: 1.4rem; filter: drop-shadow(0 10px 24px rgba(99, 185, 74, .25)); }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.03; max-width: 12ch; }
.subhead { margin-top: 1.4rem; font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 36rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.price-line { margin-top: 1.6rem; font-size: 1.05rem; color: var(--muted); }
.price-line strong { color: var(--text); font-size: 1.2rem; margin-right: .3rem; }
.small-print { margin-top: .35rem; font-size: .88rem; color: var(--muted); }

/* Stylised screen: always drawn as a dark Windows desktop, in either theme,
   so it carries its own fixed palette. */
.screen {
  --window: #2b2b2b; --window-bar: #262626; --surface: #333333; --border: #404040;
  --field-border: #4a4a4a; --text: #f2f2f2; --text-2: #d6d6d6; --muted: #a8a8a8;
  --accent: #3f9e66; --accent-hover: #4bb075; --on-accent: #0f1a13; --accent-ink: #7fd49c;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .35);
  color: var(--text);
  position: relative; aspect-ratio: 4 / 3.35; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(90% 70% at 20% 10%, rgba(99, 185, 74, .28), transparent 60%),
    radial-gradient(80% 80% at 100% 100%, rgba(59, 122, 42, .35), transparent 60%),
    linear-gradient(160deg, #213026, #151a16);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .2);
  padding: 7% 7% 0;
}
.screen .win { position: relative; z-index: 1; }

.win { background: var(--window); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; color: var(--text); }
.win-bar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; height: 38px; padding: 0 .9rem; background: var(--window-bar); border-bottom: 1px solid var(--border); font-size: .82rem; color: var(--muted); }
.win-title { font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-controls { display: flex; gap: 1.1rem; font-size: .78rem; color: var(--muted); }
.win-body { padding: 1rem 1.1rem 1.2rem; }

.mail-row { display: flex; align-items: center; gap: .8rem; padding: .45rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; color: var(--text-2); }
.mail-label { width: 3.9rem; flex: none; color: var(--muted); font-size: .82rem; }
.chip { background: var(--surface); border: 1px solid var(--field-border); border-radius: 999px; padding: .08rem .6rem; font-size: .82rem; }

.field {
  position: relative; margin-top: .9rem; min-height: 7.4em; padding: .8rem .9rem;
  background: var(--surface); border: 1px solid var(--field-border); border-radius: 10px;
  font-size: .98rem; line-height: 1.55; color: var(--text); overflow-wrap: anywhere;
}
.typed { white-space: pre-wrap; }
.js .is-typing .typed::after,
.js .typed.is-caret::after {
  content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 1px;
  vertical-align: -.18em; background: var(--accent-ink); animation: blink 1s steps(1) infinite;
}

.said-bubble {
  position: absolute; z-index: 2; left: 50%; bottom: 25%; transform: translateX(-50%);
  width: min(88%, 30rem);
  background: rgba(20, 22, 20, .93); border: 1px solid rgba(127, 212, 156, .35);
  border-radius: 12px; padding: .6rem .85rem; font-size: .88rem; line-height: 1.45; color: #e6e6e6;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  transition: opacity .3s ease, transform .3s ease;
}
.said-label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7fd49c; margin-bottom: .15rem; }
.js .screen:not(.is-listening) .said-bubble { opacity: 0; transform: translate(-50%, 6px); }

.pill-dock { position: absolute; z-index: 3; left: 0; right: 0; bottom: 56px; display: flex; justify-content: center; }

/* The Froge pill: a small status capsule, green while listening.
   Drawn in the app's dark colours in both themes, as the app draws it. */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  height: 26px; min-width: 64px; padding: 0 13px; border-radius: 999px;
  background: #2b2b2b; border: 1px solid #4a4a4a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.pill .bar { width: 3px; height: 4px; border-radius: 2px; background: #9a9a9a; transition: background-color .25s ease; }
.pill[data-state="listening"] { background: #3f9e66; border-color: #4bb075; box-shadow: 0 0 0 4px rgba(63, 158, 102, .25), 0 6px 18px rgba(0, 0, 0, .3); }
.pill[data-state="listening"] .bar { background: #0f1a13; animation: eq .9s ease-in-out infinite; }
.pill[data-state="listening"] .bar:nth-child(2) { animation-delay: -.25s; }
.pill[data-state="listening"] .bar:nth-child(3) { animation-delay: -.5s; }
.pill[data-state="listening"] .bar:nth-child(4) { animation-delay: -.15s; }
.pill[data-state="listening"] .bar:nth-child(5) { animation-delay: -.4s; }
.pill[data-state="typing"] { border-color: #3f9e66; }
.pill[data-state="typing"] .bar { background: #7fd49c; }

.taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42px; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(24, 25, 24, .88); border-top: 1px solid rgba(255, 255, 255, .07);
}
.tb-start, .tb-app { width: 22px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
.tb-start { background: linear-gradient(135deg, #3f9e66, #2f7d4f); }
.tb-app.is-open { box-shadow: inset 0 -2px 0 #7fd49c; }
.tb-tray { position: absolute; right: 12px; display: flex; align-items: center; gap: 8px; font-size: .72rem; color: #b5b5b5; }
.tb-tray img { width: 20px; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--hairline); }
.kicker { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .8rem; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -.025em; max-width: 22ch; }
.lede { margin-top: 1rem; color: var(--text-2); font-size: 1.12rem; max-width: 40rem; }

/* ---------- Demo ---------- */
.demo { margin-top: 2.6rem; }
.tabs {
  display: inline-flex; flex-wrap: wrap; gap: .3rem; padding: .3rem; max-width: 100%;
  background: var(--window); border: 1px solid var(--border); border-radius: 12px;
}
html:not(.js) .tabs { display: none; }
.tab {
  font: 600 .95rem/1.2 var(--font); color: var(--muted); background: transparent;
  border: 0; border-radius: 9px; padding: .65rem 1.1rem; cursor: pointer; min-height: 44px;
  transition: background-color .18s ease, color .18s ease;
}
.tab:hover { color: var(--text); background: var(--hover-tint); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }

.panel { margin-top: 1.3rem; border-radius: var(--radius); }
html:not(.js) .panel + .panel { margin-top: 2rem; }
.panel-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.2rem; align-items: stretch; }

.say-card {
  display: flex; flex-direction: column; gap: 1rem;
  background: linear-gradient(160deg, var(--accent-tint), transparent 70%), var(--window);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem;
}
.say-label, .type-label { font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); }
.type-label { margin-top: 1rem; }
.say-text { font-size: 1.18rem; line-height: 1.5; color: var(--text); min-height: 4.5em; overflow-wrap: anywhere; }
.say-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.replay {
  font: 600 .88rem/1 var(--font); color: var(--muted); background: transparent;
  border: 1px solid var(--field-border); border-radius: 8px; padding: .55rem .85rem; cursor: pointer; min-height: 36px;
}
.replay:hover { color: var(--text); border-color: var(--muted); }
html:not(.js) .replay { display: none; }

.win-light .win-body { min-height: 100%; }
.chat-body { display: flex; flex-direction: column; }
.chat-hint { text-align: center; color: var(--muted); font-size: 1.05rem; padding: 1.4rem 0 .4rem; }
.field-chat { border-radius: 16px; padding-right: 3.2rem; min-height: 6.2em; }
.send {
  position: absolute; right: .7rem; bottom: .7rem; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.field-notes { background: var(--notes-bg); border-color: var(--notes-border); min-height: 8.6em; }

.demo-note { margin-top: 1rem; font-size: .88rem; color: var(--muted); max-width: 48rem; }

.video-slot {
  margin-top: 2.6rem; aspect-ratio: 16 / 9; max-height: 440px; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem;
  border: 1.5px dashed var(--ph-border); border-radius: var(--radius); color: var(--muted); font-size: .95rem;
  background: repeating-linear-gradient(135deg, var(--hover-tint) 0 14px, transparent 14px 28px);
  text-align: center; padding: 1rem;
}
.play { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--field-border); position: relative; }
.play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 16px solid var(--muted); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }

/* ---------- Modes ---------- */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; margin-top: 2.6rem; }
.mode-card {
  background: var(--window); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 1.1rem;
}
.mode-local { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-tint), transparent 45%), var(--window); }
.mode-head { display: flex; gap: 1rem; align-items: center; }
.mode-icon { width: 46px; height: 46px; padding: 10px; flex: none; border-radius: 12px; background: var(--accent-tint); fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mode-card h3 { font-size: 1.45rem; }
.mode-tag { color: var(--muted); font-size: .9rem; margin-top: .15rem; }
.mode-card > p { color: var(--text-2); }
.facts { margin: .2rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.facts > div { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.facts dt { color: var(--muted); font-size: .9rem; font-weight: 600; }
.facts dd { margin: 0; font-size: .97rem; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-top: 2.6rem; }
.feature {
  background: var(--window); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem;
  transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--field-border); transform: translateY(-2px); }
.feature-wide { grid-column: 1 / -1; }
.f-icon { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--accent-tint); fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.feature h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.feature p { color: var(--text-2); font-size: .98rem; }
.feature .f-note { margin-top: .5rem; color: var(--muted); font-size: .85rem; }
kbd {
  display: inline-block; font: 600 .82rem/1 var(--font); padding: .28rem .45rem; min-width: 1.6rem; text-align: center;
  color: var(--text); background: var(--surface); border: 1px solid var(--field-border); border-bottom-width: 2px; border-radius: 6px;
}

/* ---------- Privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.privacy-mark { width: 120px; margin-top: 2.2rem; }
.checks { display: grid; gap: .9rem; }
.checks li {
  position: relative; padding: 1.1rem 1.2rem 1.1rem 3.4rem;
  background: var(--window); border: 1px solid var(--border); border-radius: 12px;
}
.checks li::before {
  content: ""; position: absolute; left: 1.1rem; top: 1.25rem; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent);
}
.checks li::after {
  content: ""; position: absolute; left: calc(1.1rem + 8px); top: calc(1.25rem + 5px); width: 6px; height: 10px;
  border-right: 2.5px solid var(--on-accent); border-bottom: 2.5px solid var(--on-accent); transform: rotate(45deg);
}
.checks h3 { font-size: 1.05rem; }
.checks p { color: var(--text-2); font-size: .96rem; margin-top: .15rem; }
.privacy-foot { margin-top: 1.2rem; font-size: .88rem; color: var(--muted); max-width: 32rem; }

/* ---------- Need + FAQ ---------- */
.need-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.req-list { margin-top: 1.8rem; border-top: 1px solid var(--border); }
.req-list li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--border); }
.req-k { color: var(--muted); font-weight: 600; font-size: .92rem; }
.req-sub { display: block; color: var(--muted); font-size: .88rem; }
.faq-title { font-size: clamp(1.5rem, 3vw, 1.9rem) !important; margin-top: 2.1rem; }
.faq { margin-top: 1.4rem; display: grid; gap: .6rem; }
.faq details { background: var(--window); border: 1px solid var(--border); border-radius: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; font-weight: 600; position: relative; border-radius: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.2rem; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > p, .faq details > .ph-block { margin: 0 1.2rem 1.1rem; color: var(--text-2); }
.faq details > .ph-block { color: var(--ph-text); }

/* ---------- Download ---------- */
.download { background: radial-gradient(50% 60% at 50% 0%, var(--glow), transparent 70%), var(--bg-deep); border-top: 1px solid var(--hairline); }
.download-card { max-width: 40rem; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.download-icon { width: 72px; border-radius: 16px; margin-bottom: 1.3rem; box-shadow: 0 16px 40px -10px rgba(63, 158, 102, .5); }
.download h2 { margin-inline: auto; }
.download .price-line { margin-bottom: 1.4rem; }
.notify { margin-top: 2.6rem; width: 100%; padding-top: 2rem; border-top: 1px solid var(--border); }
.notify fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.notify legend { font-weight: 700; font-size: 1.1rem; margin: 0 auto 1rem; }
.notify-row { display: flex; gap: .6rem; max-width: 28rem; margin-inline: auto; }
.notify input {
  flex: 1; min-width: 0; min-height: 48px; padding: .7rem .9rem; border-radius: 10px;
  background: var(--window); border: 1px solid var(--field-border); color: var(--text); font: 1rem var(--font);
}
.notify input::placeholder { color: var(--muted); }
.notify fieldset[disabled] input, .notify fieldset[disabled] .btn { opacity: .6; cursor: not-allowed; }
.notify .small-print { margin-top: .8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--hairline); padding: 2.6rem 0 3rem; font-size: .92rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem 2rem; align-items: start; }
.footer-brand { display: grid; gap: .35rem; }
.footer-brand .brand { font-size: 1.05rem; margin-bottom: .3rem; }
.footer-brand .brand img { width: 30px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.notices { grid-column: 1 / -1; padding-top: 1.2rem; border-top: 1px solid var(--border); font-size: .85rem; display: grid; gap: .5rem; }
.notices h2 { font-size: .95rem; color: var(--text); letter-spacing: 0; }

/* ---------- Release notes (whats-new.html) ---------- */
.page-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -.025em; max-width: 22ch; }
.releases { margin-top: 2.6rem; display: grid; gap: 1.3rem; max-width: 48rem; }
.release {
  background: var(--window); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.release h2 { font-size: 1.45rem; }
.release-date { color: var(--muted); font-size: .9rem; margin-top: .25rem; }
.release .checks { margin-top: 1.2rem; }
.footer-links a[aria-current="page"] { color: var(--text); }

/* ---------- Motion ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes eq {
  0%, 100% { height: 4px; }
  50% { height: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pill[data-state="listening"] .bar:nth-child(odd) { height: 10px; }
  .pill[data-state="listening"] .bar:nth-child(even) { height: 6px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .privacy-grid, .need-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 14ch; }
  .hero-visual { max-width: 600px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-mark { display: none; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .site-header nav { margin-left: 0; }
  .header-inner { justify-content: space-between; }
  .panel-grid, .modes { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .cta-row .btn { width: 100%; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .req-list li { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .screen { aspect-ratio: 4 / 4.6; padding: 6% 5% 0; }
  .screen .win-body { padding: .75rem .8rem .9rem; }
  .screen .field { min-height: 6.2em; font-size: .9rem; }
  .said-bubble { bottom: 27%; font-size: .8rem; }
  .win-controls { gap: .8rem; }
  .notify-row { flex-direction: column; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1 1 auto; padding-inline: .7rem; font-size: .88rem; }
  .say-card { padding: 1.2rem; }
}
