/* BaseIt — brand: dark navy + cyan → royal blue gradient */

:root {
  --navy-950: #060d18;
  --navy-900: #0a1628;
  --navy-800: #111f35;
  --navy-700: #1e3a5f;
  --text: #0f172a;
  --text-muted: #475569;
  --surface: #ffffff;
  --surface-subtle: #f4f7fb;
  --border: #e2e8f0;
  --cyan: #22d3ee;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --gradient: linear-gradient(135deg, var(--cyan) 0%, var(--blue-600) 55%, var(--blue-700) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(34, 211, 238, 0.12) 0%, rgba(37, 99, 235, 0.08) 100%);
  --shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 22, 40, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --header-h: 72px;
  /* Liquid glass (iOS-style): blur + tint + hairline */
  --glass-blur: 22px;
  --glass-saturate: 180%;
  --glass-primary: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.42) 0%,
    rgba(59, 130, 246, 0.5) 48%,
    rgba(37, 99, 235, 0.52) 100%
  );
  --glass-border-light: rgba(255, 255, 255, 0.52);
  --glass-border-mid: rgba(255, 255, 255, 0.28);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  --glass-shadow: 0 4px 24px rgba(37, 99, 235, 0.18), 0 1px 2px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Fixed Three.js layer (scroll-driven in scene.js) */
.webgl-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.webgl-bg canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

main {
  position: relative;
  z-index: 1;
}

/* Anchor targets clear the sticky header + notch */
section[id] {
  scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 0.75rem);
}

.site-footer {
  position: relative;
  z-index: 1;
}

/* Scroll-scrubbed reveal: --reveal updates every frame from scroll position */
[data-reveal] {
  --reveal: 0;
  opacity: calc(0.2 + var(--reveal) * 0.8);
  transform: translate3d(0, calc((1 - var(--reveal)) * 42px), 0) scale(calc(0.96 + var(--reveal) * 0.04));
  will-change: transform, opacity;
}

.cta-band [data-reveal] {
  opacity: calc(0.35 + var(--reveal) * 0.65);
}

.reduce-motion [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  will-change: auto;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - clamp(1.25rem, 6vw, 2.5rem)));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: min(1120px, calc(100% - clamp(1.25rem, 6vw, 2.5rem)));
  margin-inline: auto;
  min-height: var(--header-h);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy-900);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

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

.brand-logo {
  border-radius: 10px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--blue-600);
}

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  background: var(--glass-primary);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border-light);
  box-shadow: var(--glass-highlight), 0 2px 16px rgba(37, 99, 235, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, filter 0.18s ease;
}

.nav-cta:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: var(--glass-highlight), 0 6px 28px rgba(37, 99, 235, 0.28);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  margin: 0;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 1px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + var(--header-h));
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem max(1rem, env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - env(safe-area-inset-top, 0px) - var(--header-h));
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .nav-list.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list li {
    border-bottom: 1px solid var(--border);
  }

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

  .nav-list a {
    display: flex;
    align-items: center;
    padding: 0.9rem 0.5rem;
    min-height: 44px;
    touch-action: manipulation;
  }

  .nav-cta {
    text-align: center;
    justify-content: center;
    margin-top: 0.5rem;
  }
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, var(--surface-subtle) 0%, transparent 45%),
    var(--gradient-soft);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  pointer-events: none;
  opacity: 0.94;
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 10%;
  right: -5%;
  width: min(45vw, 420px);
  height: min(45vw, 420px);
  background: var(--gradient);
  opacity: 0.06;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  transform: rotate(-12deg);
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - clamp(1.25rem, 6vw, 2.5rem)));
  margin-inline: auto;
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-600);
  margin: 0 0 1rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 5vw + 0.5rem, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy-900);
  overflow-wrap: anywhere;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons — glassmorphism (frosted blur + hairline, iOS-style) */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--glass-primary);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border-light);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: var(--glass-highlight), 0 8px 32px rgba(37, 99, 235, 0.26), 0 2px 8px rgba(15, 23, 42, 0.06);
}

.btn-ghost {
  color: var(--navy-900);
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 2px 12px rgba(15, 23, 42, 0.05);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(59, 130, 246, 0.45);
  color: var(--blue-600);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 4px 20px rgba(37, 99, 235, 0.12);
}

.btn-large {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
}

/* Sections */

.section {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
}

.section-alt {
  background: var(--surface-subtle);
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.section-head h2,
#why-heading {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.section-sub.left {
  text-align: left;
}

/* Cards */

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

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 1.75rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.section-alt .card {
  background: #fff;
}

.card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--gradient-soft);
  color: var(--blue-600);
  margin-bottom: 1.25rem;
}

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy-900);
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  max-width: 800px;
  margin-inline: auto;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 1.75rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.step-num {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--gradient);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  line-height: 1;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--navy-900);
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

@media (max-width: 600px) {
  .step {
    grid-template-columns: 1fr;
  }
}

/* Why split */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.checklist {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.85rem;
  color: var(--text-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gradient);
  transform: rotate(45deg);
}

.quote-panel blockquote {
  margin: 0;
  padding: 2rem;
  background: var(--navy-900);
  color: #e2e8f0;
  border-radius: var(--radius);
  border-left: 4px solid var(--cyan);
  box-shadow: var(--shadow-lg);
}

.quote-panel blockquote p {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-style: italic;
}

.quote-panel footer {
  font-size: 0.875rem;
  color: var(--cyan);
  font-style: normal;
  font-weight: 500;
}

/* CTA band */

