/* =========================================================
   FAISG — Design Tokens
   ========================================================= */

:root {
  /* Fluid type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  --text-hero: clamp(2.5rem, 0.75rem + 4vw, 4.25rem);

  /* 4px spacing system */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 780px;
  --content-wide: 1180px;
  --content-full: 100%;

  --font-display: 'Mona Sans Variable', 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Funnel Sans', -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Dark mode (default — matches New Limits Legacy's charcoal brand) ---------- */
:root,
[data-theme='dark'] {
  --color-bg: #121110;
  --color-surface: #1c1a17;
  --color-surface-2: #201e19;
  --color-surface-offset: #262320;
  --color-surface-offset-2: #2e2a24;
  --color-surface-dynamic: #3a352ea0;
  --color-divider: #2a2723;
  --color-border: #3a3630;

  --color-text: #f5f3ee;
  --color-text-muted: #a8a49c;
  --color-text-faint: #767066;
  --color-text-inverse: #121110;

  --color-ink: #0a0908;
  --color-ink-2: #14120f;
  --color-ink-text: #f5f3ee;
  --color-ink-text-muted: #a8a49c;

  --color-primary: #e3c368;
  --color-primary-hover: #edd48a;
  --color-primary-active: #f2dfa6;
  --color-primary-highlight: #3a3120;

  --tier-red: #f2a3a3;
  --tier-red-bg: #3a2222;
  --tier-yellow: #f2dd8f;
  --tier-yellow-bg: #362f1c;
  --tier-green: #a8dcb8;
  --tier-green-bg: #1e3327;
  --tier-hq: #c3b8e8;
  --tier-hq-bg: #2a2440;

  --color-success: #a8dcb8;
  --color-error: #f2a3a3;
  --color-warning: #f2dd8f;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
  --shadow-md: 0 6px 18px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 18px 44px oklch(0 0 0 / 0.55);
}

/* ---------- Light mode (alternate — overrides dark defaults above) ---------- */
[data-theme='light'] {
  --color-bg: #f7f6f3;
  --color-surface: #ffffff;
  --color-surface-2: #fbfaf7;
  --color-surface-offset: #eeece6;
  --color-surface-offset-2: #e1ddd2;
  --color-surface-dynamic: #d7d1c1;
  --color-divider: #e3e0d7;
  --color-border: #d5d0c3;

  --color-text: #1a1917;
  --color-text-muted: #5b5852;
  --color-text-faint: #97938a;
  --color-text-inverse: #f7f6f3;

  /* Ink (charcoal) — dark sections, secondary headings */
  --color-ink: #14120f;
  --color-ink-2: #1e1c18;
  --color-ink-text: #f5f3ee;
  --color-ink-text-muted: #a8a49b;

  /* Primary accent — amber/gold, shared with NLL's Yellow-tier framework color */
  --color-primary: #a9791f;
  --color-primary-hover: #8c6419;
  --color-primary-active: #715014;
  --color-primary-highlight: #f2e3bd;

  /* Status: tier colors — matched to NLL Growth Framework Red/Yellow/Green */
  --tier-red: #a83a3a;
  --tier-red-bg: #f7d9d9;
  --tier-yellow: #8a6a12;
  --tier-yellow-bg: #f7e6a8;
  --tier-green: #3d7a52;
  --tier-green-bg: #cdecd6;
  --tier-hq: #5b4b8a;
  --tier-hq-bg: #e6e0f2;

  --color-success: #3d7a52;
  --color-error: #a83a3a;
  --color-warning: #8a6a12;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 60 / 0.07);
  --shadow-md: 0 6px 18px oklch(0.2 0.02 60 / 0.09);
  --shadow-lg: 0 18px 44px oklch(0.2 0.02 60 / 0.14);
}

/* =========================================================
   Base typography
   ========================================================= */
