/* =========================================================
   QuickQA Labs — landing page
   Dark hero + dashboard preview, then 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: 20px; }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-login {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--slate-200);
  font-size: .925rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.nav-login:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.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: 1024px) {
  .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-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nav-login { justify-content: center; min-height: 48px; border: 1px solid rgba(203, 213, 225, .32); }
  .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;
  text-wrap: balance; /* no single orphaned word on the last line */
}
/* Keeps a short phrase together so a heading breaks between sentences, not inside them.
   A phrase still wraps internally if it is wider than the screen. */
.phrase { display: inline-block; }
.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: 18px; }



/* 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;
}

/* ---------- Dashboard preview ---------- */
.preview {
  padding-top: clamp(32px, 5vw, 72px);
  background:
    radial-gradient(55% 45% at 50% 60%, rgba(99, 102, 241, .2), transparent 70%),
    var(--navy-950);
}

.preview-frame {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  border: 1px solid rgba(148, 163, 184, .22);
  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 50px 100px -40px rgba(0, 0, 0, .9),
    0 0 90px -30px rgba(99, 102, 241, .65);
  overflow: hidden;
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, .14);
}
.preview-url {
  flex: 1;
  min-width: 0;
  max-width: 360px;
  margin-inline: auto;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, .9);
  color: var(--slate-400);
  font: .8rem var(--font-mono);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-bar::after { content: ""; width: 42px; flex: none; } /* balances the dots so the URL stays centred */

.preview-screen { background: #F8FAFC; overflow: hidden; }
.preview-screen img { width: 100%; height: auto; }
@media (min-width: 900px) {
  .preview-screen { aspect-ratio: 16 / 10; }
  .preview-screen img { height: 100%; object-fit: cover; object-position: top center; }
}
/* Phones: a smaller radius plus a thin bezel, so the frame's rounded corners
   never clip the screenshot's corner content (e.g. the sidebar footer links). */
@media (max-width: 640px) {
  .preview-frame { border-radius: 14px; }
  .preview-bar { padding: 9px 12px; }
  .preview-screen { margin: 0 5px 5px; border-radius: 8px; }
}

/* Privacy & security reassurance under the dashboard preview */
.trust-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: clamp(28px, 3.5vw, 40px);
  text-align: center;
}
.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--slate-300);
  font-size: .925rem;
  font-weight: 500;
}
.trust-strip li { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip svg { width: 18px; height: 18px; flex: none; color: var(--cyan-400); }
.trust-link { color: var(--accent); font-size: .875rem; font-weight: 600; }

/* ---------- What we check: 5 pillars ---------- */
.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.pillar { grid-column: span 2; }
.pillar:nth-child(4) { grid-column: 2 / span 2; }
.pillar:nth-child(5) { grid-column: 4 / span 2; }

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

@media (max-width: 1024px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar, .pillar:nth-child(4) { grid-column: auto; }
  .pillar:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
}

/* Shared card (pillars) with a pointer-following glow */
.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; }

/* Accessibility impact badges (sample report) */
.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); }

/* ---------- 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(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 18px; /* room for the "Most Popular" badge that overhangs the featured card */
  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);
  overflow: visible; /* never clip the badge */
  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: 0;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%); /* centred on the top border; transform works in older Safari too */
  margin: 0;
  padding: 5px 14px;
  line-height: 1.4;
  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-price .period { white-space: nowrap; }
