/* Fizz Labs Accessibility Check. No external fonts, no third-party assets. */
:root {
  --bg: #ffffff;
  --surface: #f5f6f8;
  --surface-2: #eceef2;
  --ink: #15171c;
  --muted: #4a505c;
  --line: #d5d9e0;
  --accent: #1f4fd1;
  --accent-ink: #ffffff;
  --accent-soft: #e8eefc;
  --critical: #a4161a;
  --serious: #b23c00;
  --moderate: #7a5a00;
  --minor: #3d4b5c;
  --ok: #1d6b3a;
  --focus: #f0b400;
  --radius: 10px;
  --max: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #1a1d23;
    --surface-2: #232730;
    --ink: #eef0f4;
    --muted: #b4bac6;
    --line: #353b46;
    --accent: #8fb0ff;
    --accent-ink: #0b1430;
    --accent-soft: #1d2740;
    --critical: #ff8a8a;
    --serious: #ffab76;
    --moderate: #f2d16b;
    --minor: #c3cddb;
    --ok: #7fd6a0;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

header.site { border-bottom: 1px solid var(--line); background: var(--bg); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand strong { font-size: 18px; letter-spacing: -0.01em; }
.brand span { color: var(--muted); font-size: 14px; }
nav.top ul { list-style: none; display: flex; gap: 4px 18px; margin: 0; padding: 0; flex-wrap: wrap; font-size: 15px; }
nav.top a { color: var(--ink); text-decoration: none; padding: 6px 0; display: inline-block; }
nav.top a:hover { text-decoration: underline; }
.lang { font-weight: 600; }

.hero { padding: 56px 0 32px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 16px; max-width: 18ch; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 62ch; margin: 0 0 24px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn.secondary { background: transparent; color: var(--accent); }
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

section.block { padding: 40px 0; border-top: 1px solid var(--line); }
section.block h2 { font-size: 28px; letter-spacing: -0.01em; margin: 0 0 8px; }
section.block > .wrap > p.sub { color: var(--muted); margin: 0 0 24px; max-width: 70ch; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

.notice {
  border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 16px 0;
}
.disclaimer { font-size: 14px; color: var(--muted); }

/* Tabs */
[role="tablist"] { display: flex; gap: 8px; margin-bottom: 0; flex-wrap: wrap; }
[role="tab"] {
  font: inherit; font-weight: 600; padding: 10px 16px; min-height: 44px; border: 1px solid var(--line); border-bottom: none;
  border-radius: 8px 8px 0 0; background: var(--surface-2); color: var(--ink); cursor: pointer;
}
[role="tab"][aria-selected="true"] { background: var(--surface); box-shadow: inset 0 3px 0 var(--accent); }
[role="tabpanel"] { background: var(--surface); border: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) var(--radius); padding: 20px; }
textarea, input[type="text"], input[type="number"] {
  width: 100%; font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); background: var(--bg);
  border: 1px solid var(--muted); border-radius: 8px; padding: 10px 12px;
}
input[type="text"] { font-family: inherit; font-size: 16px; }
textarea { min-height: 200px; resize: vertical; }
label { font-weight: 600; display: block; margin: 0 0 6px; }
.hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.bm-link {
  display: inline-block; padding: 10px 16px; border: 2px dashed var(--accent); border-radius: 8px; font-weight: 700; text-decoration: none; cursor: grab;
}
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; margin: 8px 0 0; }

/* Results */
#results:empty { display: none; }
.results { margin-top: 24px; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 12px 0 20px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.stat b { display: block; font-size: 26px; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }
.rule { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 12px; }
.rule h4 { margin: 0 0 4px; font-size: 17px; }
.meta { font-size: 13px; color: var(--muted); display: flex; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 8px; }
.impact { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 12px; }
.impact.critical { color: var(--critical); } .impact.serious { color: var(--serious); }
.impact.moderate { color: var(--moderate); } .impact.minor { color: var(--minor); }
.rule ul.nodes { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.rule ul.nodes code { word-break: break-all; }
.upsell { background: var(--accent-soft); border-radius: var(--radius); padding: 16px 20px; margin-top: 16px; }
.preview-wrap { margin-top: 16px; }
.preview-scroll.offscreen { position: absolute; left: -99999px; top: 0; max-height: none; }
.preview-scroll { overflow: auto; max-height: 420px; border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; background: #fff; }
#scan-frame { width: 1280px; height: 900px; border: 0; display: block; }

/* Forms: BFSG + checklist */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 0; }
legend { font-weight: 600; padding: 0 4px; }
fieldset label { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; margin-right: 18px; min-height: 32px; }
.result-box { margin-top: 16px; padding: 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }
.result-box:empty { display: none; }
.result-box .status { font-weight: 700; }
details.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
details.panel summary { cursor: pointer; font-weight: 700; font-size: 18px; }
ul.checks { list-style: none; padding: 0; margin: 12px 0; }
ul.checks li { margin: 8px 0; }
ul.checks label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
ul.checks input { margin-top: 5px; width: 18px; height: 18px; flex: none; }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; align-items: stretch; }
.price { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.price.featured { border: 2px solid var(--accent); }
.price .tag { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; min-height: 20px; }
.price h3 { margin: 4px 0; font-size: 20px; }
.price .amount { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0; }
.price .amount small { font-size: 15px; font-weight: 500; color: var(--muted); }
.price ul { padding-left: 18px; margin: 10px 0 18px; color: var(--muted); flex: 1; }
.price .btn { width: 100%; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--muted); max-width: 75ch; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); background: var(--surface); }
footer.site p { margin: 6px 0; }
footer.site a { color: var(--ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.prose { max-width: 72ch; }
.prose h1 { font-size: 34px; margin: 40px 0 12px; }
.prose h2 { font-size: 22px; margin: 28px 0 8px; }
