/* ==========================================================================
   CtrlDeploy Landing Page
   Impeccable design system applied. Dark engineering aesthetic. Mobile-first.
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
  /* ── Colors (OKLCH for perceptual uniformity) ── */
  --bg:            oklch(0.145 0.015 250);    /* #0d1117 equivalent, cool-tinted */
  --bg-surface:    oklch(0.175 0.012 250);    /* #161b22 equivalent */
  --bg-card:       oklch(0.195 0.010 250);    /* #1c2128 equivalent */
  --bg-highlight:  oklch(0.22 0.008 250);     /* #21262d equivalent */

  --text:          oklch(0.93 0.008 250);     /* #e6edf3 equivalent, cool-tinted neutral */
  --text-muted:    oklch(0.62 0.012 250);     /* #7D8590 equivalent */
  --text-dim:      oklch(0.52 0.010 250);     /* #6e7681 equivalent */

  --accent:        oklch(0.72 0.19 145);      /* #39D353 — brand green */
  --accent-hover:  oklch(0.62 0.17 145);      /* #2ea043 — darker on press */
  --accent-glow:   oklch(0.72 0.19 145 / 0.15);

  --warn:          oklch(0.68 0.14 80);       /* amber */
  --warn-glow:     oklch(0.68 0.14 80 / 0.12);

  --danger:        oklch(0.62 0.22 25);       /* violation red */

  --border:        oklch(0.30 0.008 250);     /* subtle cool-tinted border */

  /* ── Syntax highlight ── */
  --code-keyword:  oklch(0.68 0.16 20);       /* warm red */
  --code-class:    oklch(0.72 0.14 300);      /* purple */
  --code-string:   oklch(0.72 0.12 230);      /* blue */
  --code-prop:     oklch(0.72 0.14 60);       /* orange */

  /* ── Typography — Modular scale (ratio 1.25, 5 sizes) ── */
  --font-body:     'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:     'IBM Plex Mono', ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --text-xs:       0.8rem;     /* 12.8px */
  --text-sm:       0.875rem;   /* 14px */
  --text-base:     1rem;       /* 16px */
  --text-lg:       1.25rem;    /* 20px */
  --text-xl:       1.563rem;   /* 25px */

  --leading:       1.75;       /* base line-height — increased for dark bg readability */
  --leading-tight: 1.15;       /* headings */

  /* ── Spacing — 4pt base grid ── */
  --space-1:       0.25rem;    /* 4px */
  --space-2:       0.5rem;     /* 8px */
  --space-3:       0.75rem;    /* 12px */
  --space-4:       1rem;       /* 16px */
  --space-6:       1.5rem;     /* 24px */
  --space-8:       2rem;       /* 32px */
  --space-12:      3rem;       /* 48px */
  --space-16:      4rem;       /* 64px */
  --space-24:      6rem;       /* 96px */

  /* ── Motion tokens ── */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);      /* elements appearing */
  --ease-in:       cubic-bezier(0.7, 0, 0.84, 0);       /* elements disappearing */
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);      /* state toggles */

  --duration-instant:   100ms;   /* button press, toggle */
  --duration-fast:      200ms;   /* hover, tooltip */
  --duration-moderate:  300ms;   /* menu, state change */
  --duration-slow:      500ms;   /* accordion, modal */

  /* ── Layout ── */
  --max-width:     1080px;
  --radius:        6px;
  --focus-ring:    2px solid oklch(0.72 0.19 145);  /* accent-colored focus */
  --focus-offset:  3px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration-instant) var(--ease-out);
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Focus — visible for keyboard, hidden for pointer ---------- */
:focus {
  outline: none;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius);
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.mono {
  font-family: var(--font-mono);
}

.accent {
  color: var(--accent);
}

.accent-text {
  color: var(--warn);
  font-weight: 700;
  font-size: 1.15em;
}

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

.section-label {
  font-size: var(--text-sm);
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-4);
}

