/*
  Shared stylesheet for the landing site (index.html, privacy.html, terms.html).
  Palette and type stacks are carried over from the extension's own UI
  (src/library.css) so the marketing pages and the product look like one thing.
  No remote fonts: MV3 extension pages can't load them, and there's no reason
  for the site to diverge, so everything below is a local stack.
*/

:root {
  --bg: #f2f5f4;
  --panel: #ffffff;
  --panel-sunk: #e9eeec;
  --ink: #16211f;
  --ink-soft: #3c4b48;
  --muted: #5c6b68;
  --line: #d8e0de;
  --line-strong: #c2cecb;
  --accent: #0e6e62;
  --accent-soft: #dcece9;
  --amber: #b4601a;
  --amber-soft: #f6e7d8;

  --font-display: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --font-ui: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --radius: 4px;
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1211;
    --panel: #151d1b;
    --panel-sunk: #1a2321;
    --ink: #e9f0ed;
    --ink-soft: #c3cfcc;
    --muted: #8b9c98;
    --line: #26332f;
    --line-strong: #33443f;
    --accent: #55d2bd;
    --accent-soft: #16302c;
    --amber: #e0954a;
    --amber-soft: #332514;
  }
}

:root[data-theme="dark"] {
  --bg: #0d1211;
  --panel: #151d1b;
  --panel-sunk: #1a2321;
  --ink: #e9f0ed;
  --ink-soft: #c3cfcc;
  --muted: #8b9c98;
  --line: #26332f;
  --line-strong: #33443f;
  --accent: #55d2bd;
  --accent-soft: #16302c;
  --amber: #e0954a;
  --amber-soft: #332514;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- site header ---- */

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--accent); }

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

.hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 18px;
  max-width: 20ch;
}

.lede {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 11px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.btn:hover { border-color: var(--muted); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { filter: brightness(1.06); border-color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

/* ---- generic section rhythm ---- */

section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

section:last-of-type { border-bottom: none; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}

p { margin: 0 0 16px; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.section-intro {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: -12px 0 24px;
}

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

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature {
  background: var(--panel);
  padding: 22px 24px;
}


.feature p { font-size: 14px; color: var(--muted); margin: 0; }

@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
}

/* ---- screenshots ---- */

.shots {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

figure {
  margin: 0;
}

figure img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

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

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: none; }

.steps li::before {
  content: counter(step);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps p { margin: 0; }
.steps strong { font-weight: 600; }

/* ---- key/value strip (cost, byok) ---- */

.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.strip-item {
  flex: 1 1 180px;
  background: var(--panel);
  padding: 16px 18px;
}

.strip-item .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.strip-item .v {
  font-family: var(--font-mono);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

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

.checklist {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 15px;
}

.checklist li::before {
  content: "—";
  color: var(--accent);
  flex: 0 0 auto;
}

/* ---- code / mono labels ---- */

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--panel-sunk);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.1em 0.4em;
}

/* ---- policy page layout ---- */

.policy {
  padding: 48px 0 96px;
}

.policy .updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 40px;
}

.policy section {
  padding: 28px 0;
}

.policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 14px;
}

.policy th, .policy td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.policy th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.policy .table-wrap { overflow-x: auto; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }

.footer-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

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

@media (max-width: 640px) {
  .hero { padding: 44px 0 36px; }
  section { padding: 36px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
