/* ==========================================================================
   Affordable Insurance Partners — Design Tokens & Styles
   ========================================================================== */

:root,
[data-theme='light'] {
  /* Type scale — fluid clamp() */
  --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.75rem, 0.8rem + 6vw, 6.5rem);

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

  /* Surfaces — cool, clean, insurance-grade */
  --color-bg: #f5f8fa;
  --color-surface: #ffffff;
  --color-surface-2: #eef3f6;
  --color-surface-offset: #e6edf1;
  --color-surface-dynamic: #dbe5eb;
  --color-divider: #dfe8ec;
  --color-border: #d1dde4;

  /* Text */
  --color-text: #0b1e30;
  --color-text-muted: #4c5f71;
  --color-text-faint: #93a3b0;
  --color-text-inverse: #f5f9fb;

  /* Brand — Teal accent (primary interactive) */
  --color-primary: #0098a8;
  --color-primary-hover: #007a87;
  --color-primary-active: #066470;
  --color-primary-highlight: #d3eff1;

  /* Brand — Navy (authority, structure) */
  --color-navy: #004374;
  --color-navy-deep: #00294a;
  --color-navy-light: #0c5a94;

  /* Brand — Slate (support) */
  --color-slate: #43556a;

  /* Status */
  --color-success: #2e8b57;
  --color-success-highlight: #d9efe1;
  --color-error: #c23b3b;
  --color-error-highlight: #f6dcdc;

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

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

  /* Shadows — tone-matched to navy */
  --shadow-sm: 0 1px 2px oklch(0.2 0.03 240 / 0.07);
  --shadow-md: 0 4px 16px oklch(0.2 0.03 240 / 0.09), 0 1px 3px oklch(0.2 0.03 240 / 0.06);
  --shadow-lg: 0 16px 40px oklch(0.2 0.03 240 / 0.14), 0 2px 6px oklch(0.2 0.03 240 / 0.08);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 1040px;
  --content-wide: 1280px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'DM Sans', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #061826;
  --color-surface: #0b2237;
  --color-surface-2: #0f2b42;
  --color-surface-offset: #12324c;
  --color-surface-dynamic: #163b58;
  --color-divider: #1a3c56;
  --color-border: #234a68;

  --color-text: #e7eef3;
  --color-text-muted: #9fb3c4;
  --color-text-faint: #6c8398;
  --color-text-inverse: #061826;

  --color-primary: #37c6d8;
  --color-primary-hover: #5cd3e2;
  --color-primary-active: #7fdcea;
  --color-primary-highlight: #103744;

  --color-navy: #0c5a94;
  --color-navy-deep: #04304f;
  --color-navy-light: #3d86be;

  --color-slate: #8ca0b3;

  --color-success: #4fb27c;
  --color-success-highlight: #123526;
  --color-error: #e2726f;
  --color-error-highlight: #3a1f22;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 16px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 20px 44px oklch(0 0 0 / 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #061826;
    --color-surface: #0b2237;
    --color-surface-2: #0f2b42;
    --color-surface-offset: #12324c;
    --color-surface-dynamic: #163b58;
    --color-divider: #1a3c56;
    --color-border: #234a68;
    --color-text: #e7eef3;
    --color-text-muted: #9fb3c4;
    --color-text-faint: #6c8398;
    --color-text-inverse: #061826;
    --color-primary: #37c6d8;
    --color-primary-hover: #5cd3e2;
    --color-primary-active: #7fdcea;
    --color-primary-highlight: #103744;
    --color-navy: #0c5a94;
    --color-navy-deep: #04304f;
    --color-navy-light: #3d86be;
    --color-slate: #8ca0b3;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.section-head {
  max-width: 640px;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}
.section-head h2 {
  margin-top: var(--space-3);
}
.section-head p {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

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

h1 {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.03;
}
h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.08;
}
h3 {
  font-size: var(--text-lg);
  font-weight: 700;
}

p {
  color: var(--color-text-muted);
}
.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

.visually-dark {
  color-scheme: dark;
}

