:root {
  --paper: #F5EEE4;
  --paper-bright: #FFFFFF;
  --ink: #241A17;
  --forest: #7A2727;
  --forest-light: #8F3A34;
  --signal: #E8917E;
  --signal-dark: #4A1815;
  --redline: #7A2727;
  --redline-light: #E8917E;
  --muted: #6E6259;
  --line: #E1D5C6;
  --serif: 'Archivo', sans-serif;
  --sans: 'Work Sans', sans-serif;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--redline); outline-offset: 4px; }

/* WCAG mode: opt-in, persisted accessibility overrides (see wcag-mode.js) */
html.wcag-mode, html.wcag-mode * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
html.wcag-mode { --muted: #2E211D; }
html.wcag-mode body { font-size: 19px; line-height: 1.75; letter-spacing: .01em; }
html.wcag-mode :focus-visible { outline: 4px solid var(--redline); outline-offset: 6px; }
html.wcag-mode .featured > p:not(.card-index, .price, .scope-note),
html.wcag-mode .pricing-card > p:not(.card-index, .price, .scope-note),
html.wcag-mode .pricing-card .price-unit,
html.wcag-mode .magnet-card.premium > p:not(.card-index),
html.wcag-mode .timeline p,
html.wcag-mode .legal-note,
html.wcag-mode .scope-note,
html.wcag-mode .contact-copy > p:not(.eyebrow, .response-note),
html.wcag-mode label span { color: #ffffff !important; }
html.wcag-mode input::placeholder,
html.wcag-mode textarea::placeholder { color: #e2e6e4 !important; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 16px; background: var(--signal); color: var(--ink); font-weight: 700; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: relative; z-index: 10; max-width: var(--max); min-height: 84px; margin: auto; padding: 18px clamp(24px, 5vw, 78px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: var(--paper-bright); background: var(--forest); font-family: var(--serif); font-style: italic; }
nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px 26px; min-width: 0; }
nav a, footer a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
nav a { text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
nav a:hover { text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 10px; justify-self: end; flex-shrink: 0; }

/* Accessible header dropdowns (Disclosure Navigation Menu pattern — see
   https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/). The trigger is a
   real <button aria-expanded aria-controls aria-haspopup="true">; the panel
   is a plain list of links reachable in normal DOM/tab order once revealed
   (no role="menu"/"menuitem" — these are navigation links, not app menu
   commands, so we don't take on the roving-tabindex contract that role
   implies). public/nav-dropdown.js wires click, Escape, arrow keys,
   click-outside, and an optional hover-open enhancement for mouse users. */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 5px; border: 0; padding: 0; background: none; color: inherit; font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.nav-dropdown-trigger:hover { text-decoration: underline; }
.nav-caret { font-size: 10px; line-height: 1; transition: transform 150ms ease; }
.nav-dropdown-trigger[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.nav-dropdown-panel { position: absolute; z-index: 20; top: 100%; left: 50%; margin: 14px 0 0; padding: 10px; list-style: none; min-width: 200px; transform: translateX(-50%); background: var(--paper-bright); border: 1px solid var(--line); border-radius: 2px; box-shadow: 0 12px 30px rgba(36, 26, 23, .18); }
.nav-dropdown-panel[hidden] { display: none; }
.nav-dropdown-panel a { display: block; padding: 11px 16px; border-radius: 2px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.nav-dropdown-panel a:hover, .nav-dropdown-panel a:focus-visible { color: var(--redline); background: var(--paper); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 21px; border: 2px solid var(--forest); border-radius: 2px; color: var(--paper-bright); background: var(--forest); text-decoration: none; font-weight: 800; cursor: pointer; box-shadow: 4px 4px 0 var(--signal); transition: transform 150ms ease, box-shadow 150ms ease; }
.button:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--signal); }
.button-small { min-height: 40px; padding: 8px 14px; font-size: 13px; box-shadow: none; }
.button-light { border-color: var(--signal); color: var(--ink); background: var(--signal); box-shadow: 4px 4px 0 var(--paper-bright); }
.button-toggle { color: var(--ink); background: var(--paper-bright); border-color: var(--ink); }
.button-toggle[aria-pressed="true"] { color: var(--ink); background: var(--signal); border-color: var(--signal-dark); }

/* Mobile hamburger toggle (hidden on desktop; shown <=1280px, see media query) */
.mobile-menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 2px solid var(--forest); border-radius: 2px; background: var(--paper-bright); cursor: pointer; }
.hamburger-icon { position: relative; display: block; width: 20px; height: 14px; }
.hamburger-icon span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--forest); border-radius: 1px; transition: transform 200ms ease, opacity 200ms ease; }
.hamburger-icon span:nth-child(1) { top: 0; }
.hamburger-icon span:nth-child(2) { top: 6px; }
.hamburger-icon span:nth-child(3) { top: 12px; }
.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Mobile full-height slide-in menu. Both panels MUST be display:none by
   default with zero JS/transform dependency — [hidden] alone is not enough
   once a class below sets `display`, because an author class selector and
   the UA's `[hidden]{display:none}` rule have equal specificity, and the
   author rule wins the tie. The explicit [hidden] overrides below close
   that gap so first paint is correct even if mobile-menu.js never runs. */
.mobile-menu-overlay { position: fixed; inset: 0; z-index: 190; background: rgba(36, 26, 23, .6); opacity: 0; pointer-events: none; transition: opacity 250ms ease; }
.mobile-menu-overlay[hidden] { display: none; }
.mobile-menu-overlay.is-open { opacity: 1; pointer-events: auto; }
/* `.mobile-menu` is a <nav> too, so it inherits the primary-nav's bare
   `nav { flex-wrap: wrap; justify-content: center; gap; min-width: 0 }`
   rule below unless overridden here. On short viewports, once the
   head+links+actions stack is taller than the panel, that inherited wrap
   broke the column into side-by-side "pages", shoving the CTA button off
   the right edge of the screen — reset those four properties explicitly. */
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; z-index: 200; width: min(88vw, 380px); max-width: 100vw; height: 100dvh; max-height: 100dvh; display: flex; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; gap: 0; min-width: auto; background: var(--forest); color: var(--paper-bright); transform: translateX(100%); transition: transform 300ms ease; overflow: hidden; }
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--forest-light); }
/* Brand block must shrink+truncate, never overlap the close button: on narrow
   widths (or a page-zoom that shrinks the effective layout width — reproduced
   live down to ~340px) the un-hyphenatable "WCAG.World" text has no wrap
   opportunity, so without min-width:0 + overflow:hidden here the flex item
   refused to shrink below its content size and the text bled out over the
   close button instead of truncating. */
