/* Alexibility site. Every color pair here meets WCAG 2.2 AA contrast in both themes. */
@font-face {
  font-family: "Bricolage Grotesque Variable";
  src: url("/fonts/bricolage.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter Variable";
  src: url("/fonts/inter.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #efede6;
  --ink: #121417;
  --muted: #4b5058;
  --line: #dcd9cf;
  --brand: #1d4ed8;
  --brand-ink: #1d4ed8;
  --btn: #1d4ed8;
  --btn-hover: #1e40af;
  --on-btn: #ffffff;
  --lime: #d9f99d;
  --on-lime: #1a2e05;
  --red-bg: #fde8e8;
  --red: #8a1414;
  --code-bg: #101317;
  --code-ink: #e6e8eb;
  --code-del: #ffb4b4;
  --code-add: #bdf28a;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(18 20 23 / 6%), 0 12px 32px rgb(18 20 23 / 7%);
  --max: 1180px;
  --header-h: 68px;
  --font-display: "Bricolage Grotesque Variable", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e11;
    --surface: #14171c;
    --surface-2: #1b1f26;
    --ink: #eef0f3;
    --muted: #b4b9c2;
    --line: #2b3039;
    --brand: #8eaaff;
    --brand-ink: #a9bfff;
    --lime: #bef264;
    --red-bg: #4a1515;
    --red: #ffd2d2;
    --code-bg: #07090b;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px rgb(0 0 0 / 35%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  font-feature-settings: "cv11", "ss01";
}
img, svg { max-width: 100%; }
a { color: var(--brand-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 0.5em; font-weight: 650; }
h1 { font-size: clamp(2.5rem, 4.6vw + 1rem, 4.75rem); letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 2.4vw + 1rem, 3rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.015em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 10px; border: 2px solid var(--brand); font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section-tight { padding: clamp(40px, 5vw, 72px) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 0.8125rem/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.lede { font-size: clamp(1.125rem, 0.6vw + 1rem, 1.3125rem); color: var(--muted); max-width: 44rem; }
.muted { color: var(--muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.25rem/1 var(--font-display); letter-spacing: -0.02em; min-height: 44px; }
.nav-desktop ul, .nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-desktop ul { display: flex; align-items: center; gap: 4px; }
.nav-desktop a, .nav-mobile a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.975rem; }
.nav-desktop a:hover, .nav-mobile a:hover { background: var(--surface-2); }
.nav-desktop a[aria-current="page"], .nav-mobile a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-desktop .btn, .nav-mobile .btn { margin-left: 8px; color: var(--on-btn); }
.nav-mobile { display: none; position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] ul { position: absolute; right: 0; top: calc(100% + 8px); width: min(86vw, 320px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 8px; }
.nav-mobile[open] li a { display: flex; width: 100%; }
@media (max-width: 960px) { .nav-desktop { display: none; } .nav-mobile { display: block; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 1rem/1 var(--font-body); text-decoration: none; border: 1px solid transparent; transition: transform 0.15s ease, background-color 0.15s ease; }
.btn-primary { background: var(--btn); color: var(--on-btn); }
.btn-primary:hover { background: var(--btn-hover); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--surface-2); text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 7vw, 96px); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 22%, transparent), transparent); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: -12%; bottom: -30%; width: 46vw; height: 46vw; max-width: 600px; max-height: 600px; background: radial-gradient(closest-side, color-mix(in srgb, var(--lime) 55%, transparent), transparent); pointer-events: none; opacity: 0.7; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--lime) 62%); padding: 0 0.06em; color: var(--ink); }
@media (prefers-color-scheme: dark) { .hero h1 em { background: none; color: var(--lime); } }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Code diff card */
.diff { margin: 0; min-width: 0; background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid #23272e; }
.diff-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #23272e; font: 500 0.8125rem/1.3 var(--font-body); color: #c3c8d0; }
.diff-head > span:last-child { white-space: nowrap; }
@media (max-width: 480px) { .diff-head .dots { display: none; } }
.diff-head .dots { display: inline-flex; gap: 6px; }
.diff-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f47; display: block; }
.diff pre { margin: 0; padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; font-size: 0.875rem; }
.diff .del { color: var(--code-del); display: block; }
.diff .add { color: var(--code-add); display: block; }
.diff-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 0.8125rem/1.3 var(--font-body); background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.pill-lime { background: var(--lime); color: var(--on-lime); border-color: transparent; }
.pill-red { background: var(--red-bg); color: var(--red); border-color: transparent; }
.diff .pill { background: #1c2027; color: #e6e8eb; border-color: #2c313a; }
.diff .pill-lime { background: #bef264; color: #1a2e05; }

/* Cards and grids */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 28px); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-link { position: relative; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card-link a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link:hover { box-shadow: var(--shadow); }
.card-link:focus-within { outline: 3px solid var(--brand); outline-offset: 3px; }
.card-link a:focus-visible { outline: none; }
.card .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 0.95rem/1 var(--font-display); margin-bottom: 16px; }
.bento { display: grid; gap: 16px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bento > * { grid-column: span 2; }
.bento > .wide { grid-column: span 4; }
.bento > .tall { grid-row: span 2; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento > *, .bento > .wide { grid-column: span 2; } .bento > .tall { grid-row: auto; } }
.card-ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.card-ink .muted { color: color-mix(in srgb, var(--bg) 78%, var(--ink)); }
.card-ink a { color: var(--bg); }
.card-lime { background: var(--lime); color: var(--on-lime); border-color: transparent; }
.stat { font: 700 clamp(2.5rem, 3vw + 1.5rem, 3.75rem)/1 var(--font-display); letter-spacing: -0.04em; margin-bottom: 10px; display: block; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 28px; margin: 0 0 10px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips a, .chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.chips a:hover { border-color: var(--ink); }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Prose pages */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.6rem, 1.4vw + 1rem, 2.1rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 0.4em; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 20px; font-size: 0.9375rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.callout { border-left: 4px solid var(--brand); background: var(--surface); border-radius: var(--radius-sm); padding: 18px 20px; margin: 24px 0; }
.sources { font-size: 0.9375rem; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.975rem; }
caption { text-align: left; padding: 14px 16px; font-weight: 600; }
th, td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); font-weight: 600; }
.criteria-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.criteria-list a { display: flex; gap: 12px; align-items: baseline; min-height: 44px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-decoration: none; }
.criteria-list a:hover { border-color: var(--ink); }
.criteria-list .sc { font: 700 0.95rem/1 var(--font-display); color: var(--brand-ink); min-width: 3.4em; }

/* Pricing */
.price { font: 700 2.25rem/1 var(--font-display); letter-spacing: -0.03em; margin: 8px 0 12px; display: block; }
.price small { font: 500 1rem var(--font-body); color: var(--muted); letter-spacing: 0; }
.card-featured { border: 2px solid var(--brand); }
.card .btn { margin-top: 20px; width: 100%; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 64px; padding: 16px 0; font: 600 1.125rem/1.35 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--font-body); color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 20px; max-width: 46rem; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 18px; max-width: 34rem; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { display: block; color: var(--muted); font-size: 0.9375rem; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--muted); background: var(--surface); color: var(--ink); font: inherit; }
.field textarea { min-height: 120px; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--bg); border-radius: calc(var(--radius) + 8px); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center; }
.cta-band h2 { margin-bottom: 0.3em; }
.cta-band p { color: color-mix(in srgb, var(--bg) 80%, var(--ink)); margin: 0; }
.cta-band .btn-primary { background: var(--lime); color: var(--on-lime); }
.cta-band .btn-primary:hover { background: color-mix(in srgb, var(--lime) 85%, #ffffff); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: clamp(40px, 6vw, 80px); font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.site-footer h2 { font: 600 0.8125rem/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .card-link:hover { transform: translateY(-2px); }
  .btn:active { transform: scale(0.98); }
}
@media (forced-colors: active) {
  .btn, .card, .pill, .chips a { border: 1px solid CanvasText; }
  .hero::before, .hero::after { display: none; }
}

/* The free-scan form's honeypot: people never see it; form-filling bots tend to fill it in. */
.hp { display: none; }
