/* WordPlume - shared design tokens, base, components */

:root {
  /* light (default) */
  --bg: oklch(99% 0.003 200);
  --bg-soft: oklch(97.5% 0.005 200);
  --surface: oklch(100% 0 0);
  --raised: oklch(97% 0.006 200);
  --fg: oklch(18% 0.018 200);
  --fg-strong: oklch(10% 0.018 200);
  --muted: oklch(46% 0.014 200);
  --faint: oklch(52% 0.012 200);
  --border: oklch(92% 0.006 200);
  --border-strong: oklch(86% 0.008 200);
  --accent: oklch(58% 0.135 178);
  --accent-2: oklch(66% 0.115 195);
  --accent-fg: oklch(20% 0.04 178);
  --accent-soft: oklch(58% 0.135 178 / 0.12);
  --accent-glow: oklch(72% 0.16 180 / 0.45);
  --callout-bg: oklch(96.5% 0.028 178);
  --callout-border: oklch(86% 0.06 178);
  --callout-bg-hover: oklch(94% 0.038 178);
  --callout-border-hover: oklch(78% 0.085 178);
  --selection: oklch(64% 0.16 295 / 0.30);
  --success: oklch(62% 0.135 165);
  --danger:  oklch(58% 0.18 25);

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'SF Pro Text', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'IBM Plex Mono', 'SF Mono', Menlo, monospace;
  --font-kbd: 'DM Sans', var(--font-sans);

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  --t-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --t-med: 280ms cubic-bezier(0.16, 1, 0.3, 1);
  --t-slow: 520ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-card: 0 1px 2px rgba(8,15,21,0.04), 0 12px 32px -16px rgba(8,15,21,0.10);
  --shadow-elev: 0 1px 3px rgba(8,15,21,0.06), 0 30px 60px -24px rgba(8,15,21,0.15);
  --shadow-pop:  0 1px 2px rgba(8,15,21,0.04), 0 18px 40px -20px rgba(8,15,21,0.18);
  --glow-accent: 0 30px 80px -40px oklch(58% 0.135 178 / 0.40);

  /* hero grid backdrop */
  --grid-line: oklch(70% 0.014 200 / 0.18);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: oklch(13.5% 0.014 220);
  --bg-soft: oklch(15.5% 0.014 218);
  --surface: oklch(18% 0.016 218);
  --raised: oklch(22% 0.018 218);
  --fg: oklch(97% 0.005 200);
  --fg-strong: oklch(99% 0 0);
  --muted: oklch(70% 0.012 200);
  --faint: oklch(63% 0.012 200);
  --border: oklch(26% 0.018 218);
  --border-strong: oklch(34% 0.020 218);
  --accent: oklch(78% 0.14 178);
  --accent-2: oklch(84% 0.115 195);
  --accent-fg: oklch(14% 0.03 200);
  --accent-soft: oklch(78% 0.14 178 / 0.14);
  --accent-glow: oklch(82% 0.16 180 / 0.55);
  --callout-bg: oklch(22.5% 0.058 172);
  --callout-border: oklch(38% 0.095 172);
  --callout-bg-hover: oklch(25% 0.068 172);
  --callout-border-hover: oklch(44% 0.11 172);
  --selection: oklch(68% 0.18 295 / 0.40);
  --success: oklch(78% 0.14 165);
  --danger:  oklch(70% 0.18 25);

  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 28px -10px rgba(0,0,0,0.55);
  --shadow-elev: 0 1px 0 rgba(255,255,255,0.05) inset, 0 30px 60px -24px rgba(0,0,0,0.65);
  --shadow-pop:  0 1px 0 rgba(255,255,255,0.05) inset, 0 20px 44px -18px rgba(0,0,0,0.6);
  --glow-accent: 0 30px 80px -40px oklch(78% 0.14 178 / 0.55);

  --grid-line: oklch(78% 0.04 200 / 0.10);

  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  transition: background-color var(--t-med), color var(--t-med);
  font-feature-settings: 'ss01' 1, 'cv02' 1, 'cv03' 1, 'cv04' 1;
}