body {
  font-family: var(--font-body);
  background-image: radial-gradient(
    circle at 12% -8%,
    color-mix(in oklab, var(--color-primary) 6%, transparent),
    transparent 45%
  );
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 650; color: var(--color-text); letter-spacing: -0.01em; }
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
p { color: var(--color-text-muted); max-width: 68ch; }
p.lede { font-size: var(--text-lg); color: var(--color-text); max-width: 42ch; }
a { color: var(--color-primary); text-decoration: none; }
a.underline-link { text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--color-primary) 45%, transparent); text-underline-offset: 3px; }
a.underline-link:hover { color: var(--color-primary-hover); }
strong { color: var(--color-text); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.eyebrow svg { width: 15px; height: 15px; flex-shrink: 0; display: inline-block; vertical-align: -2px; }
.nav-link svg, .dropdown a svg { width: 13px; height: 13px; display: inline-block; vertical-align: -1px; margin-left: 2px; flex-shrink: 0; }
.text-muted { color: var(--color-text-muted); }
.text-faint { color: var(--color-text-faint); font-size: var(--text-xs); }

/* =========================================================
   Layout helpers
   ========================================================= */
.wrap { width: min(100% - 2.5rem, var(--content-wide)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, var(--content-default)); margin-inline: auto; }
.wrap--prose { width: min(100% - 2.5rem, var(--content-narrow)); margin-inline: auto; }

.section { padding-block: clamp(var(--space-16), 8vw, var(--space-24)); }
.section--tight { padding-block: clamp(var(--space-10), 5vw, var(--space-16)); }
.section--ink { background: linear-gradient(160deg, var(--color-ink), var(--color-ink-2)); color: var(--color-ink-text); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--color-ink-text); }
.section--ink p { color: var(--color-ink-text-muted); }
.section--offset { background: var(--color-surface-offset); }
.section--surface { background: var(--color-surface); }

.grid { display: grid; gap: var(--space-8); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.stack { display: flex; flex-direction: column; }
.cluster { display: flex; align-items: center; flex-wrap: wrap; }

.divider { height: 1px; background: var(--color-divider); border: none; margin-block: var(--space-8); }

/* =========================================================
   Header
   ========================================================= */
.skip-link {
  position: absolute; left: -999px; top: var(--space-2); z-index: 200;
  background: var(--color-primary); color: #fff; padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm); font-size: var(--text-sm);
}
.skip-link:focus { left: var(--space-2); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
}
.header-endorsement {
  background: var(--color-ink);
  color: var(--color-ink-text-muted);
  font-size: var(--text-xs);
  text-align: center;
  padding: var(--space-2) var(--space-4);
}
.header-endorsement a { color: var(--color-ink-text); text-decoration: underline; text-underline-offset: 2px; }
.header-main {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: var(--space-4);
  gap: var(--space-6);
}
.brand { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.brand svg { width: 34px; height: 34px; color: var(--color-primary); }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-logo-light { display: none; }
[data-theme='light'] .brand-logo-dark { display: none; }
[data-theme='light'] .brand-logo-light { display: block; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--color-text); letter-spacing: -0.01em; }
.brand-name span { color: var(--color-text-muted); font-weight: 500; font-size: var(--text-xs); display: block; letter-spacing: 0.04em; text-transform: uppercase; }
.brand-tagline { color: var(--color-text-muted); font-weight: 500; font-size: var(--text-xs); letter-spacing: 0.04em; text-transform: uppercase; border-left: 1px solid var(--color-border); padding-left: var(--space-3); line-height: 1.3; white-space: nowrap; }

.primary-nav { display: flex; align-items: center; gap: var(--space-6); }
.primary-nav > ul { display: flex; align-items: center; gap: var(--space-5); list-style: none; }
.primary-nav a.nav-link {
  font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted);
  padding: var(--space-2) 0; position: relative;
}
.primary-nav a.nav-link:hover, .primary-nav a.nav-link[aria-current="page"] { color: var(--color-text); }
.primary-nav a.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--color-primary); border-radius: var(--radius-full);
}
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + var(--space-3)); left: 50%; transform: translateX(-50%);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: var(--space-2); min-width: 240px;
  opacity: 0; pointer-events: none; transform-origin: top center;
  transition: opacity var(--transition-interactive), transform var(--transition-interactive);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown a { display: block; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); font-size: var(--text-sm); color: var(--color-text); }
.dropdown a:hover { background: var(--color-surface-offset); }