/* ---------- Headings — IBM Plex Mono, tight leading ---------- */
h1, h2 {
  font-family: var(--font-mono);
  line-height: var(--leading-tight);
}

/* ---------- Prose measure — 65ch max for readability ---------- */
p, .faq__answer, .module__desc, .card__body, .how__desc, .why__list li {
  max-width: 65ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    transform var(--duration-instant) var(--ease-out),
    background var(--duration-instant) var(--ease-out),
    box-shadow var(--duration-instant) var(--ease-out),
    color var(--duration-instant) var(--ease-out);
  color: var(--bg);
  background: var(--accent);
  text-align: center;
  min-height: 44px;  /* touch target */
  min-width: 44px;
}

.btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 50ms;
}

.btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.btn--sm {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
}

.btn--lg {
  font-size: 1.05rem;
  padding: var(--space-3) var(--space-8);
}

.btn--glow {
  box-shadow: 0 0 30px var(--accent-glow), 0 0 60px var(--accent-glow);
}

.btn--glow:hover {
  box-shadow: 0 0 40px var(--accent-glow), 0 0 80px var(--accent-glow);
}

.btn--secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn--secondary:hover {
  background: oklch(0.72 0.19 145 / 0.08);
  text-decoration: none;
}

.btn--secondary:active {
  background: oklch(0.72 0.19 145 / 0.14);
}

/* ---------- Nav (sticky) ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: oklch(0.145 0.015 250 / 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.nav__logo:hover {
  text-decoration: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav__links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration-instant) var(--ease-out);
  padding: var(--space-2) var(--space-1);  /* expand touch target */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav__links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;   /* 44px touch target */
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--duration-instant) var(--ease-out);
}

.nav__hamburger:hover {
  border-color: var(--text-muted);
}

.nav__hamburger:active {
  transform: scale(0.95);
}

.nav__hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition:
    transform var(--duration-moderate) var(--ease-in-out),
    opacity var(--duration-moderate) var(--ease-in-out);
}

.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--space-24) 0 var(--space-16);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero__tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  opacity: 0.9;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  text-align: center;
}

.hero__sub {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: var(--leading);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero__pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  list-style: none;
  padding: 0;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero__pillars li {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.hero__pillar-label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.hero__pillar-detail {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: center;
  margin-top: var(--space-8);
  margin-bottom: var(--space-2);
}

.hero__qualifier {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-dim);
  margin-top: var(--space-2);
  text-align: center;
  max-width: none;
}

/* ---------- Code Block ---------- */
.code-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-6);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
  white-space: pre;
  tab-size: 2;
}

.code-keyword { color: var(--code-keyword); }
.code-class   { color: var(--code-class); }
.code-string  { color: var(--code-string); }
.code-prop    { color: var(--code-prop); }

/* ---------- Problem ---------- */
.problem {
  padding: var(--space-16) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-8);
  max-width: 640px;
}

/* Enforcement ledger */
.enforcement {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--space-8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.enforcement__row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0;
  padding: var(--space-3) var(--space-6);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration-fast) var(--ease-out);
}

.enforcement__row:last-child {
  border-bottom: none;
}

.enforcement__row--live {
  background: oklch(0.62 0.22 25 / 0.04);
}

.enforcement__row--fines {
  background: oklch(0.68 0.14 80 / 0.06);
}

.enforcement__status {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  align-self: baseline;
  padding-top: 0.15rem;
}

.enforcement__status--live {
  color: var(--danger);
}

.enforcement__status--upcoming {
  color: var(--warn);
}

.enforcement__status--fines {
  color: var(--warn);
}

.enforcement__what {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.enforcement__detail {
  grid-column: 2;
  font-size: var(--text-sm);
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 0.15rem;
}

/* Fine math */
.fine-math {
  margin-bottom: var(--space-8);
  padding: var(--space-6);
  background: oklch(0.62 0.22 25 / 0.04);
  border: 1px solid oklch(0.62 0.22 25 / 0.15);
  border-radius: var(--radius);
}

.fine-math__headline {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-6);
  line-height: 1.3;
}

