:root {
  --bg: #eef1f8;
  --bg-2: #e3e8f3;
  --surface: #ffffff;
  --surface-2: #ffffff;

  --glass: rgba(255, 255, 255, 0.72);
  --glass-2: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-blur: saturate(160%) blur(16px);
  --glass-modal: rgba(252, 253, 255, 0.96);
  --glass-modal-blur: saturate(150%) blur(28px);

  --line: #d3dae7;
  --line-2: #bcc6da;
  --line-input: #828fac; /* form-control border — 3.2:1 on white (non-text AA) */
  --line-soft: #dde2ec;

  --text: #16203a;
  --text-soft: #566179;
  --text-faint: #656c7f; /* muted-faint — 5.2:1 on white, 4.6:1 on page bg */

  --blue: #3b63e8; /* dark enough for white button text at WCAG AA (5.08:1) */
  --blue-dk: #2a4fca;
  --blue-tint: #eef3ff;
  --blue-soft: #dfe8ff;
  --accent: var(--blue);
  --pink: #d63a5e;

  --gold: #e8930c; /* text on it uses --text (navy) for AA contrast */
  --gold-deep: #b8720a;
  --gold-tint: #fdf1dc;
  --glow-gold: 0 6px 16px rgba(232, 147, 12, 0.28);

  --grad-hot: linear-gradient(135deg, #4b71ef 0%, #3b63e8 100%);

  --fs-2xs: 0.75rem;
  --fs-xs: 0.85rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.75rem;
  --fs-display-sm: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem);
  --fs-display: clamp(2.2rem, 1.5rem + 3vw, 3.4rem);
  --fs-display-lg: clamp(2rem, 1.3rem + 4vw, 4.4rem);
  --fs-display-num: clamp(2.6rem, 1.8rem + 2.6vw, 3.6rem);

  --space-1: 0.25rem;
  --space-2: 0.375rem;
  --space-3: 0.5rem;
  --space-4: 0.75rem;
  --space-5: 0.875rem;
  --space-6: 1rem;
  --space-7: 1.25rem;
  --space-8: 1.5rem;
  --space-9: 1.75rem;
  --space-10: 2rem;
  --space-11: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5.25rem;
  --space-24: 6rem;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 11px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-xs: 0 2px 8px rgba(22, 32, 58, 0.08);
  --shadow-sm: 0 6px 18px rgba(22, 32, 58, 0.09);
  --shadow: 0 18px 44px rgba(22, 32, 58, 0.13), 0 4px 12px rgba(22, 32, 58, 0.08);
  --shadow-lg: 0 30px 80px rgba(9, 14, 34, 0.4);
  --glow-sm: 0 5px 14px rgba(59, 99, 232, 0.22);
  --glow: 0 8px 20px rgba(59, 99, 232, 0.24);
  --glow-lg: 0 20px 44px rgba(59, 99, 232, 0.3);
  --elev-down: 0 4px 16px -6px rgba(22, 32, 58, 0.18);

  --lh-none: 1;
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  --container: 1460px;

  /* @media literals must match these; custom props don't work in @media */
  --bp-xs: 480px;
  --bp-sm: 560px;
  --bp-md: 720px;
  --bp-lg: 900px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.12s;
  --dur: 0.2s;
  --dur-slow: 0.32s;
  --sans: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  /* Keep root at 16px on every viewport: honest rem tokens + iOS input-zoom safe. */
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(680px 520px at 6% 4%, rgba(59, 99, 232, 0.1), transparent 60%),
    radial-gradient(620px 540px at 96% 18%, rgba(34, 176, 224, 0.09), transparent 58%),
    radial-gradient(680px 560px at 88% 62%, rgba(124, 92, 240, 0.09), transparent 60%),
    radial-gradient(620px 560px at 4% 78%, rgba(59, 99, 232, 0.08), transparent 60%),
    radial-gradient(560px 480px at 50% 108%, rgba(34, 176, 224, 0.07), transparent 60%);
  background-attachment: fixed;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: var(--lh-tight);
  color: var(--text);
}
p {
  margin: 0;
}
a {
  color: var(--blue);
}

/* Visually hidden but available to screen readers. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -0.0625rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link: off-screen until focused, then pinned top-left. */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: var(--space-4) var(--space-7);
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: var(--shadow);
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 3px;
}
/* On the brand-blue / dark-navy surfaces a blue ring disappears — use white. */
.btn:focus-visible,
.section--ink a:focus-visible,
.site-footer a:focus-visible,
.skip-link:focus-visible,
.modal__close:focus-visible {
  outline-color: #fff;
}
/* Focus lands on <main> after the skip link; don't paint a ring on the whole
   region, but keep it programmatically focusable. */
main:focus,
main:focus-visible {
  outline: none;
}

.grad-text {
  background: var(--grad-hot);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-10);
}
.container--narrow {
  max-width: 820px;
}
.container--mid {
  max-width: 1120px;
}
@media (max-width: 720px) {
  .container {
    padding: 0 var(--space-7);
  }
}
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-9) var(--space-16);
}

.section {
  padding: var(--space-24) 0;
  position: relative;
}
.section--alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section--tight-top {
  padding-top: var(--space-14);
}
@media (max-width: 720px) {
  .section {
    padding: var(--space-14) 0;
  }
}

.section__head {
  max-width: 720px;
  margin: 0 0 var(--space-14);
}
.section__head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-7);
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-pill);
  background: var(--grad-hot);
  box-shadow: var(--glow-sm);
}
.section__title {
  font-size: var(--fs-display);
}
.section__sub {
  margin-top: var(--space-7);
  color: var(--text-soft);
  font-size: var(--fs-md);
  max-width: 60ch;
}
.center .section__sub {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 560px) {
  body {
    line-height: var(--lh-normal);
  }
  h1,
  h2,
  h3,
  h4 {
    line-height: var(--lh-tight);
  }
  .section {
    padding: var(--space-12) 0;
  }
  .section__head {
    margin-bottom: var(--space-10);
  }
  .section__sub {
    margin-top: var(--space-5);
  }
  .kicker {
    margin-bottom: var(--space-5);
    padding: var(--space-2) var(--space-5);
  }
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 1px transparent border on every variant keeps computed height identical
     across filled/ghost/on-ink. align-self:center stops flex button-rows from
     stretching one button taller than its siblings. */
  align-self: center;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-9);
  font-family: var(--sans);
  font-weight: 800;
  font-size: var(--fs-base);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  text-decoration: none;
  text-align: center;
  color: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--grad-hot);
  box-shadow: var(--glow);
  transition:
    transform var(--dur-slow) var(--ease),
    box-shadow var(--dur-slow) var(--ease),
    filter var(--dur-slow) var(--ease);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 0.0625rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), transparent 50%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
}
/* Lift only on real pointers: on touch the hover state sticks after a tap and
   leaves the button raised. :active below still gives mobile a press feedback. */
@media (hover: hover) {
  .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-lg);
  }
}
.btn:active {
  transform: translateY(-1px);
}
.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.btn__arrow {
  transition: transform var(--dur) var(--ease);
}
@media (hover: hover) {
  .btn:hover .btn__arrow {
    transform: translateX(4px);
  }
}

