/* Tracking Checkup - single stylesheet for all pages. No external assets. */

:root {
  color-scheme: light dark;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #1b222c;
  --muted: #56606e;
  --line: #dcdfe5;
  --accent: #0f5c4c;
  --accent-ink: #ffffff;
  --link: #0f5c4c;
  --ok: #17694a;      --okbg: #e4f3eb;
  --bad: #a8261e;     --badbg: #fcebe9;
  --warn: #7a5000;    --warnbg: #fff3d6;  --warnline: #c98f00;
  --info: #1f5a9e;    --infobg: #e7f0fa;
  --grey: #eef0f3;    --greyink: #414a58;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181d;
    --surface: #1c2229;
    --ink: #e8ebef;
    --muted: #a3acb8;
    --line: #333c47;
    --accent: #7fd6bf;
    --accent-ink: #0c1a17;
    --link: #7fd6bf;
    --ok: #7ad6a8;      --okbg: #173328;
    --bad: #ff9d94;     --badbg: #3d1c19;
    --warn: #f0c462;    --warnbg: #3a2e10;  --warnline: #c98f00;
    --info: #94c1f2;    --infobg: #18304b;
    --grey: #272e37;    --greyink: #c3cad3;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.site-header nav { display: flex; gap: 18px; font-size: 15px; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); text-decoration: underline; }

.site-footer { margin-top: 64px; border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 14.5px; }
.site-footer p { margin: 0 0 6px; }
.site-footer address { font-style: normal; }

/* Typography */
h1 { font-size: 38px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }
h2 { font-size: 25px; line-height: 1.25; letter-spacing: -0.01em; margin: 56px 0 14px; }
h3 { font-size: 18px; margin: 22px 0 6px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }
.lead { font-size: 20px; color: var(--muted); }
.small { font-size: 14.5px; color: var(--muted); }

/* Landing page */
.hero { padding: 52px 0 8px; }
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 8px;
}
.button:hover { filter: brightness(1.08); }
.button.secondary { background: transparent; color: var(--link); border: 1.5px solid var(--link); padding: 11.5px 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0 10px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.panel h3 { margin-top: 0; }
.panel ul { margin-bottom: 0; }
.panel > :last-child { margin-bottom: 0; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 0 52px; margin: 0 0 20px; min-height: 36px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent);
  font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.steps strong { display: block; }

.price-box { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.price { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; margin: 0 0 4px; }
.price small { font-size: 17px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.promise { border-left: 4px solid var(--accent); padding: 2px 0 2px 14px; margin: 18px 0; }

.faq h3 { margin-top: 26px; }

/* Legal pages */
.doc { padding-top: 40px; }
.doc h1 { font-size: 32px; }
.doc h2 { font-size: 21px; margin-top: 36px; }

/* ---- Sample report (mirrors the layout of the real customer report) ---- */
.sample-banner { background: var(--warnbg); color: var(--warn); border-bottom: 1px solid var(--warnline); font-size: 15px; padding: 10px 0; }
.sample-banner strong { text-transform: uppercase; letter-spacing: .04em; }
.sample-banner a { color: inherit; }

.report { max-width: 900px; margin: 0 auto; padding: 32px 20px 24px; font-size: 15px; line-height: 1.55; }
.report h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: 0; }
.report .meta { color: var(--muted); margin: 0; }
.report h2 { font-size: 18px; margin: 34px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--line); letter-spacing: 0; }
.report h3 { font-size: 16px; margin: 6px 0; }
.report h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 4px; }
.report p { margin: 0 0 8px; }
.report ul { margin: 0 0 8px; padding-left: 20px; }
.headline { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-top: 18px; font-size: 16px; }
.counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.count { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.count b { display: block; font-size: 22px; }
.count span { color: var(--muted); font-size: 13px; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.report table { width: 100%; border-collapse: collapse; }
.report th, .report td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.report th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--grey); }
.report tr:last-child td { border-bottom: 0; }
.report table.matrix { min-width: 640px; }
.report table.evidence { min-width: 560px; }
.report table.evidence td, .report table.evidence th { padding: 5px 8px; font-size: 13px; }
.sub { color: var(--muted); font-size: 12.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.url { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; }
.nowrap { white-space: nowrap; }
.none { color: var(--muted); }
.status { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.status.ok { background: var(--okbg); color: var(--ok); }
.ev { display: inline-block; margin: 1px 3px 1px 0; padding: 1px 7px; border-radius: 20px; font-size: 12.5px; white-space: nowrap; }
.ev.std { background: var(--okbg); color: var(--ok); font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 8px; padding: 14px 16px; margin: 12px 0; break-inside: avoid; }
.card .tag { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 1px 8px; border-radius: 4px; }
.card.problem { border-left-color: var(--bad); }
.card.problem .tag { background: var(--badbg); color: var(--bad); }
.card.review { border-left-color: var(--warnline); }
.card.review .tag { background: var(--warnbg); color: var(--warn); }
.card.notobserved { border-left-color: #7a8494; }
.card.notobserved .tag { background: var(--grey); color: var(--greyink); }
.report-footer { margin-top: 36px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); padding-top: 12px; }

/* Phone widths */
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 22px; margin-top: 44px; }
  .lead { font-size: 18px; }
  .hero { padding-top: 36px; }
  .two-col { grid-template-columns: 1fr; }
  .counts { grid-template-columns: repeat(2, 1fr); }
  .button { display: block; text-align: center; width: 100%; }
  .actions { display: block; }
  .actions .button + .button { margin-top: 10px; }
  .price { font-size: 38px; }
  .price small { display: block; margin-top: 8px; line-height: 1.4; }
}

@media print {
  .site-header, .site-footer { display: none; }
  body { background: #fff; }
}
