/* Landing page + privacy policy. The page uses the extension's own colour tokens (sidepanel/sidepanel.css)
   and the system font the panel uses, so the site and the product read as one thing. Headings are set in
   Bricolage Grotesque (OFL, bundled in fonts/), the only typographic flourish. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #f7f7f9;
  --border: #e2e2e8;
  --text: #1f1f29;
  --muted: #6b6b7b;
  --accent: #7b68ee;
  --accent-hover: #6a57e0;
  --accent-text: #ffffff;
  --rec: #e5484d;
  --radius: 8px;
  --display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1b22;
    --surface: #24242d;
    --border: #383845;
    --text: #ececf1;
    --muted: #9a9aab;
    --accent: #8b7bf2;
    --accent-hover: #9d8ff5;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

img { max-width: 100%; height: auto; display: block; }
code { font-size: 0.92em; background: var(--surface); padding: 1px 5px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 92%;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }

p { margin: 0; max-width: 62ch; }
p + p { margin-top: 0.9em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

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

/* ---- Header ---- */

.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.brand img { width: 28px; height: 28px; }
.brand span { font-family: var(--display); font-stretch: 94%; letter-spacing: -0.01em; font-size: 1.05rem; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: var(--accent); }

/* ---- Buttons ---- */

.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---- Store badges (official artwork, unmodified) ---- */

.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.badge { display: inline-block; line-height: 0; border-radius: 6px; }
.badge img { height: 58px; width: auto; }
.badge:hover { opacity: 0.9; }
/* Once site.js knows the browser, lead with its store and offer the other as a line of text. */
.only-chromium, .only-firefox, .only-unknown { display: none; }
html:not([data-browser]) .only-unknown { display: inline; }
html[data-browser="chromium"] .badge-firefox { display: none; }
html[data-browser="chromium"] .only-chromium { display: inline; }
html[data-browser="firefox"] .badge-chrome { display: none; }
html[data-browser="firefox"] .only-firefox { display: inline; }
html[data-browser="unknown"] .only-unknown { display: inline; }

/* ---- Hero ---- */

.hero { padding: 64px 0 24px; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px; align-items: center;
}
.hero-copy .lead { font-size: 1.2rem; margin: 22px 0 28px; max-width: 46ch; }
.hero-copy .after { margin-top: 16px; }
.hero-media { position: relative; }
.hero-media img { border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 24px 60px -30px rgba(31, 31, 41, 0.45); }

/* The one lively element: the recording indicator, like the badge the extension puts on its icon. */
.rec {
  position: absolute; bottom: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  background: rgba(31, 31, 41, 0.86); color: #fff;
  font: 600 0.85rem/1 var(--body); font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}
.rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .rec i { animation: none; } }

/* ---- Sections ---- */

.section { padding: 72px 0 8px; }
.section > .wrap > h2 { margin-bottom: 10px; }
.section > .wrap > h2 + p { margin-bottom: 40px; }

/* How it works: a real sequence, so the steps are numbered. */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center;
  padding: 28px 0;
}
.steps li + li { border-top: 1px solid var(--border); }
.steps li:nth-child(even) .step-text { order: 2; }
.step-text::before {
  counter-increment: step; content: counter(step);
  display: block; font: 700 2.6rem/1 var(--display); font-stretch: 90%; color: var(--accent); margin-bottom: 10px;
}
.step-text h3 { font-size: 1.45rem; margin-bottom: 8px; }
.steps img { border-radius: 10px; border: 1px solid var(--border); }

/* Everything it does: a two-column list, not a grid of identical cards. */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; margin: 0; }
.features div { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 6px 14px; }
.features svg { width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.features dt { grid-column: 2; }
.features dd { grid-column: 2; margin: 0; color: var(--muted); }

/* Browser differences */
.compare { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 0.97rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--border); }
.compare th { font-weight: 600; }
.compare thead th { color: var(--muted); font-weight: 500; }
.compare td:first-child, .compare th:first-child { width: 40%; }

/* Questions */
.faq { display: grid; gap: 4px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 32px 16px 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 70ch; }

/* Privacy */
.privacy-box {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start;
  padding: 36px; border-radius: 14px; background: var(--surface);
}
.privacy-box ul { margin: 14px 0 0; padding-left: 20px; }
.privacy-box li + li { margin-top: 6px; }

/* ---- Footer ---- */

.site-footer { margin-top: 80px; padding: 28px 0 48px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: grid; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.coffee {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: #ffdd00; color: #111 !important; font-weight: 600; text-decoration: none;
}

/* ---- Policy page ---- */

.policy { max-width: 760px; margin: 0 auto; padding: 48px 24px 64px; }
.policy h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); margin-bottom: 6px; }
.policy h2 { font-size: 1.35rem; margin: 40px 0 10px; padding-top: 22px; border-top: 1px solid var(--border); }
.policy .meta { color: var(--muted); margin: 0 0 28px; }
.policy p, .policy li { max-width: 72ch; }
.policy table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.policy th { font-weight: 600; }
.policy .summary { padding: 16px 20px; border-radius: 12px; background: var(--surface); }
.policy .summary ul { margin: 8px 0 0; padding-left: 20px; }
.policy .summary li { margin: 4px 0; }

/* ---- Narrow screens ---- */

@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero .wrap, .steps li, .privacy-box { grid-template-columns: 1fr; }
  .steps li:nth-child(even) .step-text { order: 0; }
  .steps li { gap: 20px; }
  .features { grid-template-columns: 1fr; }
  .privacy-box { padding: 24px; }
  .section { padding-top: 56px; }
}
@media (max-width: 600px) {
  .site-nav { gap: 16px; }
  .compare { font-size: 0.9rem; }
  .compare th, .compare td { padding-right: 8px; }
  .compare td:first-child, .compare th:first-child { width: 32%; }
}