::selection { background: var(--selection); color: inherit; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
img, svg { display: block; max-width: 100%; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.theme-toggle:focus-visible,
.nav-menu-toggle:focus-visible,
.faq-q:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- typography ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

h1, h2, h3, h4 { margin: 0; color: var(--fg-strong); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.03em; line-height: 1.04; font-weight: 600; }
h2 { font-size: clamp(28px, 3.5vw, 44px); letter-spacing: -0.02em; line-height: 1.1; }
h3 { font-size: clamp(20px, 1.6vw, 24px); letter-spacing: -0.01em; line-height: 1.25; }
h4 { font-size: 16px; letter-spacing: 0; }

p { margin: 0; }

.lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); line-height: 1.55; max-width: 56ch; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

main > section { padding: clamp(48px, 6vw, 88px) 0; }

.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
  border: 1px solid transparent;
  position: relative;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 20px -10px var(--accent-glow);
}
.btn-primary:hover {
  background: color-mix(in oklch, var(--accent) 92%, white 0%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 14px 28px -10px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-strong); background: var(--raised); }

.btn-text {
  background: transparent;
  color: var(--fg);
  height: auto;
  padding: 4px 0;
}
.btn-text:hover { color: var(--accent); transform: none; }

.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { height: 52px; padding: 0 22px; font-size: 15.5px; border-radius: 12px; }

.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--r-sm); border: 1px solid var(--border); color: var(--muted); }
.btn-icon:hover { color: var(--fg); border-color: var(--border-strong); background: var(--raised); }

/* keyboard kbd */
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 3px 8px;
  border-radius: 7px;
  font-family: var(--font-kbd);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  background: var(--raised);
  color: var(--fg-strong);
  border: 1px solid var(--border-strong);
  box-shadow: 0 1px 0 var(--border), 0 2px 0 color-mix(in oklch, var(--border) 70%, transparent);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.kbd--lg {
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.9375rem;
  border-radius: 9px;
}

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  display: flex; align-items: center;
  height: 64px;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-fg);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 14px -6px var(--accent-glow);
}

/* Extension PNG mark (website/images/icons/) - replaces letter fallback */
.brand-mark.brand-mark--icon {
  display: block;
  padding: 0;
  margin: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  font-size: 0;
  line-height: 0;
  flex-shrink: 0;
}

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav-links a:hover { color: var(--fg); background: var(--raised); }
.nav-links a.active { color: var(--fg); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-menu-toggle { display: grid; }
}

.nav-menu-toggle {
  display: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
  transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
}
.nav-menu-toggle:hover {
  color: var(--fg);
  border-color: var(--border-strong);
  background: var(--raised);
}
.nav-menu-toggle svg { width: 18px; height: 18px; }

.nav-mobile {
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.nav-mobile[hidden] { display: none !important; }
.nav-mobile nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 14px;
}
.nav-mobile a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 15px;
  color: var(--muted);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav-mobile a:hover,
.nav-mobile a:focus-visible {
  color: var(--fg);
  background: var(--raised);
}

/* theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
  transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
}
.theme-toggle:hover { color: var(--fg); border-color: var(--border-strong); background: var(--raised); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .sun-icon { display: block; }
.theme-toggle .moon-icon { display: none; }
[data-theme="dark"] .theme-toggle .sun-icon { display: none; }
[data-theme="dark"] .theme-toggle .moon-icon { display: block; }

/* ---------- cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-card); }

/* ---------- hero grid backdrop ---------- */
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
  pointer-events: none;
}

/* ---------- hero glow ---------- */
.hero-glow {
  position: absolute;
  width: 720px; height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  filter: blur(50px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 13.5px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.foot-col__title { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; font-weight: 500; }
.foot-col a { display: block; color: var(--muted); padding: 4px 0; transition: color var(--t-fast); }
.foot-col a:hover { color: var(--fg); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--border); }
.foot-bottom > span:first-child { max-width: 42ch; line-height: 1.5; }
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- product mock surfaces ---------- */
.mock-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elev);
  position: relative;
}

