/* GReviewSumm site — palette and type lifted from the extension's popup.html
   so the product and its site read as one thing. Fonts are self-hosted for the
   same reason they are in the extension: a page claiming "nothing leaves your
   machine" should not call fonts.googleapis.com on every load. */

@font-face {
  font-family: 'Syne';
  src: url('fonts/Syne.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans.woff2') format('woff2-variations');
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --bg: #0f0f13;
  --surface: #17171f;
  --surface2: #1e1e2a;
  --border: #2a2a3a;
  --text: #f0f0f8;
  --text-muted: #9a9ac0;   /* 6.09:1 on --surface2 */
  --accent: #6c63ff;        /* fills and borders only */
  --accent-text: #a78bfa;   /* accent as text — 6.06:1 */
  --accent-glow: rgba(108, 99, 255, 0.3);
  --pro: #34d399;
  --con: #f87171;
  --neutral: #fbbf24;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 960px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(30px, 5.5vw, 48px); letter-spacing: -0.01em; }
h2 { font-size: clamp(22px, 3.4vw, 30px); margin-bottom: 14px; }
h3 { font-size: 17px; margin-bottom: 7px; }
p { color: var(--text-muted); }
a { color: var(--accent-text); }
a:hover { color: var(--text); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.87em;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--text);
}

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15, 15, 19, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 10px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand span { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px; }
.nav-links { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 13.5px;
  padding: 7px 11px; border-radius: 7px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--text); background: var(--surface2);
}

/* ── Hero ── */
.hero { padding: 74px 0 56px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -50% 0 auto; height: 460px;
  background: radial-gradient(circle at 50% 0, rgba(108,99,255,.18), transparent 62%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero-icon {
  width: 78px; height: 78px; border-radius: 18px; margin: 0 auto 22px;
  box-shadow: 0 10px 40px var(--accent-glow); display: block;
}
.tagline { font-size: clamp(16px, 2.2vw, 19px); max-width: 620px; margin: 18px auto 0; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 100px; padding: 5px 13px; font-size: 12.5px;
  color: var(--text-muted); margin-bottom: 20px;
}
.pill b { color: var(--accent-text); font-weight: 600; white-space: nowrap; }
/* At 375px the pill was breaking mid-phrase ("Local-\nfirst"). */
@media (max-width: 460px) { .pill { font-size: 11.5px; padding: 5px 11px; } }

/* ── Buttons ── */
.cta-row { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 14.5px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s, color .15s;
}
.btn-primary {
  /* Darker than --accent on purpose: white on the original gradient measured
     4.23-4.32:1, under AA, and 14.5px semibold does not qualify as large text.
     This range is 5.18-5.63:1 at every stop. */
  background: linear-gradient(135deg, #5b52e0, #7c4fe0);
  color: #fff; box-shadow: 0 5px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 26px var(--accent-glow); color: #fff; }
.btn-secondary { background: var(--surface2); color: var(--text-muted); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-text); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; pointer-events: none; }

/* ── Sections ── */
section { padding: 54px 0; }
.section-head { margin-bottom: 30px; }
.section-head p { max-width: 640px; }

.grid { display: grid; gap: 15px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card p { font-size: 14.5px; margin-top: 2px; }
.card-icon { font-size: 21px; margin-bottom: 11px; display: block; }

/* ── Provider chips ── */
.providers { display: flex; flex-wrap: wrap; gap: 9px; }
.provider {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 100px; padding: 7px 15px; font-size: 13.5px; color: var(--text-muted);
}
.provider.local { border-color: rgba(52,211,153,.42); color: var(--pro); }

/* ── Steps ── */
.steps { counter-reset: s; display: grid; gap: 13px; }
.step { display: flex; gap: 15px; align-items: flex-start; }
.step::before {
  counter-increment: s; content: counter(s);
  flex-shrink: 0; width: 29px; height: 29px; border-radius: 50%;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--accent-text); font-weight: 700; font-size: 13.5px;
  display: flex; align-items: center; justify-content: center;
}

/* ── Screenshots ── */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.shot {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.shot img { width: 100%; display: block; }
.shot figcaption { padding: 11px 15px; font-size: 13px; color: var(--text-muted); }

/* ── Callouts ── */
.callout {
  border-left: 3px solid var(--accent);
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
}
.callout.warn { border-left-color: var(--neutral); }
.callout.good { border-left-color: var(--pro); }
.callout p + p { margin-top: 9px; }

/* ── Prose (privacy / support / changelog) ── */
.prose { max-width: 760px; }
.prose h2 { margin-top: 38px; }
.prose h3 { margin-top: 24px; }
.prose p, .prose li { font-size: 15.5px; }
.prose p + p { margin-top: 13px; }
.prose ul, .prose ol { margin: 12px 0 12px 22px; }
.prose li { margin-bottom: 7px; color: var(--text-muted); }
.prose strong { color: var(--text); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.prose th, .prose td {
  text-align: left; padding: 9px 12px;
  border-bottom: 1px solid var(--border); vertical-align: top;
}
.prose th { color: var(--text); font-weight: 600; }
.prose td { color: var(--text-muted); }
.updated { font-size: 13.5px; color: var(--text-muted); margin-top: 6px; }

/* ── Donation ── */
/* A tip line, deliberately quiet: one sentence, no card, no call to action.
   The address is a button until clicked, then it becomes the address itself. */
.donate-note { font-size: 13px; color: var(--text-muted); max-width: 640px; }
.donate-reveal {
  background: none; border: 0; padding: 0; text-align: left;
  font: inherit; color: var(--text);
  cursor: pointer; text-decoration: underline dotted;
}
.donate-reveal[data-revealed] {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; word-break: break-all;
  cursor: copy; text-decoration: none;
}
.donate-status { display: block; margin-top: 4px; font-size: 12px; color: var(--text-muted); }

/* ── Toast ── */
/* Copy confirmation, away from the address so it is not lost in the small
   print beneath it. Instructions stay inline in .donate-status, because a
   toast that vanishes is the wrong place for something you must act on. */
.toast {
  position: fixed; top: 18px; right: 18px; z-index: 100;
  display: flex; align-items: center; gap: 9px;
  max-width: min(320px, calc(100vw - 36px));
  padding: 12px 16px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5);
  color: var(--text); font-size: 14px; font-weight: 600;
  opacity: 0; transform: translateY(-10px); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.toast[data-visible] { opacity: 1; transform: none; }
.toast-tick { color: var(--pro); font-size: 15px; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; transform: none; }
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0 42px; margin-top: 34px;
}
.footer-inner { display: flex; gap: 15px; flex-wrap: wrap; align-items: center; }
.footer-links { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; text-decoration: none; }
.site-footer p { font-size: 13px; }

@media (max-width: 760px) {
  .grid-2, .grid-3, .shots { grid-template-columns: 1fr; }
  .nav { height: auto; padding: 11px 0; flex-wrap: wrap; }
  .nav-links { margin-left: 0; width: 100%; }
  section { padding: 40px 0; }
  .hero { padding: 48px 0 38px; }
}
