/*
  ChatShelf marketing site — shared stylesheet.

  Tokens mirror the extension's own palette (src/ui/style.css) so the site and
  the product feel like one thing. Dark mode follows the system by default;
  a manual toggle (js/main.js) can pin either theme via [data-theme].
*/

:root {
  color-scheme: light dark;

  /* ---- palette, matched to the extension ---- */
  --bg: #ffffff;
  --bg-raised: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eef0f4;
  --border: #e0e3e9;
  --border-strong: #cfd4dd;
  --text: #14161a;
  --muted: #565c66;
  --faint: #666b73;
  --accent: #2f6fed;
  --accent-text: #2a63d4;
  --accent-soft: #e8efff;
  --on-accent: #ffffff;
  --danger: #c2361f;
  --success: #0f8a5f;

  --chatgpt: #10a37f;
  --claude: #d97757;
  --gemini: #4285f4;
  --grok: #6b7280;

  --ring: rgba(16, 18, 22, 0.14);
  --shadow-sm: 0 1px 2px rgba(16, 18, 22, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08), 0 2px 6px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.16), 0 4px 14px rgba(16, 24, 40, 0.08);

  --hero-gradient: radial-gradient(1100px 620px at 82% -10%, #dbe6ff 0%, rgba(219,230,255,0) 60%),
                   radial-gradient(900px 500px at -10% 10%, #eef3ff 0%, rgba(238,243,255,0) 55%),
                   linear-gradient(180deg, #fbfcfe 0%, #ffffff 55%);

  /* ---- scale ---- */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1120px;
  --nav-h: 68px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121317;
    --bg-raised: #1a1c21;
    --surface: #1a1c21;
    --surface-2: #23262c;
    --border: #2b2e35;
    --border-strong: #3a3e46;
    --text: #eef0f3;
    --muted: #a7adb8;
    --faint: #8b919b;
    --accent: #6ea8fe;
    --accent-text: #6ea8fe;
    --accent-soft: #1c2740;
    --on-accent: #0f1420;
    --danger: #ef7c66;
    --success: #4fd39a;
    --grok: #9ca3af;
    --ring: rgba(255, 255, 255, 0.16);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.38), 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.5), 0 6px 18px rgba(0, 0, 0, 0.35);
    --hero-gradient: radial-gradient(1100px 620px at 82% -10%, #1c2740 0%, rgba(28,39,64,0) 60%),
                     radial-gradient(900px 500px at -10% 10%, #182033 0%, rgba(24,32,51,0) 55%),
                     linear-gradient(180deg, #101116 0%, #121317 55%);
  }
}

:root[data-theme="dark"] {
  --bg: #121317;
  --bg-raised: #1a1c21;
  --surface: #1a1c21;
  --surface-2: #23262c;
  --border: #2b2e35;
  --border-strong: #3a3e46;
  --text: #eef0f3;
  --muted: #a7adb8;
  --faint: #8b919b;
  --accent: #6ea8fe;
  --accent-text: #6ea8fe;
  --accent-soft: #1c2740;
  --on-accent: #0f1420;
  --danger: #ef7c66;
  --success: #4fd39a;
  --grok: #9ca3af;
  --ring: rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.38), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.5), 0 6px 18px rgba(0, 0, 0, 0.35);
  --hero-gradient: radial-gradient(1100px 620px at 82% -10%, #1c2740 0%, rgba(28,39,64,0) 60%),
                   radial-gradient(900px 500px at -10% 10%, #182033 0%, rgba(24,32,51,0) 55%),
                   linear-gradient(180deg, #101116 0%, #121317 55%);
}

/* ------------------------------------------------------------------ reset */

* { box-sizing: border-box; }

/* Any element styled with its own `display` (buttons, flex/grid containers)
   silently defeats the `hidden` attribute at equal specificity, because an
   author-stylesheet rule always beats the UA default `[hidden]{display:none}`
   in a tie. Without this, the GitHub link — `hidden` by default until
   config.js sets a URL — rendered anyway wherever it also had a `.btn` class. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15.5px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

section { padding: 88px 0; }
@media (max-width: 720px) {
  section { padding: 56px 0; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-text);
}
.section-head { max-width: 640px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 16.5px; }

/* -------------------------------------------------------------- utilities */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 560ms var(--ease), transform 560ms var(--ease); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal-delay="4"] { transition-delay: 320ms; }

/* ------------------------------------------------------------------ dots */

.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; box-shadow: inset 0 0 0 1px var(--ring); }
.dot.chatgpt { background: var(--chatgpt); }
.dot.claude { background: var(--claude); }
.dot.gemini { background: var(--gemini); }
.dot.grok { background: var(--grok); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 620; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 65%, transparent);
}
.btn-primary:hover { box-shadow: 0 14px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent); filter: brightness(1.03); }