.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: 960px) {
  .pricing-grid { grid-template-columns: minmax(0, 1fr); max-width: 480px; gap: 36px; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: border-color .2s ease, box-shadow .25s ease;
}
.faq[open] { border-color: var(--indigo-200); box-shadow: 0 18px 40px -26px rgba(79, 70, 229, .4); }
.faq summary {
  position: relative;
  display: block;
  padding: 20px 64px 20px 24px;
  border-radius: var(--radius);
  color: var(--heading);
  font: 700 1.075rem/1.4 var(--font-display);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 30px; height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background: var(--indigo-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234338CA' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 15px no-repeat;
  transition: rotate .25s var(--ease-out);
}
.faq[open] summary::after { rotate: 45deg; }
.faq summary:hover { color: var(--indigo-700); }
.faq summary:focus-visible { outline-offset: 2px; border-radius: var(--radius); }
.faq-body { padding: 0 24px 22px; color: var(--muted); }
.faq-body p + p { margin-top: 10px; }
@media (max-width: 480px) {
  .faq summary { padding: 18px 56px 18px 18px; font-size: 1rem; }
  .faq summary::after { right: 14px; }
  .faq-body { padding: 0 18px 18px; }
}

/* ---------- Final CTA / contact ---------- */
.cta-band {
  background:
    radial-gradient(50% 70% at 50% 0%, rgba(99, 102, 241, .22), transparent 70%),
    radial-gradient(40% 50% at 85% 100%, rgba(34, 211, 238, .1), transparent 70%),
    var(--navy-950);
}
.cta-panel {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 56px);
  border: 1.5px solid transparent;
  border-radius: 28px;
  background:
    linear-gradient(var(--navy-850), var(--navy-850)) padding-box,
    linear-gradient(135deg, rgba(129, 140, 248, .75), rgba(34, 211, 238, .6)) border-box;
  box-shadow: 0 40px 90px -40px rgba(99, 102, 241, .6);
  text-align: center;
}
.cta-panel h2 {
  font-size: clamp(1.85rem, 1.15rem + 2.4vw, 2.7rem);
  font-weight: 800;
  margin-bottom: 14px;
  text-wrap: balance;
}
.cta-lead { max-width: 600px; margin: 0 auto 28px; color: var(--muted); font-size: 1.075rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 20px; }

.section-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: clamp(44px, 5vw, 64px);
}

.cta-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-300);
  font-size: .95rem;
}
.cta-note svg { width: 16px; height: 16px; flex: none; color: var(--cyan-400); }
.cta-panel .cta-note, .section-cta .cta-note { justify-content: center; }

@media (max-width: 480px) {
  .cta-actions .btn, .section-cta .btn { width: 100%; }
  .cta-note { align-items: flex-start; text-align: left; }
  .cta-note svg { margin-top: 4px; }
}

/* ---------- 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: flex-start;
  gap: 32px 48px;
  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; }
/* Two link groups: Product and Legal & Support (Razorpay needs the legal pages linked site-wide) */
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px clamp(48px, 7vw, 96px); }
.footer-heading {
  margin-bottom: 8px;
  color: var(--slate-400);
  font: 700 .75rem/1.4 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-links { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.footer-links a {
  display: inline-block;
  padding: 6px 0;
  color: var(--slate-300);
  text-decoration: none;
  font-size: .925rem;
  border-radius: 6px;
}
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-links a[aria-current="page"] { color: var(--cyan-300); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding-top: 24px;
  color: var(--slate-400);
  font-size: .85rem;
}

/* ---------- Inner pages: page header (legal pages, contact) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(44px, 6vw, 88px));
  padding-bottom: clamp(44px, 5.5vw, 72px);
  text-align: center;
}
.page-hero-inner { max-width: 760px; margin-inline: auto; }
.page-hero h1 {
  font-size: clamp(2.1rem, 1.35rem + 2.8vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 16px;
  text-wrap: balance;
}
.page-lead {
  max-width: 640px;
  margin-inline: auto;
  color: var(--slate-300);
  font-size: clamp(1.03rem, 1rem + .2vw, 1.125rem);
  text-wrap: pretty;
}
.page-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 6px 14px;
  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;
}
.page-meta svg { width: 16px; height: 16px; flex: none; color: var(--cyan-400); }
.page-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- Legal pages: contents + readable policy text ---------- */
.legal { padding-block: clamp(48px, 6vw, 96px); }
.legal-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  max-width: 1080px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  max-height: calc(100vh - var(--header-h) - 56px);
  overflow-y: auto;
  padding: 2px; /* keeps focus outlines inside the scroll box */
}
.legal-toc-title {
  margin-bottom: 12px;
  color: var(--accent);
  font: 700 .8rem/1.4 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.legal-toc a {
  display: block;
  margin-left: -2px;
  padding: 6px 0 6px 16px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}
.legal-toc a:hover { color: var(--accent); border-left-color: var(--indigo-400); }

.prose { max-width: 72ch; color: var(--text); font-size: 1.0625rem; line-height: 1.75; }
.prose > section + section {
  margin-top: clamp(36px, 4.5vw, 52px);
  padding-top: clamp(36px, 4.5vw, 52px);
  border-top: 1px solid var(--border);
}
.prose h2 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.65rem); font-weight: 700; margin-bottom: 16px; text-wrap: balance; }
.prose h3 { font-size: 1.125rem; font-weight: 700; margin: 28px 0 10px; }
.prose p, .prose ul, .prose address { margin: 0 0 16px; }
.prose section > :last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.35em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--indigo-600); }
.prose strong { color: var(--heading); font-weight: 600; }
.prose a { font-weight: 500; }

