/* Open Aisle: wayfinding-sign design system.
   Black type on signal yellow for the one bold element (the hero sign and
   the shelf-label results); everything else is quiet black on white.
   Set in Atkinson Hyperlegible Next (Braille Institute), self-hosted. */

@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-next-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/atkinson-hyperlegible-next-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --sign: #ffcc00;      /* signal yellow: 13.9:1 with black */
  --ink: #000;
  --paper: #fff;
  --floor: #edeff2;     /* store-floor grey for alternate bands */
  --steel: #4a5260;     /* secondary text: 7.9:1 on white */
  --rule: #c9ced6;      /* hairline separators (decorative only) */
  --exit: #00703c;      /* exit-sign green, used only for "fixed" states */
  --measure: 38rem;
  --wide: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --font: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-kerning: normal;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5rem); letter-spacing: -0.028em; line-height: 0.98; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.85rem); letter-spacing: -0.018em; line-height: 1.05; }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.005em; }
p, ul, ol, dl { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: 0.35em; }
strong { font-weight: 700; }
small, .small { font-size: 0.95rem; }
code, pre, kbd { font-family: var(--mono); font-size: 0.9em; }

a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.16em; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--sign); border-radius: 2px; }
.on-sign :focus-visible { box-shadow: 0 0 0 6px var(--paper); }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }
.lead { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); line-height: 1.45; max-width: 34em; }
.muted { color: var(--steel); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header */
.site-header { border-bottom: 2px solid var(--ink); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 2rem; height: 2rem; flex: none; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav li + li { margin-top: 0; }
.site-nav a { font-weight: 700; text-decoration: none; padding: 0.35rem 0; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 0.14em; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0.7rem 1.4rem;
  font: inherit; font-weight: 800; font-size: 1.1rem; line-height: 1.2; letter-spacing: -0.005em;
  color: var(--paper); background: var(--ink); border: 3px solid var(--ink); border-radius: 4px;
  text-decoration: none; cursor: pointer;
}
.button:hover { background: #262626; border-color: #262626; text-decoration: underline; text-underline-offset: 0.2em; }
.button.secondary { color: var(--ink); background: var(--paper); }
.button.secondary:hover { background: var(--floor); border-color: var(--ink); }
.button[disabled] { cursor: progress; background: var(--steel); border-color: var(--steel); text-decoration: none; }

/* Hero sign */
.sign { background: var(--sign); border-bottom: 2px solid var(--ink); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 60rem) { .hero .wrap { grid-template-columns: minmax(0, 1fr) 15rem; align-items: start; } }
.hero h1 { max-width: 12em; margin-bottom: 0.4em; }
.hero .lead { margin-bottom: 1.75rem; }
.pictogram { display: none; }
@media (min-width: 60rem) { .pictogram { display: block; width: 15rem; height: auto; margin-top: 0.4rem; } }

.scan-form { max-width: 44rem; }
.scan-form label { display: block; font-weight: 800; font-size: 1.2rem; margin-bottom: 0.15rem; }
.scan-form .hint { margin: 0 0 0.6rem; }
.field-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.field-row input {
  flex: 1 1 18rem; min-width: 0; min-height: 3.25rem; padding: 0.6rem 0.9rem;
  font: inherit; font-size: 1.2rem; color: var(--ink); background: var(--paper);
  border: 3px solid var(--ink); border-radius: 4px;
}
.field-row input[aria-invalid="true"] { border-width: 4px; }
.field-row .button { flex: 0 0 auto; }
@media (max-width: 30rem) { .field-row .button { flex: 1 1 100%; } }
.form-note { margin: 0.9rem 0 0; max-width: 40rem; }
.form-error { margin: 0.75rem 0 0; padding: 0.6rem 0.9rem; background: var(--paper); border: 3px solid var(--ink); border-left-width: 10px; font-weight: 700; max-width: 44rem; }
.form-error:empty { display: none; }
.status { margin: 0.6rem 0 0; font-weight: 700; }
.status:empty { margin: 0; }

/* Bands */
.band { padding: clamp(2.75rem, 7vw, 5.5rem) 0; }
.band.floor { background: var(--floor); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.band + .band:not(.floor) { border-top: 2px solid var(--ink); }
.band.floor + .band { border-top: 0; }
.band h2 { max-width: 20em; }
.section-intro { max-width: var(--measure); margin-bottom: 2rem; }

/* Facts */
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem 2.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }
.facts li { margin: 0; padding-left: 1rem; border-left: 6px solid var(--ink); }
.facts p { margin: 0 0 0.35rem; }
.facts .source { font-size: 0.95rem; color: var(--steel); }
.facts .source a { color: var(--steel); }

/* Route map: the shopper's journey through a store, in order */
.route { list-style: none; margin: 0 0 2.5rem; padding: 0; counter-reset: stop; display: grid; gap: 0; }
.route li { counter-increment: stop; position: relative; margin: 0; padding: 0 0 1.4rem 3.25rem; }
.route li::before {
  content: counter(stop); position: absolute; left: 0; top: -0.1rem;
  width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  font-weight: 800; background: var(--paper); border: 3px solid var(--ink); border-radius: 50%;
}
.route li::after { content: ""; position: absolute; left: calc(1.125rem - 3px); top: 2.15rem; bottom: 0; width: 6px; background: var(--ink); }
.route li:last-child::after { display: none; }
.route strong { display: block; font-size: 1.15rem; }
.route span { color: var(--steel); }
@media (min-width: 56rem) {
  .route { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .route li { padding: 3.25rem 0.75rem 0 0; }
  .route li::before { top: 0; left: 0; }
  .route li::after { top: calc(1.125rem - 3px); left: 2.25rem; right: 0; bottom: auto; width: auto; height: 6px; }
}

.checks { columns: 2 22rem; column-gap: 3rem; margin: 0; padding-left: 1.25em; }
.checks li { break-inside: avoid; }

/* Deliverables */
.split { display: grid; gap: 2rem 3rem; }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 2.1rem; }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.42em; width: 1.1rem; height: 0.6rem; border-left: 4px solid var(--exit); border-bottom: 4px solid var(--exit); transform: rotate(-45deg); }
.report-preview { border: 3px solid var(--ink); border-radius: 4px; background: var(--paper); padding: 1.25rem 1.25rem 1.5rem; }
.report-preview h3 { margin-bottom: 0.25rem; }

/* Price board */
.prices { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 3px solid var(--ink); }
.prices > li { margin: 0; display: grid; gap: 0.25rem 2rem; grid-template-columns: minmax(0, 1fr); padding: 1.25rem 0; border-bottom: 3px solid var(--ink); }
@media (min-width: 48rem) { .prices > li { grid-template-columns: 13rem minmax(0, 1fr) 12rem; align-items: baseline; } }
.prices h3 { margin: 0; font-size: 1.45rem; font-weight: 800; }
.prices p { margin: 0; }
.prices .price { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; }
@media (min-width: 48rem) { .prices .price { text-align: right; } }
.prices .price small { display: block; font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.prices .featured { background: var(--sign); border-left: 0; padding-left: 1rem; padding-right: 1rem; margin: 0 -1rem; }
.prices .featured .actions { margin-top: 0.9rem; }
.price-note { color: var(--steel); }

/* Honest promises */
.promises { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.promises li { margin: 0; }
.promises h3 { padding-top: 0.75rem; border-top: 6px solid var(--ink); }

/* FAQ */
.faq { max-width: 46rem; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 2px solid var(--ink); }
.faq summary { cursor: pointer; padding: 1rem 2.5rem 1rem 0; font-weight: 700; font-size: 1.2rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.7rem; font-size: 1.6rem; font-weight: 800; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 1rem; max-width: var(--measure); }

/* Closing sign */
.closing { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.closing .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.closing h2 { margin: 0; }

/* Footer */
.site-footer { padding: 2.5rem 0 3rem; border-top: 2px solid var(--ink); }
.site-footer .wrap { display: grid; gap: 1rem 3rem; }
@media (min-width: 56rem) { .site-footer .wrap { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer li + li { margin-top: 0; }
.site-footer p { margin: 0 0 0.5rem; }

/* Results: shelf-edge labels */
.results { padding: clamp(2rem, 5vw, 3.5rem) 0; border-bottom: 2px solid var(--ink); }
.results[hidden] { display: none; }
.results-head { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem; }
.results-head h2 { margin: 0; }
.results-head h2:focus { outline: none; box-shadow: none; }
.summary-line { font-size: 1.25rem; max-width: 40rem; }
.pages-checked { list-style: none; padding: 0; margin: 0 0 1.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: var(--steel); }
.pages-checked li + li { margin-top: 0; }
.labels { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }
.labels > li { margin: 0; }
.label { height: 100%; display: flex; flex-direction: column; border: 3px solid var(--ink); border-radius: 4px; background: var(--paper); }
.label-top { order: -1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.55rem 0.9rem; border-bottom: 3px solid var(--ink); }
.impact { font-weight: 800; font-size: 0.98rem; padding: 0.1rem 0.55rem; border: 2px solid var(--ink); border-radius: 3px; }
.impact-critical { background: var(--ink); color: var(--sign); }
.impact-serious { background: var(--sign); color: var(--ink); }
.impact-moderate { background: var(--paper); color: var(--ink); }
.impact-minor { background: var(--floor); color: var(--ink); }
.count { text-align: right; line-height: 1; }
.count b { display: block; font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; }
.count span { font-size: 0.9rem; color: var(--steel); }
.label-body { padding: 0.9rem 0.9rem 1rem; display: flex; flex-direction: column; flex: 1; }
.label-body h3 { margin-bottom: 0.4rem; }
.label-body p { margin-bottom: 0.6rem; }
.label-meta { margin-top: auto; padding-top: 0.6rem; border-top: 1px solid var(--rule); font-size: 0.95rem; color: var(--steel); }
.label details { margin-top: 0.6rem; }
.label summary { cursor: pointer; font-weight: 700; font-size: 1rem; }
.label pre { white-space: pre-wrap; word-break: break-all; background: var(--floor); padding: 0.6rem; margin: 0.5rem 0; border-radius: 3px; font-size: 0.82rem; max-height: 12rem; overflow: auto; }
.cant-check { columns: 2 20rem; column-gap: 3rem; }
.offer {
  display: grid; gap: 1rem 2rem; margin-top: 2rem; padding: 1.5rem; background: var(--sign); border: 3px solid var(--ink); border-radius: 4px;
}
@media (min-width: 56rem) { .offer { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.offer h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.35rem; }
.offer p { margin: 0; }
.offer .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.progress { height: 6px; background: rgba(0, 0, 0, 0.18); margin-top: 0.75rem; max-width: 44rem; overflow: hidden; border-radius: 3px; }
.progress[hidden] { display: none; }
.progress span { display: block; height: 100%; width: 35%; background: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .progress span { animation: aisle 1.6s ease-in-out infinite; }
  @keyframes aisle { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
}

/* Simple content pages (legal, statement, sample report) */
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem; border-bottom: 2px solid var(--ink); }
.page-head h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); margin-bottom: 0.3em; }
.page-body { padding: 2rem 0 4rem; }
.page-body h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-top: 2.25rem; }
.page-body h3 { margin-top: 1.5rem; }
.page-body table { border-collapse: collapse; width: 100%; margin: 0 0 1.5rem; font-size: 1rem; }
.page-body th, .page-body td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--rule); }
.page-body thead th { border-bottom: 3px solid var(--ink); }
.table-scroll { overflow-x: auto; }
.page-body pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--floor); padding: 0.9rem 1rem; margin: 0 0 1.25rem; border-radius: 3px; font-size: 0.88rem; line-height: 1.5; max-width: var(--measure); }
.table-scroll:focus-visible { outline-offset: 2px; }
.callout { border: 3px solid var(--ink); border-left-width: 10px; padding: 1rem 1.25rem; margin: 0 0 1.5rem; max-width: var(--measure); }
.callout p:last-child { margin-bottom: 0; }

@media print {
  .site-header nav, .skip, .closing, .scan-form, .site-footer ul { display: none; }
  .sign, .offer, .prices .featured { background: none; }
  body { font-size: 11pt; }
}