.btn-secondary {
  background: var(--bg-raised); color: var(--text); border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--surface); border-color: var(--faint); }

.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-ghost:hover { color: var(--text); background: var(--surface); }

.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 8px 15px; font-size: 13.5px; }
.btn-block { width: 100%; }

.btn[aria-disabled="true"] { cursor: pointer; }

.btn-icon svg { width: 18px; height: 18px; flex: none; }

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

.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 20px; }

.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; flex: none; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; flex: 1; }
/* :not(.btn) matters: without it, this beats .btn-primary's color rule on
   specificity (class+element > class alone) and the nav's "Add to Chrome"
   button rendered with muted grey text on its blue fill instead of white. */
.site-nav a:not(.btn) {
  padding: 9px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 550;
  color: var(--muted); text-decoration: none; transition: background 140ms, color 140ms;
}
.site-nav a:not(.btn):hover { color: var(--text); background: var(--surface); }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--text); background: var(--surface-2); }

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

.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-raised); display: grid; place-items: center; cursor: pointer;
  color: var(--muted); flex: none;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle[data-state="dark"] .icon-moon { display: none; }
.theme-toggle[data-state="dark"] .icon-sun { display: block; }

.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-raised); align-items: center; justify-content: center; cursor: pointer; flex: none;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}
.nav-toggle::before { position: absolute; transform: translateY(-6px); }
.nav-toggle::after { position: absolute; transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }

@media (max-width: 860px) {
  .site-nav { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 90; flex-direction: column; align-items: stretch;
    background: var(--bg); padding: 14px 20px 28px; gap: 2px; margin: 0;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform 220ms var(--ease), opacity 220ms var(--ease);
    overflow-y: auto; border-top: 1px solid var(--border);
  }
  .site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a:not(.btn) { padding: 13px 14px; border-radius: 10px; font-size: 16px; }
  .site-nav .nav-cta { margin-top: 14px; }
  .nav-toggle { display: inline-flex; }
  body.nav-locked { overflow: hidden; }
}

/* One visible "Add to Chrome" button per breakpoint, not two: the copy inside
   the nav menu is desktop-hidden (the header already has one in nav-actions)
   and only appears once the mobile menu opens, where nav-actions' own copy
   is hidden in turn. */
.site-nav .nav-cta { display: none; }
.nav-actions .nav-cta { display: inline-flex; }
@media (max-width: 860px) {
  .site-nav .nav-cta { display: inline-flex; }
  .nav-actions .nav-cta { display: none; }
}

/* -------------------------------------------------------------------- hero */

.hero { padding: 68px 0 40px; background: var(--hero-gradient); overflow: clip; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { text-align: center; padding-top: 44px; }
}

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
@media (max-width: 980px) { .hero-badges { justify-content: center; } }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-raised); font-size: 13px; font-weight: 560; color: var(--muted);
}
.badge strong { color: var(--text); font-weight: 650; }

.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 750; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent) 0%, #7c5cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { margin-top: 18px; font-size: 18.5px; line-height: 1.6; color: var(--muted); max-width: 54ch; }
@media (max-width: 980px) { .hero .lead { margin-left: auto; margin-right: auto; } }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 980px) { .hero-ctas { justify-content: center; } }