.utility-nav { display: flex; align-items: center; gap: var(--space-4); }
.utility-links { display: flex; align-items: center; gap: var(--space-4); }
.utility-nav a.phone { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.utility-nav a.phone svg { width: 15px; height: 15px; margin-right: var(--space-1); vertical-align: -2px; }
.theme-toggle {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: var(--radius-full); border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.theme-toggle:hover { color: var(--color-text); border-color: var(--color-text-faint); }

.header-cta-wrap { display: flex; align-items: center; gap: var(--space-3); }

.mobile-toggle { display: none; width: 40px; height: 40px; place-items: center; }
.mobile-toggle svg { width: 22px; height: 22px; }

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 150; background: var(--color-bg);
  padding: var(--space-6);
  overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-8); }
.mobile-menu nav ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-1); }
.mobile-menu nav a { display: block; padding: var(--space-4) 0; font-size: var(--text-lg); font-family: var(--font-display); font-weight: 600; border-bottom: 1px solid var(--color-divider); color: var(--color-text); }
.mobile-menu .btn { width: 100%; margin-top: var(--space-6); justify-content: center; }

@media (max-width: 940px) {
  .primary-nav { display: none; }
  .utility-links { display: none; }
  .mobile-toggle { display: grid; }
  .header-cta-wrap .btn--sm { display: none; }
}
@media (max-width: 480px) {
  .header-main { gap: var(--space-2); }
  .brand-name { font-size: var(--text-base); }
  .brand-tagline { display: none; }
  .brand-logo { height: 32px; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  white-space: normal;
  text-align: center;
  max-width: 100%;
  border: 1px solid transparent;
}
.btn--primary { background: var(--color-primary); color: var(--color-text-inverse); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-primary-hover); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn--primary:active { background: var(--color-primary-active); transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-text-faint); background: var(--color-surface-offset); }
.btn--ink { background: var(--color-ink-text); color: var(--color-ink); }
.btn--ink:hover { background: #fff; }
.btn--on-ink { background: transparent; color: var(--color-ink-text); border-color: color-mix(in oklab, var(--color-ink-text) 30%, transparent); }
.btn--on-ink:hover { background: color-mix(in oklab, var(--color-ink-text) 10%, transparent); }
.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding-block: clamp(var(--space-16), 10vw, var(--space-32)) clamp(var(--space-12), 6vw, var(--space-20)); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-16); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: var(--space-10); } }
.hero h1 { font-size: var(--text-hero); margin-block: var(--space-5) var(--space-5); }
.hero .lede { margin-bottom: var(--space-6); }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; margin-bottom: var(--space-4); }
.micro-disclosure {
  font-size: var(--text-xs); color: var(--color-text-faint); max-width: 46ch; margin-top: var(--space-2);
}
.hero-art { position: relative; aspect-ratio: 1/1; }

/* =========================================================
   Cards
   ========================================================= */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.card:hover { box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: var(--space-2); }
.card .icon-badge { margin-bottom: var(--space-4); }
.icon-badge {
  width: 46px; height: 46px; border-radius: var(--radius-md); display: grid; place-items: center;
  background: var(--color-primary-highlight); color: var(--color-primary);
}
.icon-badge svg { width: 22px; height: 22px; }

.card--dark { background: var(--color-ink-2); border-color: color-mix(in oklab, var(--color-ink-text) 15%, transparent); }
.card--dark h3, .card--dark p { color: var(--color-ink-text); }

/* Trust bar */
.trust-bar { border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); padding-block: var(--space-6); }
.trust-bar ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-10); justify-content: center; }
.trust-bar li { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: 500; color: var(--color-text); }
.trust-bar svg { width: 18px; height: 18px; color: var(--color-primary); flex-shrink: 0; }

