/* GotAlt — design system
   Palette: warm paper, near-black ink, deep green accent, marker-yellow highlight.
   The site itself must be WCAG AA: high contrast, visible focus, keyboard friendly. */

:root {
  --paper: #FCFBF6;
  --ink: #14120D;
  --muted: #5F5B4F;
  --line: #E4E0D2;
  --green: #0B7A50;
  --green-bright: #10A66B;
  --green-dark: #085C3C;
  --yellow: #FFE24A;
  --card: #FFFFFF;
  --danger: #B3261E;
  --radius: 14px;
  --display: "Fraunces", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}

.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

a { color: var(--green); }
a:hover { color: var(--green-dark); }

:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(252, 251, 246, 0.92);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.7rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.wordmark-accent { color: var(--green); }
.wordmark-q { color: var(--green-bright); }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-header nav a:hover { color: var(--green); }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; text-align: center; }
.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(4rem, 13vw, 9.5rem);
  line-height: 0.95;
  margin: 0 0 28px;
  letter-spacing: -0.03em;
}
.hero-title em {
  font-style: italic;
  color: var(--green);
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 94%, transparent 94%);
  padding: 0 0.08em;
}
.hero-sub {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.2rem;
  color: var(--muted);
}
.hero-sub strong { color: var(--ink); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--body);
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-small { padding: 8px 16px; font-size: 0.9rem; background: var(--ink); color: var(--paper); border: none; }
.btn-small:hover { background: var(--green-dark); }
.btn-quiet { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn-quiet:hover { background: var(--line); color: var(--ink); }

/* ---------- Tool ---------- */
.tool-section { padding: 40px 0 80px; }
.tool-section h2, .why-section h2, .pricing-section h2, .faq-section h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.1rem;
  margin: 0 0 26px;
}