.btn--sm {
  padding: var(--space-4) var(--space-7);
  font-size: var(--fs-sm);
  border-radius: var(--radius-md);
  box-shadow: var(--glow-sm);
}
.btn--block {
  width: 100%;
}
.btn--ghost {
  background: rgba(120, 150, 255, 0.06);
  color: var(--text);
  box-shadow: none;
  /* Keep the base 1px border width so height matches filled buttons. */
  border-color: var(--line-2);
}
.btn--ghost::after {
  display: none;
}
@media (hover: hover) {
  .btn--ghost:hover {
    background: rgba(120, 150, 255, 0.14);
    border-color: var(--blue);
    box-shadow: var(--shadow-sm);
  }
}
.btn--on-ink {
  background: #fff;
  color: #0b1230;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.25);
}
.btn--on-ink::after {
  display: none;
}
.btn--on-ink:hover {
  filter: none;
  box-shadow: 0 16px 40px rgba(255, 255, 255, 0.35);
}
@media (max-width: 560px) {
  .btn {
    padding: var(--space-5) var(--space-8);
    border-radius: var(--radius-md);
    gap: var(--space-3);
  }
  .btn--sm {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-md);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(238, 241, 248, 0.85);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  box-shadow: var(--elev-down);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  height: 72px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  text-decoration: none;
}
.brand__name {
  font-weight: 900;
  font-size: var(--fs-xl);
  letter-spacing: -0.04em;
  color: var(--text);
}
.brand__dot {
  font-size: var(--fs-xl);
  line-height: var(--lh-none);
  font-weight: 900;
  background: var(--grad-hot);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav {
  display: flex;
  gap: var(--space-9);
  margin-left: auto;
}
.nav a {
  position: relative;
  color: var(--text-soft);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: var(--space-1) 0;
  transition: color var(--dur) var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 0;
  background: var(--grad-hot);
  border-radius: var(--radius-xs);
  transition: width var(--dur-slow) var(--ease);
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--text);
}
.nav a:hover::after,
.nav a:focus-visible::after,
.nav a[aria-current='page']::after {
  width: 100%;
}
.nav__cta {
  flex: none;
}

.nav-toggle {
  display: none;
  flex: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-1);
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.nav-toggle:hover {
  border-color: var(--blue);
  background: var(--blue-tint);
}
.nav-open .nav-toggle {
  background: var(--grad-hot);
  border-color: transparent;
  box-shadow: var(--glow-sm);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: var(--radius-xs);
  background: var(--text);
  transform-origin: center;
  transition:
    transform var(--dur) var(--ease),
    opacity var(--dur) var(--ease),
    background var(--dur) var(--ease);
}
.nav-open .nav-toggle span {
  background: #fff;
}
/* Open → X: 2px bars on a 4px gap (--space-1) ⇒ centres 6px apart; translate then rotate. */
.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-open .nav-toggle span:nth-child(2) {
  transform: scaleX(0);
  opacity: 0;
}
.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }
  .nav__cta {
    margin-left: auto;
  }
  /* Horizontal padding must equal the header gutter so link text lines up with
     the logo above. */
  .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: var(--space-4) var(--space-10) var(--space-6);
    background: rgba(238, 241, 248, 0.97);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity var(--dur) var(--ease),
      transform var(--dur) var(--ease),
      visibility 0s linear var(--dur);
  }
  .nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
      opacity var(--dur) var(--ease),
      transform var(--dur) var(--ease),
      visibility 0s;
  }
  .nav a {
    position: relative;
    margin: 0 -0.75rem;
    padding: var(--space-5) var(--space-4);
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--text-soft);
    border-radius: 0;
    transition:
      background var(--dur) var(--ease),
      color var(--dur) var(--ease);
  }
  .nav a::after {
    display: none;
  }
  /* Real border (not a pseudo-element) so it always shows at rest, regardless
     of hover/active state. */
  .nav a + a {
    border-top: 1px solid var(--line-soft);
  }
  .nav a:hover {
    background: var(--blue-tint);
    color: var(--text);
  }
  .nav a[aria-current='page'] {
    color: var(--blue);
    background: var(--blue-tint);
  }
  .nav a[aria-current='page']::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 3px;
    border-radius: 3px;
    background: var(--grad-hot);
  }
}
/* Keep nav padding matched to the header gutter so link text stays aligned
   with the logo. */
@media (max-width: 720px) {
  .nav {
    padding: var(--space-4) var(--space-7) var(--space-6);
  }
}
@media (max-width: 720px) {
  html {
    scroll-padding-top: 68px;
  }
  .site-header__inner {
    gap: var(--space-6);
    height: 58px;
  }
  .brand__name,
  .brand__dot {
    font-size: var(--fs-lg);
  }
  .nav__cta {
    padding: var(--space-3) var(--space-6);
  }
  .nav-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
  }
  .nav-toggle span {
    width: 18px;
  }
}
@media (max-width: 480px) {
  .site-header__inner {
    gap: var(--space-4);
  }
  .nav__cta {
    padding: var(--space-3) var(--space-5);
  }
  .nav-toggle {
    width: 36px;
    height: 36px;
  }
  .brand__name,
  .brand__dot {
    font-size: var(--fs-lg);
  }
}

.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-16) 0 var(--space-16);
}
.hero--home {
  padding-bottom: var(--space-20);
}
.hero--home::before,
.hero--home::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.hero--home::before {
  width: 480px;
  height: 480px;
  top: -160px;
  right: -100px;
  background: radial-gradient(circle, rgba(59, 99, 232, 0.12), transparent 70%);
  animation: float1 16s var(--ease) infinite;
}
.hero--home::after {
  width: 400px;
  height: 400px;
  bottom: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(59, 99, 232, 0.08), transparent 70%);
  animation: float2 19s var(--ease) infinite;
}
@keyframes float1 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-40px, 40px);
  }
}
@keyframes float2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(50px, -30px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero--home::before,
  .hero--home::after {
    animation: none;
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
}
.hero__copy {
  min-width: 0;
}
.hero--home .hero__inner {
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-14);
}
.hero__title {
  font-weight: 900;
}
.hero--home .hero__title {
  font-size: var(--fs-display-lg);
  letter-spacing: -0.045em;
}
.hero--home .hero__title em,
.hero__title em {
  font-style: normal;
  background: var(--grad-hot);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__lead {
  margin-top: var(--space-8);
  font-size: var(--fs-md);
  color: var(--text-soft);
  max-width: 34em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-10);
}
.hero__cta-note {
  margin-top: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--text-faint);
}

.hero__panel {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero__panel-inner {
  background: var(--glass-2);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-9) var(--space-9) var(--space-9);
}
/* Figure overlaps the glass card, so the panel wrapper must NOT clip it.
   Scoped to .hero--home so these absolute rules don't leak onto the interior
   pages' .hero__figure (a plain <img>, styled separately below). */