/* Do / don't columns */
.dodont { border-radius: var(--radius-lg); padding: var(--space-8); }
.dodont--do { background: var(--tier-green-bg); }
.dodont--dont { background: var(--tier-red-bg); }
.dodont h3 { display: flex; align-items: center; gap: var(--space-2); }
.dodont h3 svg, .card--dark h3 svg, h1 svg, h2 svg, h3 svg { width: 22px; height: 22px; flex-shrink: 0; display: inline-block; vertical-align: -4px; margin-right: var(--space-2); }
.dodont ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-5); }
.dodont li { display: flex; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-text); }
.dodont li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.dodont--do li svg { color: var(--tier-green); }
.dodont--dont li svg { color: var(--tier-red); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); position: relative; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; }
.step-number {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700;
  color: var(--color-primary); margin-bottom: var(--space-3);
}

/* Tier badges */
.tier-badge { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.02em; }
.tier-badge .dot { width: 8px; height: 8px; border-radius: 50%; }
.tier-badge--red { background: var(--tier-red-bg); color: var(--tier-red); }
.tier-badge--red .dot { background: var(--tier-red); }
.tier-badge--yellow { background: var(--tier-yellow-bg); color: var(--tier-yellow); }
.tier-badge--yellow .dot { background: var(--tier-yellow); }
.tier-badge--green { background: var(--tier-green-bg); color: var(--tier-green); }
.tier-badge--green .dot { background: var(--tier-green); }
.tier-badge--hq { background: var(--tier-hq-bg); color: var(--tier-hq); }
.tier-badge--hq .dot { background: var(--tier-hq); }

.tier-card { border-radius: var(--radius-lg); padding: var(--space-6); border: 1px solid var(--color-border); background: var(--color-surface); }
.tier-card h4 { font-family: var(--font-display); }

/* Pricing table */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); align-items: stretch; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-8); display: flex; flex-direction: column; }
.price-card--anchor { border-color: var(--color-primary); box-shadow: var(--shadow-md); position: relative; }
.price-card--anchor .price-flag { position: absolute; top: -14px; left: var(--space-8); background: var(--color-primary); color: #fff; font-size: var(--text-xs); font-weight: 700; padding: var(--space-1) var(--space-4); border-radius: var(--radius-full); }
.price-tier-label { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-faint); margin-bottom: var(--space-2); }
.price-amount { font-family: var(--font-display); font-size: var(--text-xl); margin-bottom: var(--space-1); }
.price-estimate-tag { font-size: var(--text-xs); color: var(--color-text-faint); margin-bottom: var(--space-5); }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); margin-block: var(--space-5); flex: 1; }
.price-card li { display: flex; gap: var(--space-2); font-size: var(--text-sm); }
.price-card li svg { width: 16px; height: 16px; color: var(--color-primary); flex-shrink: 0; margin-top: 3px; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--color-divider); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding-block: var(--space-5); text-align: left; font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); color: var(--color-text);
}
.faq-question svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--color-primary); transition: transform var(--transition-interactive); }
.faq-item[data-open="true"] .faq-question svg { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 260ms var(--ease-out); }
.faq-answer-inner { padding-bottom: var(--space-5); font-size: var(--text-sm); color: var(--color-text-muted); max-width: 66ch; }

/* Disclosure banner */
.disclosure-banner {
  background: var(--color-surface-offset); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6); font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.6;
}
.disclosure-banner strong { color: var(--color-text); }