.fine-math__nocap {
  color: var(--danger);
}

.fine-math__note {
  font-size: var(--text-xs);
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin-top: var(--space-2);
}

/* Enforcement ticker */
.ticker__track {
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: var(--space-3) 0;
  margin: var(--space-4) calc(-1 * var(--space-6)) calc(-1 * var(--space-6));
  border-radius: 0 0 var(--radius) var(--radius);
}

.ticker__scroll {
  display: flex;
  gap: var(--space-8);
  padding-right: var(--space-8);
  animation: ticker-slide 40s linear infinite;
  flex-shrink: 0;
}

.ticker__track:hover .ticker__scroll {
  animation-play-state: paused;
}

@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.ticker__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker__amount {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--warn);
  font-variant-numeric: tabular-nums;  /* OpenType: tabular numbers for alignment */
}

.ticker__item--major .ticker__amount {
  color: var(--danger);
}

.ticker__sep {
  color: var(--text-dim);
  font-size: var(--text-xs);
}

.ticker__who {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.ticker__why {
  font-size: var(--text-sm);
  color: var(--text-dim);
}

.ticker__year {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

/* ---------- Solution ---------- */
.solution {
  padding: var(--space-16) 0;
}

.solution h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-8);
  max-width: 640px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-6) var(--space-8);
  transition:
    border-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card__icon {
  display: inline-block;
  font-size: var(--text-xs);
  color: var(--accent);
  margin-bottom: var(--space-4);
  opacity: 0.7;
}

.card__title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.card__body {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- Solution Code Block ---------- */
.solution__code {
  margin-top: var(--space-12);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.solution__code-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
  margin-bottom: var(--space-3);
  text-align: center;
  max-width: none;
}

/* ---------- Modules — What Gets Deployed ---------- */
.modules {
  padding: var(--space-16) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.modules h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-8);
  max-width: 640px;
}

.modules__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.module {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-6) var(--space-8);
  transition:
    border-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.module:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.modules__intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 65ch;
  margin-bottom: var(--space-8);
}

.modules__group-label {
  font-size: var(--text-sm);
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-4);
  margin-top: var(--space-8);
}

.modules__group-label:first-of-type {
  margin-top: 0;
}

.module__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.module__title {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--accent);
}

/* Overlap badges */
.module__overlap {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: 3px;
  white-space: nowrap;
}

.module__overlap--high {
  color: var(--accent);
  background: oklch(0.72 0.19 145 / 0.08);
  border: 1px solid oklch(0.72 0.19 145 / 0.25);
}

.module__overlap--partial {
  color: var(--accent);
  background: oklch(0.72 0.19 145 / 0.05);
  border: 1px solid oklch(0.72 0.19 145 / 0.15);
}

.module__overlap--new {
  color: var(--text-dim);
  background: var(--bg-highlight);
  border: 1px solid var(--border);
}

/* Pipeline flow */
.module__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.module__step {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding: var(--space-1) var(--space-3);
  background: var(--bg-highlight);
  border: 1px solid var(--border);
  border-radius: 3px;
  white-space: nowrap;
}

.module__step--final {
  color: var(--accent);
  border-color: oklch(0.72 0.19 145 / 0.3);
  background: oklch(0.72 0.19 145 / 0.06);
}

.module__arrow {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-dim);
}

/* Tag clusters */
.module__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.module__code {
  display: block;
  margin-bottom: var(--space-4);
}

.module__tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding: var(--space-1) var(--space-3);
  background: var(--bg-highlight);
  border: 1px solid var(--border);
  border-radius: 3px;
  white-space: nowrap;
}

.module__tag--overlap {
  color: var(--accent);
  border-color: oklch(0.72 0.19 145 / 0.3);
  background: oklch(0.72 0.19 145 / 0.06);
}