.hero--home .hero__figure {
  position: absolute;
  top: -38px;
  right: -30px;
  width: 148px;
  height: 148px;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 10px 20px rgba(59, 99, 232, 0.18));
  animation: heroFigFloat 7s var(--ease) infinite;
}
.hero__figure line,
.hero__figure rect,
.hero__figure circle {
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero__figure-doc rect {
  fill: #ffffff;
  stroke: var(--blue);
  stroke-width: 2.4;
}
.hero__figure-doc--back {
  stroke: var(--blue);
  stroke-width: 2.4;
  fill: var(--blue-tint);
  opacity: 0.9;
}
.hero__figure-doc--front line {
  stroke: var(--line-input);
  stroke-width: 2.2;
}
/* Specific enough to beat `.hero__figure-doc--front line` without !important. */
.hero__figure-doc--front line.hero__figure-bar {
  stroke: var(--blue);
  stroke-width: 3.4;
}
.hero__figure-lens circle,
.hero__figure-lens line {
  stroke: url(#heroFigGrad);
  stroke-width: 3.4;
  fill: none;
}
.hero__figure-lens circle {
  fill: rgba(47, 92, 230, 0.06);
}
@keyframes heroFigFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-9px) rotate(-1.5deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__figure {
    animation: none;
  }
}
/* Pull the figure in on full-width mobile so it never causes horizontal overflow. */
@media (max-width: 480px) {
  .hero--home .hero__figure {
    width: 112px;
    height: 112px;
    top: -30px;
    right: -14px;
  }
}

.hero__panel-tag {
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
.hero__panel h2 {
  font-size: var(--fs-xl);
  margin: var(--space-4) 0 var(--space-7);
  font-weight: 800;
}
.hero__panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.hero__panel-list li {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-base);
  color: var(--text);
}
.hero__panel-list li:first-child {
  border-top: 0;
}
.hero__panel-list .n {
  font-weight: 900;
  flex: none;
  width: 1.5em;
  background: var(--grad-hot);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 900px) {
  .hero {
    padding: var(--space-8) 0 var(--space-16);
  }
  /* Scoped to .hero--home to match the two-column rule's specificity; a bare
     .hero__inner would lose and stay two-column on phones. */
  .hero--home .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-11);
  }
}
@media (max-width: 560px) {
  .hero {
    padding: var(--space-10) 0 var(--space-12);
  }
  .hero__lead {
    margin-top: var(--space-7);
  }
  .hero__actions {
    margin-top: var(--space-9);
  }
}

.panel {
  position: relative;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.panel--lift {
  transition:
    transform var(--dur-slow) var(--ease),
    box-shadow var(--dur-slow) var(--ease),
    background var(--dur-slow) var(--ease),
    border-color var(--dur-slow) var(--ease);
}
.panel--lift:hover {
  transform: translateY(-6px);
  background: var(--glass-2);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
/* Masked gradient hairline ring; --ring-pad/--ring-opacity/--ring-grad tune it. */
.panel--ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: var(--ring-pad, 0.0938rem);
  background: var(--ring-grad, var(--grad-hot));
  opacity: var(--ring-opacity, 0.55);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  /* Own compositing layer so a parent reveal transform can't distort it. */
  transform: translateZ(0);
}
.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  box-shadow: var(--glow-sm);
  flex: none;
}
.icon-badge svg {
  width: 26px;
  height: 26px;
}

/* Central round-cap/join for every line icon; set here, not on each inline svg. */
.icon-badge svg,
.feature__icon svg,
.stat__icon svg,
.success__icon svg,
.card-opt__ico svg,
.footer-social svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.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-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Equal-height cards with footer/CTA pinned via flex-column + margin-top:auto. */
.grid {
  align-items: stretch;
}
.svc,
.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: var(--space-9) var(--space-9);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur-slow) var(--ease),
    box-shadow var(--dur-slow) var(--ease),
    background var(--dur-slow) var(--ease),
    border-color var(--dur-slow) var(--ease);
}
.svc:hover,
.feature:hover {
  transform: translateY(-6px);
  background: var(--glass-2);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
.svc__num {
  display: inline-block;
  font-size: var(--fs-md);
  font-weight: 900;
  color: var(--blue);
}
.svc h3 {
  font-size: var(--fs-lg);
  margin: var(--space-4) 0 var(--space-4);
  font-weight: 800;
}
.svc p {
  color: var(--text-soft);
  font-size: var(--fs-sm);
}
.svc__more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-7);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--blue);
  text-decoration: none;
  align-self: flex-start;
}
.svc__more:hover {
  color: var(--blue-dk);
}

.feature__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-7);
  color: #fff;
  background: var(--blue);
  box-shadow: var(--glow-sm);
  flex: none;
}
.feature__icon svg {
  width: 26px;
  height: 26px;
}
.feature h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-3);
  font-weight: 800;
}
.feature p {
  color: var(--text-soft);
  font-size: var(--fs-sm);
}

.svc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7) var(--space-11);
}
@media (max-width: 720px) {
  .svc-list {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}
.svc-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-8);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.svc-row:hover {
  background: var(--surface);
  border-color: var(--line-2);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.svc-row__num {
  font-size: var(--fs-display-sm);
  font-weight: 900;
  line-height: var(--lh-none);
  color: transparent;
  -webkit-text-stroke: 2px var(--blue);
  text-stroke: 2px var(--blue);
  flex: none;
  transition: color var(--dur) var(--ease);
}
.svc-row:hover .svc-row__num {
  color: var(--blue);
}
.svc-row__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.svc-row__title {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--text);
}
.svc-row__text {
  font-size: var(--fs-sm);
  color: var(--text-soft);
  line-height: var(--lh-normal);
}
.svc-row__arrow {
  margin-left: auto;
  color: var(--blue);
  font-weight: 800;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);
  align-self: center;
}
.svc-row:hover .svc-row__arrow,
.svc-row:focus-visible .svc-row__arrow {
  opacity: 1;
  transform: none;
}
@media (max-width: 560px) {
  .svc-row {
    gap: var(--space-6);
    padding: var(--space-6) var(--space-5);
  }
  .svc-row__num {
    -webkit-text-stroke: 1.5px var(--blue);
    text-stroke: 1.5px var(--blue);
  }
}

.features-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7) var(--space-11);
}
@media (max-width: 720px) {
  .features-rows {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}
.tile {
  display: flex;
  align-items: flex-start;
}
.tile__body h3 {
  font-weight: 800;
}
.tile__body p {
  color: var(--text-soft);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

.tile--row {
  gap: var(--space-7);
  padding: var(--space-9) var(--space-1);
  border-top: 1px solid var(--line-soft);
}
.features-rows .tile--row:nth-child(1),
.features-rows .tile--row:nth-child(2) {
  border-top: 0;
}
@media (max-width: 720px) {
  .features-rows .tile--row:nth-child(2) {
    border-top: 1px solid var(--line-soft);
  }
  .features-rows .tile--row:first-child {
    border-top: 0;
  }
}
.tile--row .tile__icon {
  width: 54px;
  height: 54px;
  color: var(--blue);
  background: var(--blue-tint);
  box-shadow: none;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.tile--row:hover .tile__icon {
  background: var(--blue);
  color: #fff;
  transform: scale(1.06);
}
.tile--row .tile__body h3 {
  font-size: var(--fs-lg);
  margin: var(--space-1) 0 var(--space-3);
}
@media (max-width: 560px) {
  .tile--row {
    gap: var(--space-5);
    padding: var(--space-7) var(--space-1);
  }
  .tile--row .tile__icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
  }
  .tile--row .tile__icon svg {
    width: 22px;
    height: 22px;
  }
}

.field-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 720px) {
  .field-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .field-tiles {
    grid-template-columns: 1fr;
  }
}
.tile--card {
  gap: var(--space-5);
  padding: var(--space-7) var(--space-7);
}
.tile--card.panel--lift:hover {
  transform: translateY(-4px);
}
.tile--card .tile__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--blue);
  background: var(--blue-tint);
  box-shadow: none;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.tile--card .tile__icon svg {
  width: 21px;
  height: 21px;
}
.tile--card:hover .tile__icon {
  background: var(--blue);
  color: #fff;
}
.tile--card .tile__body h3 {
  font-size: var(--fs-base);
  margin: var(--space-1) 0 var(--space-1);
}

