/* CoverProof. One typeface (Atkinson Hyperlegible Next, made for legibility), evergreen for the brand,
   ink for text, and a highlighter yellow that marks evidence the way a reviewer marks a form. Status is
   never colour alone: every status has an icon and a word. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #1c2430;
  --muted: #4e5a63;
  --brand: #0f5c4c;
  --brand-dark: #0a4136;
  --brand-tint: #e3efeb;
  --paper: #ffffff;
  --panel: #f2f5f3;
  --rule: #d5ddd9;
  --mark: #f4d35e;
  --pass: #1e7a4c;
  --partial: #a15c00;
  --fail: #b3261e;
  --unknown: #5b6472;
  --stated: #3d4f8f;
  --radius: 10px;
  --measure: 66ch;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.625rem;
  --step-3: 2.0625rem;
  --step-4: 2.625rem;
  --step-5: 3.25rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--mark); border-radius: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 760; }
h2 { font-size: var(--step-2); font-weight: 720; }
h3 { font-size: var(--step-1); font-weight: 700; }
p, ul, ol, dl { margin: 0 0 1em; }
p, li { max-width: var(--measure); }
.small { font-size: var(--step--1); color: var(--muted); }
.mono { font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; font-size: 0.92em; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--ink); color: #fff; padding: 0.5rem 0.9rem; border-radius: 6px; z-index: 10; }
.skip:focus { left: 0.75rem; }

/* Header and footer */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 760; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 2rem; height: 2rem; }
.brand:hover { color: var(--ink); }
.site-head nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.site-head nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-head nav a:hover { text-decoration: underline; }
.who { color: var(--muted); font-size: var(--step--1); }
.site-foot { border-top: 1px solid var(--rule); background: var(--panel); margin-top: 4rem; padding: 2rem 0 2.5rem; font-size: var(--step--1); color: var(--muted); }
.site-foot nav { display: flex; gap: 1.25rem; margin: 0 0 1rem; flex-wrap: wrap; }
.site-foot nav a { color: var(--ink); }
.marks { max-width: 90ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 2.75rem; padding: 0.55rem 1.1rem; border-radius: 6px;
  border: 2px solid var(--brand); background: var(--paper); color: var(--brand);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn:hover { background: var(--brand-tint); color: var(--brand-dark); text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-plain { border-color: transparent; background: transparent; color: var(--brand); padding-inline: 0.5rem; }
.btn-plain:hover { background: var(--brand-tint); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn[hidden] { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 1.25rem 0 0.5rem; }

/* App pages */
.app-main { padding: 2.5rem 0 1rem; }
.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.panel + .panel { margin-top: 1.25rem; }
.panel h1 { font-size: var(--step-3); }
.ready { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.ready .panel + .panel { margin-top: 0; }
.intro { max-width: 52rem; }
.notice { border-left: 4px solid var(--brand); background: var(--brand-tint); padding: 0.85rem 1rem; border-radius: 0 6px 6px 0; margin: 0 0 1rem; }
.notice p { margin: 0; }
.notice.bad { border-color: var(--fail); background: #fbeceb; }
.notice.locked { border-color: var(--mark); background: #fdf6dc; }
.demo-note { border-color: var(--mark); background: #fdf6dc; }
.sub-line { font-weight: 600; }
.sub-line.ok { color: var(--pass); }
.progress { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); margin-top: 1rem; }
.progress[hidden] { display: none; }
.dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--brand); animation: pulse 1.2s ease-in-out infinite; flex: none; }
@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
.steps { padding-left: 1.3rem; }
.steps li { margin-bottom: 0.4rem; }
.steps li.done { color: var(--pass); }
.steps li.now { font-weight: 700; }
.perms { margin: 1rem 0; border-top: 1px solid var(--rule); padding-top: 0.75rem; }
.perms summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.perms ul { margin-top: 0.75rem; }

/* Answers form */
.answers h2 { font-size: var(--step-1); }
.field { margin: 0 0 1rem; }
.field label { display: block; font-weight: 650; margin-bottom: 0.3rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 2.75rem; padding: 0.5rem 0.65rem; font: inherit; color: var(--ink);
  border: 1px solid #8a969d; border-radius: 6px; background: var(--paper);
}
.field input:focus-visible, .field select:focus-visible { border-color: var(--ink); }

/* Landing page ticket */
.ticket { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.ticket-main { padding: clamp(1.25rem, 3vw, 2rem); }
.ticket-stub { padding: clamp(1.25rem, 3vw, 2rem); background: var(--panel); border-left: 2px dashed var(--rule); }
.ticket h1 { font-size: var(--step-3); }
.ticket dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; }
.ticket dt { color: var(--muted); }
.ticket dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Status badges */
.status { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; white-space: nowrap; }
.status .ico, .tally .ico { width: 1.05em; height: 1.05em; flex: none; }
.s-pass { color: var(--pass); }
.s-partial { color: var(--partial); }
.s-fail { color: var(--fail); }
.s-unknown { color: var(--unknown); }
.s-stated { color: var(--stated); }

/* The evidence pack */
.pack-tools { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1.5rem; }
.pack { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: clamp(1.25rem, 4vw, 3rem); }
.pack-head { border-bottom: 3px solid var(--ink); padding-bottom: 1.25rem; margin-bottom: 2rem; }
.pack-kind { color: var(--brand); font-weight: 700; margin-bottom: 0.25rem; }
.pack-head h1 { font-size: var(--step-4); margin-bottom: 0.75rem; }
.pack-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 0 0 1rem; }
.pack-meta div { display: flex; gap: 0.45rem; }
.pack-meta dt { color: var(--muted); }
.pack-meta dd { margin: 0; font-weight: 600; }
.tally { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; padding: 0; margin: 0; }
.tally li { display: inline-flex; align-items: center; gap: 0.35rem; }
.tally li:nth-child(1) { color: var(--pass); }
.tally li:nth-child(2) { color: var(--partial); }
.tally li:nth-child(3) { color: var(--fail); }
.tally li:nth-child(4) { color: var(--stated); }
.tally li:nth-child(5) { color: var(--unknown); }
.tally .n { font-weight: 800; font-size: 1.15em; }
.pack-section { margin-bottom: 2.5rem; }
.lede { color: var(--muted); }
.qa { list-style: none; padding: 0; margin: 0; counter-reset: q; border-top: 1px solid var(--rule); }
.qa-item { counter-increment: q; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) minmax(9rem, max-content); gap: 0.25rem 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); max-width: none; }
.qa-item::before { content: counter(q) "."; font-weight: 700; color: var(--muted); }
.qa-item .q { margin: 0; font-weight: 600; max-width: none; }
.qa-item .a { margin: 0; text-align: right; }
.qa-item .refs { grid-column: 2 / -1; margin: 0; font-size: var(--step--1); color: var(--muted); max-width: none; }
.check { border-top: 1px solid var(--rule); padding: 1.25rem 0; scroll-margin-top: 1rem; }
.check-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.check-head h3 { margin: 0; }
.finding { margin: 0.5rem 0 0.75rem; font-size: 1.05rem; }
.fix { background: var(--panel); border-radius: 6px; padding: 0.6rem 0.85rem; }
.fix-label { font-weight: 700; }
.source { font-size: var(--step--1); color: var(--muted); margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 0.85rem; }
table.data { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
table.data th, table.data td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--rule); vertical-align: top; overflow-wrap: anywhere; }
table.data thead th { background: var(--panel); font-weight: 700; }
table.data tbody th { font-weight: 600; }
details.rows { margin: 0 0 0.85rem; }
details.rows summary { cursor: pointer; color: var(--brand); font-weight: 700; margin-bottom: 0.5rem; }
.pack-foot { border-top: 3px solid var(--ink); padding-top: 1rem; font-size: var(--step--1); color: var(--muted); }

