/* =========================================================
   QuickQA Labs — landing page
   Dark hero + alternating light / dark sections.
   Colours are chosen for WCAG 2.2 AA contrast in both themes.
   ========================================================= */

:root {
  /* Palette */
  --navy-950: #0B1120;
  --navy-900: #0F172A;
  --navy-850: #111A2E;
  --navy-800: #1E293B;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --indigo-50: #EEF2FF;
  --indigo-200: #C7D2FE;
  --indigo-300: #A5B4FC;
  --indigo-400: #818CF8;
  --indigo-500: #6366F1;
  --indigo-600: #4F46E5;
  --indigo-700: #4338CA;
  --indigo-800: #3730A3;
  --cyan-300: #67E8F9;
  --cyan-400: #22D3EE;
  --white: #FFFFFF;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 68px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  /* Light theme (default) */
  --bg: #F8FAFC;
  --surface: var(--white);
  --text: var(--navy-900);
  --heading: var(--navy-950);
  --muted: var(--slate-600);
  --border: var(--slate-200);
  --accent: var(--indigo-700);
  --check: var(--indigo-600);
  --focus: var(--indigo-600);
}

.theme-dark {
  --bg: var(--navy-950);
  --surface: rgba(30, 41, 59, .55);
  --text: var(--slate-300);
  --heading: var(--slate-100);
  --muted: var(--slate-400);
  --border: rgba(148, 163, 184, .18);
  --accent: var(--cyan-300);
  --check: var(--cyan-400);
  --focus: var(--cyan-400);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy-900);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--heading);
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.15;
}

p { margin: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--indigo-500); color: var(--white); }

code {
  font-family: var(--font-mono);
  font-size: .85em;
  background: var(--slate-100);
  padding: .1em .35em;
  border-radius: 5px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 640px) {
  .container { padding-inline: 24px; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--white);
  color: var(--navy-950);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Theme blocks */
.theme-light, .theme-dark {
  background: var(--bg);
  color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 600 .975rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .25s ease, translate .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { text-decoration: none; }
.btn:active { translate: 0 1px; }

.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.025rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--indigo-600);
  color: var(--white);
}
.btn-primary:hover { background: var(--indigo-700); color: var(--white); }
.btn-primary:disabled { opacity: .7; cursor: progress; }

.btn-glow {
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, .55),
    0 10px 30px -8px rgba(99, 102, 241, .75),
    0 0 24px -4px rgba(34, 211, 238, .35);
}
.btn-glow:hover {
  box-shadow:
    0 0 0 1px rgba(165, 180, 252, .8),
    0 14px 38px -8px rgba(99, 102, 241, .9),
    0 0 36px -2px rgba(34, 211, 238, .55);
  translate: 0 -1px;
}

.btn-ghost {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(203, 213, 225, .32);
  color: var(--slate-100);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(203, 213, 225, .6); color: var(--white); }

.btn-outline {
  background: var(--white);
  border-color: var(--slate-300);
  color: var(--navy-900);
}
.btn-outline:hover { border-color: var(--indigo-600); color: var(--indigo-700); }

.btn-outline-light {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(148, 163, 184, .45);
  color: var(--slate-100);
}
.btn-outline-light:hover { border-color: var(--indigo-300); background: rgba(99, 102, 241, .14); color: var(--white); }

/* ---------- Header (glass) ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 17, 32, .82);
  border-bottom: 1px solid rgba(148, 163, 184, .1);
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
  --focus: var(--cyan-400);
}
/* Glass blur lives on a pseudo-element so the mobile menu panel (a child
   that extends below the header) is not affected by backdrop-filter. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}
.site-header.is-scrolled {
  background: rgba(11, 17, 32, .9);
  border-bottom-color: rgba(148, 163, 184, .18);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand lockup: "Speedy QA Loop" mark + QuickQA / Labs wordmark.
   The mark carries its own SVG glow and drop shadows; sizes scale from --brand-h. */
