/* style.css — Guardian Legal Plan LLC design system
   Concept: sober, protective legal authority. Deep navy/slate + a single
   confident gold accent. Serif display for gravitas, clean sans body. */

:root,
[data-theme='light'] {
  /* Surfaces */
  --color-bg: #f6f5f1;
  --color-surface: #ffffff;
  --color-surface-2: #fbfaf7;
  --color-surface-offset: #edece6;
  --color-surface-offset-2: #e4e2da;
  --color-surface-dynamic: #dcdad0;
  --color-divider: #dedcd3;
  --color-border: #d2cfc3;

  /* Text */
  --color-text: #161c2b;
  --color-text-muted: #565f74;
  --color-text-faint: #9298a6;
  --color-text-inverse: #f6f5f1;

  /* Brand: Deep Navy (primary structural color) */
  --color-navy: #0d1b33;
  --color-navy-2: #142644;
  --color-navy-3: #1b3358;

  /* Primary Accent: Guardian Gold */
  --color-primary: #a4791f;
  --color-primary-hover: #8a6318;
  --color-primary-active: #6f4f13;
  --color-primary-highlight: #ecdfc0;

  /* Warning */
  --color-warning: #9a4a1c;
  --color-warning-hover: #7a3a15;
  --color-warning-active: #5c2c10;
  --color-warning-highlight: #e6d2c2;

  /* Error */
  --color-error: #8f2a3a;
  --color-error-hover: #71212d;
  --color-error-active: #541821;
  --color-error-highlight: #e2ccd0;

  /* Success */
  --color-success: #33613f;
  --color-success-hover: #274b31;
  --color-success-active: #1c3624;
  --color-success-highlight: #cddcd1;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

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

  --shadow-sm: 0 1px 2px oklch(0.15 0.03 260 / 0.08);
  --shadow-md: 0 6px 16px oklch(0.15 0.03 260 / 0.10);
  --shadow-lg: 0 18px 44px oklch(0.15 0.03 260 / 0.16);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'General Sans', 'Work Sans', -apple-system, sans-serif;
}

[data-theme='dark'] {
  --color-bg: #0a1120;
  --color-surface: #101a2c;
  --color-surface-2: #142033;
  --color-surface-offset: #16223a;
  --color-surface-offset-2: #1b2a45;
  --color-surface-dynamic: #223252;
  --color-divider: #24314c;
  --color-border: #2c3a58;

  --color-text: #e7e6df;
  --color-text-muted: #a2a8b8;
  --color-text-faint: #6c748a;

  /* --color-text-inverse is fixed light text-on-navy (header brand, hero,
     footer, CTA bands) — those surfaces are constant-dark navy in both
     themes, so this does not invert either. See --color-navy note below. */

  /* --color-navy* is a fixed structural brand color (hero/footer/CTA bands
     always render as deep navy with light text) — it intentionally does NOT
     invert between light/dark theme, so it is not redeclared here. */

  --color-primary: #d3ab55;
  --color-primary-hover: #e2bd6d;
  --color-primary-active: #efce88;
  --color-primary-highlight: #3a3220;

  --color-warning: #d68e5c;
  --color-warning-hover: #e0a274;
  --color-warning-active: #eab48c;
  --color-warning-highlight: #40311f;

  --color-error: #d97e8d;
  --color-error-hover: #e2949f;
  --color-error-active: #ecacb4;
  --color-error-highlight: #3d2731;

  --color-success: #7fb389;
  --color-success-hover: #96c19f;
  --color-success-active: #aed0b5;
  --color-success-highlight: #223a29;

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

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0a1120;
    --color-surface: #101a2c;
    --color-surface-2: #142033;
    --color-surface-offset: #16223a;
    --color-surface-offset-2: #1b2a45;
    --color-surface-dynamic: #223252;
    --color-divider: #24314c;
    --color-border: #2c3a58;
    --color-text: #e7e6df;
    --color-text-muted: #a2a8b8;
    --color-text-faint: #6c748a;
    --color-primary: #d3ab55;
    --color-primary-hover: #e2bd6d;
    --color-primary-active: #efce88;
    --color-primary-highlight: #3a3220;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 6px 16px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 18px 44px oklch(0 0 0 / 0.5);
  }
}

/* Type scale */
:root {
  --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.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 1rem + 6vw, 6.5rem);

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

/* ---------- Base layout ---------- */
body {
  overflow-x: hidden;
}

.wrap {
  width: min(100% - var(--space-8), var(--content-wide));
  margin-inline: auto;
}
.wrap--narrow {
  width: min(100% - var(--space-8), var(--content-default));
  margin-inline: auto;
}
.wrap--prose {
  width: min(100% - var(--space-8), var(--content-narrow));
  margin-inline: auto;
}

section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}
section.section--tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

h1 {
  font-size: var(--text-hero);
}
h2 {
  font-size: var(--text-xl);
}
h3 {
  font-size: var(--text-lg);
  font-weight: 600;
}