/* Home page */
.home-hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.home-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.home-hero h1 { font-size: clamp(2.25rem, 5vw, var(--step-5)); font-weight: 780; letter-spacing: -0.02em; max-width: 14ch; }
.home-hero .sub { font-size: var(--step-1); line-height: 1.45; color: var(--muted); max-width: 36ch; }
.price-line { font-weight: 700; }
mark { background: linear-gradient(transparent 12%, var(--mark) 12%, var(--mark) 88%, transparent 88%); color: inherit; padding: 0 0.15em; }

.sheet { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(15, 92, 76, 0.45); padding: 1.5rem 1.5rem 1.25rem; position: relative; }
.sheet-head { border-bottom: 2px solid var(--ink); padding-bottom: 0.6rem; margin-bottom: 0.4rem; }
.sheet-title { font-weight: 760; margin: 0; font-size: 1.1rem; }
.sheet-sub { margin: 0; color: var(--muted); font-size: var(--step--1); }
.sheet-qs { list-style: none; padding: 0; margin: 0; }
.sheet-qs li { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 0.25rem 1rem; }
.sheet-qs .sq { margin: 0; font-size: 0.95rem; max-width: none; }
.sheet-qs .sq b { color: var(--muted); font-weight: 700; margin-right: 0.3rem; }
.sheet-qs .sa { margin: 0; font-weight: 750; display: flex; align-items: flex-start; gap: 0.45rem; max-width: none; }
.sheet-qs .box { width: 1rem; height: 1rem; border: 2px solid var(--ink); border-radius: 2px; flex: none; margin-top: 0.2rem; position: relative; }
.sheet-qs .box::after { content: ""; position: absolute; left: 0.22rem; top: -0.05rem; width: 0.35rem; height: 0.65rem; border: solid var(--brand); border-width: 0 0.18rem 0.18rem 0; transform: rotate(40deg); }
.sheet-qs .box.part::after { left: 0.15rem; top: 0.33rem; width: 0.5rem; height: 0; border-width: 0 0 0.18rem 0; border-color: var(--partial); transform: none; }
.sheet-qs .evid { grid-column: 1 / -1; margin: 0; font-size: var(--step--1); color: var(--brand-dark); border-left: 3px solid var(--mark); padding-left: 0.6rem; max-width: none; }
.sheet figcaption { margin-top: 0.85rem; font-size: var(--step--1); color: var(--muted); }

