/* Exact semantic colors from talon_ui/theme.py and radix_colors.py. */
:root {
  color-scheme: light;
  --bg: #fff; --surface: #f9f9fb; --control: #eff0f3; --hover: #e7e8ec;
  --line: #d8d9e0; --border: #cdced7; --text: #1e1f24; --muted: #62636c;
  --accent: #3d63dd; --accent-hover: #3657c3; --accent-text: #395bc7;
  --soft: #edf2fe; --wash: #d0dfff; --focus: #87a5ef;
  --shadow: 0 18px 45px -25px #1d2e5c35;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-synthesis: none; -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111; --surface: #19191b; --control: #222325; --hover: #292a2e;
    --line: #393a40; --border: #46484f; --text: #eeeef0; --muted: #b2b3bd;
    --accent: #3d63dd; --accent-hover: #3f5cb0; --accent-text: #93b4ff;
    --soft: #172448; --wash: #243974; --focus: #405eb2;
    --shadow: 0 18px 45px -25px #0009;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a, label span { -webkit-tap-highlight-color: transparent; }
button { color: var(--text); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
::selection { background: var(--wash); color: var(--text); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: 1184px; margin-inline: auto; padding-inline: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 10; transform: translateY(-180%); background: var(--bg); padding: 12px 20px; border: 1px solid var(--border); border-radius: 6px; }
.skip:focus { transform: translateY(0); }
.header { min-height: 100px; display: flex; align-items: center; gap: 40px; }
.wordmark { font-size: 30px; font-weight: 680; letter-spacing: -1.5px; line-height: 1; }
.brand-dot { color: var(--accent-text); }
.header nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.header nav a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; }
.header nav svg { width: 15px; height: 15px; }
.header nav a:hover, .footer a:hover { color: var(--accent-text); }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding-block: 40px 64px; }
.eyebrow { color: var(--muted); font-size: 12px; font-weight: 550; letter-spacing: .025em; margin: 0 0 22px; }
h1 { display: grid; min-height: 2.12em; font-size: clamp(44px, 5.2vw, 70px); line-height: 1.06; letter-spacing: -.058em; font-weight: 570; margin: 0 0 24px; }
.hero-phrase { grid-area: 1 / 1; align-self: end; visibility: hidden; }
/* Compensate for the large type's side bearing along the shared content edge. */
.hero-copy h1 { margin-left: -.045em; }
.hero-phrase.active { visibility: visible; }
.hero-phrase em { font-style: normal; color: var(--accent-text); }
.intro { color: var(--muted); font-size: 18px; line-height: 1.65; font-weight: 400; letter-spacing: normal; margin: 0; }
.intro span { display: inline-block; }
.intro span:not(:last-child) { margin-right: .18em; }
.download-options { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 28px; width: fit-content; max-width: 100%; }
.plus-cta { display: flex; align-items: center; gap: 20px; width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--muted); }
.plus-title { color: var(--text); font-size: 21px; font-weight: 650; letter-spacing: -.6px; line-height: 1; white-space: nowrap; }
.plus-title span { color: var(--accent-text); margin-left: 2px; }
.plus-benefits { font-size: 13px; line-height: 1.6; }
.plus-arrow { margin-left: auto; width: 17px; height: 17px; color: var(--accent-text); }
.plus-cta:hover, .plus-cta:focus-visible { background: var(--soft); border-color: var(--focus); }
.download-label { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 400; }
.downloads { width: fit-content; max-width: 100%; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.download-links { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.download-links a { display: inline-flex; align-items: center; gap: 6px; }
.download-links svg { width: 14px; height: 14px; stroke-width: 1.3; }
.download-links a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.platform-download { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 7px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.platform-download:not(.primary):hover { color: var(--text); border-color: var(--border); background: var(--surface); }
.platform-download svg { display: none; width: 17px; height: 17px; }
.platform-download.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 550; box-shadow: inset 0 1px 0 #ffffff25; }
.platform-download.primary svg { display: block; }
.platform-download.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 550; }
.text-link:hover { color: var(--accent-text); }
.text-link svg { width: 17px; height: 17px; }
.demo { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.demo-scene { position: relative; height: 342px; padding: 26px 30px 70px; background: radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--wash), var(--surface) 40%), var(--surface) 85%); overflow: hidden; }
.demo-scene::before { content: ''; pointer-events: none; position: absolute; inset: 0; background: linear-gradient(130deg, transparent 55%, color-mix(in srgb, var(--wash) 13%, transparent) 55%); }
.document { position: relative; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; box-shadow: var(--shadow); }
.document-toolbar { height: 35px; display: flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); padding: 0 14px; color: var(--muted); font-size: 10px; }
.document-icon { font-size: 18px; line-height: 1; }
.document-body { padding: 22px 28px 18px; height: 209px; overflow-y: auto; }
.preview-text { margin: 0; font-size: 17px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
#typed-text.selected { background: var(--soft); color: var(--accent-text); }
.caret { display: inline-block; width: 1px; height: 18px; background: var(--accent-text); margin-left: 1px; vertical-align: -3px; }
#typed-text.selected + .caret { visibility: hidden; }
.demo-hud { display: flex; align-items: center; justify-content: center; gap: 13px; position: absolute; bottom: 31px; left: 50%; transform: translateX(-50%); padding: 5px 14px 5px 9px; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; box-shadow: var(--shadow); }
.demo-hud svg { width: 22px; height: 22px; }
.grip { color: var(--muted); font-size: 18px; }
.hud-mic { color: var(--muted); }
.hud-active { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 5px; background: var(--accent); color: #fff; }
.hud-dictation { font: 25px Georgia, serif; color: var(--muted); padding: 0 4px; }
.hamburger { display: grid; gap: 4px; padding: 0 2px; }
.hamburger i { width: 19px; height: 1.5px; background: var(--text); }
.demo-controls { padding: 15px 20px 13px; border-top: 1px solid var(--line); }
.demo-caption { margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 400; }
.command-buttons { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: stretch; }
.command-buttons button { border: 1px solid var(--border); border-radius: 5px; padding: 6px 12px; background: var(--control); font-size: 11px; display: flex; gap: 6px; align-items: center; }
.command-buttons button[data-command="say"] { min-width: 0; justify-content: flex-start; text-align: left; }
.command-buttons button:not([data-command="say"]) { white-space: nowrap; }
.command-buttons button:hover { border-color: var(--focus); background: var(--hover); }
.command-buttons button.active { background: var(--soft); border-color: var(--focus); color: var(--accent-text); }
.command-buttons svg { width: 13px; height: 13px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; }
.section-heading h2 { font-size: 21px; font-weight: 550; letter-spacing: -.035em; margin: 0; }
.section-heading > p { color: var(--muted); font-size: 13px; margin: 0; }
.input-grid { display: grid; align-items: center; gap: 12px; }
.customize-demo { min-width: 0; }
.customize-copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.input-grid article { display: flex; align-items: center; gap: 10px; }
.feature-icon { color: var(--accent-text); width: 20px; height: 20px; }
.input-grid p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.customize { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-block: 0 48px; }
.customize-copy .feature-row { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.customize-copy .text-link { color: var(--muted); font-size: 13px; font-weight: 400; gap: 6px; }
.customize-copy .text-link svg { width: 14px; height: 14px; stroke-width: 1.3; }
.customize-copy .text-link:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.code-example { border: 1px solid var(--line); border-radius: 10px; background: radial-gradient(ellipse at top right, color-mix(in srgb, var(--wash) 22%, var(--surface)), var(--surface) 90%); overflow: hidden; }
.code-toolbar { border-bottom: 1px solid var(--line); height: 43px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); }
.code-toolbar > span { display: flex; align-items: center; gap: 8px; }
.code-toolbar svg { width: 14px; height: 14px; }
.code-toolbar button { background: var(--control); border: 1px solid var(--border); border-radius: 4px; padding: 2px 9px; font-size: 10px; min-width: 52px; }
.code-toolbar button:hover { background: var(--hover); }
pre { padding: 24px; margin: 0; overflow-x: auto; font-size: 13px; line-height: 2; }
code { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }
.comment { color: var(--muted); }
.syntax { color: var(--accent-text); }
.string { color: var(--text); }
.code-example > p { padding: 0 24px 20px; font-size: 10px; color: var(--muted); margin: 0; }
.community { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-block: 48px; }
.community h2 { font-size: 20px; font-weight: 550; letter-spacing: -.025em; margin: 0 0 8px; }
.community p { font-size: 13px; color: var(--muted); margin: 0; }
.community > div:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.secondary-link { color: var(--muted); font-size: 12px; font-weight: 400; }
.footer { display: flex; align-items: center; gap: 20px; padding-block: 28px; position: relative; }
.footer::before { content: ''; position: absolute; top: 0; left: 32px; right: 32px; height: 1px; background: var(--line); }
.footer .wordmark { font-size: 22px; letter-spacing: -1px; }
.footer p, .footer nav { font-size: 11px; color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-left: auto; }
@media (max-width: 960px) {
  .customize { grid-template-columns: 1fr 1fr; gap: 24px 28px; }
  .hero { gap: 28px; padding-block: 40px 64px; }
  h1 { font-size: 54px; }
  .intro { font-size: 16px; }
  .demo-scene { padding-inline: 18px; }
  .document-body { padding-inline: 20px; }
  .command-buttons button { padding-inline: 8px; }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 24px; }
  .header { flex-wrap: wrap; justify-content: space-between; gap: 22px; padding-top: 25px; padding-bottom: 20px; }
  .header nav { order: 3; width: 100%; margin: 0; gap: 24px; }
  .header nav a { font-size: 13px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 32px 48px; }
  .hero-copy { max-width: 500px; }
  .command-buttons button { min-height: 44px; }
  .code-toolbar button { min-height: 36px; }
  h1 { font-size: clamp(38px, 10vw, 60px); }
  .intro { font-size: 17px; }
  .demo { width: 100%; max-width: 520px; justify-self: center; }
  .demo-scene { padding-inline: 28px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 8px; }
  .customize { grid-template-columns: 1fr; gap: 28px; padding-block: 8px 54px; }
  .customize-demo { width: 100%; max-width: 520px; justify-self: center; }
  .community { align-items: flex-start; flex-direction: column; padding-block: 40px; gap: 24px; }
  .footer { flex-wrap: wrap; gap: 12px; padding-block: 24px; }
  .footer::before { left: 24px; right: 24px; }
  .footer nav { width: 100%; margin: 0; }
  .footer p { margin: 0; }
}
@media (max-width: 360px) {
  .wrap { padding-inline: 18px; }
  h1 { font-size: 38px; }
  .demo-controls { padding-inline: 12px; }
  .demo-scene { padding-inline: 18px; }
  .hero-actions { gap: 8px; }
  .platform-download { padding-inline: 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