.module__tag--warn {
  color: var(--warn);
  border-color: oklch(0.68 0.14 80 / 0.3);
  background: oklch(0.68 0.14 80 / 0.08);
}

/* Inline code block (smaller variant) */
.code-block--sm {
  font-size: 12px;
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.module__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- Differentiator ---------- */
.diff {
  padding: var(--space-16) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.diff h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-8);
  max-width: 640px;
}

.diff__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.diff__col {
  padding: var(--space-6);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.diff__col h3 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}

.diff__col li {
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding: var(--space-2) 0;
  padding-left: 1.2em;
  position: relative;
}

.diff__col li::before {
  content: "\2014";  /* em dash */
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

.diff__col--them {
  background: var(--bg-card);
}

.diff__col--them h3 {
  color: var(--text-dim);
}

.diff__col--us {
  background: oklch(0.72 0.19 145 / 0.04);
  border-color: oklch(0.72 0.19 145 / 0.2);
}

.diff__col--us h3 {
  color: var(--accent);
}

.diff__col--us li::before {
  content: ">";
  font-family: var(--font-mono);
  color: var(--accent);
}

/* ---------- Why Us ---------- */
.why {
  padding: var(--space-16) 0;
}

.why__list {
  max-width: 680px;
}

.why__list li {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

.why__list li:last-child {
  border-bottom: none;
}

.why__list li strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- How We Deliver ---------- */
.how {
  padding: var(--space-16) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-8);
  max-width: 720px;
}

.how__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.how__item {
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    border-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.how__item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.how__title {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.how__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

.how__note {
  font-size: var(--text-sm);
  color: var(--text-dim);
  letter-spacing: 0.02em;
  max-width: 720px;
}

/* ---------- FAQ ---------- */
.faq {
  padding: var(--space-16) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-8);
}

.faq__grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__item:first-child {
  border-top: 1px solid var(--border);
}

.faq__question {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  padding: var(--space-6) 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: var(--space-8);
  min-height: 44px;  /* touch target */
  transition: color var(--duration-instant) var(--ease-out);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::marker {
  content: "";
}

.faq__question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-dim);
  transition: transform var(--duration-moderate) var(--ease-in-out);
}

.faq__item[open] .faq__question::after {
  content: "\2212";
  transform: translateY(-50%) rotate(180deg);
}

.faq__question:hover {
  color: var(--accent);
}

.faq__answer {
  padding-bottom: var(--space-6);
  animation: faq-open var(--duration-moderate) var(--ease-out);
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq__answer p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading);
}

/* ---------- Offer / CTA ---------- */
.offer {
  padding: var(--space-24) 0;
  text-align: center;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.offer h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.offer__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

.offer__details {
  display: inline-flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: left;
  margin-bottom: var(--space-8);
}

.offer__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.offer__note {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-dim);
  margin-top: var(--space-4);
}

/* ---------- Footer ---------- */
.footer {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}

.footer__contact {
  font-size: var(--text-sm);
  color: var(--text-dim);
}

.footer__contact a {
  color: var(--text-muted);
  transition: color var(--duration-instant) var(--ease-out);
}

.footer__contact a:hover {
  color: var(--accent);
}

.footer__links {
  display: flex;
  gap: var(--space-6);
  font-size: var(--text-xs);
}

.footer__links a {
  color: var(--text-dim);
  padding: var(--space-2);  /* expand touch target */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--duration-instant) var(--ease-out);
}

.footer__links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--text-dim);
}

/* ==========================================================================
   Responsive — Tablet (768px)  [mobile-first, min-width queries]
   ========================================================================== */