.mock-titlebar {
  display: flex; align-items: center; gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.mock-titlebar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock-titlebar .dot.red { background: oklch(70% 0.18 25); }
.mock-titlebar .dot.yel { background: oklch(82% 0.14 90); }
.mock-titlebar .dot.grn { background: oklch(74% 0.15 145); }
.mock-titlebar .title { margin-left: 8px; font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

/* selection highlight in mockups (purple from product) */
.mock-selected {
  background: var(--selection);
  padding: 0 2px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--selection);
}

/* AI caret */
.ai-caret {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: caret 1s steps(1, end) infinite;
  transform: translateY(2px);
}
@keyframes caret { 50% { opacity: 0; } }

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-instant { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .faq-a { transition: none; }
  .ai-caret { animation: none; }
  .panel-thinking .bouncer span { animation: none; }
}

/* sr-only */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- live status dot ---------- */
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 12.5px;
  color: var(--muted);
}
.status-pill .pulse {
  position: relative;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.status-pill .pulse::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.5; } 100% { transform: scale(2); opacity: 0; } }

/* ---- website: landing layout (from docs/WordPlume/landing.html) ---- */
  /* =========================================================
     landing.html - page-local styles
     ========================================================= */

  /* HERO */
  .hero {
    position: relative;
    padding: clamp(64px, 8vw, 112px) 0 clamp(60px, 7vw, 96px);
    overflow: hidden;
  }
  .hero .grid-bg { z-index: 0; }
  .hero .hero-glow { top: -160px; right: -160px; }
  .hero .hero-glow.left { left: -240px; top: 60px; right: auto; opacity: 0.35; }

  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
    position: relative;
    z-index: 1;
  }
  @media (max-width: 1020px) {
    .hero-inner { grid-template-columns: 1fr; }
  }

  .hero-copy { display: flex; flex-direction: column; gap: 22px; }
  .hero-copy h1 .accent {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
  .hero-meta {
    display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
    font-size: 13px; color: var(--muted);
    margin-top: 14px;
  }
  .hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }

  /* HERO PANEL - floating WordPlume overlay mockup */
  .hero-panel-wrap { position: relative; }
  .hero-panel {
    position: relative;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-elev), var(--glow-accent);
    overflow: hidden;
    transform: perspective(1400px) rotateX(2.5deg) rotateY(-3deg);
    transform-origin: center;
  }
  .hero-panel::after {
    /* mouse-follow soft spotlight */
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), var(--accent-soft), transparent 50%);
    opacity: 0.7;
    pointer-events: none;
    transition: opacity var(--t-med);
  }

  .panel-titlebar {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to bottom, var(--bg-soft), transparent);
  }
  .panel-titlebar .brand-mark { width: 22px; height: 22px; font-size: 12px; border-radius: 6px; }
  .panel-titlebar .brand-mark.brand-mark--icon { border-radius: 6px; }
  .panel-titlebar .panel-title { font-size: 13px; font-weight: 500; }
  .panel-titlebar .panel-spacer { flex: 1; }
  .panel-titlebar .pin-btn,
  .panel-titlebar .close-btn {
    width: 22px; height: 22px;
    display: grid; place-items: center;
    border-radius: 6px;
    color: var(--muted);
  }
  .panel-titlebar .pin-btn:hover, .panel-titlebar .close-btn:hover { background: var(--raised); color: var(--fg); }

  .panel-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 18px; }

  .panel-section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--faint);
    display: flex; align-items: center; gap: 8px;
  }
  .panel-section-label .chip {
    padding: 3px 8px;
    border-radius: var(--r-full);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    font-weight: 500;
  }

  .panel-original {
    background: var(--raised);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 14px 16px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.55;
    min-height: 80px;
    transition: opacity var(--t-med);
  }

  .panel-thinking {
    display: flex; align-items: center; gap: 10px;
    font-size: 12px;
    color: var(--muted);
    opacity: 0;
  }
  .panel-thinking .bouncer {
    display: inline-flex; gap: 4px;
  }
  .panel-thinking .bouncer span {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent);
    animation: bounce 0.9s ease-in-out infinite;
  }
  .panel-thinking .bouncer span:nth-child(2) { animation-delay: 0.12s; }
  .panel-thinking .bouncer span:nth-child(3) { animation-delay: 0.24s; }
  @keyframes bounce {
    0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
  }

  .panel-rewrite {
    background: linear-gradient(180deg, var(--surface), var(--bg-soft));
    border: 1px solid var(--accent-soft);
    border-radius: var(--r-sm);
    padding: 14px 16px;
    color: var(--fg);
    font-size: 15px;
    line-height: 1.55;
    min-height: 84px;
    box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 30%, transparent);
    position: relative;
  }
  .panel-rewrite::before {
    content: '';
    position: absolute; left: -1px; top: 12px; bottom: 12px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-2));
    border-radius: 2px;
  }

  .panel-actions {
    display: flex; gap: 8px; flex-wrap: wrap;
    padding-top: 6px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }
  .panel-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px;
    background: var(--raised);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: 12px;
    color: var(--muted);
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  }
  .panel-chip:hover { color: var(--fg); border-color: var(--border-strong); }
  .panel-chip svg { width: 12px; height: 12px; }
  .panel-chip.primary {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: transparent;
  }

  /* floating status pill */
  .hero-panel-wrap .floater {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-pop);
    padding: 10px 14px;
    font-size: 12.5px;
    color: var(--muted);
    display: flex; align-items: center; gap: 10px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: color-mix(in oklch, var(--surface) 86%, transparent);
  }
  .hero-panel-wrap .floater.f1 { top: 18px; left: -28px; }
  .hero-panel-wrap .floater.f2 { bottom: 24px; right: -36px; }
  .hero-panel-wrap .floater .kbd { background: var(--raised); border-color: var(--border); }
  @media (max-width: 720px) {
    .hero-panel-wrap .floater.f1 { left: 8px; }
    .hero-panel-wrap .floater.f2 { right: 8px; }
    .hero-panel { transform: none; }
  }

  /* TRUST STRIP */
  .trust {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
    background: var(--bg-soft);
  }
  .trust-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
  }
  .trust-label {
    font-family: var(--font-mono); font-size: 11.5px;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--faint);
  }
  .trust-icons { display: flex; gap: 36px; align-items: center; flex-wrap: wrap; color: var(--muted); }
  .trust-icons .plat { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; }
  .trust-icons .plat.plat--muted { color: var(--faint); font-weight: 450; }
  .trust-icons .plat svg { width: 16px; height: 16px; }
  .browser-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
  }
  .trust-icons .plat.plat--muted .browser-icon { opacity: 0.45; }

  /* VALUE STRIP (marketing pillars) */
  .value-strip {
    padding: clamp(40px, 5vw, 72px) 0;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
  }
  .value-strip__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 48px);
  }
  .value-strip__title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--foreground);
  }
  .value-strip__copy {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--muted);
  }
  @media (max-width: 840px) {
    .value-strip__grid { grid-template-columns: 1fr; }
  }

  /* DEMO SECTION */
  .demo-stage {
    position: relative;
    background: linear-gradient(180deg, transparent, var(--bg-soft) 30%, transparent 100%);
    border-radius: var(--r-xl);
    padding: clamp(36px, 5vw, 64px);
    border: 1px solid var(--border);
    overflow: hidden;
  }

  .demo-window {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-elev);
    overflow: hidden;
    max-width: 1040px;
    margin: 0 auto;
    position: relative;
  }

  .demo-doc {
    padding: 28px 32px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
  }
  .demo-doc__subject { font-size: 14px; color: var(--muted); font-weight: 500; margin: 0 0 12px; }
  .demo-doc .body { font-size: 15.5px; line-height: 1.65; color: var(--fg); max-width: 64ch; }
  .demo-doc .selected {
    background: var(--selection);
    border-radius: 3px;
    padding: 2px 4px;
    margin: 0 -2px;
    box-shadow: 0 0 0 1px var(--selection);
    position: relative;
  }

  /* floating quick-actions menu (positioned near selection) */
  .demo-doc { position: relative; }
  .demo-menu {
    position: absolute;
    left: 280px;
    bottom: 56px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-pop), 0 0 0 1px var(--accent-soft);
    padding: 6px;
    display: flex; flex-direction: column; gap: 2px;
    min-width: 200px;
    z-index: 3;
    backdrop-filter: blur(20px);
    background-color: color-mix(in oklch, var(--surface) 88%, transparent);
  }
  .demo-menu .row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--fg);
    cursor: default;
  }
  .demo-menu .row:hover, .demo-menu .row.active { background: var(--raised); }
  .demo-menu .row .left { display: flex; align-items: center; gap: 10px; color: var(--muted); }
  .demo-menu .row .left svg { width: 14px; height: 14px; color: var(--accent); }
  .demo-menu .row .left .action-icon { width: 14px; height: 14px; flex-shrink: 0; color: var(--accent); }
  .demo-menu .row.active .left { color: var(--fg); }
  .demo-menu .row .kbd { font-size: 11px; font-weight: 600; }
  .demo-menu .divider { height: 1px; background: var(--border); margin: 4px 0; }

  /* result strip below */
  .demo-result {
    padding: 22px 32px;
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 24px;
    align-items: center;
    background: var(--bg-soft);
  }
  .demo-result .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
  .demo-result .text { font-size: 15.5px; line-height: 1.55; }
  .demo-result .text .new { color: var(--fg); }
  .demo-result .actions { display: flex; gap: 8px; }

  @media (max-width: 880px) {
    .demo-menu { left: 24px; bottom: 24px; min-width: 180px; }
    .demo-result { grid-template-columns: 1fr; gap: 12px; }
  }

  /* FEATURES GRID */
  .feat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
  @media (max-width: 980px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }

  .feat-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 22px;
    display: flex; flex-direction: column; gap: 12px;
    transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
    min-height: 168px;
    overflow: hidden;
  }
  .feat-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-card); }
  .feat-card .glow {
    position: absolute; inset: 0;
    background: radial-gradient(140px circle at 30% -20%, var(--accent-soft), transparent 60%);
    opacity: 0;
    transition: opacity var(--t-med);
    pointer-events: none;
  }
  .feat-card:hover .glow { opacity: 1; }
  .feat-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--raised);
    border: 1px solid var(--border);
    display: grid; place-items: center;
    color: var(--accent);
  }
  .feat-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; }
  .feat-card h3 { font-size: 15.5px; font-weight: 600; }
  .feat-card p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
  .feat-card .meta { margin-top: auto; font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: 0.06em; }

  /* WORKFLOW */
  .flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    position: relative;
  }
  .flow::before {
    /* connecting horizontal line */
    content: '';
    position: absolute;
    top: 38px; left: 8%; right: 8%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-strong) 12%, var(--border-strong) 88%, transparent);
  }
  @media (max-width: 880px) {
    .flow { grid-template-columns: 1fr; }
    .flow::before { display: none; }
  }
  .flow-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 22px;
    display: flex; flex-direction: column; gap: 14px;
    position: relative;
    transition: border-color var(--t-med), background var(--t-med), box-shadow var(--t-med);
  }
  .flow-step.is-active {
    border-color: color-mix(in oklch, var(--accent) 60%, var(--border));
    box-shadow: var(--shadow-card), 0 0 0 4px var(--accent-soft);
  }
  .flow-step .n {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--raised);
    border: 1px solid var(--border);
    display: grid; place-items: center;
    font-family: var(--font-mono); font-size: 11px; color: var(--muted);
    margin-bottom: 4px;
    position: relative; z-index: 1;
  }
  .flow-step.is-active .n { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
  .flow-step h3 { font-size: 17px; }
  .flow-step p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

  .flow-visual {
    margin-top: 10px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 14px;
    min-height: 110px;
    display: flex; flex-direction: column; gap: 10px;
    font-size: 13.5px;
    color: var(--muted);
  }
  .flow-visual .line { color: var(--fg); }
  .flow-visual .line .selected {
    background: var(--selection);
    padding: 0 3px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px var(--selection);
  }
  .flow-visual .shortcut-row { display: flex; align-items: center; gap: 8px; }
  .flow-visual .replaced { color: var(--accent); }
  .flow-visual .strike { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--faint); text-decoration-thickness: 1px; }

  /* PLATFORMS */
  .plats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  @media (max-width: 880px) { .plats { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 480px) { .plats { grid-template-columns: 1fr; } }

  .plats.plats--duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 880px;
    margin-inline: auto;
  }
  .plats.plats--trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 960px;
    margin-inline: auto;
  }
  @media (max-width: 880px) {
    .plats.plats--duo,
    .plats.plats--trio { grid-template-columns: 1fr; }
  }

  .plat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 24px;
    display: flex; flex-direction: column; gap: 14px;
    transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
    position: relative;
  }
  .plat-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }
  .plat-card .logo {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--raised);
    border: 1px solid var(--border);
    display: grid; place-items: center;
    color: var(--fg);
  }
  .plat-card .logo svg { width: 22px; height: 22px; }
  .plat-card .logo--browser {
    background: transparent;
    border: none;
    width: auto;
    height: auto;
  }
  .plat-card .logo .browser-icon { width: 28px; height: 28px; }
  .plat-card h3 { font-size: 16px; }
  .plat-card .desc { font-size: 13px; color: var(--muted); }
  .plat-card .availability {
    margin-top: auto;
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--muted);
    display: flex; align-items: center; gap: 6px;
  }
  .plat-card .availability.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 2px color-mix(in oklch, var(--success) 22%, transparent); }
  .plat-card .availability.soon { color: var(--faint); }
  .plat-card .availability.soon::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }

  /* PRICING */
  .price-toggle-row {
    display: inline-flex;
    background: var(--raised);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 4px;
    gap: 4px;
    margin-bottom: 32px;
  }
  .price-toggle-row label {
    font-size: 13px;
    padding: 6px 14px;
    border-radius: var(--r-full);
    color: var(--muted);
    cursor: pointer;
    transition: color var(--t-fast), background var(--t-fast);
    position: relative;
  }
  .price-toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
  .price-toggle-row .save { color: var(--accent); font-family: var(--font-mono); font-size: 11px; margin-left: 6px; letter-spacing: 0.06em; }
  .price-toggle-row label.is-active { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-card); }

  .prices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  @media (max-width: 880px) { .prices { grid-template-columns: 1fr; } }

  .price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 28px;
    display: flex; flex-direction: column; gap: 18px;
    position: relative;
  }
  .price-card.featured {
    border-color: color-mix(in oklch, var(--accent) 60%, var(--border));
    box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-card);
    background: linear-gradient(180deg, var(--surface), color-mix(in oklch, var(--accent) 3%, var(--surface)));
  }
  .price-card .tier { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .price-card .tier h3 { font-size: 16px; font-weight: 600; }
  .price-card .badge {
    font-family: var(--font-mono); font-size: 10.5px;
    letter-spacing: 0.10em; text-transform: uppercase;
    color: var(--accent);
    padding: 4px 8px;
    border-radius: var(--r-full);
    background: var(--accent-soft);
  }
  .price-card .amount { display: flex; align-items: baseline; gap: 6px; }
  .price-card .currency { font-size: 18px; color: var(--muted); }
  .price-card .amount .n { font-family: var(--font-mono); font-size: 44px; letter-spacing: -0.03em; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--fg-strong); }
  .price-card .period { font-size: 13px; color: var(--muted); }
  .price-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; flex-direction: column; gap: 10px;
    font-size: 13.5px;
    color: var(--muted);
  }
  .price-card ul li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
  .price-card ul li svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
  .price-card .cta { margin-top: auto; }

  /* FAQ */
  .faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 760px; margin: 0 auto; }
  .faq {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color var(--t-fast);
  }
  .faq:hover { border-color: var(--border-strong); }
  .faq-q {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    color: var(--fg);
  }
  .faq-q .icon { color: var(--muted); transition: transform var(--t-fast); }
  .faq.open .faq-q .icon { transform: rotate(45deg); color: var(--accent); }
  .faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-med);
    padding: 0 22px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
  }
  .faq.open .faq-a { max-height: 480px; padding-bottom: 20px; }

  /* FINAL CTA */
  .final-cta {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: clamp(48px, 7vw, 88px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
    margin: 0 0 clamp(72px, 9vw, 128px);
  }
  .final-cta::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 100%, var(--accent-soft), transparent 65%);
    pointer-events: none;
  }
  .final-cta > * { position: relative; z-index: 1; }
  .final-cta h2 { max-width: 720px; }
  .final-cta .lede { text-align: center; }
  .final-cta .cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
  .final-cta .final-cta-sub {
    margin: 0;
    max-width: 46ch;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
  }
  .final-cta .keyboard-hint {
    margin-top: 2px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--faint);
    letter-spacing: 0.04em;
  }