.cta-band {
  padding: clamp(1.25rem, 2.5vw, 2rem) 0 0;
  background: var(--navy-900);
  color: #f1f5f9;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(34, 211, 238, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0;
  color: #94a3b8;
  max-width: 420px;
}

/* Dark section: light frost on navy (Liquid-style) */
.cta-band .btn-primary {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.08) 100%
  );
  backdrop-filter: blur(26px) saturate(200%);
  -webkit-backdrop-filter: blur(26px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 40px rgba(0, 0, 0, 0.22);
  color: #fff;
}

.cta-band .btn-primary:hover {
  filter: brightness(1.08);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.24) 0%,
    rgba(255, 255, 255, 0.14) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 12px 44px rgba(0, 0, 0, 0.28);
}

@media (prefers-reduced-transparency: reduce) {
  .btn-primary,
  .btn-ghost,
  .nav-cta,
  .cta-band .btn-primary {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .btn-primary {
    background: var(--gradient);
    border: none;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
  }

  .btn-ghost {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    box-shadow: none;
  }

  .nav-cta {
    background: var(--gradient);
    border: none;
  }

  .cta-band .btn-primary {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
  }
}

/* Footer (inside CTA band — multi-column + bar, BaseIt palette) */

.cta-band .site-footer {
  padding: 0;
  margin-top: clamp(2rem, 5vw, 3rem);
  border: 0;
  background: transparent;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(200px, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 2.75rem);
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
}

.footer-about {
  max-width: 320px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: #f1f5f9;
  text-decoration: none;
}

.footer-logo:hover {
  color: #fff;
  text-decoration: none;
}

.footer-logo:hover .footer-logo-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-logo img {
  border-radius: 8px;
  flex-shrink: 0;
}

.footer-tagline {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #94a3b8;
}

.footer-heading {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cta-band .footer-links a {
  font-size: 0.9375rem;
  font-weight: 400;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.cta-band .footer-links a:hover {
  color: var(--cyan);
  text-decoration: none;
}

.cta-band .footer-links a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-link-btn {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #94a3b8;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease;
}

.footer-link-btn:hover {
  color: var(--cyan);
}

.footer-link-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Legal modal (tabbed policies) */

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-left, 0px));
}

.legal-modal[hidden] {
  display: none;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 13, 24, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.legal-modal-shell {
  position: relative;
  width: min(640px, 100%);
  max-height: min(85vh, 720px, calc(100vh - 2rem));
  max-height: min(85dvh, 720px, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 2rem));
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.legal-modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: min(85vh, 720px, calc(100vh - 2rem));
  max-height: min(85dvh, 720px, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 2rem));
  background: var(--navy-900);
  color: #e2e8f0;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(34, 211, 238, 0.06);
  overflow: hidden;
}

.legal-modal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(155deg, rgba(34, 211, 238, 0.07) 0%, transparent 45%);
}

.legal-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0.75rem;
  z-index: 1;
}

.legal-modal-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}

.legal-modal-close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.legal-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(34, 211, 238, 0.35);
}

.legal-modal-close:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.legal-tablist {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 1.25rem 1rem;
  z-index: 1;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.legal-tab {
  margin: 0;
  padding: 0.5rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #94a3b8;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.legal-tab:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
}

.legal-tab[aria-selected="true"] {
  color: #f1f5f9;
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.35);
}

.legal-tab:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.legal-panels {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.25rem 1.5rem;
  z-index: 1;
}

.legal-panel-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
}

.legal-panel-body {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #94a3b8;
}

.legal-panel-body p {
  margin: 0 0 1rem;
}

.legal-panel-body p:last-child {
  margin-bottom: 0;
}

.legal-panel-body a {
  color: var(--cyan);
  text-decoration: none;
}

.legal-panel-body a:hover {
  text-decoration: underline;
}

.legal-panel-body strong {
  color: #e2e8f0;
  font-weight: 600;
}

@media (prefers-reduced-transparency: reduce) {
  .legal-modal-backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(6, 13, 24, 0.92);
  }
}

.footer-bar {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  position: relative;
  z-index: 1;
}

.footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 clamp(1.75rem, 4vw, 2.5rem);
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.footer-locale {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
}

/* —— Mobile & narrow viewports —— */

@media (max-width: 540px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .hero-lead {
    font-size: 1.0625rem;
  }
}

@media (max-width: 640px) {
  .cta-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-inner > div {
    text-align: center;
  }

  .cta-band .btn-large {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .section-head {
    margin-bottom: clamp(2rem, 6vw, 3rem);
  }

  .quote-panel blockquote {
    padding: clamp(1.25rem, 4vw, 2rem);
  }
}

@media (max-width: 480px) {
  .section {
    padding: clamp(2.5rem, 8vw, 4rem) 0;
  }

  .hero {
    padding: clamp(2.25rem, 7vw, 4rem) 0 clamp(3rem, 9vw, 5rem);
  }

  .card {
    padding: clamp(1.25rem, 4vw, 1.75rem);
  }

  .step {
    padding: 1.25rem 1.25rem;
  }

  .footer-bar-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .cta-band .footer-links a,
  .footer-link-btn {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 1.1rem;
    gap: 0.5rem;
  }

  .brand-logo {
    width: 36px;
    height: auto;
  }
}

@media (max-width: 480px) {
  .legal-modal-header {
    padding: 1rem 1rem 0.5rem;
  }

  .legal-tablist {
    padding: 0 1rem 0.75rem;
    gap: 0.25rem;
  }

  .legal-tab {
    padding: 0.45rem 0.65rem;
    font-size: 0.75rem;
  }

  .legal-panels {
    padding: 0.85rem 1rem 1.25rem;
  }
}