.req-list {
  list-style: none;
  margin: 0 auto;
  padding: var(--space-4) var(--space-11);
  max-width: 780px;
  border-radius: var(--radius-lg);
}
@media (max-width: 560px) {
  .req-list {
    padding: var(--space-2) var(--space-8);
  }
}
.tile--check {
  gap: var(--space-7);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--line-soft);
}
.tile--check:first-child {
  border-top: 0;
}
.tile--check .tile__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: transform var(--dur) var(--ease);
}
.tile--check .tile__icon svg {
  width: 20px;
  height: 20px;
}
.tile--check:hover .tile__icon {
  transform: scale(1.1);
}
.tile--check .tile__body h3 {
  font-size: var(--fs-md);
  margin: var(--space-1) 0 var(--space-2);
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  align-items: stretch;
}
@media (max-width: 720px) {
  .tiers {
    grid-template-columns: 1fr;
  }
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-9) var(--space-9);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur-slow) var(--ease),
    box-shadow var(--dur-slow) var(--ease),
    background var(--dur-slow) var(--ease),
    border-color var(--dur-slow) var(--ease);
}
.tier:hover {
  transform: translateY(-6px);
  background: var(--glass-2);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
.tier__bars {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-7);
}
.tier__bars span {
  width: 26px;
  height: 7px;
  border-radius: var(--radius-xs);
  background: var(--blue);
}
.tier__bars::after {
  content: '';
  flex: 1;
}
.tier__scope {
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-3);
}
.tier h3 {
  font-size: var(--fs-lg);
  margin: 0 0 var(--space-4);
  font-weight: 800;
}
.tier p {
  color: var(--text-soft);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}
/* Featured tier stays raised on its own, so it doesn't take the hover-lift. */
.tier--featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow);
}
.tier--featured:hover {
  transform: none;
  box-shadow: var(--shadow);
  border-color: var(--blue);
}
.tier--featured .tier__scope {
  color: var(--blue);
}
.tier__badge {
  position: absolute;
  top: -12px;
  right: 24px;
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--gold);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-pill);
  box-shadow: var(--glow-gold);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-10);
  align-items: start;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: var(--space-16);
}
/* Line centered on the node: 28px = half the 56px node. */
.step::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  right: -32px;
  height: 3px;
  background: var(--line-2);
  z-index: 0;
}
.step:last-child::before {
  display: none;
}
.step__n {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  font-size: var(--fs-xl);
  font-weight: 900;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  box-shadow:
    0 0 0 6px var(--bg),
    0 8px 18px rgba(59, 99, 232, 0.28);
  letter-spacing: 0;
  transition:
    transform var(--dur-slow) var(--ease),
    box-shadow var(--dur-slow) var(--ease);
}
.step:hover .step__n {
  transform: scale(1.08);
  box-shadow:
    0 0 0 6px var(--bg),
    0 10px 22px rgba(59, 99, 232, 0.4);
}
.step h3 {
  font-size: var(--fs-lg);
  margin: 0 0 var(--space-3);
  font-weight: 800;
}
.step p {
  color: var(--text-soft);
  font-size: var(--fs-sm);
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-11) var(--space-10);
  }
  .step:nth-child(2n)::before {
    display: none;
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .step {
    /* Left pad clears the 56px node plus its 6px halo. */
    padding: 0 0 var(--space-10) var(--space-20);
    min-height: 56px;
  }
  .step:last-child {
    padding-bottom: 0;
  }
  .step::before {
    top: 56px;
    bottom: -34px;
    left: 28px;
    right: auto;
    width: 3px;
    height: auto;
  }
  .step:last-child::before {
    display: none;
  }
  .step:nth-child(2n)::before {
    display: block;
  }
}

.stat__num {
  font-size: var(--fs-display-num);
  font-weight: 900;
  line-height: var(--lh-none);
  letter-spacing: -0.04em;
  background: var(--grad-hot);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__num span {
  font-size: 0.4em;
  font-weight: 800;
  letter-spacing: 0;
  margin-left: var(--space-1);
  -webkit-text-fill-color: currentColor;
  color: var(--blue);
}
.stat__label {
  color: var(--text-soft);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
  position: relative;
  z-index: 1;
}
.stat-band .stat {
  padding: var(--space-2) var(--space-9);
  position: relative;
}
.stat-band .stat + .stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  height: 76%;
  width: 1px;
  background: rgba(255, 255, 255, 0.22);
}
.stat-band .stat__label {
  margin-top: var(--space-5);
  letter-spacing: 0.01em;
}
@media (max-width: 720px) {
  .stat-band {
    grid-template-columns: 1fr;
  }
  .stat-band .stat {
    padding: var(--space-9) 0;
  }
  .stat-band .stat + .stat {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
  .stat-band .stat + .stat::before {
    display: none;
  }
}

.section--ink {
  background: var(--blue);
  overflow: hidden;
}
.section--ink::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 460px;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 65%);
  pointer-events: none;
}
.section--ink .stat__num {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.4);
}
/* On the blue slab the suffix chip's default blue would vanish — keep it white. */
.section--ink .stat__num span {
  -webkit-text-fill-color: #fff;
  color: #fff;
}
.section--ink .stat__label {
  color: rgba(255, 255, 255, 0.85);
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
@media (max-width: 720px) {
  .compare {
    grid-template-columns: 1fr;
  }
}
.compare__col {
  display: flex;
  flex-direction: column;
  padding: var(--space-10) var(--space-10);
}
.compare__col--them {
  background: rgba(210, 218, 235, 0.5);
  border-right: 1px solid var(--line-2);
}
@media (max-width: 720px) {
  .compare__col--them {
    border-right: 0;
    border-bottom: 1px solid var(--line-2);
  }
}
.compare__col--us {
  position: relative;
  background: rgba(255, 255, 255, 0.4);
}
.compare__col--us::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--blue);
}
.compare__col h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-8);
  font-weight: 800;
  display: flex;
  align-items: center;
}
.compare__col--them h3 {
  color: var(--text-soft);
}
.compare__col--us h3 .tag {
  margin-left: var(--space-4);
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--gold);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-pill);
}
.compare ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.compare li {
  display: flex;
  gap: var(--space-4);
  font-size: var(--fs-base);
  align-items: flex-start;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line-soft);
}
.compare li:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.compare__col--them li {
  color: var(--text-soft);
}
.compare li .mk {
  flex: none;
  font-weight: 900;
  line-height: var(--lh-normal);
  width: 1.3em;
}
.compare__col--them .mk {
  color: var(--text-soft);
}
.compare__col--us .mk {
  color: var(--blue);
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  align-items: stretch;
}
@media (max-width: 900px) {
  .quotes {
    grid-template-columns: 1fr;
  }
}
.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: var(--space-11) var(--space-8);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur-slow) var(--ease),
    box-shadow var(--dur-slow) var(--ease),
    background var(--dur-slow) var(--ease),
    border-color var(--dur-slow) var(--ease);
}
.quote:hover {
  transform: translateY(-6px);
  background: var(--glass-2);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
.quote::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  right: 22px;
  font-size: 4.2rem;
  line-height: var(--lh-none);
  color: var(--blue-soft);
}
.quote p {
  font-size: var(--fs-base);
  color: var(--text);
  line-height: var(--lh-normal);
  position: relative;
}
.quote__by {
  margin-top: auto;
  padding-top: var(--space-7);
  font-size: var(--fs-xs);
  color: var(--blue);
  font-weight: 700;
}