.brand {
  --brand-h: 46px;
  --word-size: calc(var(--brand-h) * .48);
  --labs-size: calc(var(--brand-h) * .37);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  line-height: 1;
}
.brand-mark {
  flex: none;
  height: var(--brand-h);
  width: calc(var(--brand-h) * 267 / 196); /* viewBox trimmed to the check arm's right edge */
  overflow: visible;
}
.brand-lockup { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.brand-word {
  font-weight: 800;
  font-size: var(--word-size);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand-quick { color: var(--white); }
.brand-qa { color: #22D3EE; text-shadow: 0 0 14px rgba(34, 211, 238, .5); }
.brand-labs {
  font-weight: 600;
  font-size: var(--labs-size);
  letter-spacing: -.01em;
  color: #22D3EE;
  text-shadow: 0 0 12px rgba(34, 211, 238, .35);
}
a.brand:hover .brand-mark { filter: brightness(1.15) saturate(1.1); }
@media (max-width: 400px) { .site-header .brand { --brand-h: 40px; } }
@media (prefers-reduced-motion: no-preference) { .brand-mark { transition: filter .3s ease; } }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(203, 213, 225, .25);
  border-radius: 10px;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--slate-300);
  font-size: .925rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, .06); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 16px 20px;
    background: var(--navy-950);
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .8);
  }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: 2px; }
  .nav-links a { padding: 12px; font-size: 1rem; }
  .nav-menu .btn { min-height: 48px; }
}

/* ---------- Shared section bits ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); position: relative; }

.section-head {
  max-width: 740px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.85rem, 1.15rem + 2.4vw, 2.9rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.075rem; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.check-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 12px;
}
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--check); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(64px, 8vw, 112px);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(99, 102, 241, .28), transparent 70%),
    radial-gradient(45% 45% at 10% 85%, rgba(34, 211, 238, .14), transparent 70%),
    radial-gradient(35% 30% at 50% 0%, rgba(129, 140, 248, .18), transparent 70%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(129, 140, 248, .35);
  border-radius: 999px;
  background: rgba(99, 102, 241, .12);
  color: var(--indigo-200);
  font-size: .875rem;
  font-weight: 500;
}
.pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .2);
}

.hero h1 {
  font-size: clamp(2.35rem, 1.3rem + 3.9vw, 4.1rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.035em;
  margin-bottom: 24px;
  text-wrap: balance;
}

.gradient-text {
  color: var(--indigo-300); /* fallback, also used for contrast checks */
  background: linear-gradient(100deg, var(--indigo-300) 0%, var(--cyan-300) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  max-width: 600px;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  color: var(--slate-300);
  margin-bottom: 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  margin: 0; padding: 0;
  color: var(--slate-400);
  font-size: .925rem;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--cyan-400); }

/* Live audit report preview card */
.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  border-radius: 40px;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .45), rgba(34, 211, 238, .15) 60%, transparent);
  filter: blur(40px);
  z-index: 0;
}

.audit-card {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 480px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(23, 32, 54, .96), rgba(13, 20, 38, .98));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .03) inset,
    0 40px 80px -30px rgba(0, 0, 0, .85),
    0 0 60px -20px rgba(99, 102, 241, .5);
  overflow: hidden;
}

.audit-card-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, .14);
  background: rgba(255, 255, 255, .02);
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.dots i:first-child { background: #F87171; }
.dots i:nth-child(2) { background: #FBBF24; }
.dots i:nth-child(3) { background: #4ADE80; }
.audit-card-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, .9);
  color: var(--slate-400);
  font: .8rem var(--font-mono);
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #86EFAC;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .6);
}

.audit-card-body {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px 24px 20px;
}

.score { position: relative; width: 132px; height: 132px; flex: none; }
.score-ring { width: 100%; height: 100%; }
.score-track { fill: none; stroke: rgba(148, 163, 184, .16); stroke-width: 10; }
.score-value {
  fill: none;
  stroke: url(#ring-gradient);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 6.53; /* 98 / 100 */
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, .45));
}
.score-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.score-num {
  font: 800 2.6rem/1 var(--font-display);
  color: var(--white);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.score-of { margin-top: 4px; font-size: .8rem; color: var(--slate-400); }

.score-label { color: var(--slate-400); font-size: .85rem; }
.score-grade {
  font: 700 1.5rem/1.2 var(--font-display);
  color: var(--white);
  margin: 2px 0 12px;
}
.wcag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(103, 232, 249, .35);
  border-radius: 999px;
  background: rgba(34, 211, 238, .1);
  color: var(--cyan-300);
  font-size: .8rem;
  font-weight: 700;
}
.wcag-badge svg { width: 14px; height: 14px; }

