/* Video Tagger — marketing site
   Tokens echo the actual app (src/tokens.ts).
   Accent: oklch(0.55 0.15 145) — same green the app uses for primary actions. */

:root {
  --bg: #fafbfc;
  --bg-elev: #ffffff;
  --bg-panel: #f4f5f7;
  --bg-hover: #eef0f3;
  --bg-sel: #e3eaf3;
  --border: #e4e7eb;
  --border-subtle: #eef0f3;
  --fg: #15181d;
  --fg-2: #4a5260;
  --fg-3: #8892a0;
  --accent: oklch(0.55 0.15 145);
  --accent-ink: oklch(0.32 0.10 145);
  --accent-soft: oklch(0.96 0.04 145);
  --accent-line: oklch(0.85 0.08 145);
  --warn: oklch(0.65 0.15 70);
  --err:  oklch(0.55 0.18 25);

  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 30, .04), 0 1px 1px rgba(20, 24, 30, .03);
  --shadow-md: 0 4px 10px rgba(20, 24, 30, .05), 0 2px 4px rgba(20, 24, 30, .04);
  --shadow-lg: 0 16px 40px rgba(20, 24, 30, .08), 0 4px 12px rgba(20, 24, 30, .04);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --container: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 251, 252, .82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em;
  font-size: 15px;
}
/* Brand mark — the actual product icon (same SVG used as the
   favicon). Renders at 26px in the nav and 26px in the footer
   .brand wrappers. The SVG is full-bleed (no internal padding)
   so it looks intentional at small sizes — see the icon-zip
   HANDOFF.md note: app-icon.svg has 10% padding for macOS
   rounded-rect masking, but `favicon.svg` is meant to fill the
   canvas. */