.quotes--featured {
  grid-template-columns: 1.25fr 1fr;
  align-items: stretch;
}
@media (max-width: 900px) {
  .quotes--featured {
    grid-template-columns: 1fr;
  }
}
.quotes__stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-8);
}
.quote--lead {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: var(--shadow);
}
.quote--lead::before {
  color: rgba(255, 255, 255, 0.28);
  font-size: 5.5rem;
  top: 4px;
}
.quote--lead p {
  color: #fff;
  font-size: var(--fs-xl);
  line-height: var(--lh-normal);
  font-weight: 600;
}
.quote--lead .quote__by {
  color: rgba(255, 255, 255, 0.85);
}
.quote--lead:hover {
  box-shadow: var(--glow-lg);
}

.stat-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat-panel .stat {
  position: relative;
  padding: var(--space-11) var(--space-10);
  text-align: center;
}
.stat-panel .stat + .stat::before {
  content: '';
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 0;
  width: 1px;
  background: var(--line);
}
.stat-panel .stat__icon {
  margin: 0 auto var(--space-7);
  background: var(--grad-hot);
  box-shadow: var(--glow);
}
.stat-panel .stat__label {
  margin-top: var(--space-6);
  max-width: 22ch;
  margin-inline: auto;
}
@media (max-width: 720px) {
  .stat-panel {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
  .stat-panel .stat {
    padding: var(--space-10) var(--space-9);
  }
  .stat-panel .stat + .stat::before {
    top: 0;
    left: 28px;
    right: 28px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
}

.faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.faq__item {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: var(--space-1) var(--space-9);
  box-shadow: var(--shadow-sm);
  transition:
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}
.faq__item[open] {
  background: var(--glass-2);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-8) var(--space-10) var(--space-8) 0;
  position: relative;
  font-weight: 800;
  font-size: var(--fs-md);
  color: var(--text);
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform var(--dur-slow) var(--ease);
}
.faq__item[open] summary::after {
  transform: rotate(-135deg);
}
.faq__item p {
  padding: 0 0 var(--space-8);
  color: var(--text-soft);
  font-size: var(--fs-base);
}

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: var(--space-14) var(--space-12);
  text-align: center;
  background: var(--grad-hot);
  box-shadow: var(--glow-lg);
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 300px at 80% -30%, rgba(255, 255, 255, 0.25), transparent 60%);
  pointer-events: none;
}
.cta-band h2 {
  color: #fff;
  font-size: var(--fs-display-sm);
  font-weight: 900;
  position: relative;
}
.cta-band p {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  margin-top: var(--space-6);
  font-size: var(--fs-md);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .btn {
  position: relative;
  margin-top: var(--space-9);
}
/* Art sits in a light inset, not directly on the blue where it would vanish. */
.cta-band--split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: var(--space-12);
  text-align: left;
}
.cta-band--split .cta-band__body {
  position: relative;
  z-index: 1;
}
.cta-band--split p {
  margin-left: 0;
  margin-right: 0;
}
.cta-band__art {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-8);
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cta-band__art img {
  width: 100%;
  height: auto;
}
@media (max-width: 720px) {
  .cta-band--split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0;
  }
  .cta-band--split p {
    margin-left: auto;
    margin-right: auto;
  }
  .cta-band__art {
    display: none;
  }
}
@media (max-width: 560px) {
  .cta-band {
    padding: var(--space-11) var(--space-8);
  }
}

.hero--page {
  padding: var(--space-16) 0 var(--space-16);
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 720px) {
  .hero--page {
    padding: var(--space-10) 0 var(--space-12);
  }
}
.hero--page::before {
  content: '';
  position: absolute;
  width: 560px;
  height: 440px;
  top: -200px;
  right: -80px;
  background: radial-gradient(circle, rgba(59, 99, 232, 0.12), transparent 65%);
  pointer-events: none;
}
.hero--page .hero__inner {
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: var(--space-12);
}
.hero--page .hero__copy {
  max-width: 40rem;
}
/* Interior illustrations vary in aspect ratio, so constrain BOTH axes to give
   every interior hero the same visual footprint (width alone rendered them at
   wildly different heights). */
.hero__figure {
  width: 100%;
  max-width: 420px;
  max-height: 300px;
  height: auto;
  justify-self: center;
  animation: heroFigFloat 8s var(--ease) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero__figure {
    animation: none;
  }
}
@media (max-width: 900px) {
  .hero--page .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-9);
  }
  /* No height cap when stacked: max-height would fight max-width on the wide
     illustrations and blow the width past the column. */
  .hero--page .hero__figure {
    max-width: 260px;
    max-height: none;
    margin-inline: auto;
  }
}
.hero--page .hero__title {
  font-size: var(--fs-display);
  letter-spacing: -0.04em;
}
.hero--page .hero__lead {
  margin-top: var(--space-7);
  max-width: 40ch;
}
.hero--page .hero__actions {
  gap: var(--space-4);
  margin-top: var(--space-9);
}
.breadcrumb {
  font-size: var(--fs-xs);
  color: var(--text-faint);
  margin-bottom: var(--space-7);
  font-weight: 500;
}
.breadcrumb a {
  color: var(--text-soft);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--blue);
}

.prose {
  max-width: 70ch;
}
.prose h2 {
  font-size: var(--fs-2xl);
  margin: var(--space-11) 0 var(--space-6);
  font-weight: 800;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-size: var(--fs-lg);
  margin: var(--space-10) 0 var(--space-4);
  font-weight: 800;
  color: var(--text);
}
.prose p {
  color: var(--text-soft);
  margin-bottom: var(--space-6);
  font-size: var(--fs-base);
}
.prose ul {
  color: var(--text-soft);
  padding-left: var(--space-8);
  margin: 0 0 var(--space-7);
}
.prose li {
  margin-bottom: var(--space-3);
}
.prose a {
  color: var(--blue);
}

.prose-card {
  background: var(--glass-2);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-11) var(--space-11);
}
@media (max-width: 560px) {
  .prose-card {
    padding: var(--space-9) var(--space-8);
  }
}

.intro-split {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: var(--space-14);
  align-items: center;
}
@media (max-width: 900px) {
  .intro-split {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

.statement {
  margin: 0;
  padding: var(--space-2) 0 var(--space-2) var(--space-9);
  border-left: 4px solid var(--blue);
}
.statement p {
  margin: 0 0 var(--space-6);
  font-size: var(--fs-xl);
  line-height: var(--lh-normal);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.statement p:last-child {
  margin-bottom: 0;
}
.statement em {
  font-style: normal;
  color: var(--blue);
}
/* Scoped to beat `.statement p`'s font-size without !important. */
.statement p.statement__punch {
  color: var(--text-soft);
  font-weight: 500;
  font-size: var(--fs-md);
}
@media (max-width: 560px) {
  .statement {
    padding-left: var(--space-7);
  }
}

.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.stat-list .stat {
  display: flex;
  align-items: baseline;
  gap: var(--space-7);
  padding: var(--space-8) var(--space-1);
  border-top: 1px solid var(--line-soft);
}
.stat-list .stat:first-child {
  border-top: 0;
}
.stat-list .stat__num {
  font-size: var(--fs-display-sm);
  background: none;
  -webkit-text-fill-color: var(--blue);
  color: var(--blue);
  flex: none;
  min-width: 2.4em;
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-tint);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-6);
}
.legal-back {
  margin-top: var(--space-9);
  margin-bottom: 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--space-12);
  align-items: start;
}
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: var(--space-9);
  }
}