.band { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.band.tint { background: var(--panel); }
.band h2 { font-size: var(--step-3); max-width: 24ch; }
.band .lede { font-size: var(--step-1); max-width: 52ch; }
.form-list { list-style: none; counter-reset: fq; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.form-list li { counter-increment: fq; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.75rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); max-width: none; }
.form-list li::before { content: counter(fq, decimal-leading-zero); font-weight: 760; color: var(--brand); }
.form-list strong { display: block; }
.form-list span { color: var(--muted); font-size: var(--step--1); }
.how { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; counter-reset: how; }
.how li { counter-increment: how; border-top: 3px solid var(--ink); padding-top: 0.85rem; max-width: none; }
.how li::before { content: "Step " counter(how); display: block; font-weight: 760; color: var(--brand); margin-bottom: 0.35rem; }
.how h3 { font-size: var(--step-1); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.ledger { border-top: 1px solid var(--rule); margin: 0; }
.ledger div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.ledger dt { font-weight: 700; }
.ledger dd { margin: 0; color: var(--muted); }
.price { border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.5rem; background: var(--paper); }
.price .amount { font-size: var(--step-4); font-weight: 800; line-height: 1; margin: 0 0 0.35rem; letter-spacing: -0.02em; }
.price .amount small { font-size: var(--step-0); font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price ul { padding-left: 1.2rem; }
.faq details { border-bottom: 1px solid var(--rule); padding: 0.9rem 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 0.6rem 0 0; }

/* Prose pages */
.prose { padding: 2.5rem 0 1rem; }
.prose h1 { font-size: var(--step-4); }
.prose h2 { font-size: var(--step-2); margin-top: 2rem; }

@media (max-width: 900px) {
  .home-hero .wrap, .split, .ready, .ticket { grid-template-columns: minmax(0, 1fr); }
  .ticket-stub { border-left: 0; border-top: 2px dashed var(--rule); }
  .form-list, .how { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .qa-item { grid-template-columns: 1.75rem minmax(0, 1fr); }
  .qa-item .a { grid-column: 2; text-align: left; }
  .sheet-qs li { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: var(--step-3); }
}
@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

@media print {
  @page { margin: 16mm 14mm; }
  body { font-size: 10.5pt; background: #fff; }
  .site-head, .site-foot, .pack-tools, .demo-note, .skip, .notice.locked { display: none !important; }
  .app-main { padding: 0; }
  .wrap { width: 100%; }
  .pack { border: 0; padding: 0; }
  .check { break-inside: avoid-page; }
  .qa-item { break-inside: avoid; }
  details.rows > summary { display: none; }
  details.rows > .table-wrap { display: block; }
  a { color: inherit; text-decoration: none; }
  .fix { border: 1px solid var(--rule); background: #fff; }
}