.legal-summary {
  margin-bottom: clamp(36px, 4.5vw, 52px);
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--indigo-200);
  border-radius: var(--radius-lg);
  background: var(--indigo-50);
}
.prose .legal-summary h2 { font-size: 1.2rem; margin-bottom: 14px; }
.prose .check-list { padding-left: 0; margin: 0; font-size: 1rem; }
.prose .check-list li + li { margin-top: 0; }

.legal-note {
  padding: 16px 20px;
  border-left: 3px solid var(--indigo-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--slate-100);
  font-size: 1rem;
}

.legal-address {
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-style: normal;
  font-size: 1rem;
}

.prose .legal-plans {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.prose .legal-plans li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: .95rem;
  line-height: 1.6;
}
.legal-plan-name { color: var(--heading); font: 700 1.05rem/1.3 var(--font-display); }
.legal-plan-price { color: var(--indigo-700); font: 800 1.5rem/1.15 var(--font-display); letter-spacing: -.02em; }
.legal-plan-price small { color: var(--muted); font: 500 .85rem var(--font-body); letter-spacing: 0; }

.legal-related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: .95rem;
}
.legal-related p { margin: 0; color: var(--muted); font-weight: 600; }
.legal-related ul { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; }
.legal-related li + li { margin-top: 0; }

@media (max-width: 960px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .legal-toc {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
  }
  .legal-toc ol { border-left: 0; columns: 2 220px; column-gap: 28px; }
  .legal-toc li { break-inside: avoid; }
  .legal-toc a { margin-left: 0; padding: 5px 0; border-left: 0; }
}
@media (max-width: 760px) {
  .prose .legal-plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .prose { font-size: 1rem; }
  .page-actions .btn { width: 100%; }
}

/* ---------- Contact page ---------- */
.contact-section { padding-block: clamp(48px, 6vw, 96px); }
.contact-cards {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1080px;
}
.tile .contact-value { color: var(--heading); font-size: 1.05rem; font-weight: 600; line-height: 1.5; }
.contact-value a { color: var(--accent); }

.contact-more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1080px;
  margin: 20px auto 0;
}
.contact-panel {
  padding: clamp(24px, 3vw, 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);
}
.contact-panel h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 18px; }

.details-list { display: grid; gap: 0; margin: 0; }
.details-list > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.details-list > div:first-child { border-top: 0; padding-top: 0; }
.details-list dt { color: var(--muted); font-size: .9rem; font-weight: 600; }
.details-list dd { margin: 0; color: var(--heading); font-weight: 500; }
.dd-note { color: var(--muted); font-weight: 400; }

.help-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.help-list li { display: grid; gap: 2px; }
.help-list strong { color: var(--heading); font-weight: 600; }
.help-list span { color: var(--muted); }

@media (max-width: 900px) {
  .contact-cards, .contact-more { grid-template-columns: minmax(0, 1fr); max-width: 600px; }
}
@media (max-width: 480px) {
  .details-list > div { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Print (legal pages) ---------- */
@media print {
  .site-header, .site-footer, .legal-toc, .skip-link, .page-actions, .hero-bg { display: none !important; }
  .theme-dark { --bg: #FFFFFF; --text: #0F172A; --heading: #0B1120; --muted: #475569; }
  .page-hero { padding: 0 0 16px; }
  .legal-layout { display: block; }
  .prose { max-width: none; }
}

/* ---------- 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-copy .cta-note { 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; }
}