.legal-toc {
  position: sticky;
  top: 96px;
  align-self: start;
}
@media (max-width: 900px) {
  .legal-toc {
    position: static;
  }
}
.legal-toc__title {
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-5);
}
.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.legal-toc a {
  counter-increment: toc;
  display: flex;
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-soft);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: var(--lh-snug);
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.legal-toc a::before {
  content: counter(toc);
  flex: none;
  color: var(--blue);
  font-weight: 800;
  min-width: 1.3em;
}
.legal-toc a:hover {
  background: var(--blue-tint);
  color: var(--text);
}
@media (max-width: 900px) {
  .legal-toc ol {
    flex-direction: column;
    gap: var(--space-2);
  }
  .legal-toc a {
    background: var(--surface);
    border: 1px solid var(--line);
  }
}

.legal-content {
  min-width: 0;
}

.legal-summary {
  background: #dde6ff;
  border: 1px solid #b6c6f5;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: var(--space-8) var(--space-9);
  margin-bottom: var(--space-8);
}
.legal-summary p {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
}
.legal-summary strong {
  color: #12296f;
}

.legal {
  counter-reset: legal;
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}
.legal__section {
  background: var(--glass-2);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--space-9) var(--space-10);
  /* No scroll-margin-top here: it would add to html's scroll-padding-top (92+92)
     and push anchored sections below the header. */
}
@media (max-width: 560px) {
  .legal__section {
    padding: var(--space-8) var(--space-8);
  }
}
.legal__section > h2 {
  counter-increment: legal;
  font-size: var(--fs-lg);
  font-weight: 800;
  margin: 0 0 var(--space-6);
  display: flex;
  gap: var(--space-5);
  align-items: center;
  color: var(--text);
}
.legal__section > h2::before {
  content: counter(legal);
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: var(--fs-sm);
  font-weight: 800;
  color: #fff;
  background: var(--blue);
  border-radius: var(--radius-md);
  box-shadow: var(--glow-sm);
}
.legal p {
  color: var(--text-soft);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  margin: 0 0 var(--space-5);
}
.legal p:last-child {
  margin-bottom: 0;
}
.legal a {
  color: var(--blue);
}

.legal-list {
  list-style: none;
  margin: 0 0 var(--space-2);
  padding: 0;
}
.legal-list li {
  position: relative;
  padding: var(--space-4) 0 var(--space-4) var(--space-9);
  color: var(--text);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  border-top: 1px solid var(--line-soft);
}
.legal-list li:first-child {
  border-top: 0;
}
.legal-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 17px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.legal-list li strong {
  color: var(--text);
  font-weight: 700;
}

.fillme {
  background: var(--blue-tint);
  color: var(--blue-dk);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  padding: 0.0625rem var(--space-3);
  font-weight: 700;
  font-size: 0.94em;
}

.svc-detail {
  display: grid;
  grid-template-columns: 0.42fr 1.58fr;
  gap: var(--space-10);
  align-items: start;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-11) var(--space-11);
  margin-bottom: var(--space-8);
  transition:
    box-shadow var(--dur-slow) var(--ease),
    background var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
}
.svc-detail:hover {
  background: var(--glass-2);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}
@media (max-width: 720px) {
  .svc-detail {
    grid-template-columns: 1fr;
    gap: var(--space-7);
    padding: var(--space-9) var(--space-9);
  }
}
.svc-detail__label {
  font-size: 4.4rem;
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--blue);
}
.svc-detail h2 {
  font-size: var(--fs-2xl);
  margin: 0 0 var(--space-5);
  font-weight: 800;
}
.svc-detail p {
  color: var(--text-soft);
  font-size: var(--fs-base);
  margin-bottom: var(--space-7);
}
.svc-detail__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-8);
}
@media (max-width: 560px) {
  .svc-detail__list {
    grid-template-columns: 1fr;
  }
}
.svc-detail__list li {
  display: flex;
  gap: var(--space-4);
  color: var(--text);
  font-size: var(--fs-base);
  align-items: flex-start;
}
.svc-detail__list .mk {
  color: var(--blue);
  font-weight: 900;
  flex: none;
}
.svc-detail__list .mk {
  color: var(--blue);
  font-weight: 900;
  flex: none;
}

/* FORM: class/ID names consumed by quote-modal-template.js + validation.js — keep intact. */
.modal[hidden] {
  display: none;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh var(--space-6);
}
.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 14, 34, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
/* .is-closing is added by the JS just before it hides the modal, reversing
   both animations so it fades out instead of snapping away. */
@media (prefers-reduced-motion: no-preference) {
  .modal__backdrop {
    animation: modalFade var(--dur) var(--ease);
  }
  .modal__dialog {
    animation: modalPop var(--dur-slow) var(--ease);
  }
  .modal.is-closing .modal__backdrop {
    animation: modalFade var(--dur) var(--ease) reverse forwards;
  }
  .modal.is-closing .modal__dialog {
    animation: modalPop var(--dur-slow) var(--ease) reverse forwards;
  }
}
@keyframes modalFade {
  from {
    opacity: 0;
  }
}
@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(var(--reveal-y, 16px)) scale(0.98);
  }
}
/* These get programmatic focus (tabindex -1); they are containers, so never
   show a focus ring on them. */
.modal__dialog:focus,
.modal__dialog:focus-visible,
.step-panel:focus,
.step-panel:focus-visible {
  outline: none;
}
.modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 820px;
  /* Fixed height so the dialog doesn't resize step-to-step; body scrolls inside. */
  height: 700px;
  max-height: 92vh;
  background: var(--glass-modal);
  backdrop-filter: var(--glass-modal-blur);
  -webkit-backdrop-filter: var(--glass-modal-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
/* Header band is a sibling of the body (NOT inside it) so it doesn't scroll. */
.modal__header {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: var(--space-9) var(--space-11) var(--space-5);
  border-bottom: 1px solid var(--line-soft);
  /* Near-opaque: the body scrolls under this pinned band, so it must mask it. */
  background: rgba(252, 253, 255, 0.98);
}
.modal__header[hidden] {
  display: none;
}
.modal__title {
  flex: 1;
  text-align: center;
  padding: 0 var(--space-10);
  font-size: var(--fs-md);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}
.modal__close {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.modal__close svg {
  width: 18px;
  height: 18px;
}
@media (hover: hover) {
  .modal__close:hover {
    background: var(--blue-tint);
    border-color: var(--blue);
    color: var(--blue);
  }
}
.modal__close:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.modal__close:disabled:hover {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text-soft);
}
/* flex:1 + min-height:0 lets this scroll inside itself instead of growing the
   dialog. */
.modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: var(--space-3) var(--space-11) var(--space-10);
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 560px) {
  .modal {
    padding: 0;
  }
  .modal__dialog {
    max-height: 100%;
    height: 100%;
    border-radius: 0;
  }
  .modal__header {
    padding: var(--space-8) var(--space-7) var(--space-4);
  }
  .modal__title {
    font-size: var(--fs-base);
  }
  .modal__body {
    /* No height:100% here — it would overflow the full-screen dialog and let
       the whole thing scroll on mobile. */
    padding: var(--space-2) var(--space-7) var(--space-7);
  }
}
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.progress {
  margin: 0;
}
.progress[hidden] {
  display: none;
}
.progress__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-3);
}
.progress__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-soft);
}
.progress__pct {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.progress__track {
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--blue-tint);
  overflow: hidden;
}
.progress__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--grad-hot);
  transition: width var(--dur-slow) var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .progress__fill {
    transition: none;
  }
}