.audit-rows {
  list-style: none;
  margin: 0;
  padding: 4px 24px 18px;
  display: grid;
  gap: 8px;
}
.audit-rows li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 12px;
  background: rgba(15, 23, 42, .6);
  font-size: .9rem;
}
.row-label { color: var(--slate-200); font-weight: 500; }
.row-value { color: var(--slate-400); font-size: .85rem; }
.row-value strong { color: var(--white); font-variant-numeric: tabular-nums; }

.status {
  min-width: 52px;
  text-align: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
}
.status-pass { color: #86EFAC; background: rgba(34, 197, 94, .14); border: 1px solid rgba(74, 222, 128, .3); }

.scan-line {
  height: 3px;
  margin: 0 24px;
  border-radius: 3px;
  background: rgba(148, 163, 184, .14);
  overflow: hidden;
}
.scan-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--indigo-400), var(--cyan-400));
}

.audit-card-foot {
  padding: 14px 24px 18px;
  color: var(--slate-400);
  font-size: .8rem;
}

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "a11y a11y links"
    "a11y a11y mobile"
    "seo  report report";
  gap: 20px;
}
.tile-a11y   { grid-area: a11y; }
.tile-links  { grid-area: links; }
.tile-mobile { grid-area: mobile; }
.tile-seo    { grid-area: seo; }
.tile-report { grid-area: report; }

.tile {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 2.5vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -16px rgba(15, 23, 42, .12);
  overflow: hidden;
  isolation: isolate;
  transition: translate .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(99, 102, 241, .13), transparent 45%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.tile:hover {
  translate: 0 -4px;
  border-color: var(--indigo-200);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 24px 48px -22px rgba(79, 70, 229, .4);
}
.tile:hover::before { opacity: 1; }

.tile h3 { font-size: 1.25rem; font-weight: 700; }
.tile p { color: var(--muted); }

.tile-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--indigo-50);
  color: var(--indigo-600);
  margin-bottom: 4px;
}
.tile-icon svg { width: 24px; height: 24px; }

.tile-a11y h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); }
.tile-a11y > p { max-width: 560px; font-size: 1.025rem; }

.impact-list {
  list-style: none;
  margin: 8px 0 12px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.impact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #F8FAFC;
  color: var(--navy-900);
  font-size: .95rem;
}

.impact-text { flex: 1 1 auto; min-width: 0; }
.wcag-ref {
  flex: none;
  margin-left: auto;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--slate-500);
  font: 500 .75rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  letter-spacing: .02em;
}

.a11y-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.a11y-stats dt { color: var(--muted); font-size: .8rem; }
.a11y-stats dd {
  margin: 2px 0 0;
  color: var(--heading);
  font: 700 1rem/1.3 var(--font-display);
}
@media (max-width: 480px) {
  .a11y-stats { grid-template-columns: minmax(0, 1fr); }
}

