:root {
  --bg: #050505;
  --surface: #0d0d0f;
  --surface-2: #131316;
  --text: #f5f5f2;
  --muted: #aaaab2;
  --faint: #85858d;
  --line: #29292e;
  --line-strong: #66666f;
  --lime: #b9ff38;
  --lime-dark: #0f1a03;
  --danger: #ff726f;
  --warning: #ffc857;
  --ok: #85e89d;
  --radius: 18px;
  --wrap: 1240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(185,255,56,.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font: 400 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.marker-mode [data-a11y-target] { outline: 2px solid var(--lime); outline-offset: 4px; }
body.marker-mode .storefront [data-a11y-target] { outline-color: #315cff; }
a { color: inherit; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.storefront :focus-visible, dialog :focus-visible { outline-color: #315cff; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--lime); color: #050505; font-weight: 800; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.wrap { width: min(calc(100% - 40px), var(--wrap)); margin-inline: auto; }
.eyebrow { margin: 0 0 12px; color: var(--lime); font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(5,5,5,.9); backdrop-filter: blur(16px); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand strong { display: block; font-size: 14px; letter-spacing: .18em; }
.brand span span { display: block; margin-top: -3px; color: var(--faint); font-size: 12px; letter-spacing: .1em; }
.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-links a, .nav-links button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; border: 0; background: transparent; color: #d6d6da; font-weight: 650; text-decoration: none; cursor: pointer; }
.nav-links .lang { color: var(--lime); }

.hero { padding: 100px 0 66px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(340px,.9fr); gap: 70px; align-items: end; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 850px; margin-bottom: 24px; font-size: clamp(48px,7.5vw,102px); line-height: .94; letter-spacing: -.065em; }
h1 em { color: var(--lime); font-style: normal; }
.hero-copy { max-width: 720px; color: #b8b8c0; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 19px; border: 1px solid var(--lime); border-radius: 9px; background: var(--lime); color: #050505; font-weight: 800; text-decoration: none; cursor: pointer; }
.button.secondary { border-color: var(--line-strong); background: transparent; color: var(--text); }
.button:hover { filter: brightness(.93); }
.hero-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg,rgba(185,255,56,.08),var(--surface) 45%); }
.hero-card strong { display: block; font-size: 40px; line-height: 1; }
.hero-card > span { display: block; margin-top: 9px; color: var(--muted); }
.hero-card ul { margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.hero-card li { display: flex; gap: 9px; padding: 6px 0; color: #d8d8dc; }
.hero-card li::before { content: "✓"; color: var(--lime); font-weight: 900; }

section { padding: 86px 0; }
.section-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.62fr); gap: 60px; align-items: end; margin-bottom: 42px; }
.section-head h2 { max-width: 780px; margin-bottom: 0; font-size: clamp(34px,5vw,62px); line-height: 1.02; letter-spacing: -.045em; }
.section-head > p { margin-bottom: 0; color: var(--muted); }

.lab-shell { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.55fr); gap: 18px; align-items: start; }
.storefront { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #f3f1eb; color: #151515; color-scheme: light; box-shadow: 0 32px 100px rgba(0,0,0,.35); }
.storefront, .storefront button, .storefront input { color-scheme: light; }
.store-bar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 26px; border-bottom: 1px solid #d3d0c8; }
.store-logo { font-weight: 900; letter-spacing: .18em; }
.store-bar nav { display: flex; gap: 20px; }
.store-bar a { min-height: 44px; display: inline-flex; align-items: center; color: #303030; font-size: 13px; font-weight: 700; text-decoration: none; }
.cart-pill { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; border: 1px solid #aaa69d; border-radius: 999px; background: transparent; color: #151515; font-weight: 800; }
.product-layout { display: grid; grid-template-columns: 1.05fr .95fr; }
.product-art { min-height: 570px; display: grid; place-items: center; padding: 42px; background: linear-gradient(145deg,#dedbd2,#f8f6f0); }
.product-art img { width: min(100%,620px); height: auto; filter: drop-shadow(0 30px 25px rgba(48,40,25,.2)); }
.product-panel { position: relative; min-width: 0; padding: 46px 38px; background: #fff; color: #151515; }
.product-kicker { color: #5e5a52; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.product-panel h3 { margin-bottom: 8px; font-size: 42px; line-height: 1; letter-spacing: -.045em; }
.rating { display: flex; gap: 9px; align-items: center; color: #59554e; font-size: 13px; }
.stars { color: #171717; letter-spacing: 2px; }
.price { margin: 22px 0; font-size: 26px; font-weight: 850; }
.product-panel fieldset { margin: 22px 0; padding: 0; border: 0; }
.product-panel legend { margin-bottom: 10px; font-size: 13px; font-weight: 800; }
.option-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.option-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.option-label { min-width: 48px; min-height: 44px; display: grid; place-items: center; padding: 0 12px; border: 1px solid #77736b; border-radius: 8px; background: #fff; color: #151515; font-size: 13px; font-weight: 750; cursor: pointer; user-select: none; }
.option-input:checked + .option-label { border-color: #171717; background: #171717; color: #fff; }
.option-input[aria-invalid="true"] + .option-label { border-color: #a51f1b; }
.option-input:focus-visible + .option-label { outline: 3px solid #315cff; outline-offset: 2px; }
.field-error { min-height: 24px; margin: -12px 0 10px; color: #a51f1b; font-size: 13px; font-weight: 750; }
.buy-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.buy-button, .shipping-button { min-height: 50px; border: 1px solid #171717; border-radius: 8px; font-weight: 850; cursor: pointer; }
.buy-button { background: #171717; color: #fff; }
.shipping-button { min-width: 52px; background: #fff; color: #171717; }
.store-status { min-height: 26px; margin: 10px 0 0; color: #1d622f; font-size: 13px; font-weight: 750; }
.product-details { margin-top: 18px; border-top: 1px solid #dedbd4; }
.product-details summary { min-height: 48px; display: flex; align-items: center; font-weight: 800; cursor: pointer; }
.product-details p { color: #555149; font-size: 14px; }

.audit-panel { position: sticky; top: 92px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.audit-score { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.score { width: 64px; height: 64px; display: grid; place-items: center; border: 2px solid var(--lime); border-radius: 50%; color: var(--lime); font-size: 22px; font-weight: 900; }
.audit-score strong { display: block; }
.audit-score span { color: var(--muted); font-size: 12px; }
.audit-list { margin: 18px 0; padding: 0; list-style: none; }
.audit-list li { display: grid; grid-template-columns: 18px 1fr; gap: 9px; padding: 10px 0; color: #d8d8dc; font-size: 13px; }
.audit-list li::before { content: "✓"; color: var(--ok); font-weight: 900; }
.marker-toggle { width: 100%; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 9px; background: transparent; color: var(--text); font-weight: 750; cursor: pointer; }
.marker-toggle[aria-pressed="true"] { border-color: var(--lime); color: var(--lime); }

.findings { background: #080809; border-block: 1px solid var(--line); }
.finding-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.finding-card { padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.finding-top { display: flex; justify-content: space-between; gap: 16px; }
.finding-no { color: var(--lime); font: 700 12px ui-monospace, monospace; }
.criterion { color: var(--faint); font: 600 12px ui-monospace, monospace; }
.finding-card h3 { margin: 16px 0 8px; font-size: 23px; }
.finding-card > p { color: var(--muted); font-size: 14px; }
.code-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.code-block { overflow: auto; padding: 15px; border-radius: 9px; background: #050505; }
.code-block span { display: block; margin-bottom: 8px; color: var(--faint); font: 700 12px ui-monospace, monospace; letter-spacing: .12em; }
.code-block.bad { border: 1px solid rgba(255,114,111,.35); }
.code-block.good { border: 1px solid rgba(133,232,157,.35); }
code { color: #dfe8d0; font: 500 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.finding-card p code, .report-table td code { font-size: .92em; }
.test-note { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); color: #d7d7db; font-size: 13px; }

.form-demo { margin-top: 20px; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.form-demo label { grid-column: 1 / -1; font-size: 13px; font-weight: 750; }
.form-demo input { min-height: 48px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 8px; background: #080809; color: var(--text); }
.form-demo button { min-height: 48px; padding: 0 16px; border: 1px solid var(--lime); border-radius: 8px; background: var(--lime); color: #050505; font-weight: 850; cursor: pointer; }
.form-demo .demo-error { grid-column: 1 / -1; min-height: 23px; margin: 0; color: #ff9b98; font-size: 13px; }

.report-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.report-table { width: 100%; min-width: 780px; border-collapse: collapse; background: var(--surface); }
.report-table th, .report-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13px; }
.report-table th { color: var(--faint); font: 700 12px ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.report-table tr:last-child td { border-bottom: 0; }
.status-fixed { color: var(--ok); font-weight: 800; }

.cta { padding-top: 20px; }
.cta-shell { padding: 54px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg,rgba(185,255,56,.12),var(--surface) 44%); }
.cta-shell h2 { max-width: 850px; margin-bottom: 16px; font-size: clamp(36px,5vw,68px); line-height: 1; letter-spacing: -.05em; }
.cta-shell p { max-width: 680px; color: var(--muted); }
.site-footer { margin-top: 80px; border-top: 1px solid var(--line); }
.footer { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--faint); font-size: 12px; }
.footer a { min-height: 44px; display: inline-flex; align-items: center; }

dialog { width: min(calc(100% - 32px),520px); padding: 0; border: 1px solid #77736b; border-radius: 14px; background: #fff; color: #151515; box-shadow: 0 30px 120px rgba(0,0,0,.55); }
dialog::backdrop { background: rgba(0,0,0,.72); }
.dialog-inner { padding: 28px; }
.dialog-inner h2 { margin-bottom: 12px; font-size: 28px; }
.dialog-inner p { color: #57534c; }
.dialog-actions { display: flex; justify-content: flex-end; margin-top: 24px; }
.dialog-actions button { min-height: 46px; padding: 0 17px; border: 1px solid #171717; border-radius: 8px; background: #171717; color: #fff; font-weight: 800; cursor: pointer; }

@media (max-width: 980px) {
  .hero-grid, .section-head, .lab-shell { grid-template-columns: 1fr; }
  .audit-panel { position: static; }
  .product-layout { grid-template-columns: 1fr; }
  .product-art { min-height: 420px; }
}

@media (max-width: 680px) {
  .wrap { width: min(calc(100% - 26px),var(--wrap)); }
  .nav { min-height: 64px; }
  .nav-links a:not(.lang) { display: none; }
  .hero { padding: 72px 0 50px; }
  h1 { font-size: clamp(44px,15vw,70px); }
  section { padding: 66px 0; }
  .store-bar { padding: 0 16px; }
  .store-bar nav { display: none; }
  .product-art { min-height: 310px; padding: 28px; }
  .product-panel { padding: 30px 22px; }
  .product-panel h3 { font-size: 36px; }
  .finding-grid, .code-pair { grid-template-columns: 1fr; }
  .form-demo { grid-template-columns: 1fr; }
  .cta-shell { padding: 34px 24px; }
  .footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 24px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
