/* Tokens and components carried over from quill-parrot-website/index.html, which follows
   DESIGN.md (Raycast). Two deliberate changes:
   - the Google Fonts <link> is gone; system fonts only (docs/legal/datenschutz.md §2.1)
   - the accent is the app's own #B5D1FF from Sources/holdfn/UI/AppIcon.swift, not the old slate
   Externalised from an inline <style> so the CSP can stay script-src/style-src 'self'. */
:root {
  --canvas: #07080a;
  --surface: #0d0d0d;
  --surface-elevated: #101111;
  --surface-card: #121212;
  --hairline: #242728;
  --hairline-strong: rgba(255, 255, 255, 0.16);
  --ink: #f4f4f6;
  --body: #cdcdcd;
  --mute: #9c9c9d;
  --ash: #6a6b6c;
  --primary: #ffffff;
  --primary-pressed: #e8e8e8;
  --on-primary: #000000;
  --accent: #b5d1ff;
  --accent-red: #ff6161;
  --icon-bg: #1d2326;
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 10px; --r-xl: 16px;
  --section: 96px;
  --maxw: 1100px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--canvas);
  color: var(--body);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(181, 209, 255, 0.24); }
a { color: var(--ink); text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs);
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section) 0 0; scroll-margin-top: 72px; }
h1, h2 { color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(34px, 4.5vw, 54px); line-height: 1.1; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; font-weight: 500; }
.lead { font-size: 18px; color: var(--body); max-width: 56ch; }
/* No inline style= anywhere: style-src 'self' blocks style attributes too (they fall back from
   style-src-attr), so every one-off is a class. See worker/http.ts CSP. */
.lead-tight { margin-top: 16px; }
.sibling { max-width: 56ch; }
.sprite { position: absolute; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.2px; line-height: 1.6;
  padding: 9px 18px; border-radius: var(--r-md); border: 1px solid transparent;
  cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-pressed); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline-strong); }
.btn-ghost:hover { background: var(--surface-elevated); }
/* Nothing here is buyable or downloadable yet (Polar products do not exist, no DMG has been cut
   under the new name). Wired, visibly off, never a dead link. */
.btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.pending {
  display: inline-block; margin-left: 10px; font-size: 12px; letter-spacing: 0.3px;
  text-transform: uppercase; color: var(--accent-red);
  border: 1px solid currentColor; border-radius: 999px; padding: 2px 9px; vertical-align: middle;
}

.keycap {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--surface-card), var(--surface));
  border: 1px solid var(--hairline); border-bottom-color: var(--hairline-strong);
  border-radius: var(--r-xs); color: var(--body); font-size: 13px;
  padding: 1px 7px; min-height: 20px;
}

nav.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 8, 10, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; font-size: 15px; }
.tile {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  display: inline-flex; align-items: center; justify-content: center; background: var(--icon-bg);
}
.tile svg { width: 64%; height: 64%; }
.nav-links { display: flex; gap: 26px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--body); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } }

.hero { padding-top: 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.4px; text-transform: uppercase; color: var(--mute); margin-bottom: 20px; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 32px; max-width: 46ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-note { font-size: 14px; color: var(--mute); margin-top: 18px; max-width: 46ch; }

.demo-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-xl); overflow: hidden; }
.demo-titlebar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border-bottom: 1px solid var(--hairline); color: var(--ash); font-size: 12px; letter-spacing: 0.4px;
}
.lights { display: flex; gap: 6px; }
.lights span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-card); border: 1px solid var(--hairline-strong); }
.demo-body { padding: 18px; min-height: 180px; display: flex; flex-direction: column; gap: 14px; }
.demo-msg {
  align-self: flex-start; max-width: 85%; background: var(--surface-elevated);
  border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 10px 14px; font-size: 14px;
}
.demo-field {
  margin-top: auto; background: var(--surface-elevated); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 10px 14px; font-size: 14px; min-height: 62px; color: var(--ink);
}
.caret { display: inline-block; width: 1px; height: 1.1em; background: var(--ink); vertical-align: text-bottom; margin-left: 1px; }
.demo-footer { display: flex; align-items: center; justify-content: center; padding: 12px; border-top: 1px solid var(--hairline); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--surface-card);
  border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 6px 14px;
  font-size: 13px; min-width: 140px; min-height: 33px; justify-content: center; transition: opacity 0.25s ease;
}
.pill .mic { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-red); flex: none; }
.pill.idle { opacity: 0.45; }
.pill.idle .mic { background: var(--ash); }
.demo-hint { font-size: 13px; color: var(--mute); text-align: center; padding: 0 0 12px; }
.demo-hint .keycap { margin: 0 3px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.feature-list { list-style: none; margin-top: 28px; display: grid; gap: 14px; max-width: 52ch; }
.feature-list li { display: flex; gap: 12px; font-size: 15px; }
.feature-list li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 1px; background: var(--accent); margin-top: 9px; }
.fn-stage {
  display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 48px 24px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-xl);
}
.fn-key {
  width: 128px; height: 128px; border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-card), var(--surface));
  border: 1px solid var(--hairline); border-bottom: 2px solid var(--hairline-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); font-size: 30px; font-weight: 500;
}
.fn-caption { font-size: 14px; color: var(--mute); text-align: center; }

.head { max-width: 62ch; margin-bottom: 40px; }
.head .lead { margin-top: 16px; }
.cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 22px; }
.card h3 { color: var(--ink); font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.card p { font-size: 15px; }

.price-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-xl);
  padding: 32px; max-width: 560px;
}
.price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.price .amount { color: var(--ink); font-size: 44px; font-weight: 600; line-height: 1; }
.price .pricenote { color: var(--mute); font-size: 15px; }
.price-terms { list-style: none; display: grid; gap: 10px; margin: 24px 0; font-size: 15px; }
.price-terms li { display: flex; gap: 10px; }
.price-terms li::before { content: "→"; color: var(--ash); flex: none; }
.warn {
  margin-top: 24px; padding: 14px 16px; font-size: 14px;
  background: var(--surface-elevated); border: 1px solid var(--hairline);
  border-left: 2px solid var(--accent-red); border-radius: var(--r-sm);
}
.warn strong { color: var(--ink); font-weight: 600; }

.faq { max-width: 760px; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 18px 0; color: var(--ink); font-weight: 500; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ash); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; max-width: 62ch; font-size: 15px; }
.faq details p + p { padding-top: 0; margin-top: -8px; }

.final { padding-bottom: var(--section); }
.final h2 { max-width: 24ch; margin-bottom: 28px; }
footer.site { border-top: 1px solid var(--hairline); padding: 40px 0 56px; }
.foot-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--mute); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--body); font-weight: 500; }
.foot-links a:hover { color: var(--ink); }

.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .pill .mic.live { animation: micpulse 1.2s ease-in-out infinite; }
  @keyframes micpulse { 50% { opacity: 0.35; } }
  .caret { animation: blink 1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  .fn-key { animation: press 3s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
  @keyframes press {
    0%, 12%, 100% { transform: translateY(0); }
    4%, 8% { transform: translateY(3px); border-bottom-width: 1px; }
  }
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
  .reveal.in { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  :root { --section: 64px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 480px) {
  :root { --section: 48px; }
  .price-card { padding: 24px; }
}