.mobile-menu-head .brand { color: var(--paper-bright); pointer-events: none; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.mobile-menu-head .brand-mark { color: var(--forest); background: var(--paper-bright); width: 28px; height: 28px; font-size: 14px; flex-shrink: 0; }
.mobile-menu-head .brand [data-brand] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mobile-menu-close { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 2px solid var(--paper-bright); border-radius: 2px; background: transparent; color: var(--paper-bright); font-size: 24px; line-height: 1; cursor: pointer; }
.mobile-menu-links { display: flex; flex-direction: column; margin: 0; padding: 12px 24px; list-style: none; flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mobile-menu-links li { border-bottom: 1px solid var(--forest-light); flex-shrink: 0; }
.mobile-menu-links a { display: flex; align-items: center; min-height: 52px; color: var(--paper-bright); text-decoration: none; font-size: 17px; font-weight: 700; }
.mobile-menu-links a:hover, .mobile-menu-links a:focus-visible { color: var(--signal); }

/* Mobile accordion for the two grouped nav items (Free Tools, Solutions) —
   no CSS dropdowns on touch, just an expandable nested list within the
   existing hamburger panel. Toggled by public/nav-dropdown.js; the [hidden]
   attribute on .mobile-menu-subitems keeps collapsed links out of the tab
   order, and mobile-menu.js's focus trap re-queries focusable elements (and
   filters out hidden ones) on every Tab press, so it stays correct whether
   a group is expanded or not. */
.mobile-menu-group-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; border: 0; padding: 0; background: none; color: var(--paper-bright); text-align: left; font-size: 17px; font-weight: 700; cursor: pointer; }
.mobile-menu-group-trigger:hover, .mobile-menu-group-trigger:focus-visible { color: var(--signal); }
.mobile-menu-group-trigger .nav-caret { font-size: 13px; transition: transform 200ms ease; }
.mobile-menu-group-trigger[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.mobile-menu-subitems { list-style: none; margin: 0; padding: 0 0 14px 14px; }
.mobile-menu-subitems[hidden] { display: none; }
.mobile-menu-subitems a { display: flex; align-items: center; min-height: 44px; color: var(--paper-bright); opacity: .85; text-decoration: none; font-size: 15px; font-weight: 600; }
.mobile-menu-subitems a:hover, .mobile-menu-subitems a:focus-visible { color: var(--signal); opacity: 1; }
.mobile-menu-actions { flex: 0 0 auto; padding: 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); border-top: 1px solid var(--forest-light); background: var(--forest); }
.mobile-menu-actions .button { width: 100%; }
.text-link { border: 0; padding: 3px 0; background: none; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; font-weight: 800; cursor: pointer; }
.text-link:hover { text-decoration-thickness: 3px; }
.header-audio { display: inline-flex; }
.button-icon-only { width: 40px; padding: 0; }
.button-icon-only svg { display: block; }
.button-icon-only svg[hidden] { display: none; }
@media (max-width: 600px) { .button-icon-only { width: 44px; min-height: 44px; } }
.hero { max-width: var(--max); min-height: 730px; margin: auto; padding: clamp(70px, 8vw, 128px) clamp(24px, 5vw, 78px) 84px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .7fr); gap: clamp(64px, 9vw, 145px); align-items: center; }
.eyebrow { margin: 0 0 25px; color: var(--forest); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow span { display: inline-block; margin-right: 14px; color: var(--redline); }
.eyebrow.light { color: var(--paper-bright); }
.eyebrow.light span { color: var(--redline-light); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.045em; line-height: .96; }
h1 { max-width: 800px; margin-bottom: 31px; font-size: clamp(54px, 6.5vw, 104px); }
h1 em, h2 em { color: var(--redline); font-style: italic; }
.auth-heading { max-width: none; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin-bottom: 22px; }

/* Integration install pages (/shopify, /wordpress) — reuse .section/
   .auth-heading/.violation-list/.tools-tool-layout/.tools-panel/.button/
   .api-token-value-row as-is. Hero is a 2-col grid: a real product
   screenshot on the left (framed like .evidence-card's signature offset
   shadow, scaled down) and the eyebrow/H1/deck/buttons on the right. */
.install-hero-section { padding-bottom: 0; }
.install-hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.install-hero-media { margin: 0; }
.install-hero-media img {
  display: block; width: 100%; height: auto; border: 1px solid var(--ink); border-radius: 10px;
  box-shadow: 8px 8px 0 var(--forest);
}
.install-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.install-link-value { font-size: 13px; font-weight: 600; line-height: 1.6; }

/* AccessRadar landing (/accessradar) — hero keeps the default .hero 2-col
   grid (copy first column, real product shot second column; both stack via
   .hero's own 900px breakpoint, screenshot below the heading). Framed with
   the same .install-hero-media img treatment. The two mid-page sections
   each get a real-screenshot 2-up (.accessradar-shot-pair) that collapses
   to a single column on mobile. */
.accessradar-shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 40px); margin-top: 44px; }
.accessradar-shot-pair img {
  display: block; width: 100%; height: auto; border: 1px solid var(--ink); border-radius: 10px;
  box-shadow: 6px 6px 0 var(--forest);
}
.hero-deck { max-width: 730px; margin-bottom: 35px; font-family: var(--serif); font-size: clamp(20px, 2vw, 27px); line-height: 1.35; }
.hero-actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.proof-strip { margin: 60px 0 0; padding: 17px 0 0; border-top: 1px solid var(--line); display: flex; gap: 18px 38px; flex-wrap: wrap; list-style: none; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.proof-strip li::before { content: "✓"; margin-right: 7px; color: var(--forest); }
.evidence-card { position: relative; padding: 28px; background: var(--paper-bright); border: 1px solid var(--ink); box-shadow: 11px 11px 0 var(--forest); transform: rotate(1.1deg); }
.evidence-card::before { content: "TEST / FIX / RETEST"; position: absolute; top: -31px; right: -1px; padding: 6px 10px; color: var(--paper-bright); background: var(--redline); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.document-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.status { padding: 3px 7px; color: var(--signal-dark); background: var(--signal); }
.criterion { margin: 25px 0 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.evidence-card h2 { margin-bottom: 28px; font-size: clamp(28px, 3vw, 42px); line-height: 1.05; }
.flow { border-top: 1px solid var(--line); }
.flow div { display: grid; grid-template-columns: 78px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.flow span { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.flow strong { font-size: 13px; }
.retest { margin-top: 22px; padding: 14px; display: flex; align-items: center; gap: 13px; border: 2px solid var(--forest); }
.retest p { margin: 0; font-size: 11px; line-height: 1.5; }
.check { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--signal); font-weight: 900; }
.margin-note { position: absolute; left: 0; right: 0; bottom: -62px; margin: 0; color: var(--redline); font-family: var(--serif); font-size: 13px; line-height: 1.4; text-align: left; }
.positioning { max-width: var(--max); margin: auto; padding: 29px clamp(24px, 5vw, 78px); display: grid; grid-template-columns: 1fr 2fr; gap: 30px; align-items: center; color: var(--paper-bright); background: var(--forest); }
.positioning p { margin: 0; color: var(--signal); font-family: var(--serif); font-size: 19px; font-style: italic; }
.audience-list { display: flex; justify-content: flex-end; gap: 12px 25px; flex-wrap: wrap; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

.trust-bar { max-width: var(--max); margin: auto; padding: 46px clamp(24px, 5vw, 78px) 0; }
.trust-bar-label { margin: 0 0 22px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; text-align: center; }
.trust-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.trust-track { display: flex; width: max-content; transform: translateX(-50%); animation: trust-scroll 26s linear infinite; }
.trust-list { display: flex; align-items: center; flex-shrink: 0; gap: 56px; margin: 0; padding: 0 28px; list-style: none; }
.trust-list li { color: var(--muted); font-family: var(--serif); font-size: clamp(20px, 2.6vw, 26px); font-style: italic; font-weight: 600; white-space: nowrap; opacity: .75; }
@keyframes trust-scroll { from { transform: translateX(-50%); } to { transform: translateX(0%); } }
.section { max-width: var(--max); margin: auto; padding: clamp(90px, 10vw, 150px) clamp(24px, 5vw, 78px); }
.method { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 10vw, 170px); }
.section-intro { position: sticky; top: 40px; align-self: start; }
.section h2 { margin-bottom: 32px; font-size: clamp(46px, 5vw, 75px); }
.section-intro > p:last-child { max-width: 500px; font-size: 18px; }
.method-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.method-steps li { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 31px 0; border-bottom: 1px solid var(--line); }
.step-number { color: var(--redline); font-family: var(--serif); font-size: 20px; font-style: italic; }
.method-steps h3 { margin-bottom: 8px; font-family: var(--serif); font-size: 29px; font-weight: 700; }
.method-steps p { margin: 0; color: var(--muted); }
.services { border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1.4fr .6fr; gap: 50px; align-items: end; margin-bottom: 60px; }
.section-heading h2 { margin: 0; }
.section-heading > p { max-width: 420px; margin: 0 0 8px; font-size: 18px; }
/* Blog index header — deliberately NOT `.section-heading` (that's a 2-column
   title/intro grid shared by 6 other sections). Maxim asked for the blog
   header specifically to be one left-aligned column, so it gets its own
   single-column block instead of a variant of the shared grid. */
.blog-index-heading { max-width: 900px; margin-bottom: 60px; }
/* The default `h1` size (up to 104px, tuned for the one-line-per-thought
   homepage hero) forces this heading's first line to wrap again inside the
   800px default h1 max-width, breaking the required exact 3-line read.
   Sized down toward the post-page h1 (clamp(36px,5vw,58px)) instead —
   still clearly a headline, just scaled for a listing page, not a hero. */
.blog-index-heading h1 { max-width: none; font-size: clamp(36px, 4.4vw, 64px); }
.blog-index-subtitle { max-width: 480px; margin: 0; font-size: 18px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.service-card { min-width: 0; min-height: 315px; padding: 29px; display: flex; flex-direction: column; background: var(--paper-bright); }
.service-card.featured { grid-row: span 2; color: var(--paper-bright); background: var(--forest); }
.card-index { margin-bottom: 42px; color: var(--redline); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.featured .card-index { color: var(--signal); }
.service-card h3 { margin-bottom: 16px; font-family: var(--serif); font-size: 31px; font-weight: 700; line-height: 1.05; }
.service-card > p:not(.card-index, .price, .scope-note) { color: var(--muted); }
.featured > p:not(.card-index, .price, .scope-note) { color: #E4C9BE; }
.service-card ul { margin: 18px 0 33px; padding: 0; list-style: none; }
.service-card li { padding: 9px 0; border-bottom: 1px solid #8F5A52; font-size: 13px; }
.service-card li::before { content: "↳"; margin-right: 8px; color: var(--signal); }
.service-card .text-link { margin-top: auto; align-self: start; }
.price { margin: auto 0 4px; padding-top: 20px; border-top: 1px solid #8F5A52; }
.price strong { display: block; color: var(--signal); font-family: var(--serif); font-size: 29px; font-weight: 700; }
.scope-note { margin: 8px 0 0; color: #D9BEB4; font-size: 11px; }
.pricing { border-top: 1px solid var(--line); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); margin-bottom: 40px; }
.pricing-card { min-width: 0; min-height: 340px; padding: 29px; display: flex; flex-direction: column; color: var(--paper-bright); background: var(--forest); }
.pricing-card .card-index { color: var(--signal); }
.pricing-card h3 { margin-bottom: 16px; font-family: var(--serif); font-size: 27px; font-weight: 700; line-height: 1.05; }
.pricing-card > p:not(.card-index, .price, .scope-note) { color: #E4C9BE; flex: 1; }
.pricing-card .price-unit { color: #D9BEB4; font-size: 13px; font-weight: 400; }
.pricing-card .text-link { margin-top: 16px; align-self: start; }
.pricing-card form { margin-top: 16px; align-self: start; }
.pricing-card form .text-link { margin-top: 0; }
.demo { border-top: 1px solid var(--line); }
.demo-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ink); border: 1px solid var(--ink); margin-bottom: 50px; }
.demo-panel { padding: 29px; background: var(--paper-bright); }
.demo-panel h3 { margin-bottom: 14px; font-family: var(--serif); font-size: 26px; font-weight: 700; }
.demo-before { background: #eae6da; }
.demo-mock { margin: 20px 0; padding: 18px; display: flex; flex-direction: column; gap: 10px; border: 1px dashed var(--line); }
.demo-mock-label { font-size: 12px; font-weight: 700; }
.demo-mock-input { min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); color: var(--ink); background: var(--paper); }
.demo-mock-link { width: fit-content; font-size: 13px; text-decoration: underline; }
.demo-mock-btn { align-self: flex-start; padding: 8px 16px; border: 1px solid var(--ink); background: var(--paper); font-size: 13px; font-weight: 700; cursor: pointer; }
.demo-before .demo-mock-label, .demo-before .demo-mock-link { color: #a19d8e; }
.demo-before .demo-mock-input { color: #b8b4a6; border-color: #ddd9cb; }
.demo-before .demo-mock-btn { outline: none; box-shadow: none; }
.demo-mock-live { border-style: solid; border-color: var(--forest); }
.demo-mock-live .demo-mock-link { color: var(--forest); font-weight: 700; }
.demo-mock-live .demo-mock-btn { color: var(--paper-bright); background: var(--forest); border-color: var(--forest); box-shadow: 3px 3px 0 var(--signal); }
.demo-issues { margin: 16px 0 0; padding: 0; list-style: none; }
.demo-issues li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.demo-fixes li { color: var(--forest); font-weight: 700; }
.demo-fixes li::before { content: "✓ "; }
.demo-status-note { margin-top: 10px; font-size: 12px; color: var(--forest); font-weight: 700; }
.demo-interactive { padding: 34px; border: 1px solid var(--ink); background: var(--paper-bright); box-shadow: 10px 10px 0 var(--line); }
.demo-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 26px; }
.demo-tool h3 { margin-bottom: 8px; font-family: var(--serif); font-size: 22px; font-weight: 700; }
.demo-tool > p { margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.demo-tool-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.demo-tool-controls button { min-height: 38px; padding: 7px 12px; border: 1px solid var(--ink); background: var(--paper); font-size: 12px; font-weight: 700; cursor: pointer; }
.demo-tool-controls button[aria-pressed="true"] { color: var(--paper-bright); background: var(--forest); border-color: var(--forest); }
.demo-tool-controls button:disabled { opacity: .5; cursor: not-allowed; }
.demo-tool .demo-sample-text { padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; line-height: 1.5; transition: font-size 150ms ease, letter-spacing 150ms ease, line-height 150ms ease; }
.demo-tool .demo-sample-text.demo-text-large { font-size: 20px; }
.demo-tool .demo-sample-text.demo-text-xlarge { font-size: 26px; line-height: 1.4; }
.demo-tool .demo-sample-text.demo-text-wide { letter-spacing: .04em; word-spacing: .12em; line-height: 2; }
.demo-status { min-height: 18px; margin: 0; font-size: 12px; font-weight: 700; color: var(--forest); }
.demo-legend { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.demo-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.demo-swatch { width: 18px; height: 18px; border-radius: 3px; flex: 0 0 auto; }
.demo-chip-pass .demo-swatch { background: var(--signal); }
.demo-chip-warn .demo-swatch { background: #e0b23a; }
.demo-chip-fail .demo-swatch { background: var(--redline); }
.demo-legend-safe .demo-chip-pass .demo-swatch { background-image: repeating-linear-gradient(45deg, var(--signal-dark), var(--signal-dark) 3px, var(--signal) 3px, var(--signal) 6px); }
.demo-legend-safe .demo-chip-warn .demo-swatch { background-color: #e0b23a; background-image: radial-gradient(circle, var(--ink) 1.4px, transparent 1.4px); background-size: 6px 6px; }
.demo-legend-safe .demo-chip-fail .demo-swatch { background-image: repeating-linear-gradient(-45deg, var(--redline), var(--redline) 3px, var(--paper-bright) 3px, var(--paper-bright) 6px); }
.deadlines { color: var(--paper-bright); background: var(--forest); }
.deadline-title { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px 100px; }
.deadline-title .eyebrow { grid-column: 1 / -1; }
.deadline-title > p:last-child { max-width: 510px; font-size: 19px; }
.deadline-title h2 em { color: var(--redline-light); }
.timeline { margin-top: 75px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #8F5A52; border-bottom: 1px solid #8F5A52; }
.timeline article { min-height: 280px; padding: 29px; border-right: 1px solid #8F5A52; }
.timeline article:last-child { border: 0; }
.timeline time { display: block; margin-bottom: 48px; color: var(--signal); font-family: var(--serif); font-size: 30px; font-style: italic; }
.timeline h3 { font-family: var(--serif); font-size: 23px; font-weight: 700; }
.timeline p { margin: 0; color: #E4C9BE; font-size: 14px; }
.legal-note { max-width: 940px; margin: 29px 0 0 auto; color: #D9BEB4; font-size: 11px; }
.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; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.standard { border-top: 1px solid var(--line); }
.standard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 110px); padding-bottom: 60px; margin-bottom: 60px; border-bottom: 1px solid var(--line); }
.standard-block h3 { margin-bottom: 14px; font-family: var(--serif); font-size: 24px; font-weight: 700; }
.standard-block p { color: var(--muted); }
.standard-block p strong { color: var(--ink); }
.mini-list { margin: 0 0 16px; padding: 0; list-style: none; }
.mini-list li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini-list li strong { color: var(--forest); font-family: var(--serif); font-size: 16px; font-style: italic; margin-right: 6px; }
.fine-print { color: var(--muted); font-size: 12px; }
.violations h3 { margin-bottom: 26px; font-family: var(--serif); font-size: 30px; font-weight: 700; }
.violation-list { margin: 0; padding: 0; list-style: none; counter-reset: violation; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 40px; }
.violation-list li { counter-increment: violation; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.violation-list li::before { content: counter(violation, decimal-leading-zero); margin-right: 10px; color: var(--redline); font-family: var(--serif); font-style: italic; }
.violation-list li strong { color: var(--ink); }
.ai-explanation { margin: 6px 0 0; font-style: italic; color: var(--ink); }
.ai-explanation-nudge { font-style: normal; color: var(--muted); }
.ai-explanation-nudge a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* /app dashboard: dense 2-col layout (left = history/findings, right = visuals) */
.site-dashboard-list { display: flex; flex-direction: column; gap: 60px; margin-bottom: 60px; }
.site-dashboard-card { padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.site-dashboard-card:last-child { border-bottom: 0; padding-bottom: 0; }
.site-dashboard-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 20px; }
.site-dashboard-main .violation-list { grid-template-columns: 1fr; }
.site-dashboard-side { padding: 24px; background: var(--paper-bright); border: 1px solid var(--line); }
.site-dashboard-side h4 { margin: 24px 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.site-dashboard-side h4:first-child { margin-top: 0; }

.score-gauge { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 auto 4px; }
.score-gauge-label { margin: 0; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

.site-preview { margin: 0; }
.site-preview img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }

.chart-empty { color: var(--muted); font-size: 13px; font-style: italic; margin: 0; }

.chart-with-legend { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.chart-legend { list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--ink); display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 150px; }
.chart-legend li { display: flex; align-items: center; gap: 8px; }
.chart-legend strong { margin-left: auto; }
.chart-legend-swatch { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; display: inline-block; }
.magnets { border-top: 1px solid var(--line); }
.audit-request { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 90px); align-items: center; padding: 40px; margin-bottom: 60px; border: 2px solid var(--forest); background: var(--paper-bright); }
.audit-request-copy h3 { margin: 10px 0 12px; font-family: var(--serif); font-size: 30px; font-weight: 700; }
.audit-request-copy p:last-child { color: var(--muted); }
.audit-request form { padding: 0; border: 0; background: transparent; }
.audit-request .field { margin-bottom: 14px; }
.audit-request label { color: var(--ink); }
.audit-request input { color: var(--ink); background: var(--paper); border-color: var(--line); }
.audit-request .form-status { color: var(--signal-dark); }
.magnet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); margin-bottom: 50px; }
.magnet-card { min-width: 0; padding: 26px; display: flex; flex-direction: column; background: var(--paper-bright); }
.magnet-card.premium { color: var(--paper-bright); background: var(--forest); }
.magnet-card h3 { margin-bottom: 10px; font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.1; }
.magnet-card > p:not(.card-index) { flex: 1; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.magnet-card.premium > p:not(.card-index) { color: #E4C9BE; }
.magnet-form { display: flex; flex-direction: column; gap: 10px; }
.magnet-form input[type="email"], .magnet-form input[type="url"] { min-height: 42px; font-size: 13px; }
.magnet-card:not(.premium) .magnet-form input { color: var(--ink); background: var(--paper); border-color: var(--line); }
.magnet-card:not(.premium) .magnet-form input::placeholder { color: var(--muted); opacity: 1; }
.magnet-form .form-status { min-height: 18px; margin: 0; font-size: 11px; }
.magnet-card:not(.premium) .form-status { color: var(--signal-dark); }
.newsletter-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 30px; background: var(--forest); color: var(--paper-bright); }
.newsletter-strip h3 { margin-top: 6px; font-family: var(--serif); font-size: 21px; font-weight: 700; }
.newsletter-form { flex-direction: row; flex-wrap: wrap; align-items: center; }
.newsletter-form input { width: 260px; min-height: 42px; color: var(--paper-bright); background: #8F3A34; border-color: #8F5A52; }
.newsletter-form input::placeholder { color: #E4C9BE; opacity: 1; }
.newsletter-form .form-status { flex-basis: 100%; color: var(--signal); }
.checklist { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(50px, 9vw, 140px); align-items: start; }
.checklist-copy { position: sticky; top: 40px; }
.checklist-copy > p:not(.eyebrow) { max-width: 430px; font-size: 18px; }
.print-link { margin-top: 15px; }
.checklist-sheet { padding: 30px; border: 1px solid var(--ink); background: var(--paper-bright); box-shadow: 10px 10px 0 var(--line); }
.sheet-label { padding-bottom: 18px; border-bottom: 1px solid var(--ink); color: var(--redline); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.checklist-sheet ol { margin: 0; padding: 0; list-style: none; }
.checklist-sheet li { display: grid; grid-template-columns: 50px 1fr; gap: 15px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.checklist-sheet li:last-child { border-bottom: 0; }
.checklist-sheet li > span { color: var(--redline); font-family: var(--serif); font-style: italic; }
.checklist-sheet p { margin: 0; }
.checklist-sheet strong { display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 19px; font-weight: 700; }
.checklist-print-only { display: none; }
.checklist-block { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.checklist-block:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.checklist-block-title { margin: 0 0 14px; font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); }
.checklist-block-title em { color: var(--redline); font-style: italic; }
.checklist-block-lede { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.checklist-standards, .checklist-items, .checklist-flags { margin: 0 0 18px; padding: 0; list-style: none; }
.checklist-standards li, .checklist-flags li { display: block; position: relative; margin-bottom: 12px; padding: 0 0 0 20px; border-bottom: 0; font-size: 15px; line-height: 1.5; }
.checklist-standards li::before, .checklist-flags li::before { content: "-"; position: absolute; left: 0; color: var(--redline); }
.checklist-standards li:last-child, .checklist-flags li:last-child { margin-bottom: 0; }
.checklist-group-label { margin: 0 0 8px; color: var(--redline); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.checklist-items li { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; padding: 0; border-bottom: 0; font-size: 15px; line-height: 1.45; }
.checklist-items input[type="checkbox"] { flex: none; width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--redline); }
.checklist-cta-block p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.checklist-cta { color: var(--redline); font-size: 15px; }
.sheet-footer { margin-top: 28px; padding-top: 14px; border-top: 1px solid #000; font-size: 11px; }
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(55px, 10vw, 160px); color: var(--paper-bright); background: var(--ink); }
.contact-copy > p:not(.eyebrow, .response-note) { max-width: 520px; color: #E4C9BE; font-size: 18px; }
.response-note { max-width: 520px; margin-top: 50px; padding-top: 16px; border-top: 1px solid #4A342F; color: var(--signal); font-size: 12px; }
form { padding: 33px; border: 1px solid #4A342F; background: #332420; }
/* Small one-button forms (log out / delete account / revoke token) need the
   bare `form` rule's dark box switched off. A `style="display:inline"`
   attribute here does NOT work - the site's CSP `style-src` has no
   `unsafe-inline`, so browsers silently drop inline style attributes
   sitewide; this must be a real class rule instead. */
.form-inline { display: inline; padding: 0; border: 0; background: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { margin-bottom: 22px; }
label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
label span { color: #B8A79C; font-weight: 400; }
/* Every <form> gets a dark box (see the `form` rule below) regardless of the
   section it sits in. Inside `.contact`/`.newsletter-strip` an ancestor sets
   `color: var(--paper-bright)` so this is a no-op there; anywhere else (e.g.
   `.free-audit-form`, `.tools-form`) the form would otherwise inherit
   `body`'s `--ink` text color onto its own near-black background — fixed
   here at the source instead of per-page. Found live on /free-audit: the
   "Website URL" label rendered at ~1.1:1 contrast, a straight AA fail. */
form label { color: var(--paper-bright); }
form legend { color: var(--paper-bright); }
form .field-error { color: var(--signal); }
form option { color: var(--ink); background: var(--paper-bright); }
input, select, textarea { width: 100%; min-height: 49px; padding: 11px 13px; border: 1px solid #4A342F; border-radius: 0; color: var(--paper-bright); background: var(--ink); }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #B8A79C; opacity: 1; }
input[aria-invalid="true"], select[aria-invalid="true"] { border: 2px solid #E8917E; }
.error { min-height: 18px; display: block; padding-top: 3px; color: #E8917E; font-size: 11px; }
.form-status { min-height: 24px; margin: 20px 0 0; color: var(--signal); font-size: 13px; }
/* Freshly-issued API token: shown exactly once, so it must be impossible to
   misread or fumble the copy - large monospace, explicit "only once"
   warning, and a copy button whose state change is conveyed by its text
   (not color alone). See public/api-tokens.js. */
.api-token-reveal-box { margin-top: 20px; padding: 22px clamp(18px, 3vw, 28px); border: 2px solid var(--forest); border-radius: 2px; background: var(--paper-bright); }
.api-token-warning { margin: 0 0 16px; color: var(--redline); font-size: 14px; font-weight: 800; }
.api-token-value-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.api-token-value { flex: 1 1 280px; min-width: 0; padding: 16px 18px; border: 2px solid var(--ink); border-radius: 2px; color: var(--ink); background: var(--paper); font-family: 'SF Mono', 'Consolas', 'Menlo', 'Liberation Mono', monospace; font-size: clamp(16px, 2.4vw, 21px); font-weight: 700; line-height: 1.5; word-break: break-all; user-select: all; }
.api-token-copy-btn { flex: 0 0 auto; min-width: 120px; }
.api-token-copy-status { min-height: 18px; margin: 10px 0 0; color: var(--forest); font-size: 13px; font-weight: 700; }
footer { max-width: var(--max); margin: auto; padding: 55px clamp(24px, 5vw, 78px) 30px; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 45px; background: var(--paper); }
.footer-brand > span { font-family: var(--serif); font-size: 30px; }
.footer-brand p { max-width: 340px; margin-top: 9px; color: var(--muted); }
.footer-col a { display: block; margin-bottom: 8px; }
.footer-label { margin-bottom: 13px; color: var(--redline); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.footer-legal { grid-column: 1 / -1; margin: 30px 0 0; padding-top: 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr; gap: 30px; color: var(--muted); font-size: 10px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.blog-card { min-width: 0; padding: 26px; display: flex; flex-direction: column; background: var(--paper-bright); }
.blog-card h2 { margin: 6px 0 10px; overflow-wrap: anywhere; word-break: break-word; font-size: 22px; font-weight: 700; line-height: 1.15; }
.blog-card h2 a { text-decoration: none; }
.blog-card h2 a:hover { text-decoration: underline; }
.blog-card > p:not(.card-index) { flex: 1; margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.blog-empty { padding: 30px 0; color: var(--muted); }
.blog-tags { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.blog-tag { padding: 4px 9px; border: 1px solid var(--line); color: var(--forest); font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.post { max-width: 780px; }
.breadcrumb { margin-bottom: 30px; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 4px; font-weight: 700; font-size: 14px; }
.post-header { margin-bottom: 40px; }
.post-header h1 { font-size: clamp(36px, 5vw, 58px); margin-bottom: 14px; }
.post-hero { margin: 0 0 22px; }
.post-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.post-meta { margin-bottom: 14px; color: var(--muted); font-size: 13px; font-weight: 700; }
.post-body { font-size: 18px; line-height: 1.7; }
.post-body h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 3vw, 34px); margin: 44px 0 18px; }
.post-body h3 { font-size: 21px; margin: 32px 0 14px; }
.post-body p { margin: 0 0 20px; }
.post-body ul, .post-body ol { margin: 0 0 20px; padding-left: 24px; }
.post-body li { margin-bottom: 8px; }
.post-body a { text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }
.post-body blockquote { margin: 0 0 20px; padding: 4px 0 4px 22px; border-left: 3px solid var(--redline); color: var(--muted); font-family: var(--serif); font-size: 20px; }
.post-body code { padding: 2px 5px; background: var(--paper); font-size: .85em; }
.post-body pre { margin: 0 0 20px; padding: 18px; overflow-x: auto; background: var(--ink); color: var(--paper-bright); }
.post-body pre code { padding: 0; background: transparent; color: inherit; }
.post-body img { max-width: 100%; height: auto; }
.post-cta { margin-top: 56px; padding: 32px; background: var(--forest); color: var(--paper-bright); }
.post-cta h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 20px; }
.post-cta-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.post-cta .text-link { color: var(--paper-bright); }
.post-pager { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; font-weight: 700; }
.post-pager a { text-decoration: underline; text-underline-offset: 4px; white-space: normal; overflow-wrap: anywhere; word-break: break-word; min-width: 0; max-width: 100%; flex: 1 1 200px; }

/* Free Audit tool */
.free-audit-form { max-width: 560px; margin-bottom: 10px; }
.free-audit-form .field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field-error { min-height: 16px; margin: 0; color: var(--redline); font-size: 12px; font-weight: 700; }
.free-audit-result { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
.free-audit-summary { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; margin-bottom: 32px; }
.free-audit-gauge { display: grid; justify-items: center; gap: 10px; width: 160px; }
.free-audit-gauge svg { width: 140px; height: 140px; }
.free-audit-gauge #free-audit-gauge-fill { transition: stroke-dasharray 600ms ease, stroke 600ms ease; }
.free-audit-gauge p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: .04em; }
.free-audit-screenshot-wrap { max-width: 420px; }
.free-audit-screenshot { display: block; width: 100%; height: auto; border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--signal); }
.free-audit-issue-count { margin: 0 0 16px; font-family: var(--serif); font-size: 22px; }
.free-audit-sample-issues { margin: 0 0 40px; padding-left: 22px; color: var(--muted); }
.free-audit-sample-issues li { margin-bottom: 8px; }
.free-audit-locked { padding: 32px; border: 2px solid var(--forest); background: var(--paper-bright); }
.free-audit-locked h2 { margin: 10px 0 20px; font-family: var(--serif); font-size: 26px; font-weight: 700; }
.free-audit-locked .free-audit-form { margin-bottom: 0; }
.free-audit-full-report { margin-top: 40px; }
.free-audit-full-issues { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.free-audit-full-issues li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.free-audit-full-issues strong { display: block; margin-bottom: 6px; font-size: 15px; }
.free-audit-full-issues p { margin: 0; color: var(--muted); font-size: 13px; }
.free-audit-followup { margin-top: 24px; color: var(--muted); font-size: 13px; }

/* Free Audit redesign preview (/free-audit-preview) — 2-column hero + inline
   findings + optional PSI gauges. Reuses .hero/.button/.field/.card-index
   tokens/components; only new layout wrappers are added here. */
.free-audit-preview-hero { min-height: 0; padding-bottom: 60px; }
.free-audit-preview-intro { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.free-audit-preview-intro > p { margin: 0; font-family: var(--serif); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; }
.free-audit-preview-intro .free-audit-form { margin-bottom: 0; }

.free-audit-preview-results { padding-top: 40px; }
.free-audit-preview-psi-note { margin: 0 0 24px; padding: 12px 16px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.free-audit-preview-gauge-grid { display: flex; flex-wrap: wrap; align-items: end; gap: 40px; margin-bottom: 40px; }
.free-audit-preview-gauge { display: grid; justify-items: center; gap: 10px; }
.free-audit-preview-gauge.is-primary svg { width: 160px; height: 160px; }
.free-audit-preview-gauge:not(.is-primary) svg { width: 96px; height: 96px; }
.free-audit-preview-gauge p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: .04em; }

.free-audit-preview-screenshot-wrap { margin-bottom: 40px; }
.free-audit-preview-screenshot { display: block; width: 100%; max-width: 760px; height: auto; border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--signal); }

.free-audit-preview-findings-list { margin: 0 0 48px; padding: 0; list-style: none; display: grid; gap: 16px; max-width: 760px; }
.free-audit-preview-findings-list li { padding: 20px; border: 1px solid var(--line); background: var(--paper-bright); }
.free-audit-preview-findings-list strong { display: block; margin-bottom: 6px; font-size: 16px; }
.free-audit-preview-findings-list p { margin: 0; color: var(--muted); font-size: 14px; }

.free-audit-preview-ctas { display: flex; flex-wrap: wrap; gap: 60px; padding-top: 36px; border-top: 1px solid var(--line); }
.free-audit-preview-cta-block .button { margin-top: 6px; }
.free-audit-preview-email-form { max-width: 360px; margin-top: 6px; }

/* Free Tools (/free-tools) — five self-contained widgets sharing .section/
   .field/.button/.card-index. `.tools-form` reuses the same dark boxed-form
   treatment as `.free-audit-form` (see the `form label`/`form .field-error`
   fix above); tools that don't need a real submit (contrast, alt-text,
   badge) skip <form> entirely and stay on the light section background. */
.tools-hero { grid-template-columns: 1fr; min-height: 0; padding-bottom: 30px; }
.tools-jumplinks { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.tools-jumplinks a { text-decoration: underline; text-underline-offset: 4px; font-weight: 700; font-size: 14px; }
.tools-tool { border-top: 1px solid var(--line); }
.tools-tool-intro { max-width: 640px; margin: -12px 0 36px; font-family: var(--serif); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.4; color: var(--muted); }
.tools-hint { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.tools-sr-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tools-output { display: block; width: 100%; padding: 14px; border: 1px solid var(--ink); background: var(--paper-bright); color: var(--ink); font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.5; resize: vertical; margin-bottom: 12px; }
.tools-fieldset { margin: 0 0 22px; padding: 0; border: 0; }
.tools-fieldset legend { padding: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.tools-radio { display: inline-flex; align-items: center; gap: 8px; margin: 0 22px 8px 0; font-size: 15px; font-weight: 600; }
.tools-radio input { width: auto; min-height: 0; accent-color: var(--redline-light); }
.tools-form { max-width: 560px; }
.tools-form .field { margin-bottom: 18px; }
.tools-toggle-group { display: flex; gap: 10px; margin-bottom: 18px; }

/* Tools 1-4: balanced 2-col desktop layout — interactive control left,
   supporting explainer panel right (fixes the huge empty right gutter
   these sections used to leave when the control itself was narrower than
   the section). Tool 5 (badge) already fills its width and is left alone. */
.tools-tool-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(48px, 6vw, 90px); align-items: start; }
.tools-tool-main { min-width: 0; }
.tools-panel { padding: 32px; border: 1px solid var(--ink); background: var(--paper-bright); box-shadow: 8px 8px 0 var(--line); }
.tools-panel h3 { margin: 0 0 18px; font-family: var(--serif); font-size: 23px; font-weight: 700; }
.tools-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.tools-panel li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.tools-panel li::before { content: "\2192"; position: absolute; left: 0; color: var(--redline); font-weight: 800; }
.tools-panel li strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 15px; }

/* Tool 1: contrast checker (light background, no <form>) */
.tools-contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; max-width: 920px; }
.tools-color-field { max-width: 320px; }
.tools-color-row { display: flex; align-items: center; gap: 10px; }
.tools-color-row input[type="color"] { width: 49px; min-width: 49px; height: 49px; padding: 2px; }
.tools-color-row input[type="text"] { font-family: 'Courier New', monospace; text-transform: uppercase; }
.tools-contrast-swatch { display: grid; place-items: center; min-height: 140px; margin-bottom: 18px; border: 1px solid var(--ink); font-family: var(--serif); font-size: 28px; font-weight: 700; }
.tools-contrast-ratio { margin: 0 0 18px; font-size: 26px; font-weight: 800; }
.tools-contrast-pass-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tools-contrast-pass-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); font-size: 14px; font-weight: 700; }

/* Tool 2: risk calculator */
.tools-risk-result { margin-top: 40px; padding: 32px; border: 1px solid var(--ink); background: var(--paper-bright); max-width: 720px; }
.tools-risk-score { display: flex; align-items: baseline; gap: 22px; margin-bottom: 18px; flex-wrap: wrap; }
.tools-risk-level { font-family: var(--serif); font-size: 28px; font-weight: 700; }
.tools-risk-number { font-size: 44px; font-weight: 800; }
.tools-risk-number-max { font-size: 18px; font-weight: 600; color: var(--muted); }
.tools-risk-locked { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.tools-risk-unlock-form { max-width: 420px; }
.tools-risk-full { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.tools-risk-full ul { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 12px; }
.tools-risk-full li { padding: 14px 16px; border: 1px solid var(--line); font-size: 14px; }

/* Tool 4: AI alt-text generator (light background, no <form>) */
.tools-dropzone { padding: 40px 24px; border: 2px dashed var(--line); text-align: center; max-width: 560px; }
.tools-dropzone.is-dragover { border-color: var(--forest); background: var(--paper-bright); }
.tools-dropzone p { margin: 0 0 6px; }
.tools-file-label { text-decoration: underline; text-underline-offset: 4px; font-weight: 700; cursor: pointer; }
.tools-file-input:not(:focus-visible) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tools-alt-preview { display: block; max-width: 320px; height: auto; margin: 20px 0; border: 1px solid var(--ink); }
.tools-alt-result { max-width: 560px; margin-top: 12px; }
.tools-alt-pending { max-width: 560px; padding: 16px 18px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* Tool 5: embeddable badge (light background, no <form>) */
.tools-badge-options { display: flex; flex-wrap: wrap; gap: 40px; margin-bottom: 10px; }
.tools-badge-preview-wrap { margin-bottom: 8px; }
.tools-badge-preview { padding: 24px; margin-bottom: 18px; border: 1px dashed var(--line); }
/* Mirrors the inline-style HTML written into the copy textarea (see
   buildSnippet() in free-tools.js) — kept as real classes here because the
   preview lives on OUR page, where CSP style-src blocks inline `style=`
   attributes; the copy-paste snippet itself stays inline-style since it
   lands on someone else's page with no access to this stylesheet. */
.tools-badge-demo { display: inline-flex; align-items: center; gap: 8px; border-radius: 2px; font-family: Arial, Helvetica, sans-serif; font-weight: 700; text-decoration: none; line-height: 1; }
.tools-badge-demo-light { border: 1px solid #7A2727; background: #FFFFFF; color: #241A17; }
.tools-badge-demo-dark { border: 1px solid #E8917E; background: #241A17; color: #FFFFFF; }
.tools-badge-demo-small { gap: 8px; padding: 6px 12px; font-size: 12px; }
.tools-badge-demo-medium { gap: 10px; padding: 9px 16px; font-size: 14px; }
.tools-badge-demo-mark { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-style: italic; font-weight: 800; }
.tools-badge-demo-small .tools-badge-demo-mark { width: 18px; height: 18px; font-size: 11px; }
.tools-badge-demo-medium .tools-badge-demo-mark { width: 22px; height: 22px; font-size: 13px; }
.tools-badge-demo-light .tools-badge-demo-mark { background: #7A2727; color: #FFFFFF; }
.tools-badge-demo-dark .tools-badge-demo-mark { background: #E8917E; color: #241A17; }

/* Lead-gen hub pages (/overlays, /industries, /platforms, /case-studies,
   /pricing) — reuse .hero/.tools-hero/.section/.section-heading/
   .tools-tool-layout/.tools-panel/.violation-list/.pricing-card as-is;
   these are the only genuinely new rules they need. */
.lead-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); margin-bottom: 40px; }
.lead-grid-2 { grid-template-columns: repeat(2, 1fr); }
.lead-card { min-width: 0; padding: 29px; display: flex; flex-direction: column; background: var(--paper-bright); }
.lead-card.span-full { grid-column: 1 / -1; }
.lead-card h3 { margin-bottom: 14px; font-family: var(--serif); font-size: 25px; font-weight: 700; line-height: 1.1; }
.lead-card > p:not(.card-index) { margin-bottom: 14px; color: var(--muted); }
.lead-card ul { margin: 0 0 14px; padding: 0; list-style: none; }
.lead-card li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.lead-card li::before { content: "\21B3"; margin-right: 8px; color: var(--redline); }
.lead-card .lead-meta { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.lead-card .text-link { margin-top: auto; align-self: start; }
.lead-stat-row { display: flex; flex-wrap: wrap; gap: 22px; margin: 0 0 16px; }
.lead-stat strong { display: block; font-family: var(--serif); font-size: 30px; color: var(--redline); }
.lead-stat span { font-size: 11px; color: var(--muted); }
.lead-disclaimer { max-width: 780px; margin: 0 0 40px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; font-style: italic; }
.pricing-card ul { margin: 8px 0 16px; padding: 0; list-style: none; }
.pricing-card li { padding: 7px 0; border-bottom: 1px solid #8F5A52; font-size: 13px; color: #E4C9BE; }
.pricing-card li::before { content: "\21B3"; margin-right: 8px; color: var(--signal); }
.lead-cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 40px; color: var(--paper-bright); background: var(--ink); }
.lead-cta-band h3 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 700; }
.lead-cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Exit-intent lead-capture modal (roadmap item 12, /free-tools & /overlays
   only — see documentShell's `exitIntent` flag and public/exit-intent.js).
   Centered dialog, not the mobile-menu's side drawer, but reuses the same
   overlay/focus-trap approach. */
.exit-modal-overlay { position: fixed; inset: 0; z-index: 290; background: rgba(36, 26, 23, .65); opacity: 0; pointer-events: none; transition: opacity 250ms ease; }
.exit-modal-overlay[hidden] { display: none; }
.exit-modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.exit-modal { position: fixed; z-index: 300; top: 50%; left: 50%; width: min(90vw, 460px); max-height: 85vh; overflow-y: auto; padding: 40px 36px; background: var(--paper-bright); border: 1px solid var(--ink); box-shadow: 10px 10px 0 var(--redline); opacity: 0; transform: translate(-50%, -46%); transition: opacity 220ms ease, transform 220ms ease; }
.exit-modal[hidden] { display: none; }
.exit-modal.is-open { opacity: 1; transform: translate(-50%, -50%); }
.exit-modal h2 { margin: 0 0 14px; font-family: var(--serif); font-size: 27px; font-weight: 700; line-height: 1.15; }
.exit-modal > p:not(.eyebrow) { margin: 0 0 22px; color: var(--muted); }
.exit-modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper-bright); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.exit-modal-close:hover { background: var(--paper); }

/* The header nav needs ~1340px to fit on one line without wrapping (5
   top-level items incl. App + the WCAG mode/Discuss actions) — switch to the
   hamburger menu above the general 900px content breakpoint so there's no
   awkward in-between zone where nav wraps to two lines. 1339 (not 1340) so a
   1340px-wide viewport itself still gets the desktop nav. */
@media (max-width: 1339px) {
  .site-header { grid-template-columns: 1fr auto; gap: 0; }
  nav { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
}

@media (max-width: 900px) {
  footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero { grid-template-columns: 1fr; padding-top: 75px; }
  .evidence-card { max-width: min(550px, calc(100% - 40px)); margin: 20px auto 60px; }
  .install-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .install-hero-media img { box-shadow: 5px 5px 0 var(--forest); }
  .accessradar-shot-pair { grid-template-columns: 1fr; gap: 24px; }
  .positioning, .method, .deadline-title, .checklist, .contact, .standard-grid, .audit-request { grid-template-columns: 1fr; }
  .violation-list { grid-template-columns: 1fr; }
  .site-dashboard-grid { grid-template-columns: 1fr; }
  .magnet-grid { grid-template-columns: 1fr 1fr; }
  .audience-list { justify-content: flex-start; }
  .section-intro, .checklist-copy { position: static; }
  .section-heading { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card.featured { grid-row: span 2; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .demo-compare { grid-template-columns: 1fr; }
  .demo-tools { grid-template-columns: 1fr 1fr; }
  .tools-contrast { grid-template-columns: 1fr; gap: 32px; }
  .tools-tool-layout { grid-template-columns: 1fr; gap: 40px; }
  .lead-grid { grid-template-columns: 1fr 1fr; }
  .lead-cta-band { padding: 28px; }
  .timeline { grid-template-columns: 1fr; }
  .timeline article { min-height: auto; border-right: 0; border-bottom: 1px solid #8F5A52; }
  .timeline time { margin-bottom: 25px; }
  .contact { gap: 45px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .free-audit-summary { grid-template-columns: 1fr; justify-items: center; }
}

@media (max-width: 600px) {
  .site-header { min-height: 72px; padding: 14px 20px; }
  .header-actions a.button { display: none; }
  .header-actions a.button-icon-only { display: inline-flex; }
  .header-actions { gap: 8px; }
  .button-toggle-text { display: none; }
  #wcag-mode-toggle { min-height: 44px; padding: 8px 10px; }
  .hero { min-height: 0; padding: 58px 20px 72px; gap: 60px; }
  .free-audit-preview-ctas { flex-direction: column; gap: 32px; }
  .free-audit-preview-gauge-grid { gap: 24px; }
  h1 { font-size: clamp(48px, 15vw, 68px); }
  .hero-deck { font-size: 20px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 20px; }
  .hero-actions .text-link { align-self: flex-start; }
  .proof-strip { margin-top: 45px; flex-direction: column; gap: 9px; }
  .trust-bar { padding-top: 34px; }
  .trust-list { gap: 34px; padding: 0 17px; }
  .evidence-card { margin-bottom: 45px; padding: 21px; box-shadow: 7px 7px 0 var(--forest); transform: none; }
  .margin-note { position: static; width: auto; margin-top: 18px; transform: none; }
  .positioning { padding: 28px 20px; }
  .section { padding: 85px 20px; }
  .section h2 { font-size: 45px; }
  .method { gap: 48px; }
  .method-steps li { grid-template-columns: 47px 1fr; }
  .section-heading { gap: 20px; margin-bottom: 40px; }
  .blog-index-heading { margin-bottom: 40px; }
  .service-grid { display: block; border: 0; background: transparent; }
  .service-card { min-height: 0; border: 1px solid var(--ink); border-bottom: 0; }
  .service-card:last-child { border-bottom: 1px solid var(--ink); }
  .card-index { margin-bottom: 25px; }
  .deadline-title { gap: 0; }
  .timeline { margin-top: 50px; }
  .timeline article { padding: 28px 0; }
  .checklist { gap: 45px; }
  .checklist-sheet { padding: 20px; box-shadow: 6px 6px 0 var(--line); }
  .checklist-sheet li { grid-template-columns: 35px 1fr; }
  .standard-grid { gap: 36px; padding-bottom: 40px; margin-bottom: 40px; }
  .audit-request { padding: 24px; margin-bottom: 40px; }
  .magnet-grid { grid-template-columns: 1fr; margin-bottom: 30px; }
  .pricing-grid { grid-template-columns: 1fr; margin-bottom: 30px; }
  .pricing-card { min-height: 0; }
  .demo-tools { grid-template-columns: 1fr; gap: 34px; }
  .demo-interactive { padding: 22px; }
  .newsletter-strip { padding: 22px; }
  .newsletter-form { flex-direction: column; align-items: stretch; }
  .newsletter-form input { width: auto; }
  form { padding: 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  footer { grid-template-columns: 1fr; padding-top: 45px; }
  .footer-legal { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-cta { padding: 24px; }
  .post-cta-actions { flex-direction: column; align-items: stretch; }
  .post-pager { flex-direction: column; }
  .tools-jumplinks { gap: 8px 18px; }
  .tools-badge-options { gap: 24px; }
  .tools-risk-result { padding: 22px; }
  .tools-risk-score { gap: 14px; }
  .tools-panel { padding: 22px; box-shadow: 6px 6px 0 var(--line); }
  .lead-grid { display: block; border: 0; background: transparent; }
  .lead-card { border: 1px solid var(--ink); border-bottom: 0; }
  .lead-card:last-child { border-bottom: 1px solid var(--ink); }
  .lead-cta-band { flex-direction: column; align-items: stretch; text-align: center; padding: 26px 22px; }
  .lead-cta-band-actions { justify-content: center; }
  .exit-modal { width: 92vw; padding: 32px 22px; box-shadow: 6px 6px 0 var(--redline); }
  .exit-modal h2 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .trust-track { animation: none !important; transform: none !important; }
  .trust-list[aria-hidden="true"] { display: none; }
}

@media print {
  .site-header, footer, .mobile-menu, .mobile-menu-overlay, .exit-modal, .exit-modal-overlay,
  main > section:not(.checklist) { display: none !important; }
  html, body { background: #fff; }
  main#main { display: block; margin: 0; padding: 0; }
  .checklist { display: block; padding: 0; margin: 0; }
  .checklist-copy, .checklist-sheet { display: none !important; }
  .checklist-print-only { display: block; color: #000; }
  .checklist-print-head { margin-bottom: 24px; }
  .checklist-print-head .sheet-label { border-bottom: 1px solid #000; color: #000; }
  .checklist-print-sub { margin: 6px 0 0; font-size: 12px; color: #000; }
  .checklist-block { break-inside: avoid-page; page-break-inside: avoid; border-top-color: #ccc; }
  .checklist-block-title, .checklist-block-title em { color: #000; }
  .checklist-group-label { color: #000; }
  .checklist-standards li::before, .checklist-flags li::before { color: #000; }
  .checklist-cta { color: #000; }
  .sheet-footer { border-top: 1px solid #000; color: #000; }
}