.impact {
  flex: none;
  display: inline-block;
  min-width: 82px;
  text-align: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.impact-critical { background: #FEE4E2; color: #912018; }
.impact-serious  { background: #FFEDD5; color: #9A3412; }
.impact-moderate { background: #FEF3C7; color: #854D0E; }
.impact-minor    { background: var(--indigo-50); color: var(--indigo-800); }

.mini-log {
  margin-top: auto;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--navy-900);
  color: var(--slate-200);
  font: .8rem/1.5 var(--font-mono);
}
.mini-log b { display: inline-block; width: 1.2em; }
.mini-log .ok { color: #4ADE80; }
.mini-log .bad { color: #F87171; }

.devices {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding-top: 8px;
}
.device {
  display: block;
  border: 2px solid var(--indigo-200);
  border-radius: 8px;
  background:
    linear-gradient(var(--indigo-200), var(--indigo-200)) 8px 10px / 55% 4px no-repeat,
    linear-gradient(#E0E7FF, #E0E7FF) 8px 20px / 70% 4px no-repeat,
    linear-gradient(#E0E7FF, #E0E7FF) 8px 30px / 40% 4px no-repeat,
    var(--white);
  transition: border-color .3s ease, translate .3s var(--ease-out);
}
.device-phone  { width: 40px;  height: 70px; border-radius: 10px; }
.device-tablet { width: 72px;  height: 90px; }
.device-laptop { width: 128px; height: 80px; }
.tile:hover .device { border-color: var(--indigo-400); }
.tile:hover .device-phone { translate: 0 -4px; }
.tile:hover .device-tablet { translate: 0 -2px; }

.tag-list {
  margin-top: auto;
  list-style: none;
  padding: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-list li {
  padding: 4px 10px;
  border: 1px solid var(--indigo-200);
  border-radius: 8px;
  background: var(--indigo-50);
  color: var(--indigo-800);
  font: .8rem var(--font-mono);
}

/* Dark feature tile inside the light bento */
.tile.theme-dark {
  --surface: transparent;
  --border: rgba(129, 140, 248, .28);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(99, 102, 241, .32), transparent 55%),
    linear-gradient(135deg, var(--navy-850), var(--navy-950));
  box-shadow: 0 24px 48px -24px rgba(11, 17, 32, .7);
}
.tile.theme-dark::before {
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(34, 211, 238, .16), transparent 45%);
}
.tile.theme-dark:hover {
  border-color: rgba(103, 232, 249, .5);
  box-shadow: 0 30px 60px -24px rgba(79, 70, 229, .6);
}
.tile.theme-dark .tile-icon { background: rgba(99, 102, 241, .2); color: var(--indigo-300); }

.tile-report {
  flex-direction: row;
  align-items: center;
  gap: 32px;
}
.tile-report-copy { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; }
.text-link { font-weight: 600; margin-top: 4px; }

.pdf-stack { position: relative; flex: none; width: 150px; height: 180px; margin-right: 12px; }
.pdf-page {
  position: absolute;
  width: 128px; height: 166px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7);
  transition: rotate .4s var(--ease-out), translate .4s var(--ease-out);
}
.pdf-back { right: 0; top: 0; rotate: 8deg; background: #DCE3F0; }
.pdf-front {
  left: 0; bottom: 0;
  rotate: -4deg;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
}
.tile:hover .pdf-front { rotate: -7deg; translate: -4px -4px; }
.tile:hover .pdf-back { rotate: 11deg; }
.pdf-logo { width: 34px; height: 26px; padding: 3px 4px; border-radius: 6px; background: var(--navy-950); overflow: visible; }
.pdf-line { height: 6px; border-radius: 3px; background: var(--slate-200); }
.pdf-line.w45 { width: 45%; }
.pdf-line.w60 { width: 60%; }
.pdf-line.w70 { width: 70%; background: var(--slate-300); }
.pdf-line.w80 { width: 80%; }
.pdf-line.w90 { width: 90%; }
.pdf-ring {
  width: 44px; height: 44px;
  margin: 4px 0;
  border-radius: 50%;
  background: conic-gradient(var(--indigo-500) 0 80%, var(--slate-200) 80% 100%);
  -webkit-mask: radial-gradient(circle, transparent 13px, #000 14px);
  mask: radial-gradient(circle, transparent 13px, #000 14px);
}

@media (max-width: 1024px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "a11y   a11y"
      "links  mobile"
      "seo    seo"
      "report report";
  }
}

@media (max-width: 680px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "a11y" "links" "mobile" "seo" "report";
  }
  .tile-report { flex-direction: column; align-items: flex-start; }
  .pdf-stack { align-self: center; }
  .impact-list li { flex-wrap: wrap; gap: 8px 10px; }
  .impact-list .impact-text { order: 3; flex-basis: 100%; }
}

/* ---------- How it works: timeline ---------- */
#how {
  background:
    radial-gradient(50% 60% at 50% 100%, rgba(99, 102, 241, .16), transparent 70%),
    var(--navy-950);
}

.timeline {
  position: relative;
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 32px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: linear-gradient(90deg, var(--indigo-500), var(--cyan-400));
  opacity: .55;
}

.step { position: relative; text-align: center; padding: 0 8px; }
.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  font: 800 1.5rem/1 var(--font-display);
  color: var(--white);
  background:
    linear-gradient(var(--navy-950), var(--navy-950)) padding-box,
    linear-gradient(135deg, var(--indigo-400), var(--cyan-400)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 0 30px -6px rgba(99, 102, 241, .7);
}
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 320px; margin-inline: auto; }

@media (max-width: 760px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .timeline::before {
    top: 32px; bottom: 32px;
    left: 31px; right: auto;
    width: 2px; height: auto;
    background: linear-gradient(180deg, var(--indigo-500), var(--cyan-400));
  }
  .step { text-align: left; padding: 4px 0 0 88px; min-height: 64px; }
  .step-num { position: absolute; left: 0; top: 0; margin: 0; }
  .step p { margin-inline: 0; }
}

/* ---------- Sample report ---------- */
.sample-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.sample-copy h2 {
  font-size: clamp(1.85rem, 1.15rem + 2.4vw, 2.7rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.sample-copy > p { color: var(--muted); font-size: 1.05rem; }

.toc {
  list-style: none;
  margin: 28px 0 32px;
  padding: 0;
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--border);
}
.toc li {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.toc-num {
  width: 28px;
  flex: none;
  color: var(--indigo-700);
  font-family: var(--font-mono);
  font-weight: 600;
}

.sample-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.file-meta { margin-top: 14px; color: var(--muted); font-size: .875rem; }

.findings {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 30px 60px -32px rgba(15, 23, 42, .3);
}
.findings-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.findings-head h3 { font-size: 1.15rem; }
.findings-head span { color: var(--muted); font-size: .9rem; font-weight: 500; }

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid transparent;
}
.kpi strong { font: 800 1.35rem/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.kpi span { font-size: .8rem; color: var(--slate-600); }
.tone-good { background: #ECFDF3; border-color: #ABEFC6; }
.tone-good strong { color: #067647; }
.tone-warn { background: #FFFAEB; border-color: #FEDF89; }
.tone-warn strong { color: #B54708; }
.tone-bad  { background: #FEF3F2; border-color: #FECDCA; }
.tone-bad strong { color: #B42318; }

.issue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.issue {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.issue strong { font-size: .95rem; color: var(--navy-900); }
.issue small { grid-column: 2; color: var(--muted); font-size: .8rem; }

/* ---------- Pricing ---------- */
#pricing {
  background:
    radial-gradient(40% 50% at 70% 30%, rgba(99, 102, 241, .18), transparent 70%),
    radial-gradient(35% 40% at 20% 80%, rgba(34, 211, 238, .08), transparent 70%),
    var(--navy-950);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(17, 26, 46, .75);
  transition: translate .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease;
}
.plan:hover { translate: 0 -4px; border-color: rgba(165, 180, 252, .4); }

.plan-featured {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--navy-850), var(--navy-850)) padding-box,
    linear-gradient(135deg, var(--indigo-400), var(--cyan-400)) border-box;
  box-shadow: 0 30px 80px -30px rgba(99, 102, 241, .65), 0 0 50px -20px rgba(34, 211, 238, .35);
}
.plan-featured:hover { border-color: transparent; box-shadow: 0 36px 90px -30px rgba(99, 102, 241, .8), 0 0 60px -16px rgba(34, 211, 238, .45); }

.plan-flag {
  position: absolute;
  top: -14px;
  left: 50%;
  translate: -50% 0;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--cyan-300);
  color: var(--navy-950);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 20px -6px rgba(34, 211, 238, .7);
}

.plan h3 { font-size: 1.35rem; margin-bottom: 8px; }
.plan-desc { color: var(--muted); margin-bottom: 24px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 28px; }
.plan-price .amount {
  font: 800 3.25rem/1 var(--font-display);
  color: var(--white);
  letter-spacing: -.03em;
}
.plan-price .period { color: var(--slate-400); font-weight: 500; }
.plan .check-list { margin-bottom: 32px; color: var(--slate-300); }
.plan .btn { margin-top: auto; }

.pricing-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  max-width: 900px;
  margin: 36px auto 0;
  padding: 16px 20px;
  border: 1px dashed rgba(148, 163, 184, .35);
  border-radius: var(--radius);
  color: var(--slate-300);
  text-align: center;
  font-size: .95rem;
}
.pricing-note svg { width: 18px; height: 18px; color: var(--cyan-400); }
.pricing-note a { font-weight: 600; }

@media (max-width: 760px) {
  .pricing-grid { grid-template-columns: minmax(0, 1fr); max-width: 480px; gap: 36px; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.contact-intro h2 {
  font-size: clamp(1.85rem, 1.15rem + 2.4vw, 2.7rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.contact-lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 32px; }

.contact-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact-points li { display: flex; gap: 16px; align-items: flex-start; }
.contact-points strong { display: block; color: var(--heading); }
.contact-points li > span:last-child { color: var(--muted); }
.contact-point-icon {
  width: 44px; height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--indigo-50);
  color: var(--indigo-600);
}
.contact-point-icon svg { width: 22px; height: 22px; }

.audit-form {
  padding: clamp(24px, 3.5vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 40px 80px -40px rgba(15, 23, 42, .35);
}
.form-head { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.form-head h3 { font-size: 1.35rem; margin-bottom: 6px; }
.form-head p { color: var(--muted); font-size: .95rem; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.field label { font-weight: 600; font-size: .925rem; color: var(--navy-900); }
.optional { color: var(--slate-600); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #7C8AA0;
  border-radius: 12px;
  background: var(--white);
  color: var(--navy-900);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field ::placeholder { color: var(--slate-500); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--slate-600); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--indigo-600);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .22);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--indigo-600);
  outline-offset: 1px;
  border-radius: 12px;
}
.field [aria-invalid="true"] { border-color: #B42318; }
.field-error { color: #B42318; font-size: .85rem; font-weight: 500; }
.field-error:empty { display: none; }

.audit-form .btn[type="submit"] { margin-top: 6px; }

.form-status { margin-top: 16px; }
.form-status:empty { display: none; }
.form-status.is-success,
.form-status.is-error {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid;
  font-size: .95rem;
}
.form-status strong { display: block; margin-bottom: 2px; }
.form-status.is-success { background: #ECFDF3; border-color: #ABEFC6; color: #054F31; }
.form-status.is-error { background: #FEF3F2; border-color: #FECDCA; color: #7A271A; }
.form-status.is-error a { color: #7A271A; font-weight: 600; }
.form-status-detail { display: block; margin-top: 6px; font-size: .8rem; opacity: .9; }

.form-note { margin-top: 16px; text-align: center; color: var(--muted); font-size: .875rem; }
.form-note a { color: var(--indigo-700); font-weight: 600; }

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .audit-form { max-width: 640px; width: 100%; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Footer ---------- */
.site-footer {
  --bg: #070B16;
  padding: 56px 0 32px;
  border-top: 1px solid rgba(148, 163, 184, .12);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.brand-footer { --brand-h: 48px; }
.footer-tagline { max-width: 280px; margin: 12px 0 0; color: #94A3B8; font-size: 14px; line-height: 1.5; text-wrap: balance; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0; padding: 0; }
.footer-links a {
  display: inline-block;
  padding: 8px 10px;
  color: var(--slate-300);
  text-decoration: none;
  font-size: .925rem;
  border-radius: 8px;
}
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { padding-top: 24px; color: var(--slate-400); font-size: .85rem; }

/* ---------- Responsive layout ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .sample-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .audit-card-body { flex-direction: column; text-align: center; gap: 16px; }
  .audit-rows { padding-inline: 16px; }
  .audit-rows li { grid-template-columns: 1fr auto; }
  .row-value { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sample-actions .btn { width: 100%; }
}

@media (min-width: 1600px) {
  .container { max-width: 1320px; }
}

/* =========================================================
   Motion (only when JavaScript is running and the visitor
   has not asked for reduced motion)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveal */
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity .7s ease var(--reveal-delay, 0s),
      transform .8s var(--ease-out) var(--reveal-delay, 0s),
      translate .3s var(--ease-out),
      box-shadow .3s ease,
      border-color .3s ease;
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  /* Hero entrance */
  .js .hero-copy > * { animation: rise .8s var(--ease-out) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .js .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .js .hero-copy > :nth-child(5) { animation-delay: .32s; }
  .js .audit-card { animation: rise 1s var(--ease-out) .2s both; }
  .js .audit-rows li { animation: rise .6s var(--ease-out) both; }
  .js .audit-rows li:nth-child(1) { animation-delay: .7s; }
  .js .audit-rows li:nth-child(2) { animation-delay: .82s; }
  .js .audit-rows li:nth-child(3) { animation-delay: .94s; }
  .js .audit-rows li:nth-child(4) { animation-delay: 1.06s; }

  .js .scan-line span { animation: scan 2.6s ease-in-out infinite; transform-origin: left; }
  .live-dot { animation: pulse 2s ease-out infinite; }
  .pill-dot { animation: pulse-cyan 2.4s ease-out infinite; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes scan {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
@keyframes pulse-cyan {
  0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, .5); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .tile:hover, .plan:hover, .btn-glow:hover { translate: none; }
}