.brand-mark {
  width: 26px; height: 26px;
  /* CSS `url()` resolves relative to the stylesheet's URL, not
     the HTML page that imported it — so `favicon.svg` here
     always means `public/favicon.svg` regardless of which page
     is rendering this rule. Works for any deploy path and for
     `file://` local preview. */
  background-image: url('favicon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
.nav-links {
  display: flex; gap: 24px; align-items: center;
  margin-left: 14px;
  font-size: 14px;
  color: var(--fg-2);
}
.nav-links a:hover { color: var(--fg); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  font-size: 14px; font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--fg);
  color: var(--bg-elev);
}
.btn-primary:hover { background: #000; }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-hover); }
.btn-accent {
  background: var(--accent);
  color: white;
}
.btn-accent:hover { filter: brightness(0.94); }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 10px; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(2px); }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% -10%, oklch(0.96 0.05 145) 0%, transparent 60%),
    radial-gradient(40% 40% at 0% 0%, oklch(0.97 0.02 230) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--fg-2);
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px oklch(0.55 0.15 145 / 0.18);
}
.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 18ch;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent-ink); }
.hero p.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--fg-2);
  max-width: 56ch;
  margin: 0 0 28px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 22px;
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: var(--fg-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

.hero-mockup-wrap {
  margin-top: 56px;
}

/* ---------- App mockup — dark, mirrors actual app tokens ---------- */
.mock {
  /* dark tokens from src/tokens.ts */
  --m-bg: #0e1014;
  --m-bg-raised: #161a21;
  --m-bg-panel: #1a1f27;
  --m-bg-hover: #222831;
  --m-bg-sel: #2b3441;
  --m-border: #262d38;
  --m-border-subtle: #1e242d;
  --m-fg: #e6ebf3;
  --m-fg2: #9aa4b2;
  --m-fg3: #6b7280;
  --m-accent: oklch(0.72 0.16 145);

  background: var(--m-bg);
  border: 1px solid #1f242d;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--m-fg);
  font-family: var(--sans);
}
.mock-titlebar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: #0a0d11;
  border-bottom: 1px solid var(--m-border);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #3a3f47;
}
.mock-dots span:nth-child(1) { background: #ec6a5e; }
.mock-dots span:nth-child(2) { background: #f4be4f; }
.mock-dots span:nth-child(3) { background: #61c454; }
.mock-title {
  flex: 1; text-align: center;
  font-size: 12px; color: var(--m-fg3);
  font-family: var(--sans);
}

/* media-kind tabs (TopTabs.tsx) */
.mock-tabs {
  display: flex;
  height: 36px;
  background: var(--m-bg-panel);
  border-bottom: 1px solid var(--m-border);
}
.mock-tab {
  padding: 0 16px;
  background: transparent;
  color: var(--m-fg2);
  border: 0;
  border-right: 1px solid var(--m-border-subtle);
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--sans);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.mock-tab[aria-selected="true"] {
  background: var(--m-bg);
  color: var(--m-fg);
  font-weight: 600;
  border-bottom-color: var(--m-accent);
}
.mock-tab .right-extra {
  margin-left: auto; padding-right: 8px;
  display: flex; gap: 6px;
}
.tab-bar {
  display: flex; align-items: stretch;
  height: 36px;
  background: var(--m-bg-panel);
  border-bottom: 1px solid var(--m-border);
}
.tab-bar .right {
  margin-left: auto; padding: 0 10px;
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--m-fg3);
}
.tab-bar .right button {
  background: transparent; border: 1px solid var(--m-border);
  color: var(--m-fg2); border-radius: 4px;
  padding: 3px 9px; font-size: 11px; cursor: pointer;
}

/* three-pane body */
.mock-body {
  display: grid;
  grid-template-columns: 320px 1fr 360px;
  min-height: 520px;
  font-size: 13px;
  background: var(--m-bg);
}
.mock-body[hidden] { display: none !important; }
@media (max-width: 980px) {
  .mock-body { grid-template-columns: 1fr; min-height: 0; }
  .mock-body > .col-detail, .mock-body > .col-cands { display: none; }
}

/* QUEUE pane (left) */
.col-queue {
  background: var(--m-bg-panel);
  border-right: 1px solid var(--m-border);
  display: flex; flex-direction: column;
}
.queue-head {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--m-border-subtle);
}
.queue-head-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; gap: 8px;
}
.queue-label {
  font-size: 11px; font-weight: 600;
  color: var(--m-fg2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.icon-row { display: flex; gap: 2px; }
.icon-btn {
  width: 22px; height: 22px;
  border-radius: 4px; border: 0;
  background: transparent;
  color: var(--m-fg2);
  cursor: pointer; font-size: 13px; line-height: 1;
}
.icon-btn:hover { background: var(--m-bg-hover); }
.icon-btn.accent { color: var(--m-accent); }
.queue-folder {
  font-family: var(--mono); font-size: 10px;
  color: var(--m-fg3);
  margin-bottom: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  direction: rtl; text-align: left;
}
.queue-folder span { direction: ltr; unicode-bidi: embed; }
.filter-pills { display: flex; gap: 2px; }
.filter-pills button {
  padding: 3px 8px;
  border-radius: 4px; border: 0;
  background: transparent;
  color: var(--m-fg2);
  font-weight: 500; font-size: 11px;
  cursor: pointer;
  font-family: var(--sans);
}
.filter-pills button.on { background: var(--m-bg-sel); color: var(--m-fg); }
.filter-pills .count { opacity: 0.6; margin-left: 3px; font-variant-numeric: tabular-nums; }

.queue-list { flex: 1; overflow: hidden; }
.qrow {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-left: 2px solid transparent;
  border-bottom: 1px solid var(--m-border-subtle);
  cursor: pointer;
}
.qrow.sel {
  background: var(--m-bg-sel);
  border-left-color: var(--m-accent);
}
.qrow.matched { background: var(--m-bg-hover); }
.qrow .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.qrow .dot.untagged { background: #6b7280; }
.qrow .dot.matched { background: var(--m-accent); }
.qrow .dot.tagged { background: oklch(0.62 0.13 220); }
.qrow .dot.error { background: oklch(0.68 0.18 25); }
.qrow .poster {
  width: 32px; height: 48px;
  border-radius: 3px;
  flex: 0 0 32px;
  background: linear-gradient(135deg, #2a3140, #1a1f27);
  position: relative;
  overflow: hidden;
}
.qrow .poster.p-blue   { background: linear-gradient(135deg, #2a4a7a, #1a2a4a); }
.qrow .poster.p-purple { background: linear-gradient(135deg, #4a2a7a, #2a1a4a); }
.qrow .poster.p-green  { background: linear-gradient(135deg, #2a6a4a, #1a3a2a); }
.qrow .poster.p-red    { background: linear-gradient(135deg, #6a2a3a, #3a1a2a); }
.qrow .poster.p-amber  { background: linear-gradient(135deg, #6a4a2a, #3a2a1a); }
.qrow .meta { flex: 1; min-width: 0; }
.qrow .title {
  font-size: 13px; font-weight: 500;
  color: var(--m-fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qrow .title .more { margin-left: 6px; font-size: 10px; color: var(--m-accent); opacity: 0.85; }
.qrow .filename {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--m-fg3);
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qrow .stats {
  flex: 0 0 auto;
  font-size: 10px;
  font-family: var(--mono);
  color: var(--m-fg3);
  text-align: right;
  white-space: nowrap;
}
.qrow .stats .b { opacity: 0.7; }

/* DETAIL pane (center) */
.col-detail {
  background: var(--m-bg);
  border-right: 1px solid var(--m-border);
  display: flex; flex-direction: column;
}
.detail-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--m-border-subtle);
}
.detail-head .crumb {
  font-family: var(--mono); font-size: 11px;
  color: var(--m-fg3); margin-bottom: 6px;
}
.detail-head h3 {
  margin: 0; font-size: 18px; letter-spacing: -0.01em;
  font-weight: 600; color: var(--m-fg);
}
.detail-head .sub {
  margin-top: 4px;
  font-size: 12.5px; color: var(--m-fg2);
}
.detail-body {
  flex: 1; padding: 18px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
}
.detail-poster {
  width: 160px; height: 240px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2a4a7a, #1a2a4a);
  border: 1px solid var(--m-border);
}
.detail-fields { display: flex; flex-direction: column; gap: 10px; }
.detail-row {
  display: grid; grid-template-columns: 90px 1fr;
  font-size: 12.5px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--m-border-subtle);
}
.detail-row .k { color: var(--m-fg3); }
.detail-row .v { color: var(--m-fg); font-family: var(--mono); }
.detail-actions {
  display: flex; gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--m-border-subtle);
}
.detail-actions button {
  flex: 1;
  padding: 9px 12px;
  border-radius: 5px; border: 1px solid var(--m-border);
  background: var(--m-bg-panel);
  color: var(--m-fg);
  font-size: 12.5px; font-weight: 500;
  cursor: pointer;
}
.detail-actions button.primary {
  background: var(--m-accent);
  color: #0d1216;
  border-color: transparent;
}

/* CANDIDATES pane (right) */
.col-cands {
  background: var(--m-bg-panel);
  display: flex; flex-direction: column;
}
.cands-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--m-border-subtle);
}
.cands-head .label {
  font-size: 11px; font-weight: 600;
  color: var(--m-fg2);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.provider-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.provider-pills button {
  padding: 4px 9px; border-radius: 4px;
  border: 1px solid var(--m-border);
  background: transparent;
  color: var(--m-fg2);
  font-size: 11px; font-weight: 500;
  cursor: pointer;
}
.provider-pills button.on {
  background: var(--m-bg-sel);
  color: var(--m-fg);
  border-color: var(--m-bg-sel);
}
.cand-search {
  margin-top: 8px;
  width: 100%;
  padding: 6px 9px;
  border: 1px solid var(--m-border);
  border-radius: 4px;
  background: var(--m-bg);
  color: var(--m-fg);
  font-size: 12px;
}
.cands-list { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.cand-row {
  display: flex; gap: 10px; align-items: center;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid transparent;
  cursor: pointer;
}
.cand-row:hover { background: var(--m-bg-hover); }
.cand-row.picked { background: var(--m-bg-sel); border-color: var(--m-accent); }
.cand-row .mini {
  width: 38px; height: 56px; flex: 0 0 38px;
  border-radius: 3px;
  background: linear-gradient(135deg, #2a4a7a, #1a2a4a);
}
.cand-row.alt .mini { background: linear-gradient(135deg, #4a2a7a, #2a1a4a); }
.cand-row .info { flex: 1; min-width: 0; }
.cand-row .ct { font-size: 12.5px; font-weight: 500; color: var(--m-fg); }
.cand-row .cs { font-size: 11px; color: var(--m-fg3); margin-top: 2px; font-family: var(--mono); }
.cand-row .conf {
  font-size: 10px; font-family: var(--mono);
  color: var(--m-accent);
  margin-top: 4px;
}
.confbar { display: inline-block; width: 60px; height: 3px; background: var(--m-bg-hover); border-radius: 2px; vertical-align: middle; margin-left: 6px; }
.confbar i { display: block; height: 100%; background: var(--m-accent); border-radius: 2px; }

/* tree view (existing, used in output examples) */
.tree {
  font-family: var(--mono); font-size: 12px;
  padding: 18px 22px;
  color: var(--fg);
  line-height: 1.85;
}
.tree .dim { color: var(--fg-3); }
.tree .sidecar { color: var(--accent-ink); }
.tree .indent-1 { padding-left: 18px; }
.tree .indent-2 { padding-left: 36px; }
.tree .indent-3 { padding-left: 54px; }

/* ---------- Trust strip ---------- */
.trust {
  padding: 28px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elev);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: center;
}
@media (max-width: 800px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--fg-2);
}
.trust-item .check {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid; place-items: center;
  font-size: 12px;
}

/* ---------- Section heading ---------- */
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-eyebrow {
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 12px;
}
.sec-eyebrow span { color: var(--accent-ink); }
.sec-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 14px;
  font-weight: 600;
  text-wrap: balance;
}
.sec-head p {
  font-size: 17px; color: var(--fg-2);
  margin: 0;
  max-width: 56ch;
}

/* ---------- Problem ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 760px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.problem-card h4 {
  margin: 0 0 6px; font-size: 16px; letter-spacing: -0.01em;
}
.problem-card p {
  margin: 0; color: var(--fg-2); font-size: 14px;
}
.problem-card .num {
  font-family: var(--mono); font-size: 12px; color: var(--fg-3);
  margin-bottom: 10px; letter-spacing: 0.04em;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.step-art {
  height: 120px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-3);
  padding: 14px;
  overflow: hidden;
}
.step-art .a-row { padding: 3px 0; }
.step-art .a-folder { color: var(--fg); }
.step-art .a-match { display: inline-block; padding: 2px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 10.5px; }
.step-art .a-diff { color: oklch(0.42 0.12 145); }
.step-art .a-diff.del { color: var(--err); }
.step-art .a-tree { color: var(--fg); }
.step-art .a-tree .dim { color: var(--fg-3); }
.step-body { padding: 18px 20px 22px; }
.step-num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  margin-bottom: 8px;
}
.step h4 {
  margin: 0 0 6px; font-size: 16px; letter-spacing: -0.01em;
}
.step p { margin: 0; font-size: 13.5px; color: var(--fg-2); }

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--bg-elev);
  padding: 26px 24px;
}
.feature .icn {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid; place-items: center;
  margin-bottom: 14px;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
}
.feature h4 { margin: 0 0 6px; font-size: 15px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--fg-2); font-size: 13.5px; }

/* ---------- Privacy section ---------- */
.privacy {
  background: linear-gradient(180deg, var(--bg-panel), var(--bg));
}
.privacy-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 800px) { .privacy-card { grid-template-columns: 1fr; padding: 28px; gap: 24px; } }
.privacy-card h3 {
  margin: 0 0 12px;
  font-size: 24px; letter-spacing: -0.015em;
}
.privacy-card p { margin: 0 0 12px; color: var(--fg-2); font-size: 14.5px; }
.privacy-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.privacy-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; color: var(--fg-2);
}
.privacy-list li::before {
  content: "✓"; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 12px;
  margin-top: 1px;
}

/* ---------- Does NOT do ---------- */
.notdo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 22px;
}
@media (max-width: 600px) { .notdo-grid { grid-template-columns: 1fr; } }
.notdo-item {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px; color: var(--fg-2);
}
.notdo-item .x {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 6px;
  background: var(--bg-panel); border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--fg-3); font-size: 12px;
}

/* ---------- Output examples ---------- */
.outputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 760px) { .outputs { grid-template-columns: 1fr; } }
.output-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.output-card header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.output-card header h4 { margin: 0; font-size: 14px; letter-spacing: -0.01em; }
.output-card header .tag {
  font-family: var(--mono); font-size: 11px;
  background: var(--bg-panel); color: var(--fg-3);
  padding: 3px 8px; border-radius: 999px;
}
.output-card .tree { padding: 14px 18px; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 880px; margin: 0 auto;
}
@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex; flex-direction: column;
}
.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px oklch(0.55 0.15 145 / 0.08), var(--shadow-md);
  position: relative;
}
.plan.featured::before {
  content: "Recommended";
  position: absolute; top: -11px; right: 24px;
  font-size: 11px; font-weight: 500;
  background: var(--fg); color: var(--bg-elev);
  padding: 4px 10px; border-radius: 999px;
}
.plan h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.015em; }
.plan .price {
  display: flex; align-items: baseline; gap: 6px;
  margin: 14px 0 4px;
}
.plan .price .num {
  font-size: 42px; font-weight: 600; letter-spacing: -0.025em;
}
.plan .price .per { color: var(--fg-3); font-size: 13px; }
.plan .price-sub { font-size: 12px; color: var(--fg-3); margin-bottom: 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan ul li {
  display: flex; gap: 10px; font-size: 13.5px; color: var(--fg-2);
}
.plan ul li::before {
  content: "✓"; color: var(--accent-ink); font-weight: 600;
}
.plan ul li.muted { color: var(--fg-3); }
.plan ul li.muted::before { content: "—"; color: var(--fg-3); }
.plan .btn { width: 100%; justify-content: center; }
.pricing-note {
  text-align: center;
  font-size: 13px; color: var(--fg-3);
  margin-top: 24px;
}

/* ---------- Download ---------- */
.download-card {
  background: var(--fg);
  color: #fbfcfd;
  border-radius: 18px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.download-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 90% 100%, oklch(0.55 0.15 145 / 0.25), transparent 70%);
  pointer-events: none;
}
@media (max-width: 760px) { .download-card { grid-template-columns: 1fr; padding: 32px; } }
.download-card h3 {
  margin: 0 0 10px; font-size: 26px; letter-spacing: -0.02em;
  text-wrap: balance;
}
.download-card p { margin: 0 0 20px; color: #c8ced7; font-size: 14.5px; }
.download-meta {
  font-family: var(--mono); font-size: 11.5px;
  color: #8892a0;
  display: grid; gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  position: relative;
}
.download-meta .row { display: flex; justify-content: space-between; gap: 12px; }
.download-meta .row span:first-child { color: #6b7280; }
.download-meta .row span:last-child { color: #c8ced7; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 500; font-size: 15.5px;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px; color: var(--fg-3);
  transition: transform .2s, color .2s;
  font-weight: 300;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--fg); }
.faq-item .answer {
  padding: 0 0 22px;
  color: var(--fg-2); font-size: 14.5px;
  max-width: 64ch;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center;
  padding: 80px 20px;
  border-top: 1px solid var(--border-subtle);
}
.cta-banner h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 600;
  text-wrap: balance;
}
.cta-banner p { color: var(--fg-2); margin: 0 0 26px; font-size: 16px; }
.cta-banner .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 36px;
  font-size: 13.5px;
  color: var(--fg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h6 {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg-3); margin: 0 0 14px; font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a:hover { color: var(--fg); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: var(--fg-3);
}
.footer-bottom .paddle { font-style: normal; }

/* ---------- Legal/support page chrome ---------- */
.doc {
  max-width: 760px; margin: 0 auto;
  padding: 64px 28px 96px;
  font-size: 15.5px; line-height: 1.7;
  color: var(--fg-2);
}
.doc h1 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0 0 8px;
  font-weight: 600;
}
.doc .updated {
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-3);
  margin-bottom: 32px;
}
.doc h2 {
  font-size: 20px; letter-spacing: -0.01em;
  color: var(--fg);
  margin: 38px 0 12px;
  font-weight: 600;
}
.doc h3 { font-size: 16px; color: var(--fg); margin: 24px 0 8px; }
.doc p { margin: 0 0 14px; }
.doc ul { padding-left: 22px; margin: 0 0 14px; }
.doc ul li { margin-bottom: 6px; }
.doc .placeholder-note {
  background: oklch(0.97 0.05 70);
  border: 1px solid oklch(0.86 0.08 70);
  color: oklch(0.40 0.10 70);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 24px;
}
.doc code {
  font-family: var(--mono); font-size: 13px;
  background: var(--bg-panel);
  padding: 2px 6px; border-radius: 5px;
  color: var(--fg);
}

/* ---------- Compare modal mockup — mirrors src/components/CompareModal.tsx ---------- */
/* Renders a static, self-contained Compare-with-applied modal as a hero
   visual under the trust strip. Uses the same OKLCH green accent token
   the real modal uses, plus dark-mode-friendly grays so the modal sits
   convincingly on a frosted backdrop without depending on any JS. */

.cmp-frame {
  margin: 32px auto 0;
  max-width: 980px;
  /* Frosted-card backdrop. Slightly tinted so the embedded modal pops
     against the page background without requiring an actual dark page
     theme. */
  background: linear-gradient(180deg, oklch(0.96 0.01 240), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.cmp-modal {
  background: #14171c;
  color: #e8eaee;
  border: 1px solid #262a31;
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 12.5px;
  box-shadow: 0 24px 60px rgba(20, 24, 30, 0.18);
}

.cmp-head {
  padding: 12px 18px;
  border-bottom: 1px solid #262a31;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cmp-title { font-size: 13.5px; font-weight: 600; }
.cmp-subtitle { font-family: var(--mono); font-size: 11px; color: #8892a0; }

/* Two-column header: Applied (on disk) | Live match. `minmax(0,1fr)`
   matches the real modal's pin against long-title overflow (see
   CompareModal.tsx round-1 review fix). */
.cmp-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 1px solid #262a31;
}
.cmp-col-right { border-left: 1px solid #262a31; }
.cmp-col-head { padding: 14px 18px; }
.cmp-col-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8892a0;
  margin-bottom: 8px;
}
.cmp-col-cand { display: flex; gap: 10px; align-items: center; }
.cmp-thumb {
  width: 36px; height: 50px;
  border-radius: 4px;
  background: #262a31;
  flex-shrink: 0;
}
.cmp-thumb.p-blue   { background: linear-gradient(135deg,#2a4a6a,#1a2a3a); }
.cmp-thumb.p-purple { background: linear-gradient(135deg,#4a2a6a,#2a1a3a); }
.cmp-col-meta { min-width: 0; flex: 1; }
.cmp-cand-title {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cmp-cand-sub {
  font-family: var(--mono); font-size: 10.5px;
  color: #8892a0;
  margin-top: 2px;
}

/* Diff rows. Three-column grid: label | applied value | live value. */
.cmp-rows {
  padding: 4px 0;
  max-height: 320px;
  overflow-y: auto;
}
.cmp-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  padding: 8px 18px;
  font-size: 12px;
  line-height: 1.5;
  border-bottom: 1px solid #1c1f25;
}
.cmp-row:last-child { border-bottom: none; }
.cmp-row-diff { background: rgba(255, 255, 255, 0.025); }
.cmp-row-label {
  font-family: var(--mono); font-size: 11px;
  color: #8892a0;
  text-transform: lowercase;
}
.cmp-row-val {
  display: flex; gap: 8px; align-items: center;
  min-width: 0;
  word-break: break-word;
}
.cmp-row-diff .cmp-row-val { color: #fbfcfd; }

/* Diff badges. ✓ = same (muted), ≠ = differs (accent). */
.cmp-eq, .cmp-neq {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}
.cmp-eq {
  background: transparent;
  color: #4a5260;
  border: 1px solid #2a2e36;
}
.cmp-neq {
  background: oklch(0.55 0.15 145 / 0.18);
  color: oklch(0.78 0.16 145);
  border: 1px solid oklch(0.55 0.15 145 / 0.4);
}

/* Footer with Close + Replace buttons. */
.cmp-foot {
  padding: 12px 18px;
  border-top: 1px solid #262a31;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.cmp-btn-ghost, .cmp-btn-primary {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  border: 1px solid transparent;
}
.cmp-btn-ghost {
  background: transparent;
  color: #e8eaee;
  border-color: #2a2e36;
}
.cmp-btn-primary {
  background: var(--accent);
  color: #0e1014;
  border-color: var(--accent);
}

.cmp-note {
  margin: 18px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.65;
}
.cmp-note code {
  font-family: var(--mono); font-size: 12px;
  background: var(--bg-panel);
  padding: 1px 5px; border-radius: 4px;
  color: var(--fg-2);
}

/* Stack the two columns on narrow screens so the modal stays readable
   without horizontal scroll. The diff rows already wrap thanks to
   minmax(0,1fr) + word-break. */
@media (max-width: 720px) {
  .cmp-frame { padding: 16px; }
  .cmp-cols { grid-template-columns: 1fr; }
  .cmp-col-right { border-left: none; border-top: 1px solid #262a31; }
  .cmp-row {
    grid-template-columns: 100px minmax(0, 1fr);
    grid-template-areas:
      "label applied"
      "label live";
    row-gap: 4px;
  }
  .cmp-row-label { grid-area: label; }
  .cmp-row-val:first-of-type { grid-area: applied; }
  .cmp-row-val:last-of-type { grid-area: live; opacity: 0.85; }
}

/* ---------- Language switcher (EN / 简体 / 繁體) ---------- */
/* Lives inside .nav-cta on every page; the active locale is wrapped in
   <strong>, the others are <a href="..."> to the parallel page. */
.lang-switcher {
  font-size: 12.5px;
  font-family: var(--mono);
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 4px;
}
.lang-switcher a {
  color: var(--fg-3);
  padding: 4px 6px;
  border-radius: 4px;
}
.lang-switcher a:hover {
  color: var(--fg);
  background: var(--bg-hover);
}
.lang-switcher strong {
  color: var(--fg);
  font-weight: 600;
  padding: 4px 6px;
}
@media (max-width: 760px) {
  /* On narrow screens the nav already hides .nav-links; keep the
     language switcher visible (it's a navigation primary) but tighten
     spacing so it doesn't crowd the download CTA. */
  .lang-switcher { font-size: 11px; gap: 2px; margin-right: 2px; }
}