.step-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}
.step-panel[hidden] {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .step-panel.is-active {
    animation: reveal 0.4s var(--ease);
  }
}
.step-nav {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-7) var(--space-11) var(--space-7);
  border-top: 1px solid var(--line-soft);
  /* Near-opaque: the body scrolls under this pinned footer, so it must mask it. */
  background: rgba(252, 253, 255, 0.98);
}
.step-nav[hidden] {
  display: none;
}
.step-nav__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  justify-content: flex-end;
}
.step-nav__reassure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  margin: -0.125rem 0 0;
  font-size: var(--fs-2xs);
  line-height: var(--lh-snug);
  color: var(--text-faint);
}
.step-nav__reassure svg {
  width: 13px;
  height: 13px;
  flex: none;
  color: var(--blue);
}
@media (max-width: 480px) {
  .step-nav__reassure {
    gap: var(--space-1);
  }
  .step-nav__reassure svg {
    width: 12px;
    height: 12px;
  }
}
@media (max-width: 560px) {
  .step-nav {
    padding: var(--space-5) var(--space-7) var(--space-6);
  }
}
/* A .btn sets display:inline-flex, which otherwise overrides the [hidden]
   attribute — force hidden buttons to actually disappear (e.g. submit only
   shows on the last step, prev only after step 1). */
.step-nav__row .btn[hidden] {
  display: none;
}
.step-nav__row .btn {
  flex: 0 0 auto;
}
.step-nav__row #prevBtn {
  margin-right: auto;
}
@media (max-width: 480px) {
  .step-nav__row {
    flex-wrap: nowrap;
    gap: var(--space-4);
  }
  .step-nav__row .btn {
    flex: 1 1 0;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
  .step-nav__row #prevBtn {
    margin-right: 0;
  }
}
.btn__arrow--back {
  margin-right: var(--space-2);
  margin-left: 0;
}
.btn:hover .btn__arrow--back {
  transform: translateX(-4px);
}

.card {
  position: relative;
  background: var(--glass-2);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--space-11);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 0.0938rem;
  background: var(--grad-hot);
  opacity: 0.5;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
@media (max-width: 560px) {
  .card {
    padding: var(--space-9) var(--space-7);
  }
}
.card__head {
  margin-bottom: var(--space-9);
}
.title {
  font-size: var(--fs-xl);
  font-weight: 800;
}
.subtitle {
  margin-top: var(--space-4);
  color: var(--text-soft);
  font-size: var(--fs-base);
}

form {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  position: relative;
}
/* A layout `display` would beat the [hidden] attribute; force them gone. */
#quoteForm[hidden],
.modal__header[hidden],
.progress[hidden] {
  display: none !important;
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
  border: 0;
  padding: 0;
  min-width: 0;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
}
@media (max-width: 560px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
}
label,
legend {
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--text);
}
legend {
  padding: 0;
  margin-bottom: var(--space-1);
}
.cards-field {
  gap: var(--space-4);
}
.cards-field legend {
  margin-bottom: var(--space-1);
}
.cards {
  display: grid;
  gap: var(--space-4);
}
.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}
.cards--2 {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 480px) {
  .cards--3,
  .cards--2 {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }
}
.card-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-4);
  min-height: 104px;
  padding: var(--space-7) var(--space-5);
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
/* Native radio stays in the a11y tree and focusable; the card is the visible
   control. */
.card-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.card-opt__ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--blue-tint);
  color: var(--blue);
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.card-opt__ico svg {
  width: 22px;
  height: 22px;
}
.card-opt__label {
  display: block;
}
.card-opt::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
/* Hover lift only on real pointers: on touch the hover state sticks after a tap
   and would fight .is-selected. */
@media (hover: hover) {
  .card-opt:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }
  .card-opt:hover .card-opt__ico {
    background: var(--blue);
    color: #fff;
  }
}
.card-opt.is-selected {
  border-color: var(--blue);
  background: var(--blue-tint);
  color: var(--blue-dk);
  font-weight: 700;
  box-shadow: var(--glow-sm);
}
.card-opt.is-selected .card-opt__ico {
  background: var(--blue);
  color: #fff;
}
.card-opt.is-selected::after {
  opacity: 1;
  transform: scale(1);
  background: var(--blue)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
/* Ring the card only for keyboard focus, so a mouse click leaves no lingering
   outline. */
.card-opt:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
[data-tiles][aria-invalid='true'] {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.card-opt--sm {
  min-height: 84px;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-4);
  font-size: var(--fs-sm);
}
.card-opt--sm .card-opt__ico {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
}
.card-opt--sm .card-opt__ico svg {
  width: 18px;
  height: 18px;
}

.reassure {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--blue-tint);
  color: var(--text-soft);
  font-size: var(--fs-xs);
  line-height: var(--lh-normal);
}
.reassure svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 0.0625rem;
  color: var(--blue);
}

.req {
  color: var(--pink);
  font-weight: 800;
}
.hint {
  color: var(--text-faint);
  font-weight: 400;
  font-size: var(--fs-xs);
}
.help {
  margin-top: var(--space-1);
  color: var(--text-faint);
  font-size: var(--fs-xs);
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='date'],
select,
textarea,
input[type='file'] {
  width: 100%;
  max-width: 100%;
  /* iOS date/other inputs ignore width:100% and overflow unless box-sizing is
     pinned and min-width unset. */
  box-sizing: border-box;
  min-width: 0;
  padding: var(--space-5) var(--space-5);
  font: inherit;
  font-family: var(--sans);
  color: var(--text);
  background: #fbfcff;
  border: 1.5px solid var(--line-input);
  border-radius: var(--radius-md);
  /* Animate background-color only, never the `background` shorthand, or the
     select's chevron background-image cross-fades on focus. */
  transition:
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}
/* Normalise so it sizes like the others and keeps a visible calendar icon on
   iOS/Safari (which otherwise hides it). */
input[type='date'] {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  cursor: pointer;
  padding-right: var(--space-11);
  /* Empty date inputs lose their text baseline once appearance is stripped and
     collapse shorter; pin the height/line so they match a text field. */
  min-height: 51px;
  line-height: var(--lh-normal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23545c7e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
/* Native picker indicator fills the icon area (tappable) but is invisible so
   our own icon shows through. */
input[type='date']::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
input[type='date']::-webkit-date-and-time-value {
  text-align: left;
}
textarea {
  resize: none;
  min-height: 118px;
  line-height: var(--lh-normal);
}
input::placeholder,
textarea::placeholder {
  color: var(--text-faint);
}
select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: var(--space-11);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23545c7e' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
select option {
  background: #fff;
  color: var(--text);
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 99, 232, 0.35);
}
input[type='file'] {
  padding: var(--space-4);
  cursor: pointer;
}
input[type='file']::file-selector-button {
  font: inherit;
  font-family: var(--sans);
  font-weight: 700;
  margin-right: var(--space-4);
  padding: var(--space-3) var(--space-5);
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--grad-hot);
  color: #fff;
  cursor: pointer;
}