/* ---- website extras ---- */
.skip-link { position: absolute; left: -9999px; top: 0; padding: 0.75rem 1rem; background: var(--accent); color: var(--accent-fg); z-index: 100; border-radius: var(--r-sm); }
.skip-link:focus { left: 1rem; top: 1rem; outline: 2px solid var(--accent-2); outline-offset: 2px; }
.prices.provider-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 920px; margin-inline: auto; }
@media (max-width: 880px) { .prices.provider-duo { grid-template-columns: 1fr; } }
.price-card .provider-note { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* --- Homepage improvements: hero tone chips --- */
.hero-tone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}
.tone-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: var(--r-full);
  background: var(--raised);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* AI actions showcase */
.actions-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 920px;
  margin-inline: auto;
}
.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  box-shadow: var(--shadow-card);
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.action-pill:hover {
  border-color: color-mix(in oklch, var(--accent) 45%, var(--border));
  transform: translateY(-1px);
}
.action-pill__ico {
  font-size: 15px;
  line-height: 1;
  opacity: 0.9;
}
.action-pill--accent {
  border-color: color-mix(in oklch, var(--accent) 50%, var(--border));
  background: linear-gradient(180deg, var(--surface), color-mix(in oklch, var(--accent) 4%, var(--surface)));
}

/* Quick action → chat combo */
.combo-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(12px, 3vw, 28px);
  flex-wrap: wrap;
}
.combo-arrow {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  padding: 0 8px;
}
.combo-card {
  flex: 1 1 220px;
  max-width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.combo-card--wide {
  max-width: 420px;
  flex-basis: 280px;
}
.combo-card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.combo-card__cell {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--raised);
  border: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--fg);
}
.combo-card__cell--accent {
  border-color: color-mix(in oklch, var(--accent) 35%, var(--border));
  background: color-mix(in oklch, var(--accent) 6%, var(--raised));
}
@media (max-width: 720px) {
  .combo-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .combo-arrow {
    transform: rotate(90deg);
    justify-content: center;
    padding: 4px 0;
  }
}
.combo-chat-title {
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: -0.02em;
}

