/* Layout concept: an audit report — a prioritized findings list is the hero,
   pages read like a clean inspection document with a mono data voice. */
:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --ink: #0f1c2b;
  --muted: #536274;
  --line: #dde3e8;
  --accent: #0b6b66;
  --accent-ink: #ffffff;
  --accent-soft: #e2f1ef;
  --high: #c2410c;
  --high-soft: #fdebe2;
  --med: #a16207;
  --med-soft: #fbf1d9;
  --low: #475569;
  --low-soft: #e9edf2;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 10px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c141d; --surface: #121d29; --ink: #e8eef3; --muted: #9aa9b8; --line: #223142;
    --accent: #3fb8ae; --accent-ink: #06201e; --accent-soft: #123432;
    --high: #fb8a5c; --high-soft: #3a1c10; --med: #e8b54a; --med-soft: #33270c;
    --low: #a7b4c2; --low-soft: #1c2836; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c141d; --surface: #121d29; --ink: #e8eef3; --muted: #9aa9b8; --line: #223142;
  --accent: #3fb8ae; --accent-ink: #06201e; --accent-soft: #123432;
  --high: #fb8a5c; --high-soft: #3a1c10; --med: #e8b54a; --med-soft: #33270c;
  --low: #a7b4c2; --low-soft: #1c2836; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--font-body); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.nav .btn { padding: 8px 14px; font-size: 14px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--accent-ink); }

.eyebrow { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 500; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-block: 72px 80px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 700; margin-top: 14px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 19px; color: var(--muted); margin-top: 20px; max-width: 34em; }
.hero .actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero .fine { margin-top: 16px; font-size: 14px; color: var(--muted); }
.hero-copy { min-width: 0; }