.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; font-size: 13.5px; color: var(--faint); }
@media (max-width: 980px) { .hero-meta { justify-content: center; } }
.hero-meta li { display: flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--success); flex: none; }

/* --------------------------------------------------------- browser frame */

.browser-frame {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-raised);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateY(-4deg) rotateX(1deg);
}
.hero .browser-frame { transform: perspective(1400px) rotateY(-6deg) rotateX(1.5deg); }
@media (max-width: 980px) {
  .browser-frame, .hero .browser-frame { transform: none; }
}
.browser-frame .chrome {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.browser-frame .traffic { display: flex; gap: 6px; }
.browser-frame .traffic span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.browser-frame .addr {
  flex: 1; height: 24px; border-radius: 999px; background: var(--bg-raised);
  border: 1px solid var(--border); display: flex; align-items: center; gap: 6px;
  padding: 0 12px; font-size: 11.5px; color: var(--faint); overflow: hidden;
}
.browser-frame .addr svg { width: 11px; height: 11px; flex: none; color: var(--success); }
.browser-frame .addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-frame img { width: 100%; display: block; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 14px; box-shadow: var(--shadow-md); font-size: 13px; font-weight: 600;
}
.float-card svg { width: 17px; height: 17px; color: var(--success); flex: none; }
.hero-art { position: relative; }
.hero-art .float-card.pill-1 { left: -18px; top: 18%; }
.hero-art .float-card.pill-2 { right: -14px; bottom: 10%; }
@media (max-width: 980px) { .hero-art .float-card { display: none; } }

/* -------------------------------------------------------------- platform strip */

.platform-strip { padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.platform-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 34px; }
.platform-strip .item { display: flex; align-items: center; gap: 9px; font-weight: 620; color: var(--muted); font-size: 15px; }
.platform-strip .item .dot { width: 11px; height: 11px; }
.platform-strip .note { color: var(--faint); font-size: 13.5px; }

/* ------------------------------------------------------------------ features */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 920px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.feature-card .icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text); flex: none;
}
.feature-card .icon svg { width: 21px; height: 21px; }
.feature-card h3 { font-size: 16.5px; font-weight: 650; }
.feature-card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.feature-card .tag {
  align-self: flex-start; font-size: 11.5px; font-weight: 650; letter-spacing: 0.02em;
  padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--faint);
}

.feature-card.span-2 { grid-column: span 2; }
@media (max-width: 620px) { .feature-card.span-2 { grid-column: span 1; } }

/* --------------------------------------------------------------- showcase */