.style-picker {
  border: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.style-picker legend {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.pill {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 18px;
  /* The native radio inside is invisible (opacity 0), so this outline is the ONLY graphic that says "this is a
     choice" for an unselected pill: it has to be 3:1 (WCAG 1.4.11). --line was 1.28:1 on the paper. */
  border: 2px solid var(--muted);
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}
.pill:has(input:checked) {
  border-color: var(--green);
  /* --muted and --green are close in lightness, so a chosen pill gets a thicker edge as well as a green one:
     "chosen" must not rest on hue alone (WCAG 1.4.1). The ring is inset so nothing moves. */
  box-shadow: inset 0 0 0 1px var(--green);
  background: #EAF6F0;
}
.pill:has(input:focus-visible) {
  outline: 3px solid var(--green-bright);
  outline-offset: 2px;
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill-hint { font-size: 0.78rem; color: var(--muted); font-weight: 500; }

.tool-options { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.field { flex: 1 1 260px; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.optional { font-weight: 500; color: var(--muted); }
.field input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--muted);
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--body);
  background: var(--card);
  color: var(--ink);
}
.field input:focus { border-color: var(--green); }

.dropzone {
  border: 2.5px dashed var(--green);
  border-radius: var(--radius);
  background: #F3F8F4;
  padding: 52px 24px;
  text-align: center;
  cursor: pointer;
  color: var(--green-dark);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.dropzone:hover, .dropzone.drag-over {
  background: #E7F3EB;
  border-color: var(--green-dark);
}
.dropzone-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  margin: 14px 0 4px;
  color: var(--ink);
}
.dropzone-sub { margin: 0 0 6px; color: var(--muted); }
.dropzone-formats { margin: 0; font-size: 0.82rem; color: var(--muted); }

.quota-note { margin: 14px 0 0; font-size: 0.9rem; color: var(--muted); }
.quota-note.limit { color: var(--danger); font-weight: 600; }

.results-toolbar { display: flex; gap: 10px; margin: 24px 0 0; flex-wrap: wrap; }

.results { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.result-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  align-items: start;
}
.result-thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--line);
}
.result-body { min-width: 0; }
.result-filename {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-text {
  width: 100%;
  border: 1.5px solid var(--muted); /* it is also the class of the <select>s and <textarea>s on the generator and heading-checker pages: --line was 1.28:1 */
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
  min-height: 58px;
}
.result-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}
.char-count { font-size: 0.8rem; color: var(--muted); }
.char-count.over { color: var(--danger); font-weight: 600; }
.badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
}
.copy-btn {
  margin-left: auto;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
}
.copy-btn:hover { background: var(--ink); color: var(--paper); }
.copy-btn.copied { background: var(--green); border-color: var(--green); color: #fff; }
.result-error { color: var(--danger); font-weight: 600; margin: 4px 0 0; }
.result-meta-top { margin-top: 0 !important; margin-bottom: 8px; }
.sev-ok { background: var(--green); }

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.generating { color: var(--muted); font-size: 0.95rem; display: inline-flex; gap: 10px; align-items: center; }

/* ---------- Scanner ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-compact { padding: 64px 0 40px; }
.hero-title-small { font-size: clamp(2.4rem, 7vw, 4.5rem); }

.scan-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  max-width: 620px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.scan-form input {
  flex: 1 1 320px;
  padding: 14px 18px;
  font-size: 1.1rem;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--body);
}
.scan-form input:focus { border-color: var(--green); }
.scan-status { margin-top: 18px; color: var(--muted); }
.scan-status.error { color: var(--danger); font-weight: 600; }

.report-section { padding: 30px 0 60px; }
.report-summary {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.score-ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 7px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--card);
  flex-shrink: 0;
}
.score-ring.score-a { border-color: var(--green-bright); }
.score-ring.score-b { border-color: #7BB662; }
.score-ring.score-c { border-color: #D9A404; }
.score-ring.score-d { border-color: #C4530A; }
.score-ring.score-f { border-color: var(--danger); }
.score-number {
  font-family: var(--display);
  font-weight: 900;
  font-size: 2.8rem;
  line-height: 1;
}
.score-grade { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-top: 4px; }
.report-facts { flex: 1; min-width: 240px; }
.report-url { font-weight: 700; margin: 0 0 6px; overflow-wrap: anywhere; }
.report-facts p { margin: 0 0 6px; color: var(--muted); }
.report-alt-cta { color: var(--ink) !important; }

.fixplan-box {
  background: #EAF6F0;
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 18px 0;
}
.fixplan-box h3 { font-family: var(--display); margin: 0 0 10px; }
.fixplan-box p { margin: 0 0 10px; }

.issues { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.issue-clean {
  background: #EAF6F0;
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-weight: 600;
}
.issue-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.issue-card summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
}
.issue-card summary::-webkit-details-marker { display: none; }
.issue-title { flex: 1; }
.issue-count { color: var(--muted); font-weight: 700; }
.sev {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  flex-shrink: 0;
}
.sev-critical { background: var(--danger); }
.sev-serious { background: #C4530A; }
.sev-moderate { background: #8A6D00; }
.sev-minor { background: var(--muted); }
.issue-body { padding: 0 18px 16px; color: var(--muted); }
.issue-body p { margin: 0 0 8px; }
.issue-wcag { font-size: 0.82rem; font-weight: 700; color: var(--green-dark) !important; }
.issue-samples { margin: 0 0 8px; padding-left: 20px; }
.issue-samples code {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.83rem;
  overflow-wrap: anywhere;
}
.issue-samples-label, .issue-pages { font-size: 0.85rem; }

/* ---------- Deep AI audit (premium) ---------- */
.issues-heading {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 28px 0 4px;
}
.issues-sub { color: var(--muted); margin: 0 0 4px; font-size: 0.95rem; }

.audit-box {
  margin: 30px 0 0;
  padding: 24px 26px;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #EAF6F0 0%, var(--card) 60%);
}
.audit-box h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.badge-premium {
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--ink);
  color: var(--yellow);
  padding: 4px 10px;
  border-radius: 999px;
}
.audit-intro { color: var(--muted); margin: 0 0 16px; max-width: 640px; }
.audit-intro em { color: var(--ink); font-style: italic; }
.audit-status { margin: 14px 0 0; color: var(--muted); }
.audit-status.error { color: var(--danger); font-weight: 600; }
.audit-suggestion {
  background: var(--paper);
  border-left: 3px solid var(--green);
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  color: var(--ink) !important;
}
#audit-findings { margin-top: 16px; }