/* 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-4) var(--space-6);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  min-height: 48px;
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
}
.btn-primary:active {
  background: var(--color-primary-active);
}
.btn-outline {
  background: transparent;
  border-color: oklch(from var(--color-text-inverse) l c h / 0.4);
  color: var(--color-text-inverse);
}
.btn-outline:hover {
  background: oklch(from var(--color-text-inverse) l c h / 0.1);
  border-color: oklch(from var(--color-text-inverse) l c h / 0.7);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: oklch(from var(--color-text) l c h / 0.16);
}
.btn-ghost:hover {
  background: var(--color-surface-2);
}
.btn-block {
  width: 100%;
}
.btn-lg {
  padding: var(--space-5) var(--space-8);
  font-size: var(--text-base);
  min-height: 56px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-text) 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);
}
.header--hidden {
  transform: translateY(-100%);
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-3);
}
.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}
.brand img {
  height: 34px;
  width: auto;
}
[data-theme='dark'] .brand .logo-light {
  display: none;
}
[data-theme='dark'] .brand .logo-dark {
  display: block;
}
.brand .logo-dark {
  display: none;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-8);
}
.nav-desktop a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}
.nav-desktop a:hover {
  color: var(--color-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.icon-btn:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}
.icon-btn svg {
  width: 19px;
  height: 19px;
}

.portal-chip {
  display: none;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}
.portal-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.nav-toggle {
  display: inline-flex;
}
@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
  }
  .portal-chip {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-bg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.is-open {
  transform: translateX(0);
}
.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}
.mobile-menu a.nav-link {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}
.mobile-menu .btn {
  margin-top: var(--space-6);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--color-navy-deep) 0%, var(--color-navy) 62%, var(--color-navy-light) 130%);
  color: var(--color-text-inverse);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M120 0 0 0 0 120' fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  padding-block: clamp(var(--space-12), 7vw, var(--space-24)) clamp(var(--space-10), 5vw, var(--space-16));
}
@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
}
.hero-copy .eyebrow {
  color: var(--color-primary-active, #7adce8);
  color: #6fe0ec;
}
.hero-copy h1 {
  color: #ffffff;
  margin-top: var(--space-4);
  font-size: clamp(2.25rem, 0.9rem + 4.4vw, 4.4rem);
  line-height: 1.06;
}
.hero-copy h1 em {
  font-style: normal;
  color: #6fe0ec;
}
.hero-copy .lede {
  color: oklch(0.95 0.01 240 / 0.82);
  margin-top: var(--space-5);
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-5) var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid oklch(1 0 0 / 0.14);
}
.hero-meta-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: oklch(0.95 0.01 240 / 0.75);
}
.hero-meta-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #6fe0ec;
  margin-top: 2px;
}
.hero-meta-item strong {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: var(--text-sm);
}

/* Hero graphic */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  justify-self: center;
  width: 100%;
}
.hero-visual svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Trust band
   ========================================================================== */

.trust-band {
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  padding-block: var(--space-10);
}
@media (min-width: 720px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.trust-item svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.trust-item strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}
.trust-item span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Coverage grid
   ========================================================================== */

.coverage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 720px) {
  .coverage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1080px) {
  .coverage-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .coverage-card--feature {
    grid-column: span 3;
    grid-row: span 2;
  }
  .coverage-card--std {
    grid-column: span 3;
  }
}

.coverage-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.coverage-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.coverage-card {
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.coverage-card--feature {
  background: linear-gradient(150deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  color: #fff;
  justify-content: space-between;
  min-height: 320px;
}
.coverage-card--feature h3,
.coverage-card--feature p {
  color: #fff;
}
.coverage-card--feature p {
  color: oklch(0.95 0.01 240 / 0.78);
}
.coverage-card--feature .coverage-icon {
  background: oklch(1 0 0 / 0.12);
  color: #6fe0ec;
}
.coverage-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}
.coverage-icon svg {
  width: 24px;
  height: 24px;
}
.coverage-card h3 {
  margin-bottom: var(--space-2);
}
.coverage-card p {
  font-size: var(--text-sm);
  flex-grow: 1;
}
.coverage-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
}
.coverage-card--feature .card-link {
  color: #6fe0ec;
}
.coverage-card .card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-interactive);
}
.coverage-card .card-link:hover svg {
  transform: translateX(3px);
}
.coverage-tag {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6fe0ec;
}

/* ==========================================================================
   Advantage section
   ========================================================================== */

.advantage {
  background: var(--color-surface-2);
}
.advantage-grid {
  display: grid;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
}
@media (min-width: 960px) {
  .advantage-grid {
    grid-template-columns: 0.85fr 1fr;
  }
}
.advantage-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-navy-deep);
  aspect-ratio: 4 / 5;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.advantage-visual svg {
  width: 100%;
  height: 100%;
}
.advantage-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-top: var(--space-8);
}
.advantage-point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.advantage-point:first-child {
  border-top: none;
  padding-top: 0;
}
.advantage-point .num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
}
.advantage-point h3 {
  margin-bottom: var(--space-1);
}
.advantage-point p {
  font-size: var(--text-sm);
}

/* ==========================================================================
   How it works
   ========================================================================== */