/* Footer */
.site-footer { background: var(--color-ink); color: var(--color-ink-text-muted); }
.footer-top { padding-block: var(--space-20) var(--space-12); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: var(--space-10); }
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-top h4 { color: var(--color-ink-text); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-4); }
.footer-top ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-top a { color: var(--color-ink-text-muted); font-size: var(--text-sm); }
.footer-top a:hover { color: var(--color-ink-text); }
.footer-brand { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); }
.footer-brand svg { width: 30px; height: 30px; color: var(--color-primary); }
.footer-brand img { height: 46px; width: auto; display: block; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; color: var(--color-ink-text); font-size: var(--text-base); }
.footer-disclosure {
  border-top: 1px solid color-mix(in oklab, var(--color-ink-text) 14%, transparent);
  padding-block: var(--space-8); font-size: var(--text-xs); line-height: 1.8; color: var(--color-ink-text-muted);
}
.footer-disclosure p { color: var(--color-ink-text-muted); max-width: none; margin-bottom: var(--space-2); }
.footer-disclosure strong { color: var(--color-ink-text); }
.footer-legal-row { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-4); }
.footer-legal-row a { font-size: var(--text-xs); color: var(--color-ink-text-muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal-row a:hover { color: var(--color-ink-text); }

/* Final CTA band */
.cta-band { border-radius: var(--radius-xl); padding: clamp(var(--space-10), 6vw, var(--space-16)); text-align: center; background: linear-gradient(150deg, var(--color-ink), var(--color-ink-2)); color: var(--color-ink-text); }
.cta-band h2 { color: var(--color-ink-text); }
.cta-band .cluster { justify-content: center; gap: var(--space-4); margin-top: var(--space-6); }

/* Forms */
.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.field .hint { font-size: var(--text-xs); color: var(--color-text-faint); }
.field input, .field select, .field textarea {
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--color-border);
  background: var(--color-surface); font-size: var(--text-base); color: var(--color-text);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-primary); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.radio-group, .check-group { display: flex; flex-direction: column; gap: var(--space-3); }
.radio-option, .check-option {
  display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; font-size: var(--text-sm);
}
.radio-option:hover, .check-option:hover { border-color: var(--color-text-faint); }
.radio-option input, .check-option input { margin-top: 3px; accent-color: var(--color-primary); flex-shrink: 0; }

/* Multi-step form shell */
.form-shell { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(var(--space-6), 4vw, var(--space-12)); box-shadow: var(--shadow-md); }
.progress-track { display: flex; gap: var(--space-2); margin-bottom: var(--space-8); }
.progress-seg { flex: 1; height: 4px; border-radius: var(--radius-full); background: var(--color-divider); }
.progress-seg.is-active, .progress-seg.is-done { background: var(--color-primary); }
.step-panel { display: none; }
.step-panel.is-active { display: block; }
.step-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-6); }
.form-nav-row { display: flex; justify-content: space-between; margin-top: var(--space-8); gap: var(--space-4); }

/* Case study / result cards */
.result-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-8); }
.result-progress { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-4) 0 var(--space-5); font-size: var(--text-sm); font-weight: 600; }
.result-progress svg { width: 16px; height: 16px; color: var(--color-primary); }

/* Table styling for legal / data pages */
.data-table { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; font-size: var(--text-sm); }
.data-table th, .data-table td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-divider); }
.data-table th { background: var(--color-surface-offset); font-family: var(--font-display); font-weight: 600; }
.data-table tr:last-child td { border-bottom: none; }

/* Anchor tab nav (legal page) */
.tab-nav { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-10); position: sticky; top: 84px; background: var(--color-bg); padding-block: var(--space-2); z-index: 10; }
.tab-nav a { font-size: var(--text-sm); font-weight: 600; padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); border: 1px solid var(--color-border); color: var(--color-text-muted); }
.tab-nav a:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Badge / label chip */
.chip { display: inline-flex; align-items: center; padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 600; background: var(--color-surface-offset); color: var(--color-text-muted); }

/* Blockquote / pull quote */
blockquote.pull { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-text); border-left: 3px solid var(--color-primary); padding-left: var(--space-6); margin-block: var(--space-8); max-width: 56ch; }
blockquote.pull cite { display: block; margin-top: var(--space-3); font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-text-muted); font-style: normal; }

/* Page hero (interior pages, smaller than home hero) */
.page-hero { padding-block: clamp(var(--space-12), 7vw, var(--space-20)) var(--space-12); }
.page-hero h1 { font-size: var(--text-2xl); }
.breadcrumb { font-size: var(--text-xs); color: var(--color-text-faint); margin-bottom: var(--space-4); }
.breadcrumb a { color: var(--color-text-faint); }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Numbers list (issue logic etc) */
.numbered-list { list-style: none; counter-reset: item; display: flex; flex-direction: column; gap: var(--space-5); }
.numbered-list li { counter-increment: item; display: flex; gap: var(--space-4); }
.numbered-list li::before { content: counter(item); font-family: var(--font-display); font-weight: 700; color: var(--color-primary); flex-shrink: 0; }

@media (max-width: 640px) {
  .hero h1 { font-size: var(--text-2xl); }
}