.filelist {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: grid;
  /* minmax(0,1fr) lets each chip shrink below its intrinsic width so a long
     filename can't widen the grid past its container. */
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
}
.filelist[hidden] {
  display: none;
}
.filechip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  /* Grid items default to min-width:auto; reset so a long filename can't overflow. */
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-md);
  background: var(--blue-tint);
  font-size: var(--fs-sm);
}
.filechip__icon {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--blue);
}
.filechip__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text);
}
.filechip__size {
  flex: none;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.filechip__remove {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}
.filechip__remove svg {
  width: 15px;
  height: 15px;
}
.filechip__remove:hover {
  background: rgba(22, 32, 58, 0.08);
  color: var(--text);
}
.filechip__remove:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.checks {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 480px) {
  .checks {
    grid-template-columns: 1fr;
  }
}
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  font-weight: 600;
  font-size: var(--fs-sm);
  cursor: pointer;
  padding: var(--space-5) var(--space-5);
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-md);
  background: #fbfcff;
  transition:
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}
.check:hover {
  border-color: var(--blue);
  background: #f2f5ff;
}
.check input {
  margin-top: var(--space-1);
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  flex: none;
}
.check--inline {
  border: 0;
  padding: var(--space-1) 0 0;
  background: none;
}
.check--inline:hover {
  background: none;
}
.field--consent .check {
  font-weight: 400;
  font-size: var(--fs-sm);
}
.field--consent a {
  color: var(--blue);
}

.is-hidden {
  display: none !important;
}

.errors {
  background: rgba(214, 58, 94, 0.08);
  border: 1px solid rgba(214, 58, 94, 0.35);
  color: #ae2549;
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-5);
  font-size: var(--fs-sm);
}
@media (prefers-reduced-motion: no-preference) {
  .errors:not([hidden]) {
    animation: errorsIn var(--dur-slow) var(--ease);
  }
}
@keyframes errorsIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
.errors ul {
  margin: 0;
  padding-left: var(--space-7);
}
.field.invalid input,
.field.invalid select,
input[aria-invalid='true'],
select[aria-invalid='true'],
textarea[aria-invalid='true'] {
  /* Not colour alone: heavier border + ring so the invalid state is perceivable
     without relying on hue. */
  border-color: var(--pink);
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(214, 58, 94, 0.22);
}

/* A layout `display` would beat the [hidden] attribute; keep it gone. */
.success[hidden] {
  display: none !important;
}
.success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: min(60vh, 460px);
  padding: var(--space-11) var(--space-7);
}
@media (prefers-reduced-motion: no-preference) {
  .success:not([hidden]) > * {
    animation: successRise var(--dur-slow) var(--ease) both;
  }
  .success:not([hidden]) .success__icon {
    animation: successPop 0.42s var(--ease) both;
  }
  .success:not([hidden]) .success__title {
    animation-delay: 0.12s;
  }
  .success:not([hidden]) .success__lead {
    animation-delay: 0.19s;
  }
  .success:not([hidden]) .success__steps {
    animation-delay: 0.26s;
  }
  .success:not([hidden]) .success__close {
    animation-delay: 0.33s;
  }
}
@keyframes successRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes successPop {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  60% {
    transform: scale(1.06);
  }
}
.success__icon {
  width: 80px;
  height: 80px;
  margin: 0 0 var(--space-8);
  display: grid;
  place-items: center;
  background: var(--grad-hot);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--glow-lg);
}
.success__icon svg {
  width: 38px;
  height: 38px;
}
.success__title {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-4);
}
.success p {
  font-size: var(--fs-md);
  color: var(--text-soft);
  max-width: 42ch;
  margin: 0 auto;
  line-height: var(--lh-normal);
}
.success p.success__lead {
  margin-bottom: var(--space-9);
}
.success__steps {
  list-style: none;
  margin: 0 auto var(--space-1);
  padding: 0;
  max-width: 40ch;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.success__steps li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--text-soft);
}
.success__steps strong {
  color: var(--text);
  font-weight: 700;
}
.success__step-ico {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--blue-tint);
  color: var(--blue);
}
.success__step-ico svg {
  width: 18px;
  height: 18px;
}
.success__close {
  margin-top: var(--space-9);
  min-width: 200px;
}

@media (prefers-reduced-motion: no-preference) {
  #successMsg:not([hidden]) {
    animation: successFade 0.5s var(--ease) both;
  }
  #successMsg:not([hidden]) .success__icon {
    animation: successPop 0.55s var(--ease) 0.08s both;
  }
  #successMsg:not([hidden]) .success__title {
    animation: successRise 0.5s var(--ease) 0.22s both;
  }
  #successMsg:not([hidden]) > p {
    animation: successRise 0.5s var(--ease) 0.32s both;
  }
  #successMsg:not([hidden]) .success__close {
    animation: successRise 0.5s var(--ease) 0.42s both;
  }
}
@keyframes successFade {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
}
@keyframes successPop {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  70% {
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes successRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  background: #0d1430;
  border-top: 1px solid var(--line-soft);
  padding: var(--space-10) 0 var(--space-10);
}
.site-footer .brand__name,
.site-footer p,
.site-footer a,
.site-footer span {
  color: #b7c0e0;
}
.site-footer .brand__name {
  color: #fff;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-11);
  padding-bottom: var(--space-11);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 720px) {
  .site-footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-9);
  }
}
.site-footer__brand .brand__name {
  color: #fff;
}
.site-footer__brand p {
  margin-top: var(--space-6);
  font-size: var(--fs-sm);
  max-width: 36ch;
  color: #9aa4c6;
}
.site-footer__col h3 {
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7f9dff;
  margin-bottom: var(--space-7);
}
.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.site-footer__col a {
  color: #b7c0e0;
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: color var(--dur-fast) var(--ease);
}
.site-footer__col a:hover {
  color: #fff;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5) var(--space-6);
  padding-top: var(--space-9);
  font-size: var(--fs-xs);
  color: #9aa4c6;
}
.footer-legal {
  order: -1;
  margin: 0;
}
.footer-legal a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur, 0.2s) var(--ease, ease);
}
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: #fff;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #9aa4c6;
  transition:
    color var(--dur, 0.2s) var(--ease, ease),
    background-color var(--dur, 0.2s) var(--ease, ease);
}
.footer-social a:hover,
.footer-social a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.footer-social svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 720px) {
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
  }
  .footer-legal {
    order: 0;
  }
  .footer-social a {
    margin-left: -8px;
  }
}

:root {
  --reveal-y: 22px;
  --reveal-dur: 0.7s;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(var(--reveal-y));
    animation: reveal var(--reveal-dur) var(--ease) forwards;
  }
  .reveal.d1 {
    animation-delay: 0.1s;
  }
  .reveal.d2 {
    animation-delay: 0.2s;
  }
  .reveal.d3 {
    animation-delay: 0.3s;
  }
  .reveal.d4 {
    animation-delay: 0.4s;
  }
  @keyframes reveal {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* Hidden state gated behind .js so that without JavaScript (or if reveal.js
   fails) all content stays visible — no blank page. .js is set by an inline
   snippet in each page's <head>. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal],
  .js [data-reveal-onload],
  .js [data-reveal-group] .reveal-child {
    opacity: 0;
    transform: translateY(var(--reveal-y));
    transition:
      opacity var(--reveal-dur) var(--ease),
      transform var(--reveal-dur) var(--ease);
    will-change: opacity, transform;
  }
  .js [data-reveal-group] .reveal-child {
    transition-delay: var(--reveal-delay, 0ms);
  }
  .js [data-reveal].is-in,
  .js [data-reveal-onload].is-in,
  .js [data-reveal-group].is-in .reveal-child {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-onload],
  [data-reveal-group] .reveal-child {
    opacity: 1 !important;
    transform: none !important;
  }
  /* Keep a 1ms duration so state still settles without a perceptible animation. */
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