.steps {
  display: grid;
  gap: var(--space-10);
  counter-reset: step;
}
@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}
.step {
  position: relative;
  padding-top: var(--space-8);
  border-top: 2px solid var(--color-divider);
}
.step .step-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-primary-highlight);
  -webkit-text-stroke: 1.5px var(--color-primary);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-4);
}
[data-theme='dark'] .step .step-num {
  color: transparent;
}
.step h3 {
  margin-bottom: var(--space-2);
}
.step p {
  font-size: var(--text-sm);
}

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: center;
}
@media (min-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr 0.8fr;
  }
}
.about-copy .lede {
  margin-top: var(--space-5);
}
.about-stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}
.about-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-navy);
}
[data-theme='dark'] .about-stat strong {
  color: var(--color-primary);
}
.about-stat span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.about-visual {
  border-radius: var(--radius-xl);
  aspect-ratio: 1 / 1;
  background: linear-gradient(155deg, var(--color-primary-highlight), var(--color-surface-2));
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-visual svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Portal teaser
   ========================================================================== */

.portal {
  background: linear-gradient(135deg, var(--color-navy-deep), var(--color-navy));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 6vw, var(--space-16));
  display: grid;
  gap: var(--space-8);
  position: relative;
  overflow: hidden;
}
@media (min-width: 860px) {
  .portal {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}
.portal-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: oklch(1 0 0 / 0.12);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6fe0ec;
  margin-bottom: var(--space-5);
  width: fit-content;
}
.portal h2 {
  color: #fff;
}
.portal p {
  color: oklch(0.95 0.01 240 / 0.78);
  margin-top: var(--space-4);
  max-width: 48ch;
}
.portal-list {
  display: grid;
  gap: var(--space-4);
}
.portal-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: oklch(0.95 0.01 240 / 0.85);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: oklch(1 0 0 / 0.06);
}
.portal-list svg {
  width: 18px;
  height: 18px;
  color: #6fe0ec;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ==========================================================================
   Quote / Contact
   ========================================================================== */

.quote-section {
  background: var(--color-surface-2);
}
.quote-grid {
  display: grid;
  gap: var(--space-10);
  align-items: start;
}
@media (min-width: 960px) {
  .quote-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.quote-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 560px) {
  .form-row--split {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.field label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field input,
.field select,
.field textarea {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text);
  min-height: 48px;
}
.field textarea {
  min-height: 96px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}
.form-success {
  display: none;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-success-highlight);
}
.form-success.is-visible {
  display: flex;
}
.form-success svg {
  width: 24px;
  height: 24px;
  color: var(--color-success);
  flex-shrink: 0;
}
.form-success h3 {
  margin-bottom: var(--space-1);
}
.form-success p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.quote-form.is-hidden {
  display: none;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.contact-item a,
.contact-item span.value {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.contact-item a:hover {
  color: var(--color-primary);
}
.disclosure {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--color-navy-deep);
  color: oklch(0.95 0.01 240 / 0.75);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-8);
}
.footer-grid {
  display: grid;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid oklch(1 0 0 / 0.12);
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.footer-brand img {
  height: 32px;
  margin-bottom: var(--space-4);
}
.footer-brand p {
  color: oklch(0.95 0.01 240 / 0.65);
  font-size: var(--text-sm);
  max-width: 32ch;
}
.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid oklch(1 0 0 / 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.footer-social a:hover {
  background: oklch(1 0 0 / 0.1);
}
.footer-social svg {
  width: 17px;
  height: 17px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(0.95 0.01 240 / 0.5);
  margin-bottom: var(--space-4);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col a {
  color: oklch(0.95 0.01 240 / 0.78);
  font-size: var(--text-sm);
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-8);
  font-size: var(--text-xs);
  color: oklch(0.95 0.01 240 / 0.5);
}
.footer-legal {
  max-width: 60ch;
}

/* ==========================================================================
   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: var(--space-4);
  top: -60px;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  z-index: 300;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: top var(--transition-interactive);
}
.skip-link:focus {
  top: var(--space-4);
}

/* ==========================================================================
   Legal / policy page
   ========================================================================== */

.legal-hero {
  background: linear-gradient(160deg, var(--color-navy-deep) 0%, var(--color-navy) 100%);
  color: var(--color-text-inverse);
  padding-block: clamp(var(--space-16), 8vw, var(--space-24)) clamp(var(--space-10), 5vw, var(--space-14));
}
.legal-hero .eyebrow {
  color: #6fe0ec;
}
.legal-hero h1 {
  color: #ffffff;
  margin-top: var(--space-4);
  font-size: clamp(2rem, 0.9rem + 3.2vw, 3.25rem);
}
.legal-hero p {
  color: oklch(0.95 0.01 240 / 0.8);
  margin-top: var(--space-4);
  max-width: 60ch;
}
.legal-body {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}
.legal-content {
  max-width: 72ch;
}
.legal-content h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-3);
  color: var(--color-navy);
}
[data-theme='dark'] .legal-content h2 {
  color: #ffffff;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
}
.legal-content ul {
  margin: var(--space-4) 0 var(--space-6);
  padding-left: var(--space-6);
  list-style: disc;
}
.legal-content li {
  margin-bottom: var(--space-2);
}
.legal-content p {
  margin-bottom: var(--space-4);
}
.legal-content strong {
  color: var(--color-text);
}
.legal-callout {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
}
.legal-updated {
  color: var(--color-text-faint);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

/* ==========================================================================
   SMS consent checkbox (quote form)
   ========================================================================== */

.consent-field {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
}
.consent-field input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}
.consent-field label {
  font-size: var(--text-xs);
  line-height: 1.55;
  color: var(--color-text-faint);
  font-weight: 400;
}
.consent-field label a {
  color: var(--color-primary);
  text-decoration: underline;
}
