/* 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; }

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--fg);
  color: var(--bg-elev);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

/* ---------- 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; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-left: auto;
  margin-right: 6px;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--fg);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 760px) {
  .nav-inner { gap: 10px; }
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0;
    background: rgba(250, 251, 252, 0.96);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 12px 28px;
    box-sizing: border-box;
  }
  .nav-links a:hover { background: var(--bg-hover); }
}
.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;
}
.hero-mockup-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

/* ---------- Hero screenshot carousel ---------- */
.hero-mockup-wrap.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}
.hero-mockup-wrap.carousel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.carousel-track {
  display: flex;
  transition: transform 0.35s ease;
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition: none;
  }
}
.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  background: rgba(18, 18, 22, 0.85);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.15s, border-color 0.15s;
}
.carousel-btn:hover {
  background: rgba(30, 30, 36, 0.95);
  border-color: var(--accent);
}
.carousel-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.carousel-dots button.active {
  background: var(--accent);
  transform: scale(1.25);
}
.carousel-dots button:hover {
  background: var(--fg-3);
}
.carousel-dots button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
}

/* ---------- Trust strip ---------- */
.trust {
  padding: 32px 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(4, 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;
}
.sec-head.center,
.sec-head.center .sec-eyebrow {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 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-art .a-tree-pad { padding-left: 14px; }
.how-it-works { background: linear-gradient(180deg, var(--bg-elev), var(--bg)); }
.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); }

/* Quick-start / guide pages use explicit numbers inside headings; hide the default list marker. */
.doc ol.steps { list-style: none; padding-left: 0; }

/* ---------- 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; }
.features-note {
  font-size: 13px;
  color: var(--fg-3);
  max-width: 64ch;
  margin: 22px auto 0;
  text-align: center;
}

/* ---------- 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; }
.btn-spaced { margin-top: 8px; }
.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;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1040px; margin: 0 auto;
}
@media (max-width: 900px) { .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-subtitle {
  margin: 0;
  color: var(--fg-2);
  font-size: 13.5px;
}
.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; }
.plan .btn + .btn { margin-top: 10px; }

/* ---------- 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; }
.btn-download-windows,
.download-card .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fbfcfd;
  border-color: rgba(255, 255, 255, 0.15);
}
.download-card .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}
.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;
}

/* ---------- 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-brand { margin-bottom: 14px; }
.footer-about {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--fg-3);
  max-width: 34ch;
}
.footer-domain { color: var(--fg-3); }
.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);
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 14px;
}
.doc th,
.doc td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.doc th {
  font-weight: 600;
  color: var(--fg);
  background: var(--bg-panel);
}
.doc tbody tr:last-child td { border-bottom: none; }
.doc blockquote {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--bg-panel);
  border-radius: 0 10px 10px 0;
  color: var(--fg);
  font-size: 14px;
}

/* ---------- 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; }
}


/* ---------- Adult-site palette overrides ---------- */
:root {
  --accent: oklch(0.65 0.18 55);
  --accent-ink: oklch(0.35 0.12 55);
  --accent-soft: oklch(0.96 0.04 55);
  --accent-line: oklch(0.86 0.08 55);
}

/* Orange-tinted hero gradients instead of the default green ones. */
.hero::before {
  background:
    radial-gradient(60% 50% at 80% -10%, oklch(0.96 0.05 55) 0%, transparent 60%),
    radial-gradient(40% 40% at 0% 0%, oklch(0.97 0.02 30) 0%, transparent 70%);
}

/* Adult favicon uses the orange accent. */
.brand-mark { background-image: url('favicon.svg'); }

/* Adult-specific components */
.section { padding: 96px 0; }
.narrow { max-width: 720px; margin: 0 auto; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
  text-align: left;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card h2 { margin-top: 0; }
.card .btn { margin-top: 8px; }

.steps { margin: 24px 0; padding-left: 1.3em; }
.steps li { margin-bottom: 0.6em; }

.callout {
  padding: 18px 20px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  margin: 28px 0;
}
.callout.warn { border-left-color: var(--warn); background: oklch(0.96 0.04 70); }

.code-block {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 44px 14px 16px;
  overflow-x: auto;
  margin: 12px 0 20px;
}
.code-block code { background: transparent; padding: 0; color: var(--accent-ink); }
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elev);
  color: var(--fg-2);
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.copy-btn:hover { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-soft); }
.copy-btn.copied { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-soft); }

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  z-index: 300;
  padding: 10px 18px;
  background: var(--fg);
  color: var(--bg-elev);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.small { color: var(--fg-3); font-size: 0.9rem; }

/* Language switcher in adult nav */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fg-2);
}
.lang-switcher a { color: var(--fg-2); }
.lang-switcher a:hover { color: var(--fg); }
.lang-switcher strong { color: var(--fg); font-weight: 600; }

/* Age gate overlay */
.age-gate {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 17, 21, .94);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.age-gate[hidden] { display: none; }
.age-gate-box {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 520px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.age-gate-box h2 { color: var(--warn); margin-bottom: 12px; }
.age-gate-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.age-gate-actions button {
  border: none; border-radius: 8px; padding: 12px 24px; font-weight: 600; font-size: 15px;
}
.age-yes { background: var(--accent); color: var(--accent-ink); }
.age-no { background: transparent; color: var(--fg-2); border: 1px solid var(--border); }

/* Footer uses the same grid as the main site. */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h6 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 14px; color: var(--fg); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--fg-2); }
.footer-grid a:hover { color: var(--fg); }
.footer-about { color: var(--fg-2); max-width: 32ch; margin-top: 12px; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}