p {
  color: var(--color-text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: var(--color-primary);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9rem 1.6rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  min-height: 44px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-primary);
  color: #171105;
}
.btn--primary:hover {
  background: var(--color-primary-hover);
}
.btn--ghost {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: oklch(from var(--color-text-inverse) l c h / 0.35);
}
.btn--ghost:hover {
  border-color: var(--color-text-inverse);
  background: oklch(from var(--color-text-inverse) l c h / 0.08);
}
.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Solid (not backdrop-filter) background: backdrop-filter creates a new
     containing block for fixed-position descendants, which breaks the
     full-screen mobile nav panel nested inside this header. */
  background: var(--color-navy);
  border-bottom: 1px solid oklch(from var(--color-text-inverse) l c h / 0.08);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme='dark'] .site-header {
  background: var(--color-surface);
}
.site-header--hidden {
  transform: translateY(-100%);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-inverse);
}
.brand__mark {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--color-primary);
  flex-shrink: 0;
  object-fit: contain;
}
.brand__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.brand__name small {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-top: 0.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: oklch(from var(--color-text-inverse) l c h / 0.78);
  padding-block: var(--space-2);
  position: relative;
}
.nav__link:hover,
.nav__link[aria-current='page'] {
  color: var(--color-text-inverse);
}
.nav__link[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-primary);
}

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

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: oklch(from var(--color-text-inverse) l c h / 0.8);
}
.theme-toggle:hover {
  background: oklch(from var(--color-text-inverse) l c h / 0.1);
  color: var(--color-text-inverse);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text-inverse);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--color-navy);
  color: var(--color-text-inverse);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    oklch(from var(--color-navy) l c h / 0.55) 0%,
    oklch(from var(--color-navy) l c h / 0.88) 65%,
    var(--color-navy) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-block: clamp(var(--space-20), 10vw, var(--space-32));
}
.hero__eyebrow {
  color: var(--color-primary);
}
.hero__eyebrow::before {
  background: var(--color-primary);
}
.hero h1 {
  color: var(--color-text-inverse);
  max-width: 18ch;
  margin-block: var(--space-6);
}
.hero__lede {
  font-size: var(--text-lg);
  color: oklch(from var(--color-text-inverse) l c h / 0.82);
  max-width: 56ch;
  margin-bottom: var(--space-10);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.page-hero {
  position: relative;
  background: var(--color-navy);
  color: var(--color-text-inverse);
  overflow: hidden;
  padding-block: clamp(var(--space-20), 9vw, var(--space-24));
}
.page-hero__bg {
  position: absolute;
  inset: 0;
}
.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    oklch(from var(--color-navy) l c h / 0.96) 20%,
    oklch(from var(--color-navy) l c h / 0.7) 100%
  );
}
.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 62ch;
}
.page-hero h1 {
  font-size: var(--text-2xl);
  color: var(--color-text-inverse);
  margin-block: var(--space-5);
}
.page-hero__lede {
  font-size: var(--text-lg);
  color: oklch(from var(--color-text-inverse) l c h / 0.82);
  max-width: 60ch;
}
.page-hero .eyebrow {
  color: var(--color-primary);
}

/* ---------- Cards & sections ---------- */
.section-head {
  max-width: 60ch;
  margin-bottom: var(--space-12);
}
.section-head h2 {
  margin-top: var(--space-4);
}
.section-head p {
  margin-top: var(--space-4);
  font-size: var(--text-base);
}

.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);
}

.grid {
  display: grid;
  gap: var(--space-6);
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Trigger explainer — asymmetric editorial layout, not the 3-col AI grid */
.triggers {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: var(--space-16);
  align-items: start;
}
.trigger-list {
  display: flex;
  flex-direction: column;
}
.trigger-item {
  display: flex;
  gap: var(--space-5);
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-divider);
}
.trigger-item:last-child {
  border-bottom: 1px solid var(--color-divider);
}
.trigger-item__num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  flex-shrink: 0;
  width: 2.5ch;
}
.trigger-item h3 {
  margin-bottom: var(--space-2);
}
.trigger-item p {
  font-size: var(--text-sm);
}

/* Process steps */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}
.process--3 {
  grid-template-columns: repeat(3, 1fr);
}
.process__step {
  position: relative;
  padding-top: var(--space-8);
  border-top: 2px solid var(--color-divider);
}
.process__step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.process__step h3 {
  margin-bottom: var(--space-2);
}
.process__step p {
  font-size: var(--text-sm);
}

/* Comparison */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
.compare__col {
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.compare__col--without {
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
}
.compare__col--with {
  background: var(--color-navy);
  color: var(--color-text-inverse);
}
.compare__col h3 {
  margin-bottom: var(--space-5);
}
.compare__col--with h3 {
  color: var(--color-text-inverse);
}
.compare__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.compare__list li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  align-items: flex-start;
}
.compare__col--without li {
  color: var(--color-text-muted);
}
.compare__col--with li {
  color: oklch(from var(--color-text-inverse) l c h / 0.88);
}
.compare__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.compare__col--without .compare__icon {
  color: var(--color-text-faint);
}
.compare__col--with .compare__icon {
  color: var(--color-primary);
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq-item {
  border-bottom: 1px solid var(--color-divider);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-6);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary .icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  transition: transform var(--transition-interactive);
}
.faq-item[open] summary .icon {
  transform: rotate(45deg);
}
.faq-item__body {
  padding-bottom: var(--space-6);
  max-width: 68ch;
}
.faq-item__body p {
  font-size: var(--text-base);
}

