/* Guest Reviews Exporter — one stylesheet for every page.
 *
 * System fonts only, no external requests, no inline styles (the CSP in
 * vercel.json forbids them, so every width and colour here is a class).
 * Accent is the extension's own teal (#0f5c55, 7.8:1 on white). Deliberately
 * not navy and not Yelp red: this is its own product and should not look like
 * a sibling's reskin or like it is speaking for Yelp.
 */

:root {
  --accent: #0f5c55;
  --accent-dark: #0a423d;
  --tint: #eef5f3;
  --line: #d9e3e0;
  --ink: #16201e;
  --muted: #4b5956;
  --warn-bg: #fff6e0;
  --warn-ink: #6b4a00;
  --measure: 880px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 16px/1.65 var(--sans);
  color: var(--ink);
  background: #fff;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-dark); text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

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

h1, h2, h3 { line-height: 1.25; text-wrap: balance; }
h1 { font-size: 36px; margin: 0 0 14px; letter-spacing: -0.015em; }
h2 { font-size: 24px; margin: 0 0 14px; letter-spacing: -0.01em; }
h3 { font-size: 16px; margin: 0 0 4px; }
p { margin: 0 0 12px; }

/* Top bar */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand img { display: block; width: 28px; height: 28px; border-radius: 6px; }
.top nav { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 14px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--accent); text-decoration: underline; }

/* Hero */
.hero { background: var(--tint); border-bottom: 1px solid var(--line); padding: 48px 0 40px; }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 640px; margin-bottom: 22px; }
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  text-decoration: none; font-weight: 700; padding: 13px 24px; border-radius: 10px;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.hero .fine { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* Sections */
main section { padding: 40px 0; border-bottom: 1px solid var(--line); }
main section:last-of-type { border-bottom: 0; }
.sub { color: var(--muted); max-width: 680px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); }

ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
ol.steps li { counter-increment: s; position: relative; padding-left: 46px; margin: 0; }
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center;
}

/* Worked example: the sample report */
figure.report { margin: 20px 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
figure.report figcaption { background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.rep-head { padding: 12px 18px; font-weight: 600; border-bottom: 1px solid var(--line); }
.rep-cols { display: grid; grid-template-columns: 1fr 1fr; }
.rep-col { padding: 14px 18px 18px; }
.rep-col + .rep-col { border-left: 1px solid var(--line); }
.rep-col h3 { font-size: 13px; margin: 18px 0 8px; }
.rep-col h3:first-child { margin-top: 0; }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.tile { flex: 1 1 110px; background: #f1f5f4; border-radius: 10px; padding: 8px 10px; min-width: 0; }
.tile .k { font-size: 12px; color: var(--muted); }
.tile .v { font-size: 19px; font-weight: 600; line-height: 1.3; }
.tile .d { font-size: 12px; color: var(--muted); }
.row { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 13px; }
.row .lab { width: 26px; }
.row .track { flex: 1; height: 8px; background: #e3e9e7; border-radius: 4px; overflow: hidden; }
.row .fill { height: 100%; background: var(--accent); }
.row .num { width: 84px; text-align: right; color: var(--muted); }
.w46 { width: 46%; } .w29 { width: 29%; } .w13 { width: 13%; } .w5 { width: 5%; } .w7 { width: 7%; }
svg.trend { display: block; width: 100%; height: auto; max-width: 420px; }
svg.trend .bar { fill: var(--accent); }
svg.trend .mon { font: 9px var(--sans); fill: var(--muted); }
.cap { font-size: 13px; font-weight: 600; margin: 6px 0 0; }
.small { font-size: 13px; color: var(--muted); }
.theme { margin: 0 0 14px; }
.theme .t { font-weight: 600; font-size: 14px; }
.theme .n { font-size: 13px; color: var(--muted); }
.theme blockquote { margin: 6px 0 0; padding: 6px 10px; border-left: 3px solid var(--accent); background: #f7faf9; font-size: 14px; }
.ql { margin-top: 4px; font-size: 12px; color: var(--muted); }
.cta-mock { margin-top: 12px; }
.cta-mock .small { margin: 0 0 6px; }
.mock-btn { display: inline-block; background: var(--accent); color: #fff; border-radius: 8px; padding: 7px 12px; font-size: 13px; }
.mock-link { display: block; margin-top: 8px; font-size: 12px; color: var(--accent); text-decoration: underline; }
.rep-foot { padding: 10px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); background: #fafcfb; }
.rep-foot p { margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0 0; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { border: 1px solid var(--line); padding: 8px 11px; text-align: left; vertical-align: top; }
th { background: var(--tint); }
td code, p code { font-family: var(--mono); font-size: 13px; background: #f2f6f5; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }

.price { font-size: 20px; }
.note { border-left: 3px solid var(--accent); background: var(--tint); padding: 10px 14px; margin: 18px 0 0; font-size: 15px; }

/* FAQ */
.faq h3 { margin-top: 20px; }
.faq h3:first-of-type { margin-top: 6px; }
.faq p { color: var(--muted); margin-bottom: 0; }

/* Privacy page */
.doc { padding-top: 32px; padding-bottom: 40px; }
.doc h2 { font-size: 20px; margin-top: 30px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }

footer { border-top: 1px solid var(--line); background: #fafcfb; padding: 24px 0 36px; font-size: 14px; color: var(--muted); }
footer p { margin: 0 0 8px; }

/* 404 */
.lost { text-align: center; padding-top: 72px; padding-bottom: 80px; }
.lost p { color: var(--muted); }

@media (max-width: 700px) {
  h1 { font-size: 28px; }
  h2 { font-size: 21px; }
  .hero { padding: 32px 0 28px; }
  .hero .lede { font-size: 17px; }
  .cards { grid-template-columns: 1fr; }
  .rep-cols { grid-template-columns: 1fr; }
  .rep-col + .rep-col { border-left: 0; border-top: 1px solid var(--line); }
  .btn { display: block; text-align: center; }
}

.mt { margin-top: 14px; }

/* Interim state before the Chrome Web Store listing exists (see SITE-SWITCH.md). */
.btn.off { background: #5c6b68; cursor: default; }
.btn.off:hover { background: #5c6b68; }