/* ---------- Rule-engine vs GotAlt comparison ---------- */
.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.compare-col {
  background: #201D15;
  border: 1px solid #38342A;
  border-radius: var(--radius);
  padding: 24px 26px;
}
.compare-col-ours {
  background: var(--green-dark);
  border-color: var(--green-bright);
}
.compare-col h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 14px;
  color: var(--yellow);
}
.compare-col ul { margin: 0 0 14px; padding-left: 20px; color: #CFCBBE; }
.compare-col li { margin-bottom: 9px; }
.compare-col-ours ul { color: #E8F5EE; }
/* Links on the dark compare panel: the default green is 3.14:1 on #201D15, the
   bright one 5.36:1. On the green "ours" panel the bright green is only 2.57:1
   and the default hover colour is the panel's own colour, so links there are the
   panel's light text, underlined. */
.compare-col a { color: var(--green-bright); }
.compare-col-ours a { color: #E8F5EE; }
/* Inside a .prose wrapper, `.prose code` (a white chip, later in this file and
   the same specificity) used to win, leaving the panel's light text on white at
   1.62:1. The second selector out-ranks it, so a compare panel keeps its dark chip
   wherever it sits. */
.compare-col code,
.prose .compare-col code {
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.88em;
}
.compare-note { margin: 0; font-size: 0.85rem; color: #9A9482; font-style: italic; }
.compare-col-ours .compare-note { color: #B8DECB; }
.compare-why { color: var(--muted); max-width: 760px; margin: 0; }

.manual-note {
  border-left: 4px solid var(--yellow);
  background: #FFFBE8;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 22px;
  margin: 26px 0;
}
.manual-note h3 { font-family: var(--display); margin: 0 0 8px; font-size: 1.1rem; }
.manual-note p { margin: 0; color: var(--muted); }

.capture-section { padding: 0 0 70px; }
.capture-box {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 30px 32px;
  margin-top: 26px;
}
.capture-box h3 { font-family: var(--display); font-size: 1.4rem; margin: 0 0 8px; color: var(--yellow); }
.capture-box p { margin: 0 0 16px; color: #CFCBBE; max-width: 560px; }
.capture-form { display: flex; gap: 10px; flex-wrap: wrap; }
.capture-form input {
  flex: 1 1 260px;
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid #7A7566;
  border-radius: 999px;
  background: #201D15;
  color: var(--paper);
  font-family: var(--body);
}
.capture-form input:focus { border-color: var(--green-bright); }
/* The ghost button is ink on transparent with an ink border: on the dark CTA box
   that is ink on ink, 1.00:1, an invisible control (/guides/ada-title-ii-deadline/).
   Paper on ink is 18:1. The primary button next to it is unaffected. */
.capture-box .btn-ghost { color: var(--paper); border-color: var(--paper); }
.capture-box .btn-ghost:hover { background: var(--paper); color: var(--ink); }
.capture-done { color: var(--green-bright) !important; font-weight: 700; }

/* ---------- Checks grid ---------- */
.checks-section { padding: 70px 0 40px; }
.checks-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.checks-grid li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
}
.checks-grid li::before { content: "✓ "; color: var(--green); font-weight: 800; }
.checks-note { color: var(--muted); }

/* ---------- Why ---------- */
.why-section { padding: 70px 0; background: var(--ink); color: var(--paper); }
.why-section h2 { color: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: #201D15;
  border: 1px solid #38342A;
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0 0 10px;
  color: var(--yellow);
}
.card p { margin: 0; color: #CFCBBE; font-size: 0.98rem; }
/* Dark cards need the bright green: the default link green is 3.13:1 on
   #201D15, the bright one 5.35:1. Found by running the bookmarklet on the
   home page, where five "Read our ... guide" links failed AA.
   `.card-light` is a .card in the markup (class="card card-light") but a WHITE
   one, where the bright green is 3.14:1 — so the rule names the dark card, not
   every .card. (First written as `.card a`, which fixed the dark cards by
   breaking the light ones on /guides/eaa-compliance/.) */
.card:not(.card-light) a { color: var(--green-bright); }

/* ---------- Agency section ---------- */
.agency-section { padding: 70px 0 30px; }
.section-sub { color: var(--muted); max-width: 680px; margin: -10px 0 26px; }
.card-light {
  background: var(--card);
  border: 1.5px solid var(--line);
}
.card-light h3 { color: var(--green-dark); }
.card-light p { color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing-section { padding: 70px 0; }
.pricing-note { color: var(--muted); margin: 18px 0 0; font-size: 0.95rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}
.plan-featured { border-color: var(--green); box-shadow: 0 8px 28px rgba(11, 122, 80, 0.14); }
.plan h3 { font-family: var(--display); font-weight: 800; font-size: 1.25rem; margin: 0 0 6px; }
.plan-price { font-family: var(--display); font-weight: 900; font-size: 2.6rem; margin: 0 0 16px; }
.plan-per { font-size: 1rem; font-weight: 600; color: var(--muted); font-family: var(--body); }
.plan ul { margin: 0 0 24px; padding-left: 20px; color: var(--muted); flex: 1; }
.plan li { margin-bottom: 8px; }
.plan .btn { text-align: center; }

/* ---------- FAQ ---------- */
.faq-section { padding: 60px 0 90px; max-width: 100%; }
.faq-section details {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq-section summary {
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 0;
  cursor: pointer;
}
.faq-section summary:hover { color: var(--green); }
.faq-section details p { margin: 0 0 16px; color: var(--muted); max-width: 720px; }

/* ---------- Long-form prose (guides) ---------- */
.prose { max-width: 720px; }
.prose h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  margin: 44px 0 14px;
  line-height: 1.25;
}
.prose h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.22rem;
  margin: 30px 0 10px;
}
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin-bottom: 9px; }
.prose code {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}
.prose blockquote {
  margin: 0 0 18px;
  padding: 12px 20px;
  border-left: 4px solid var(--green);
  background: var(--card);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
.prose > p:first-child { font-size: 1.1rem; color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 22px; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.data-table caption {
  text-align: left;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0 0 8px;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table th { font-weight: 700; background: var(--paper); }
.data-table tr:last-child td { border-bottom: none; }

/* ---------- Honest / limitations callout ---------- */
.callout-honest {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-left: 5px solid var(--muted);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 24px;
  margin: 26px 0;
}
.callout-honest h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin: 0 0 8px;
}
.callout-honest p:last-child { margin-bottom: 0; }
.callout-honest ul { margin: 0; padding-left: 20px; color: var(--muted); }

/* ---------- Numbered steps ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 24px; }
.step {
  counter-increment: step;
  position: relative;
  padding: 0 0 20px 52px;
  border-left: 2px solid var(--line);
  margin-left: 16px;
}
.step:last-child { border-left-color: transparent; padding-bottom: 0; }
.step::before {
  content: counter(step);
  position: absolute;
  left: -17px;
  top: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.step h3 { font-family: var(--display); font-size: 1.1rem; margin: 2px 0 6px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Tool index cards ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.tool-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.tool-card h3 { font-family: var(--display); font-size: 1.15rem; margin: 0 0 8px; }
.tool-card h3 a { text-decoration: none; }
.tool-card h3 a:hover { text-decoration: underline; }
.tool-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.tool-card-flag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--yellow);
  color: var(--ink);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* ---------- Contrast checker ---------- */
.contrast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}
.swatch-field label { display: block; font-weight: 700; margin-bottom: 6px; }
.swatch-row { display: flex; gap: 10px; align-items: center; }
.swatch-row input[type="color"] {
  width: 54px;
  height: 46px;
  padding: 2px;
  border: 2px solid var(--muted);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
}
.swatch-row input[type="text"] {
  flex: 1;
  padding: 11px 14px;
  border: 2px solid var(--muted);
  border-radius: 10px;
  font-family: var(--body);
  font-size: 1rem;
  background: var(--card);
  color: var(--ink);
}
.contrast-preview {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 20px;
}
.contrast-preview p { margin: 0 0 10px; }
.contrast-big { font-size: 1.55rem; font-weight: 700; }
.contrast-ratio {
  font-family: var(--display);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  margin: 0 0 6px;
}
.verdict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.verdict {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--card);
}
.verdict-label { font-size: 0.8rem; color: var(--muted); display: block; margin-bottom: 4px; }
.verdict-value { font-weight: 800; font-size: 1.05rem; }
.verdict-pass { color: var(--green-dark); }
.verdict-fail { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 26px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 26px;
  margin-bottom: 28px;
}
.footer-col h2 {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 0 0 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 0.93rem; color: var(--ink); text-decoration: none; }
.footer-col a:hover { color: var(--green); text-decoration: underline; }
.footer-disclaimer {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 760px;
}
.footer-legal { margin: 0; font-size: 0.85rem; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-row p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.footer-tag { font-family: var(--display); font-style: italic; font-weight: 700; }

@media (max-width: 560px) {
  .result-card { grid-template-columns: 64px 1fr; }
  .result-thumb { width: 64px; height: 64px; }
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: 0.85rem; }
}

/* --- Price calculator (/pricing/) ------------------------------------- */
.price-calc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 0 0 28px;
}
.calc-title {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 0 0 18px;
}
.price-calc .style-picker { margin-bottom: 18px; }
.price-calc .tool-options { margin-bottom: 4px; }
.price-calc .field { flex: 0 1 320px; }
.calc-output {
  display: block;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
}
.calc-figure {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  margin: 0 0 8px;
  /* The figure is recomputed on every keystroke. Reserving the line stops the
     paragraph below it from jumping as the number changes width. */
  min-height: 1.2em;
}
.calc-breakdown {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 62ch;
}

/* --- Sign-in and account pages ---------------------------------------- */
.signin-form { max-width: 26rem; margin: 0 0 48px; }
.signin-form .field { margin-bottom: 18px; }
.signin-status { margin: 16px 0 0; font-size: 0.95rem; line-height: 1.6; }
.signin-status.is-ok { color: var(--green); font-weight: 600; }
.signin-status.is-error { color: var(--danger); font-weight: 600; }
.signin-notes { max-width: 44rem; }

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin: 0 0 28px;
  padding: 0;
}
.account-grid > div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.account-grid dt {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 6px;
}
.account-grid dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  /* Email addresses have no spaces to break at and will otherwise push the
     whole grid wider than the viewport on a phone. */
  overflow-wrap: anywhere;
}

/* --- Sites and pages management (/app/) -------------------------------- */
.app-section { margin: 0 0 48px; }
.app-section h2 { font-family: var(--display); font-size: 1.4rem; margin: 0 0 8px; }

.site-list, .page-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.site-row, .page-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.site-origin, .page-url {
  font-weight: 700;
  /* URLs have no spaces to break at and would otherwise widen the whole row
     past the viewport on a phone. */
  overflow-wrap: anywhere;
  min-width: 0;
  flex: 1 1 240px;
}
.site-meta { color: var(--muted); font-size: 0.9rem; }
.page-actions { display: flex; gap: 8px; margin-left: auto; }

/* A waiting page is not an error. It was accepted, exactly as /pricing/ says,
   and it starts being checked the moment capacity exists — so it gets a neutral
   badge, not the red one. */
.badge.state-active { background: var(--green); }
.badge.state-paused_quota { background: var(--muted); }
.badge.state-paused_site { background: var(--muted); }
.badge.state-paused_user { background: var(--ink); }

.inline-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.inline-form .field { flex: 1 1 220px; }
.inline-form .btn { flex: 0 0 auto; }
.inline-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--muted);
  border-radius: 10px;
  font: inherit;
  background: var(--card);
  color: var(--ink);
}
.inline-form select:focus { border-color: var(--green); }

