/* AidAhead website. One stylesheet, no web fonts, no remote files (website/guards.py checks).
   Colors are tokens; guards.py checks each text/background pair for WCAG AA contrast (4.5:1)
   in both the light and the dark block. */
:root {
  --bg: #ffffff;
  --surface: #f2f6f7;
  --text: #13232b;
  --muted: #475761;
  --link: #0a5a87;
  --accent: #0b6b61;
  --on-accent: #ffffff;
  --accent-soft: #e2f1ee;
  --accent-text: #08544c;
  --border: #d3dfe2;
  --note-bg: #fff5dc;
  --note-text: #4f3a00;
  --footer-bg: #13232b;
  --footer-text: #dfe8eb;
  --footer-link: #9fd6f5;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e181d;
    --surface: #17252c;
    --text: #e7eef1;
    --muted: #a8b9c1;
    --link: #82c8f0;
    --accent: #5cc6b5;
    --on-accent: #062520;
    --accent-soft: #143733;
    --accent-text: #8fe0d2;
    --border: #2a3c44;
    --note-bg: #3a2f10;
    --note-text: #f6e3b0;
    --footer-bg: #081014;
    --footer-text: #c9d6db;
    --footer-link: #8fd0f3;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, .card-link:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin-top: .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 3.2vw, 1.75rem); }
h3 { font-size: 1.1rem; }
p, ul, ol { margin: 0 0 1em; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
.prose { max-width: 760px; }
.wrap.prose { max-width: 1060px; }
.wrap.prose > * { max-width: 760px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header and navigation: wraps onto two lines at phone width (no JavaScript menu). */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; font-size: .97rem; }
.nav a { color: var(--text); text-decoration: none; padding: 4px 0; display: inline-block; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--border); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 600; }

/* Page sections */
.page { padding: 28px 0 48px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent-text); margin: 0; }
.crumbs { font-size: .92rem; color: var(--muted); margin: 0; }
.hero { padding: 48px 0 36px; background: var(--surface); border-bottom: 1px solid var(--border); }
.hero h1 { max-width: 820px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.button { display: inline-block; padding: 11px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; background: var(--accent); color: var(--on-accent); }
.button.secondary { background: transparent; color: var(--link); border: 2px solid var(--border); }
.section { padding: 40px 0; }
.section + .section { border-top: 1px solid var(--border); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 20px 0 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .proof { font-size: .93rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 10px; margin-top: 12px; }
.icon { display: inline-flex; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 8px; }
.icon svg { width: 22px; height: 22px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 20px 0 0; }
.stat { border-left: 4px solid var(--accent); padding: 4px 0 4px 14px; }
.stat strong { display: block; font-size: 1.7rem; line-height: 1.2; color: var(--accent-text); }
.stat span { color: var(--muted); font-size: .95rem; }

.note { background: var(--note-bg); color: var(--note-text); border-radius: 12px; padding: 16px 18px; }
.note a { color: inherit; }
.callout { background: var(--accent-soft); color: var(--text); border-radius: 14px; padding: 20px; }

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--accent-text); border-bottom: 3px solid var(--accent-text); transform: rotate(-45deg); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 20px; }
.plan { border: 1px solid var(--border); border-radius: 16px; padding: 24px; background: var(--bg); }
.plan.featured { border: 2px solid var(--accent); background: var(--surface); }
.plan h2 { margin-top: 0; }
.price { font-size: 2.2rem; font-weight: 700; line-height: 1.1; margin: 0; }
.price small { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan .sub { color: var(--muted); margin-top: 4px; }

/* Help */
.topic-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.card-link { display: block; height: 100%; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); text-decoration: none; }
.card-link strong { display: block; color: var(--link); font-size: 1.08rem; margin-bottom: 4px; }
.card-link span { color: var(--muted); font-size: .95rem; }
.card-link:hover { border-color: var(--accent); }
.steps { padding-left: 1.4em; }
.steps li { margin-bottom: .55em; padding-left: .2em; }
.point h3 { margin: 1.2em 0 .25em; }
.more { margin-top: 2em; }

.glossary dt { font-weight: 700; margin-top: 1em; }
.glossary dd { margin: .2em 0 0; color: var(--text); }
.from-app { margin-bottom: 1.4em; }
.from-app .cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Methodology */
.sources { font-size: .95rem; }
.sources li { margin-bottom: .5em; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface); }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 32px 0 40px; font-size: .92rem; }
.site-footer a { color: var(--footer-link); }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin: 0 0 18px; font-size: 1rem; }
.site-footer .legal { font-size: .85rem; margin-bottom: .5em; }
.site-footer .free { font-size: 1rem; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 32px 0 28px; }
  .section { padding: 30px 0; }
  .button { width: 100%; text-align: center; }
}
