:root {
  --ink: #101a2b;
  --paper: #f4f0e7;
  --paper-2: #e9e3d7;
  --white: #fffdf7;
  --orange: #ff6b35;
  --mint: #5ee0c2;
  --yellow: #f4c95d;
  --red: #db4b4b;
  --muted: #5e6572;
  --line: rgba(16, 26, 43, .17);
  --shadow: 0 22px 70px rgba(16, 26, 43, .16);
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; }
button, input { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header { height: 74px; padding: 0 max(20px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: var(--paper); background: var(--ink); font-size: 13px; letter-spacing: -.08em; transform: rotate(-2deg); }
.site-header nav { display: flex; gap: 24px; align-items: center; font-size: 14px; }
.site-header nav a, footer nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover, footer nav a:hover { color: var(--ink); }
.header-cta { padding: 10px 15px; background: var(--ink); color: white; text-decoration: none; font-size: 13px; font-weight: 700; }
.language-select { max-width: 128px; padding: 8px 26px 8px 9px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 700 12px/1 system-ui, sans-serif; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-160%); background: var(--ink); color: white; }
.skip-link:focus { transform: none; }

.hero { min-height: 700px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; padding-block: 78px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; text-transform: uppercase; font: 800 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.eyebrow span { width: 25px; height: 3px; background: var(--orange); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 25px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(50px, 6vw, 82px); line-height: .96; letter-spacing: -.055em; font-weight: 500; }
h1 em { color: var(--orange); font-weight: 500; }
.hero-lede { max-width: 640px; margin-bottom: 30px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.audit-form label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 800; }
.input-row { display: flex; padding: 6px; background: var(--white); border: 1px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); }
.input-row:focus-within { outline: 3px solid rgba(255, 107, 53, .35); outline-offset: 3px; }
.input-row input { min-width: 0; flex: 1; padding: 15px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.input-row button { display: flex; align-items: center; gap: 18px; border: 0; padding: 14px 18px; background: var(--orange); color: #1c100b; font-weight: 850; cursor: pointer; }
.input-row button:hover { background: #ff8053; }
.input-row button:disabled { cursor: wait; opacity: .65; }
.form-note { margin: 13px 0 0; color: var(--muted); font-size: 12px; }
.consent { display: flex !important; align-items: flex-start; gap: 9px; margin: 16px 0 0 !important; color: var(--muted); font-size: 12px !important; font-weight: 600 !important; line-height: 1.45; }
.consent input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--orange); }
.trust-row { display: flex; gap: 22px; margin-top: 27px; color: var(--muted); font-size: 12px; font-weight: 700; }
.trust-row span::before { content: "✓"; margin-right: 6px; color: #14866d; }

.preview-card { background: var(--ink); color: var(--white); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.window-bar { height: 44px; display: flex; align-items: center; gap: 7px; padding: 0 15px; border-bottom: 1px solid rgba(255,255,255,.15); }
.window-bar > span { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.window-bar > span:nth-child(2) { background: var(--yellow); }
.window-bar > span:nth-child(3) { background: var(--mint); }
.window-bar b { margin-left: auto; color: #9ba3b1; font: 500 10px ui-monospace, monospace; }
.preview-body { padding: 34px; }
.score-lockup { display: flex; align-items: center; gap: 22px; }
.score-ring { width: 108px; height: 108px; flex: 0 0 108px; display: grid; place-content: center; border-radius: 50%; background: conic-gradient(var(--mint) calc(var(--score) * 1%), rgba(255,255,255,.12) 0); position: relative; text-align: center; }
.score-ring::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--ink); }
.score-ring strong, .score-ring span { z-index: 1; }
.score-ring strong { font: 700 38px Georgia, serif; }
.score-ring span { color: #9ba3b1; font-size: 11px; }
.micro { margin-bottom: 6px; color: var(--mint); font: 700 10px ui-monospace, monospace; letter-spacing: .12em; }
.score-lockup h2 { margin-bottom: 5px; font: 500 27px Georgia, serif; }
.score-lockup p:last-child { color: #aab1bc; font-size: 12px; line-height: 1.5; }
.mini-stages { margin-top: 30px; display: grid; gap: 17px; }
.mini-stages div { display: grid; grid-template-columns: 1fr auto; gap: 7px 20px; font-size: 12px; }
.mini-stages b { font: 600 11px ui-monospace, monospace; }
.mini-stages i { grid-column: 1/-1; height: 5px; background: rgba(255,255,255,.11); position: relative; }
.mini-stages i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--mint); }
.mini-stages i.warn::after { background: var(--yellow); }
.finding { display: flex; gap: 13px; margin-top: 28px; padding: 14px; background: rgba(255,255,255,.07); border-left: 3px solid var(--yellow); }
.finding > span { height: fit-content; padding: 3px 6px; color: var(--ink); background: var(--yellow); font: 800 10px ui-monospace, monospace; }
.finding p { margin: 0; font-size: 11px; line-height: 1.55; color: #c8cdd5; }
.finding em { color: var(--mint); font-style: normal; }

.signal-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); background: var(--paper-2); }
.signal-strip p { margin: 0; padding: 18px; text-align: center; border-right: 1px solid var(--line); text-transform: uppercase; font: 800 11px ui-monospace, monospace; letter-spacing: .08em; }
.signal-strip p:last-child { border-right: 0; }

.method { padding-block: 110px; }
.section-heading { display: grid; grid-template-columns: .9fr 1fr; column-gap: 70px; align-items: end; }
.section-heading .eyebrow { grid-column: 1/-1; }
.section-heading h2, .rubric-intro h2, .final-cta h2, .report-title h2 { margin: 0; font: 500 clamp(38px, 4.5vw, 62px)/1 Georgia, serif; letter-spacing: -.04em; }
.section-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.7; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; border: 1px solid var(--ink); }
.method-grid article { min-height: 270px; padding: 28px; border-right: 1px solid var(--ink); background: var(--white); }
.method-grid article:last-child { border: 0; }
.method-grid article > b { font: 700 12px ui-monospace, monospace; color: var(--orange); }
.method-grid h3 { margin: 76px 0 12px; font: 600 24px Georgia, serif; }
.method-grid p { color: var(--muted); font-size: 14px; line-height: 1.65; }

.rubric-section { padding-block: 20px 110px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; }
.rubric-intro { position: sticky; top: 30px; align-self: start; }
.rubric-list { border-top: 2px solid var(--ink); }
.rubric-list > div { display: grid; grid-template-columns: 50px 1fr auto; gap: 10px; align-items: center; padding: 17px 4px; border-bottom: 1px solid var(--line); }
.rubric-list b, .rubric-list em { font: 700 11px ui-monospace, monospace; }
.rubric-list b { color: var(--orange); }
.rubric-list em { font-style: normal; color: var(--muted); }

.report-section { padding-block: 95px; scroll-margin-top: 30px; }
.report-card { background: var(--white); border: 1px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.report-title { padding: 34px; display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: center; border-bottom: 1px solid var(--line); }
.report-title .score-ring { color: white; background-color: var(--ink); }
.report-title p { color: var(--muted); margin: 8px 0 0; }
.report-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.pill { padding: 6px 9px; border: 1px solid var(--line); font: 700 10px ui-monospace, monospace; text-transform: uppercase; }
.stage-table { width: 100%; border-collapse: collapse; }
.stage-table th, .stage-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
.stage-table th { color: var(--muted); font: 700 10px ui-monospace, monospace; text-transform: uppercase; }
.stage-table td:nth-child(2), .stage-table th:nth-child(2) { text-align: right; }
.status { display: inline-block; padding: 4px 7px; background: var(--paper-2); font: 800 9px ui-monospace, monospace; }
.status.pass { background: #c9f4e8; color: #095e4c; }
.status.fail { background: #ffd4cc; color: #8b2616; }
.status.missing_evidence { background: #f7e9b8; color: #725300; }
.priorities { padding: 32px; }
.priorities h3 { font: 600 26px Georgia, serif; }
.priority-item { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; padding: 17px 0; border-top: 1px solid var(--line); }
.priority-item > b { color: var(--orange); font: 800 11px ui-monospace, monospace; }
.priority-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.priority-item strong { display: block; margin-bottom: 3px; color: var(--ink); }
.priority-item em { color: #14866d; font: 700 11px ui-monospace, monospace; font-style: normal; }
.error-box { padding: 22px; border: 1px solid var(--red); background: #fff0ec; color: #7d2116; }
.error-box p { margin: 7px 0 0; }

.final-cta { margin-bottom: 100px; padding: 65px; background: var(--orange); border: 1px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); text-align: center; }
.final-cta > p { font: 800 11px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .12em; }
.final-cta a { display: inline-flex; gap: 35px; margin-top: 28px; padding: 14px 18px; background: var(--ink); color: white; text-decoration: none; font-weight: 800; }

footer { min-height: 120px; padding: 30px max(20px, calc((100vw - 1180px) / 2)); display: flex; gap: 30px; align-items: center; border-top: 1px solid var(--line); }
footer p { margin: 0; color: var(--muted); font-size: 12px; }
footer nav { margin-left: auto; display: flex; gap: 24px; font-size: 12px; }

.legal-shell { width: min(760px, calc(100% - 40px)); margin: 80px auto 120px; }
.legal-shell h1 { font-size: clamp(48px, 8vw, 72px); }
.legal-shell h2 { margin-top: 48px; font: 600 27px Georgia, serif; }
.legal-shell p, .legal-shell li { color: #414957; line-height: 1.75; }
.legal-shell .notice { padding: 18px; background: var(--paper-2); border-left: 4px solid var(--orange); }
.legal-shell .header-cta { display: inline-block; margin-top: 12px; }
.language-hero { min-height: calc(100vh - 120px); display: grid; place-items: center; padding: 70px 20px; }
.language-panel { width: min(850px, 100%); }
.language-panel h1 { max-width: 760px; }
.language-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 44px; border: 1px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.language-grid a { min-height: 155px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border-right: 1px solid var(--ink); background: var(--white); text-decoration: none; }
.language-grid a:last-child { border: 0; }
.language-grid strong { font: 600 28px Georgia, serif; }
.language-grid span { color: var(--orange); font-weight: 800; }
.subpage-actions { margin-top: 38px; }
.footer-disclaimer { max-width: 530px; }

@media (max-width: 850px) {
  .site-header nav a { display: none; }
  .site-header nav { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 55px; padding-block: 60px; }
  .preview-card { transform: none; }
  .section-heading, .rubric-section { grid-template-columns: 1fr; gap: 40px; }
  .rubric-intro { position: static; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--ink); }
  .method-grid h3 { margin-top: 35px; }
  .signal-strip { grid-template-columns: 1fr 1fr; }
  .signal-strip p:nth-child(2) { border-right: 0; }
  .signal-strip p:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .report-title { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .shell { width: min(100% - 28px, 1180px); }
  .site-header { padding-inline: 14px; }
  .header-cta { display: none; }
  .language-select { max-width: 110px; }
  .input-row { display: block; }
  .input-row input, .input-row button { width: 100%; }
  .input-row button { justify-content: space-between; }
  .trust-row { flex-wrap: wrap; gap: 9px 18px; }
  .preview-body { padding: 22px; }
  .score-lockup { align-items: flex-start; }
  .score-ring { width: 88px; height: 88px; flex-basis: 88px; }
  .score-ring strong { font-size: 31px; }
  .signal-strip { grid-template-columns: 1fr; }
  .signal-strip p { border-right: 0; border-bottom: 1px solid var(--line); }
  .final-cta { padding: 44px 20px; }
  footer { align-items: flex-start; flex-direction: column; }
  footer nav { margin: 0; }
  .language-grid { grid-template-columns: 1fr; }
  .language-grid a { min-height: 112px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .stage-table th:nth-child(3), .stage-table td:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