/* --- Overview tiles ----------------------------------------------------- */
.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.score-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius);
  padding: 16px 18px;
}
.score-value { font-family: var(--display); font-size: 1.9rem; font-weight: 800; margin: 0; }
.score-label {
  margin: 2px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
/* Severity is carried by the left border AND the label text, never by colour
   alone — the product exists to catch exactly this mistake. */
.score-tile.sev-critical { border-left-color: var(--danger); }
.score-tile.sev-serious  { border-left-color: #C4620E; }
.score-tile.sev-moderate { border-left-color: #8A7A1F; }
.score-tile.sev-minor    { border-left-color: var(--muted); }

/* --- Issue list --------------------------------------------------------- */
.issue-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.issue-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.issue-row summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 16px 18px;
  cursor: pointer;
  /* The default marker sits awkwardly next to a badge, but removing it without
     a replacement leaves no open/closed affordance — so it moves to the end. */
  list-style: none;
}
.issue-row summary::-webkit-details-marker { display: none; }
.issue-row summary::after {
  content: "▾";
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.15s;
}
.issue-row details[open] summary::after { transform: rotate(180deg); }
.issue-row summary:focus-visible { outline: 3px solid var(--green-bright); outline-offset: -3px; }
.issue-title { font-weight: 700; flex: 0 1 auto; }
.issue-page {
  color: var(--muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
  min-width: 0;
  flex: 1 1 200px;
}
.issue-detail { padding: 0 18px 18px; border-top: 1px solid var(--line); }
.issue-detail p { line-height: 1.65; }
.issue-problem { font-weight: 600; }
.issue-quote {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  overflow-wrap: anywhere;
}
.issue-evidence-label { font-weight: 700; margin-bottom: 4px; }
.issue-samples {
  margin: 0 0 12px;
  padding-left: 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.issue-meta { font-size: 0.85rem; color: var(--muted); margin: 12px 0 0; }
.issue-actions { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.badge.sev-critical { background: var(--danger); }
.badge.sev-serious  { background: #C4620E; }
.badge.sev-moderate { background: #8A7A1F; }
.badge.sev-minor    { background: var(--muted); }

.alert-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.alert-toggle input {
  /* 24px is the WCAG 2.2 minimum target size (2.5.8, AA). flex-shrink:0 is the
     load-bearing part: inside the flex label the box was being squeezed to 13px
     wide despite a declared width, so it shipped under the minimum on an
     accessibility product's own dashboard. Measured at 375px, not assumed. */
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  accent-color: var(--green);
}

/* =========================================================================
   SELF-AUDIT, 2026-09-30. Three defects of our own, found by running the new
   free tools on this site — the tools were built to find exactly this.
   - Four :focus rules set outline:none, which out-specified the site-wide
     :focus-visible ring above, leaving a border-colour change as the only
     focus cue. Removed; the ring now shows everywhere.
   - Text inputs and selects were bordered in --line, 1.32:1 against white.
     WCAG 1.4.11 asks 3:1 for the boundary that identifies a control: now
     --muted (6.78:1). The capture-form input on the dark CTA box was 1.50:1
     against the box and is now #7A7566 (4.06:1 box, 3.65:1 field).
   - .compare-why was #CFCBBE — a colour for the dark compare block — on the
     light page, 1.56:1. Now --muted, 6.54:1.
   ========================================================================= */

/* ---------- Contrast checker (/tools/contrast-checker/) ---------- */
/* Everything degrades cleanly without these: the page is fully usable unstyled. */
.cc-alpha { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.cc-alpha input[type="number"] {
  width: 7em;
  padding: 11px 14px;
  border: 2px solid var(--muted); /* --muted, not --line: input edges need 3:1 (WCAG 1.4.11) */
  border-radius: 10px;
  font-family: var(--body);
  font-size: 1rem;
  background: var(--card);
  color: var(--ink);
}
.cc-alpha input[type="range"] { flex: 1 1 160px; min-width: 140px; accent-color: var(--green); }
.cc-targets label { display: inline-flex; align-items: baseline; gap: 6px; margin-right: 16px; cursor: pointer; }
.cc-targets input { accent-color: var(--green); }
/* Small swatch beside a hex value. Always followed by the hex as text. */
.cc-chip {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin: 0 0.35em 0 0.1em;
  border: 2px solid var(--ink);
  border-radius: 4px;
  vertical-align: -0.2em;
}
/* "Aa" sample on each suggestion card; colours are set from JS. */
.cc-sample {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
}
.cc-icon { vertical-align: middle; margin-right: 8px; }
.cc-fixes { max-width: 720px; }
.cc-share { margin-top: 36px; }

/* ---------- Image contrast checker (/tools/image-contrast-checker/) ---------- */
/* touch-action:none is functional — without it a finger drag scrolls the page
   instead of drawing the box. The 70vh cap always leaves part of the screen
   free of canvas, so touch users can still scroll past it. */
.imgcc-canvas {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  touch-action: none;
  cursor: crosshair;
}

/* ---------- Accessibility bookmarklet (/tools/accessibility-bookmarklet/) ---------- */
.bm-code {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--muted); /* not --line: 1.32:1 would fail 1.4.11 */
  border-radius: 10px;
  font: 0.8rem/1.4 ui-monospace, Consolas, Menlo, monospace;
  background: var(--card);
  color: var(--ink);
  resize: vertical;
}
.bm-code:focus-visible { border-color: var(--green); }

/* ---------- PDF accessibility checker (/tools/pdf-accessibility-checker/) ---------- */
.pdfcheck-progress {
  display: block;
  width: 100%;
  max-width: 480px;
  height: 14px;
  margin: 8px 0 12px;
  accent-color: var(--green);
}
.report-section #groups h3 { font-family: var(--display); font-size: 1.25rem; margin: 28px 0 4px; }

/* AI TOOLS HIDDEN UNTIL ANTHROPIC_API_KEY IS SET.
   Everything that offers the alt text checker, the alt text generator, the deep
   audit or the AI fix plan carries class="ai-feature". Without the key those
   tools answer in demo mode, so they are hidden rather than shown unfinished,
   and class="ai-fallback" marks the free-scan stand-ins shown in their place.
   To show the AI tools again: change the selector below from .ai-feature to
   .ai-fallback, and delete the three AI lines in public/_redirects.
   !important because scan-ui.js un-hides the fix plan button and the audit box
   with the hidden attribute after a scan. */
.ai-feature { display: none !important; }