/* Conversation preview */
.chat-thread {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-thread__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.chat-thread__row--user {
  border-left: 3px solid var(--border-strong);
}
.chat-thread__row--ai {
  border-left: 3px solid var(--accent);
  background: linear-gradient(135deg, var(--surface), color-mix(in oklch, var(--accent) 5%, var(--surface)));
}
.chat-thread__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 2px;
}
.chat-thread__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.chat-thread__row--user .chat-thread__text {
  color: var(--fg);
}

/* Shortcuts section */
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 880px) {
  .shortcuts-grid {
    grid-template-columns: 1fr;
  }
}
.shortcut-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.shortcut-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}
.shortcut-card__keys {
  font-family: var(--font-kbd);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 4px;
}
.shortcut-combos {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.shortcut-combo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shortcut-combo__label {
  font-family: var(--font-kbd);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.shortcut-combo__keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.shortcut-combo__sep {
  font-family: var(--font-kbd);
  font-size: 15px;
  font-weight: 500;
  color: var(--faint);
  line-height: 1;
  user-select: none;
}
.shortcut-card__keys--text {
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.shortcut-card h3 {
  font-size: 17px;
  margin: 0;
}
.shortcut-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* Use cases */
.use-case-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 820px;
  margin-inline: auto;
}
.use-case-chip {
  padding: 10px 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}

/* Legal / policy / support pages */
.legal-page {
  padding: 20px 0 clamp(40px, 6vw, 72px);
}
.legal-page .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
.legal-page-inner {
  max-width: 1000px;
}
.legal-header h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  font-size: 13.5px;
  color: var(--faint);
  line-height: 1.5;
}
.legal-meta-sep { color: var(--border-strong); }
.legal-summary {
  margin: 16px 0 20px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--callout-border);
  background: var(--callout-bg);
}
.legal-summary-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.legal-summary ul {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14.5px;
}
.legal-summary strong { color: var(--fg); font-weight: 600; }
.legal-toc {
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
.legal-toc-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}
.legal-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 20px;
  font-size: 14px;
  line-height: 1.45;
}
@media (max-width: 560px) {
  .legal-toc ol { grid-template-columns: 1fr; }
}
.legal-toc a {
  color: var(--muted);
  text-decoration: none;
}
.legal-toc a:hover { color: var(--accent); text-decoration: underline; }
.legal-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--muted);
  line-height: 1.68;
  font-size: 15px;
}
.legal-body section {
  scroll-margin-top: 88px;
}
.legal-body h2 {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 650;
  color: var(--fg-strong);
  letter-spacing: -0.01em;
}
.legal-body p { margin: 0 0 12px; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body ul {
  margin: 0 0 12px;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-body li { padding-left: 2px; }
.legal-body .kbd {
  margin: 0 2px;
  vertical-align: middle;
}
.legal-body strong { color: var(--fg); font-weight: 600; }
.legal-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.12em 0.38em;
  border-radius: var(--r-xs);
  background: var(--raised);
  border: 1px solid var(--border);
  color: var(--fg);
}
.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-body a.btn {
  text-decoration: none;
}
.legal-body a.btn-primary {
  color: var(--accent-fg);
}
.legal-body a.btn-ghost {
  color: var(--fg);
}
.legal-back {
  margin: 40px 0 0;
  font-size: 14px;
}
.legal-back a {
  color: var(--muted);
  text-decoration: none;
}
.legal-back a:hover { color: var(--accent); }

.support-quick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0 32px;
}
@media (max-width: 560px) {
  .support-quick-links { grid-template-columns: 1fr; }
}
.support-quick-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.support-quick-link:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}
.support-quick-link strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fg);
}
.support-quick-link span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.support-quick-link--primary {
  border-color: var(--callout-border);
  background: var(--callout-bg);
}
.support-quick-link--primary:hover {
  border-color: var(--callout-border-hover);
  background: var(--callout-bg-hover);
}
.support-contact-primary {
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid var(--callout-border);
  border-radius: var(--r-md);
  background: var(--callout-bg);
}
.support-contact-primary-title {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.support-contact-primary p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}
.support-contact-primary p:last-child { margin-bottom: 0; }
.support-contact-fallback {
  font-size: 14px;
  color: var(--faint);
}
.support-steps {
  margin: 0 0 12px;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.support-steps li { padding-left: 2px; }
.support-steps li::marker { color: var(--accent); font-weight: 600; }
.support-issue {
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
.support-issue h3 {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fg);
}
.support-issue p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.support-issues {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