/* CTA band */
.cta-band {
  background: var(--color-navy);
  color: var(--color-text-inverse);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-12), 6vw, var(--space-20));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-10);
  position: relative;
  overflow: hidden;
}
.cta-band h2 {
  color: var(--color-text-inverse);
  max-width: 20ch;
}
.cta-band p {
  color: oklch(from var(--color-text-inverse) l c h / 0.78);
  margin-top: var(--space-3);
  max-width: 44ch;
}
.cta-band__actions {
  display: flex;
  gap: var(--space-4);
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Disclosure note */
.disclosure {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  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 svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-text-faint);
  margin-top: 1px;
}

/* Footer */
.site-footer {
  background: var(--color-navy);
  color: oklch(from var(--color-text-inverse) l c h / 0.7);
  padding-block: var(--space-16) var(--space-8);
}
.site-footer a {
  color: inherit;
}
.site-footer a:hover {
  color: var(--color-text-inverse);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid oklch(from var(--color-text-inverse) l c h / 0.1);
}
.footer-brand .brand__name {
  color: var(--color-text-inverse);
}
.footer-brand p {
  color: oklch(from var(--color-text-inverse) l c h / 0.65);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  max-width: 36ch;
}
.footer-col h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: oklch(from var(--color-text-inverse) l c h / 0.5);
  margin-bottom: var(--space-4);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-sm);
}
.footer-bottom {
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-6);
  font-size: var(--text-xs);
}
.footer-bottom__legal {
  max-width: 64ch;
  color: oklch(from var(--color-text-inverse) l c h / 0.5);
  line-height: 1.7;
}

/* Forms */
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.form-field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: var(--text-base);
  min-height: 44px;
}
.form-field textarea {
  min-height: 140px;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-primary);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-2);
}
.form-success {
  display: none;
  background: var(--color-success-highlight);
  border: 1px solid oklch(from var(--color-success) l c h / 0.4);
  color: var(--color-success);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-top: var(--space-6);
}
.form-success.is-visible {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.form-success svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

/* Contact info list */
.info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.info-item {
  display: flex;
  gap: var(--space-4);
}
.info-item svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  margin-top: 2px;
}
.info-item h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}
.info-item p {
  font-size: var(--text-sm);
}

/* Testimonial / scenario cards */
.scenario-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;
  gap: var(--space-5);
  height: 100%;
}
.scenario-card__tag {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.scenario-card p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  font-style: italic;
  line-height: 1.5;
}
.scenario-card__meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}

.placeholder-card {
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  text-align: left;
  background: var(--color-surface-offset);
}
.placeholder-card h3 {
  margin-bottom: var(--space-3);
}
.placeholder-card p {
  font-size: var(--text-sm);
}

/* Legal doc styling */
.legal-doc h2 {
  margin-top: var(--space-16);
  margin-bottom: var(--space-4);
}
.legal-doc h2:first-of-type {
  margin-top: 0;
}
.legal-doc p,
.legal-doc li {
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}
.legal-doc ul,
.legal-doc ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}
.legal-doc ul li {
  list-style: disc;
}
.legal-doc ol li {
  list-style: decimal;
}
.legal-doc strong {
  color: var(--color-text);
}
.toc {
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  margin-bottom: var(--space-12);
}
.toc h2 {
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
}
.toc ol {
  padding-left: var(--space-5);
  columns: 2;
  gap: var(--space-6);
}
.toc li {
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  list-style: decimal;
}
.toc a:hover {
  color: var(--color-primary);
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #171105;
  padding: var(--space-3) var(--space-5);
  z-index: 1000;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .triggers {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .process {
    grid-template-columns: repeat(2, 1fr);
  }
  .compare {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 0;
    top: 72px;
    background: var(--color-navy);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-8);
    transform: translateX(100%);
    transition: transform var(--transition-interactive);
    z-index: 90;
  }
  [data-theme='dark'] .nav {
    background: var(--color-surface);
  }
  .nav.is-open {
    transform: translateX(0);
  }
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    width: 100%;
  }
  .nav__link {
    display: block;
    width: 100%;
    padding-block: var(--space-4);
    font-size: var(--text-lg);
    border-bottom: 1px solid oklch(from var(--color-text-inverse) l c h / 0.1);
  }
  .nav__actions {
    margin-top: var(--space-8);
    width: 100%;
  }
  .nav__actions .btn {
    width: 100%;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .process {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .toc ol {
    columns: 1;
  }
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
  h1 {
    max-width: none !important;
  }
}
