/* Shared with the native app (VoxKeyDesign.swift): warm neutrals, forest green, and a little lime. */
:root {
  color-scheme: light dark;
  --canvas: #f4f5f0;
  --paper: #fffefa;
  --ink: #202d28;
  --muted: #5d6c64;
  --green: #356040;
  --green-deep: #274c30;
  --lime: #c1ef92;
  --lime-wash: #eaf4e1;
  --border: #dce3da;
  /* Dark forest surfaces: the capture pill and privacy panel mirror the app's recording overlay. */
  --forest: #20382b;
  --forest-border: #43523f;
  --forest-key: #677c5d;
  --forest-ink: #f0f5e8;
  --forest-muted: #c1ceb7;
  /* The hero demo sits on a slightly deeper sage than the canvas. */
  --demo-surface: #e5ebdd;
  --demo-control: #d6dfcf;
  --demo-ink: #51604b;
  /* Derived tokens: the accent for small text and the selected demo step. Both flip in dark mode. */
  --accent: var(--green);
  --demo-selected: var(--paper);
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #171C1B;
    --paper: #222927;
    --ink: #F0F5EF;
    --muted: #ACBCB2;
    --green: #416B4D;
    --green-deep: #356040;
    --lime: #C1EF92;
    --lime-wash: #2B3B2B;
    --border: #3D4942;
    --demo-surface: #1A211F;
    --demo-control: #222927;
    --demo-ink: #ACBCB2;
    --accent: var(--lime);
    --demo-selected: var(--border);
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input { font: inherit; }
svg { width: 21px; height: 21px; flex: none; }
img { display: block; }
::selection { background: var(--lime); color: var(--forest); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
section[id] { scroll-margin-top: 36px; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 10; padding: 14px; background: var(--paper); }
.skip-link:focus { top: 16px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 26px; border-bottom: 1px solid var(--border); }
.header-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 23px; font-weight: 650; letter-spacing: -1px; text-decoration: none; }
.version-tag { margin-left: 4px; padding: 5px 7px; font: 9px/1 ui-monospace, monospace; letter-spacing: 1px; border: 1px solid var(--border); border-radius: 4px; }
nav { display: flex; align-items: center; gap: 30px; }
nav a { font-size: 13px; text-decoration: none; }
.language-switcher { display: inline-flex; gap: 0; padding: 3px; border: 1px solid var(--border); border-radius: 7px; background: var(--paper); }
.language-switcher a { display: grid; place-items: center; min-width: 34px; min-height: 36px; border-radius: 4px; font-size: 11px; font-weight: 550; color: var(--muted); }
.language-switcher a[aria-current="page"] { background: var(--lime-wash); color: var(--ink); }
.source-link { display: inline-flex; gap: 16px; align-items: center; }
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 52px; align-items: center; padding-block: 84px 78px; }
.eyebrow { font: 500 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 1.4px; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 25px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { text-wrap: balance; }
h1 { font: 400 clamp(43px, 4.5vw, 63px)/1.09 var(--serif); letter-spacing: -2.7px; margin-bottom: 26px; }
em { font-family: var(--serif); font-weight: 400; color: var(--accent); }
.hero-description { font-size: 16px; line-height: 1.85; color: var(--muted); margin-bottom: 29px; }
.hero-actions { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 49px; padding: 14px 21px; border-radius: 7px; font-size: 13px; font-weight: 550; text-decoration: none; transition: transform 160ms ease-out, background-color 160ms ease; }
.primary { background: var(--green); color: var(--forest-ink); box-shadow: 0 2px 2px color-mix(in srgb, var(--forest) 4%, transparent), inset 0 1px 0 color-mix(in srgb, var(--forest-ink) 8%, transparent); }
.button:active { transform: scale(.97); }
.text-link { display: inline-flex; align-items: center; gap: 13px; font-size: 13px; font-weight: 550; text-decoration: none; padding-block: 9px; }
.text-link span { font-size: 18px; }
.promise { font-size: 11px; color: var(--accent); margin: 18px 0 0; line-height: 1.7; font-weight: 550; }
.promise + .requirements { margin-top: 3px; }
.requirements { color: var(--muted); font-size: 11px; margin: 14px 0 0; line-height: 1.7; max-width: 46ch; }
.demo { border-radius: 12px; background: var(--demo-surface); padding: 24px 26px 18px; position: relative; border: 1px solid var(--border); }
.demo-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.demo-topline .eyebrow { font-size: 10px; letter-spacing: 1.2px; }
.local-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--demo-ink); white-space: nowrap; }
.demo-controls { border: 0; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--demo-control); border-radius: 6px; position: relative; }
.demo-controls legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.step-radio { position: absolute; width: 1px; height: 1px; opacity: 0; }
.demo-controls label { cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border-radius: 5px; font-size: 12px; margin: 3px; color: var(--demo-ink); }
.demo-controls label span { font: 10px ui-monospace, monospace; }
.step-radio:checked + label { background: var(--demo-selected); color: var(--ink); box-shadow: 0 1px 4px color-mix(in srgb, var(--forest) 7%, transparent); }
.step-radio:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 3px; }
.demo-stage { padding-top: 28px; }
.note-window { background: var(--paper); border: 1px solid var(--border); border-radius: 9px; box-shadow: 0 14px 24px -15px color-mix(in srgb, var(--forest) 25%, transparent); overflow: hidden; transform: rotate(-2deg); margin: 0 5px; }
.window-toolbar { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); padding: 12px 16px; font-size: 10px; color: var(--muted); }
.window-dots { display: flex; gap: 4px; }
.window-dots i { width: 7px; height: 7px; background: var(--border); border-radius: 50%; }
.note-content { padding: 34px 30px 30px; min-height: 290px; }
.note-date { font: 10px ui-monospace, monospace; letter-spacing: 1px; color: var(--muted); margin-bottom: 16px; }
.note-content h2 { font: 400 25px/1.2 var(--serif); letter-spacing: -.6px; margin-bottom: 15px; }
.note-intro { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.dictation-text { font-size: 14px; line-height: 1.9; min-height: 80px; }
.inserted-text { background: var(--lime-wash); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 2px 0; }
.caret { display: inline-block; height: 16px; width: 1px; background: var(--accent); vertical-align: -3px; margin-left: 2px; }
.note-lines { display: grid; gap: 8px; margin-top: 14px; }
.note-lines i { height: 4px; border-radius: 4px; background: var(--demo-surface); width: 78%; }
.note-lines i:last-child { width: 53%; }
.capture-pill { position: relative; z-index: 1; width: fit-content; min-width: 224px; display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--forest); color: var(--forest-ink); border: 1px solid var(--forest-border); box-shadow: 0 8px 15px color-mix(in srgb, var(--forest) 12%, transparent); border-radius: 30px; padding: 13px 16px; margin: -8px auto 16px; font-size: 12px; }
.waveform { display: flex; align-items: center; gap: 2px; height: 19px; }
.waveform i { width: 2px; height: 9px; background: var(--lime); border-radius: 2px; }
.waveform i:nth-child(2), .waveform i:nth-child(5) { height: 14px; }
.waveform i:nth-child(3) { height: 19px; }
.waveform i:nth-child(4) { height: 12px; }
.pill-key { display: grid; place-items: center; border: 1px solid var(--forest-key); border-radius: 4px; height: 22px; width: 24px; color: var(--forest-muted); font: 10px var(--serif); }
.demo-caption { font-size: 12px; color: var(--demo-ink); text-align: center; min-height: 30px; line-height: 1.5; }
.demo-footnote { color: var(--demo-ink); font-size: 11px; text-align: center; margin: 7px 0 0; }
.state-hold, .state-speak { display: none; }
.demo:has(#step-hold:checked) .state-hold, .demo:has(#step-speak:checked) .state-speak { display: inline; }
.demo:has(#step-hold:checked) .state-release, .demo:has(#step-speak:checked) .state-release { display: none; }
.demo:has(#step-hold:checked) .inserted-text, .demo:has(#step-speak:checked) .inserted-text { display: none; }
.demo:has(#step-hold:checked) .waveform i { height: 3px; }
h3 { font-size: 16px; font-weight: 550; letter-spacing: -.3px; margin-bottom: 10px; }
.privacy-panel { background: var(--forest); border-radius: 12px; padding: 55px 58px; display: grid; grid-template-columns: 1fr 1fr; gap: 85px; color: var(--forest-ink); }
.privacy-copy .eyebrow { color: var(--lime); margin-bottom: 22px; }
.privacy-copy h2 { font-size: 49px; }
.privacy-copy > p:not(.eyebrow) { font-size: 14px; line-height: 1.9; color: var(--forest-muted); margin: 23px 0 12px; }
.privacy-copy .text-link { color: var(--lime); }
.privacy-panel :focus-visible { outline-color: var(--lime); }
.getting-started { border-top: 1px solid var(--border); padding-block: 67px 76px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 95px; }
.setup-intro .eyebrow { margin-bottom: 19px; }
.setup-intro > p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 310px; margin-top: 21px; margin-bottom: 7px; }
.setup-details h3 { margin-bottom: 14px; }
.faq-title { margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--border); margin-bottom: 4px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; min-height: 63px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; font-weight: 550; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { font-size: 20px; font-weight: 400; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { font-size: 13px; color: var(--muted); line-height: 1.85; padding-right: 25px; margin-bottom: 23px; }
.install-steps { font-size: 14px; color: var(--ink); line-height: 1.8; padding-left: 22px; margin: 0; }
.install-steps li { padding-left: 6px; margin-bottom: 12px; }
.install-steps li::marker { color: var(--accent); font-weight: 550; }
.site-footer { display: flex; align-items: center; gap: 23px; padding-block: 31px; }
.site-footer .brand { font-size: 17px; letter-spacing: -.6px; }
.site-footer p { font-size: 11px; color: var(--muted); margin: 0; }
.site-footer nav { margin-left: auto; gap: 22px; }
.site-footer nav a { font-size: 11px; }
@media (hover: hover) and (pointer: fine) {
  .primary:hover { background: var(--green-deep); }
  nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
  .demo-controls label:hover { background: var(--lime-wash); }
  .step-radio:checked + label:hover { background: var(--demo-selected); }
  .faq summary:hover { color: var(--accent); }
}
@media (min-width: 1400px) { .hero { gap: 70px; } }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 35px; padding-block: 66px; }
  h1 { font-size: 48px; letter-spacing: -2px; }
  .hero-description { font-size: 14px; }
  .hero-actions { gap: 13px; }
  .demo { padding-inline: 20px; }
  .note-content { padding: 30px 24px 26px; min-height: 276px; }
  .note-content h2 { font-size: 23px; }
  .dictation-text { font-size: 13px; }
  .privacy-panel { padding: 42px; gap: 50px; }
  .getting-started { gap: 55px; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { padding-block: 19px; }
  nav { gap: 19px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 49px 36px; }
  .hero-copy { max-width: 550px; }
  h1 { font-size: clamp(43px, 7vw, 59px); }
  .hero-description { font-size: 16px; max-width: 440px; }
  .demo { width: 100%; max-width: 560px; justify-self: center; padding: 24px 28px 18px; }
  .note-content { padding: 34px 30px 30px; min-height: 290px; }
  .note-content h2 { font-size: 26px; }
  .dictation-text { font-size: 14px; }
  .privacy-panel { gap: 32px; padding: 35px; }
  .privacy-copy h2 { font-size: 41px; }
  .privacy-copy > p:not(.eyebrow) { font-size: 13px; }
  .getting-started { grid-template-columns: 1fr; gap: 25px; padding-block: 46px; }
  .setup-intro > p:not(.eyebrow) { max-width: 450px; }
  .site-footer { flex-wrap: wrap; gap: 14px 20px; }
  .site-footer nav { gap: 20px; }
}
@media (max-width: 520px) {
  .nav-detail { display: none; }
  .site-header .version-tag { display: none; }
  .header-actions { gap: 12px; }
  .source-link { gap: 6px; }
  .brand { font-size: 21px; }
  .brand img { width: 32px; height: 32px; }
  .hero-copy > .eyebrow { font-size: 9px; margin-bottom: 22px; }
  h1 { font-size: clamp(35px, 9.6vw, 48px); letter-spacing: -1.8px; }
  .hero-description { font-size: 14px; line-height: 1.85; margin-bottom: 23px; }
  .hero-actions { gap: 16px; }
  .button { padding-inline: 16px; font-size: 12px; }
  .text-link { font-size: 12px; gap: 9px; }
  .demo { padding: 20px 14px 16px; }
  .demo-topline { padding-inline: 3px; }
  .demo-topline .eyebrow { font-size: 10px; letter-spacing: 1px; }
  .local-badge { font-size: 10px; }
  .demo-controls { margin-top: 18px; }
  .note-content { padding: 28px 22px 26px; min-height: 276px; }
  .note-content h2 { font-size: 23px; }
  .dictation-text { font-size: 13px; }
  .privacy-panel { grid-template-columns: 1fr; padding: 32px 25px; gap: 29px; }
  .privacy-copy h2 { font-size: 44px; }
  .faq summary { font-size: 13px; }
  .site-footer { justify-content: center; text-align: center; padding-block: 28px; }
  .site-footer p { width: 100%; }
  .site-footer nav { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .button:active { transform: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #344b39; --border: #71816a; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root { --muted: var(--forest-ink); --border: var(--forest-muted); }
}

.privacy-panel { margin-block: 0 52px; padding-block: 36px; align-items: center; }
.privacy-copy h2 { font: 400 40px/1.12 var(--serif); letter-spacing: -1.4px; margin: 0; }
.privacy-copy .eyebrow { margin-bottom: 17px; }
.privacy-summary p { color: var(--forest-muted); font-size: 13px; line-height: 1.8; margin-bottom: 12px; }
.privacy-summary .text-link { color: var(--lime); }
.setup-intro h2 { font: 400 36px/1.12 var(--serif); letter-spacing: -1.3px; margin: 0; }
.getting-started { padding-block: 0 40px; border: 0; }
.site-footer { border-top: 1px solid var(--border); }
@media (max-width: 520px) {
  .privacy-panel { gap: 22px; margin-bottom: 38px; }
  .privacy-copy h2 { font-size: 36px; }
  .setup-intro h2 { font-size: 32px; }
}
@media (prefers-contrast: more) { .privacy-summary p { color: var(--forest-ink); } }