/* Report mock */
.report { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(15, 28, 43, 0.35); overflow: hidden; min-width: 0; }
.report-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.report-head strong { font-family: var(--font-display); font-size: 17px; }
.report-head span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.kpi { padding: 14px 22px; border-right: 1px solid var(--line); min-width: 0; }
.kpi:last-child { border-right: 0; }
.kpi .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.kpi .v { font-family: var(--font-mono); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.kpi .d { font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.down { color: var(--high); }
.up { color: var(--accent); }
.tasks { list-style: none; margin: 0; padding: 6px 0; }
.task { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: start; padding: 12px 22px; border-top: 1px solid var(--line); }
.task:first-child { border-top: 0; }
.task .n { font-family: var(--font-mono); font-size: 13px; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.task .t { font-weight: 600; font-size: 15px; line-height: 1.35; }
.task .why { font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.chip { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.chip.high { color: var(--high); background: var(--high-soft); }
.chip.med { color: var(--med); background: var(--med-soft); }
.chip.low { color: var(--low); background: var(--low-soft); }
.report-foot { padding: 10px 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

/* Sections */
section.block .wrap { padding-block: 80px; }
section.block + section.block .wrap { border-top: 1px solid var(--line); }
.section-head { max-width: 40em; display: grid; gap: 14px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
.section-head p { color: var(--muted); font-size: 18px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 48px; }
@media (max-width: 1100px) and (min-width: 901px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step { display: grid; gap: 10px; align-content: start; min-width: 0; }
.step .num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 600; }
.step h3 { font-size: 21px; }
.step p { color: var(--muted); font-size: 16px; }

.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin-top: 40px; }
.check { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); min-width: 0; }
.check .area { font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); font-weight: 600; padding-top: 3px; }
.check h3 { font-family: var(--font-body); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.check p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; margin-top: 44px; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px; display: grid; gap: 18px; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price .amt { font-family: var(--font-display); font-size: 56px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price .per { color: var(--muted); font-size: 16px; }
.incl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.incl li { padding-left: 26px; position: relative; font-size: 16px; }
.incl li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.price-notes { display: grid; gap: 18px; }
.price-notes h3 { font-family: var(--font-body); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.price-notes p { color: var(--muted); font-size: 16px; margin-top: 4px; }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; }
.trust div { display: grid; gap: 8px; align-content: start; min-width: 0; }
.trust h3 { font-family: var(--font-body); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.trust p { color: var(--muted); font-size: 15.5px; }

/* Advertising services */
.ads-band { background: var(--accent-soft); border-radius: 14px; padding: 44px 40px; display: grid; gap: 22px; }
.ads-band .section-head p a { color: var(--accent); font-weight: 600; }
.ads-note { font-size: 14.5px; color: var(--muted); max-width: 46em; border-top: 1px solid var(--line); padding-top: 18px; }
@media (max-width: 520px) { .ads-band { padding: 28px 22px; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; gap: 16px; }
.contact-row { display: grid; gap: 2px; }
.contact-row .k { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.contact-row .v { font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .wrap { padding-block: 40px; display: grid; gap: 22px; }
.foot-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--ink); }
.legal { font-size: 13.5px; color: var(--muted); line-height: 1.6; max-width: 62em; }

/* Legal pages */
.doc .wrap { padding-block: 56px 88px; }
.doc-body { max-width: 720px; }
.doc-body h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 700; margin-top: 12px; }
.doc-body .updated { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-top: 12px; }
.doc-body h2 { font-size: 23px; font-weight: 700; margin-top: 44px; margin-bottom: 12px; }
.doc-body h3 { font-family: var(--font-body); font-size: 17px; font-weight: 600; letter-spacing: 0; margin-top: 24px; margin-bottom: 6px; }
.doc-body p, .doc-body li { color: var(--ink); font-size: 16.5px; }
.doc-body p + p { margin-top: 12px; }
.doc-body ul { padding-left: 22px; margin: 10px 0 0; display: grid; gap: 6px; }
.doc-body .intro { font-size: 18px; color: var(--muted); margin-top: 20px; }
.table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap th { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); border-top: 0; background: var(--surface); }

@media (max-width: 900px) {
  .hero .wrap, .pricing, .contact { grid-template-columns: 1fr; gap: 40px; }
  .hero .wrap { padding-block: 48px 56px; }
  .checks { grid-template-columns: 1fr; }
  .steps, .trust { grid-template-columns: 1fr; gap: 28px; }
  section.block .wrap { padding-block: 60px; }
}
@media (max-width: 520px) {
  .check { grid-template-columns: 1fr; gap: 6px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); border-right: 0; }
  .task { grid-template-columns: 22px 1fr; }
  .task .chip { grid-column: 2; justify-self: start; }
  .nav { gap: 14px; }
  .nav .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Task links in example report */
.task .links { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); margin-top: 6px; letter-spacing: 0.01em; }

/* Connected diagnosis */
.diag { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.diag-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.diag-q { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.diag-lead { color: var(--muted); font-size: 15px; }
.diag-card ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 0; }
.diag-card li { font-size: 15.5px; color: var(--muted); padding: 11px 0 11px 22px; border-top: 1px solid var(--line); position: relative; }
.diag-card li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); }
.diag-card li b { color: var(--ink); font-weight: 600; }
.rank { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.rank div { display: grid; gap: 6px; align-content: start; min-width: 0; }
.rank h3 { font-family: var(--font-body); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.rank p { color: var(--muted); font-size: 15.5px; }

/* Area matrix */
.matrix-wrap { overflow-x: auto; margin-top: 40px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.matrix { border-collapse: collapse; width: 100%; min-width: 620px; }
.matrix th, .matrix td { padding: 14px 18px; border-top: 1px solid var(--line); text-align: center; vertical-align: middle; }
.matrix thead th { border-top: 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.matrix thead th:first-child, .matrix tbody th { text-align: left; }
.matrix tbody th { font-weight: 400; width: 46%; }
.matrix tbody th b { display: block; font-weight: 600; font-size: 16px; color: var(--ink); }
.matrix tbody th span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.matrix i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line); }
.matrix i.on { background: var(--accent); border-color: var(--accent); }
.matrix-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .diag, .rank { grid-template-columns: 1fr; }
  .rank { gap: 20px; }
}
@media (max-width: 520px) {
  .diag-card { padding: 22px; }
}

/* AI disclosure */
.ai-note { margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; display: grid; gap: 10px; max-width: 860px; }
.ai-note h3 { font-family: var(--font-body); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.ai-note p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 520px) { .ai-note { padding: 22px; } }