.showcase-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; }
.showcase-tab {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-raised);
  font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.showcase-tab[aria-selected="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.showcase-panel { display: none; }
.showcase-panel.is-active { display: grid; grid-template-columns: 1fr; gap: 22px; place-items: center; }
.showcase-panel .browser-frame { max-width: 920px; width: 100%; }
.showcase-panel .caption { text-align: center; color: var(--muted); font-size: 14.5px; max-width: 56ch; }

/* ------------------------------------------------------------------ privacy */

.privacy-strip {
  background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border);
  padding: 44px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
@media (max-width: 860px) { .privacy-strip { grid-template-columns: 1fr; padding: 30px 22px; } }
.privacy-list { display: grid; gap: 14px; }
.privacy-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.privacy-list svg { width: 20px; height: 20px; color: var(--success); flex: none; margin-top: 2px; }
.privacy-list strong { display: block; margin-bottom: 2px; }
.privacy-list span { color: var(--muted); font-size: 14px; }

/* -------------------------------------------------------------------- steps */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 22px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -14px; left: 22px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px;
  display: grid; place-items: center; box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--accent) 70%, transparent);
}
.step h3 { margin-top: 8px; font-size: 16px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---------------------------------------------------------------------- cta */

.cta-band {
  border-radius: var(--radius-lg); padding: 56px 44px; text-align: center;
  background: linear-gradient(135deg, var(--accent) 0%, #7c5cff 100%);
  color: #fff; position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); color: #fff; }
.cta-band p { margin-top: 12px; color: rgba(255,255,255,0.85); font-size: 16px; }
.cta-band .hero-ctas { justify-content: center; margin-top: 26px; }
.cta-band .btn-primary { background: #fff; color: #1c2740; border-color: #fff; box-shadow: 0 14px 30px -10px rgba(0,0,0,0.35); }
.cta-band .btn-secondary { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); color: #fff; }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,0.2); }

/* --------------------------------------------------------------------- faq */

.faq-list { display: grid; gap: 10px; max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); overflow: hidden; }
.faq-item > button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; background: none; border: 0; text-align: left; cursor: pointer;
  font-size: 15.5px; font-weight: 600;
}
.faq-item .chev { width: 18px; height: 18px; flex: none; color: var(--faint); transition: transform 200ms var(--ease); }
.faq-item.is-open .chev { transform: rotate(180deg); }
.faq-item .answer {
  max-height: 0; overflow: hidden; transition: max-height 260ms var(--ease);
  padding: 0 20px;
}
.faq-item.is-open .answer { max-height: 480px; padding-bottom: 20px; }
.faq-item .answer p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.faq-item .answer p + p { margin-top: 10px; }
.faq-item .answer a { color: var(--accent-text); font-weight: 600; }

/* ------------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 34ch; line-height: 1.6; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 14.5px; text-decoration: none; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  color: var(--faint); font-size: 13px;
}
.footer-disclaimer { max-width: 720px; line-height: 1.6; }

/* ---------------------------------------------------------------------- toast */

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(12px);
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 550; box-shadow: var(--shadow-lg); z-index: 300;
  opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease);
  max-width: min(420px, 86vw); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* ---------------------------------------------------------- simple/legal pages */

.page-hero { padding: 56px 0 20px; text-align: center; }
.page-hero .eyebrow { display: block; margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); }
.page-hero p { margin-top: 14px; color: var(--muted); font-size: 16px; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 21px; margin-top: 44px; margin-bottom: 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16.5px; margin-top: 26px; margin-bottom: 8px; }
.prose p { color: var(--muted); margin-bottom: 14px; font-size: 15.5px; line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; list-style: disc; color: var(--muted); }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; line-height: 1.65; }
.prose li::marker { color: var(--faint); }
.prose strong { color: var(--text); }
.prose a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.prose .callout {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 14px 16px; margin: 20px 0; font-size: 14.5px; color: var(--muted);
}
.prose .callout strong { color: var(--text); }
.prose .updated { color: var(--faint); font-size: 13.5px; margin-bottom: 30px; }

/* ------------------------------------------------------------- changelog */

.changelog-list { max-width: 760px; margin: 0 auto; display: grid; gap: 28px; }
.changelog-entry { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); padding: 26px; }
.changelog-entry .head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.changelog-entry .version { font-size: 18px; font-weight: 700; }
.changelog-entry .date { color: var(--faint); font-size: 13.5px; }
.changelog-entry .kind {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text);
}
.changelog-entry ul { list-style: disc; padding-left: 20px; display: grid; gap: 7px; }
.changelog-entry li { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.changelog-entry li::marker { color: var(--faint); }
.changelog-entry li strong { color: var(--text); }

/* --------------------------------------------------------------- 404 */

.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 24px; }
.error-page .code { font: 700 88px/1 var(--mono); color: var(--border-strong); }
.error-page h1 { margin-top: 6px; font-size: 26px; }
.error-page p { margin-top: 10px; color: var(--muted); }
.error-page .btn { margin-top: 24px; }

/* --------------------------------------------------------------- support */

.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .support-grid { grid-template-columns: 1fr; } }
.support-card {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.support-card .icon { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; }
.support-card .icon svg { width: 20px; height: 20px; }
.support-card h3 { font-size: 16px; }
.support-card p { color: var(--muted); font-size: 14px; line-height: 1.6; flex: 1; }