@media (min-width: 768px) {
  .enforcement__row {
    grid-template-columns: 5.5rem auto 1fr;
  }

  .enforcement__detail {
    grid-column: auto;
    margin-top: 0;
    text-align: right;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards .card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

  .modules__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .modules__grid .module--orphan {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

  .how__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .diff__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    text-align: left;
  }
}

/* ==========================================================================
   Responsive — Desktop (1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  .hero {
    min-height: 80vh;
  }

  .hero__pillars {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards .card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .modules__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .modules__grid .module:last-child {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }

  .modules__grid--two-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .modules__grid .module--orphan {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

  .container {
    padding: 0 var(--space-8);
  }
}

/* ==========================================================================
   Mobile — overrides for small screens (< 768px)
   ========================================================================== */
@media (max-width: 767px) {

  body {
    overflow-x: hidden;
  }

  /* --- Nav: show hamburger --- */
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: oklch(0.145 0.015 250 / 0.98);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) 0;
    z-index: 99;
  }

  .nav__links.nav__links--open {
    display: flex;
    animation: nav-open var(--duration-moderate) var(--ease-out);
  }

  @keyframes nav-open {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav__links li {
    width: 100%;
  }

  .nav__links a {
    display: block;
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--border);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav__links li:last-child a {
    border-bottom: none;
  }

  .nav__inner {
    justify-content: space-between;
    position: relative;
  }

  .nav__right .btn {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
  }

  /* --- Hero --- */
  .hero {
    padding: calc(var(--space-16) + 56px) 0 var(--space-8);
    min-height: auto;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__ctas .btn {
    text-align: center;
  }

  /* --- Code blocks: contain horizontal overflow --- */
  .code-block {
    font-size: 11px;
    padding: var(--space-4);
    max-width: 100%;
    box-sizing: border-box;
  }

  /* --- Section spacing --- */
  .problem,
  .solution,
  .modules,
  .how,
  .diff,
  .proof,
  .offer {
    padding: var(--space-8) 0;
  }

  /* --- Enforcement timeline: stack label above text --- */
  .enforcement__row {
    grid-template-columns: 5rem 1fr;
    padding: var(--space-3) var(--space-4);
  }

  .enforcement__detail {
    grid-column: 2;
    margin-top: 0.15rem;
  }

  /* --- Modules: full-width orphan on mobile --- */
  .modules__grid .module--orphan {
    max-width: 100%;
  }

  /* --- Diff grid: stack on mobile --- */
  .diff__grid {
    grid-template-columns: 1fr;
  }

  /* --- FAQ accordion --- */
  .faq__question {
    font-size: var(--text-sm);
  }

  /* --- CTA offer items --- */
  .offer__items {
    gap: var(--space-2);
  }

  /* --- Footer: tighten spacing --- */
  .footer__inner {
    gap: var(--space-4);
  }

  .footer__links {
    gap: var(--space-4);
  }
}

/* ==========================================================================
   Input method detection — hover & pointer queries
   ========================================================================== */

/* Fine pointer (mouse/trackpad): enable hover lift effects */
@media (hover: hover) and (pointer: fine) {
  .card:hover,
  .module:hover,
  .how__item:hover {
    transform: translateY(-2px);
  }

  .btn:hover {
    transform: translateY(-1px);
  }
}

/* Coarse pointer (touch): disable hover transforms, rely on active states */
@media (pointer: coarse) {
  .card:hover,
  .module:hover,
  .how__item:hover,
  .btn:hover {
    transform: none;
  }

  .card:active,
  .module:active,
  .how__item:active {
    transform: scale(0.99);
    transition-duration: 50ms;
  }
}

/* ==========================================================================
   Reduced motion — accessibility requirement
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Preserve functional animations (ticker still visible, just no motion) */
  .ticker__scroll {
    animation: none;
  }

  /* FAQ still opens, just without slide */
  .faq__answer {
    animation: none;
  }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .nav,
  .btn {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .problem,
  .diff,
  .offer,
  .faq,
  .modules {
    background: white;
    border-color: #ccc;
  }

  .stat__number,
  .accent,
  .accent-text {
    color: black;
  }

  .text-muted,
  .card__body,
  .diff__col li,
  .why__list li,
  .offer__sub {
    color: #333;
  }
}
