:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #526071;
  --navy: #0f172a;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #10b981;
  --amber: #f59e0b;
  --paper: #f8fafc;
  --soft-blue: #eef6ff;
  --soft-green: #ecfdf5;
  --line: #d9e1ec;
  --white: #ffffff;
  --yellow: #ffd300;
  --yellow-dark: #e6be00;
  --yellow-deep: #b89800;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.11);
  --glow: 0 0 0 1px rgba(255, 211, 0, 0.6), 0 0 18px rgba(255, 211, 0, 0.35);
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", "Menlo", monospace;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Manrope", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1160px;
  --radius: 8px;
}

::selection {
  background: var(--yellow);
  color: var(--navy);
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  max-width: 100%;
}

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

a:hover {
  color: var(--blue);
}

p,
ul,
ol,
dl,
h1,
h2,
h3 {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 {
  font-size: 2.85rem;
  max-width: 840px;
  margin-bottom: 1.1rem;
}

h2 {
  font-size: 2.05rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.12rem;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
  font-weight: 700;
}

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

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 50;
  transform: translateY(-140%);
  background: var(--white);
  color: var(--navy);
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-top: 3px solid var(--yellow);
  border-bottom: 1px solid rgba(217, 225, 236, 0.9);
  box-shadow: 0 0 14px rgba(255, 211, 0, 0.25);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  color: var(--navy);
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

@keyframes logo-glitch {
  0%, 100% {
    transform: translate(0, 0);
    filter: none;
    clip-path: inset(0 0 0 0);
  }
  20% {
    transform: translate(-2px, 1px);
    filter: drop-shadow(2px 0 0 rgba(255, 211, 0, 0.85)) drop-shadow(-2px 0 0 rgba(0, 229, 255, 0.7));
    clip-path: inset(8% 0 58% 0);
  }
  40% {
    transform: translate(2px, -1px);
    filter: drop-shadow(-2px 0 0 rgba(255, 211, 0, 0.85));
    clip-path: inset(52% 0 20% 0);
  }
  60% {
    transform: translate(-1px, 0);
    filter: drop-shadow(2px 0 0 rgba(0, 229, 255, 0.7));
    clip-path: inset(24% 0 42% 0);
  }
  80% {
    transform: translate(1px, 1px);
    filter: drop-shadow(-1px 0 0 rgba(255, 211, 0, 0.85));
    clip-path: inset(70% 0 4% 0);
  }
}

.brand:hover .brand-logo,
.brand-logo.is-glitching {
  animation: logo-glitch 0.45s steps(2, end) 1;
}

@media (prefers-reduced-motion: reduce) {
  .brand:hover .brand-logo,
  .brand-logo.is-glitching {
    animation: none;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a,
.dropdown-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius);
  color: #263244;
  font-weight: 650;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.is-active,
.nav-item.is-active .nav-parent {
  background: var(--soft-blue);
  color: var(--blue-dark);
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-parent {
  border-radius: var(--radius) 0 0 var(--radius);
}

.dropdown-toggle {
  border: 0;
  background: transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  padding-inline: 0.45rem;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus-visible {
  background: var(--soft-blue);
  color: var(--blue-dark);
  outline: none;
}

.dropdown-toggle span {
  display: inline-block;
  line-height: 1;
  transition: transform 160ms ease;
}

.nav-item.is-open .dropdown-toggle span,
.nav-item:hover .dropdown-toggle span,
.nav-item:focus-within .dropdown-toggle span {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 45;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 112px);
  overflow: auto;
  display: grid;
  gap: 0.25rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-top: 2px solid var(--yellow);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0.22s;
}

/* Invisible bridge across the gap so hover stays continuous when
   moving the cursor from the nav item down to the menu. Placed on
   .nav-item (not the menu) because the menu has overflow:auto, which
   would clip a pseudo-element sitting above it. */
.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 16px;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu,
.nav-item.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu a {
  min-height: auto;
  display: grid;
  gap: 0.2rem;
  padding: 0.72rem 0.8rem;
  white-space: normal;
  line-height: 1.35;
  border-left: 2px solid transparent;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.16s ease, border-color 0.16s ease;
}

.nav-item:hover .dropdown-menu a,
.nav-item:focus-within .dropdown-menu a,
.nav-item.is-open .dropdown-menu a {
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu a:nth-child(2) { transition-delay: 0.03s; }
.dropdown-menu a:nth-child(3) { transition-delay: 0.06s; }
.dropdown-menu a:nth-child(4) { transition-delay: 0.09s; }
.dropdown-menu a:nth-child(5) { transition-delay: 0.12s; }
.dropdown-menu a:nth-child(6) { transition-delay: 0.15s; }
.dropdown-menu a:nth-child(7) { transition-delay: 0.18s; }

.dropdown-menu a:hover {
  background: rgba(255, 211, 0, 0.12);
  border-left-color: var(--yellow);
  transform: translateX(3px);
}

.dropdown-menu strong {
  color: var(--navy);
  font-size: 0.94rem;
}

.dropdown-menu span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.dropdown-feature {
  background: var(--soft-blue);
  margin-top: 0.35rem;
  border-top: 1px solid var(--line);
}

.site-nav .nav-cta {
  margin-left: 0.35rem;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 0 14px rgba(255, 211, 0, 0.4);
}

.site-nav .nav-cta:hover {
  background: var(--yellow-dark);
  color: var(--navy);
  box-shadow: 0 0 22px rgba(255, 211, 0, 0.6);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-weight: 700;
}

.nav-toggle span:first-child,
.nav-toggle span:first-child::before,
.nav-toggle span:first-child::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}

.nav-toggle span:first-child {
  position: relative;
}

.nav-toggle span:first-child::before,
.nav-toggle span:first-child::after {
  position: absolute;
  left: 0;
}

.nav-toggle span:first-child::before {
  top: -6px;
}

.nav-toggle span:first-child::after {
  top: 6px;
}

.hero {
  position: relative;
  min-height: min(680px, 76vh);
  overflow: hidden;
  display: grid;
  align-items: center;
  background: var(--navy);
}

.hero-picture,
.hero-picture img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-picture img {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 19, 33, 0.92) 0%, rgba(13, 19, 33, 0.74) 46%, rgba(13, 19, 33, 0.2) 100%),
    linear-gradient(0deg, rgba(13, 19, 33, 0.18), rgba(13, 19, 33, 0.18));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 211, 0, 0.06) 0 1px, transparent 1px 4px),
    linear-gradient(rgba(255, 211, 0, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 211, 0, 0.11) 1px, transparent 1px);
  background-size: 100% 4px, 46px 46px, 46px 46px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 38%, transparent 82%);
  mask-image: linear-gradient(90deg, #000 0%, #000 38%, transparent 82%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 5.6rem 0;
}

.hero h1 {
  color: var(--white);
  font-size: 3.15rem;
  max-width: 760px;
}

.hero-lede {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
  max-width: 690px;
  margin-bottom: 1.8rem;
}

.eyebrow {
  display: block;
  color: var(--blue-dark);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.85rem;
}

.eyebrow::before {
  content: "// ";
  color: var(--yellow-deep);
}

.hero .eyebrow,
.lead-section .eyebrow {
  color: var(--yellow);
  text-shadow: 0 0 12px rgba(255, 211, 0, 0.55);
}

.hero .eyebrow::before,
.lead-section .eyebrow::before {
  color: var(--yellow);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
}

.button.primary {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow-dark);
  box-shadow: 0 0 18px rgba(255, 211, 0, 0.4);
}

.button.primary:hover {
  background: var(--yellow-dark);
  color: var(--navy);
  box-shadow: 0 0 26px rgba(255, 211, 0, 0.6);
}

.button.secondary {
  border-color: var(--line);
  color: var(--navy);
  background: var(--white);
}

.button.secondary:hover {
  border-color: #b8c7d9;
  color: var(--blue-dark);
}

.button.on-dark {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.36);
  color: var(--white);
}

.button.on-dark:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.trust-strip {
  background: var(--navy);
  border-top: 1px solid rgba(255, 211, 0, 0.35);
  border-bottom: 1px solid rgba(255, 211, 0, 0.35);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-inline: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-grid div {
  background: var(--navy);
  padding: 1.35rem;
}

.trust-grid strong {
  display: block;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.35rem;
  text-shadow: 0 0 14px rgba(255, 211, 0, 0.5);
}

.trust-grid span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 650;
}

.section,
.band,
.lead-section {
  padding: 5rem 0;
}

.section.muted {
  background: var(--paper);
}

.tight-top {
  padding-top: 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 0.9rem;
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(255, 211, 0, 0.65);
}

.section-head p:last-child {
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.spotlight,
.list-block,
.summary-panel,
.lead-form,
.contact-details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.feature-card {
  position: relative;
  min-height: 238px;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: 0;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 16px solid var(--yellow);
  border-left: 16px solid transparent;
  transition: border-top-color 160ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--yellow);
  box-shadow: var(--glow);
  color: inherit;
}

.feature-card h3 {
  font-size: 1.18rem;
}

.feature-card p {
  flex: 1;
}

.card-kicker,
.card-link {
  color: var(--blue-dark);
  font-size: 0.85rem;
  font-weight: 800;
}

.card-kicker {
  margin-bottom: 0.7rem;
}

.card-link {
  margin-top: 1rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.card-link::after {
  content: " →";
  color: var(--yellow-deep);
  transition: color 160ms ease;
}

.feature-card:hover .card-link::after {
  color: var(--navy);
}

.band {
  background: linear-gradient(180deg, var(--paper), #ffffff);
  border-block: 1px solid var(--line);
}

.compliance-band {
  background: #f5f8fc;
}

.split,
.page-hero-grid,
.lead-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
  gap: 2rem;
  align-items: start;
}

.split.roomy {
  gap: 3rem;
}

.mini-grid {
  display: grid;
  gap: 1rem;
}

.mini-link {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.mini-link strong,
.mini-link span {
  display: block;
}

.mini-link strong {
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.mini-link span {
  color: var(--muted);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.value-item {
  padding-top: 1rem;
  border-top: 3px solid var(--green);
}

.value-item:nth-child(2n) {
  border-top-color: var(--blue);
}

.value-item:nth-child(3n) {
  border-top-color: var(--amber);
}

.value-item.compact {
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--white);
}

.value-item.compact p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.logo-row a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-weight: 800;
}

.page-hero {
  background:
    linear-gradient(180deg, #f6f9fd 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner,
.page-hero-grid {
  padding: 4.3rem 0;
}

.page-hero h1 {
  color: var(--navy);
}

.page-lede {
  font-size: 1.12rem;
  max-width: 760px;
  margin-bottom: 1.6rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1.35rem;
}

.breadcrumbs a {
  color: #475569;
  font-weight: 700;
}

.breadcrumbs span:last-child {
  color: var(--muted);
}

.note {
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--green);
  background: var(--soft-green);
  color: #14532d;
  max-width: 760px;
}

.summary-panel {
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.summary-panel h2 {
  font-size: 1.2rem;
}

.summary-panel ul,
.list-block ul,
.lead-points {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.summary-panel li,
.list-block li,
.lead-points li {
  margin-bottom: 0.45rem;
}

.keyword-line {
  margin-top: 1.25rem;
  margin-bottom: 0;
  font-size: 0.88rem;
  color: #64748b;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.service-explainer {
  background: var(--white);
}

.explainer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.explainer-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f9fbfd);
  padding: 1.15rem;
}

.explainer-item h3 {
  color: var(--navy);
}

.explainer-item p {
  margin-bottom: 0;
}

.list-block {
  padding: 1.35rem;
}

.process-list {
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 0.85rem;
}

.process-list li {
  list-style: none;
  counter-increment: step;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--ink);
  font-weight: 700;
}

.process-list li::before {
  content: counter(step);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.spotlight {
  padding: 1.5rem;
  background: linear-gradient(180deg, #ffffff, #f9fbfd);
}

.spotlight h2 {
  font-size: 1.6rem;
}

.text-link {
  color: var(--blue-dark);
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
  max-width: 900px;
}

details {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.15rem 1rem;
}

summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 800;
  padding: 1rem 0;
}

details p {
  padding-bottom: 1rem;
  margin-bottom: 0;
}

.lead-section {
  background: var(--navy);
  color: var(--white);
}

.lead-section h2,
.lead-section h3,
.lead-section li {
  color: var(--white);
}

.lead-section p {
  color: rgba(255, 255, 255, 0.78);
}

.lead-points {
  color: rgba(255, 255, 255, 0.88);
}

.lead-form {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  color: var(--ink);
}

.lead-form h3,
.lead-form .full {
  grid-column: 1 / -1;
}

.lead-form h3 {
  color: var(--navy);
  margin-bottom: 0.2rem;
}

label span {
  display: block;
  margin-bottom: 0.35rem;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  padding: 0.72rem 0.78rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

textarea {
  resize: vertical;
  min-height: 116px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(37, 99, 235, 0.18);
  border-color: var(--blue);
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.4rem;
  color: #334155;
  font-size: 0.9rem;
}

.contact-grid {
  align-items: stretch;
}

.contact-details {
  padding: 1.5rem;
}

.contact-details dl {
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}

.contact-details dt {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-details dd {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
}

.site-footer {
  background: #f6f8fb;
  border-top: 3px solid var(--yellow);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-grid h2 {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.footer-grid a,
.footer-grid span {
  display: block;
  color: #475569;
  margin-bottom: 0.55rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-brand .brand-logo {
  height: 40px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 1.25rem;
  color: #64748b;
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  h1 {
    font-size: 4rem;
  }

  .hero h1 {
    font-size: 4.6rem;
  }
}

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

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    padding: 0.7rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    justify-content: flex-start;
  }

  .nav-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .nav-parent {
    border-radius: var(--radius);
  }

  .dropdown-toggle {
    justify-content: center;
    min-width: 42px;
    border-radius: var(--radius);
  }

  .dropdown-menu {
    grid-column: 1 / -1;
    position: static;
    width: auto;
    max-height: 42vh;
    overflow: auto;
    margin: 0.25rem 0 0.55rem;
    box-shadow: none;
    background: #f8fbff;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .dropdown-menu a {
    opacity: 1;
    transform: none;
  }

  .nav-item::after {
    display: none;
  }

  .nav-item:hover .dropdown-menu,
  .nav-item:focus-within .dropdown-menu {
    display: none;
  }

  .nav-item.is-open .dropdown-menu {
    display: grid;
  }

  .site-nav .nav-cta {
    margin-left: 0;
  }

  .card-grid.three,
  .value-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .page-hero-grid,
  .lead-grid,
  .contact-grid,
  .detail-grid,
  .explainer-grid,
  .spotlight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 4.8rem 0;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero-lede,
  .page-lede {
    font-size: 1rem;
  }

  .section,
  .band,
  .lead-section {
    padding: 3.5rem 0;
  }

  .page-hero-inner,
  .page-hero-grid {
    padding: 3.4rem 0;
  }

  .trust-grid,
  .card-grid.three,
  .value-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .actions,
  .button {
    width: 100%;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Resources hub + blog articles */
.container.narrow {
  width: min(100% - 32px, 760px);
  margin-inline: auto;
}

.topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.topic-chip span {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.3rem;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
}

.topic-chip:hover {
  border-color: var(--yellow);
  box-shadow: var(--glow);
  color: var(--navy);
}

.topic-block {
  scroll-margin-top: 90px;
}

.article-hero {
  border-bottom: 1px solid var(--line);
}

.article-meta {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.article-meta a {
  color: var(--blue-dark);
  font-weight: 700;
}

.article-section {
  padding-top: 2.6rem;
}

.article-body {
  font-size: 1.06rem;
  line-height: 1.75;
  color: #243042;
}

.article-body h2 {
  font-size: 1.6rem;
  margin-top: 2.4rem;
  margin-bottom: 0.85rem;
  scroll-margin-top: 90px;
}

.article-body h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 0.7rem;
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(255, 211, 0, 0.55);
}

.article-body h3 {
  font-size: 1.22rem;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

.article-body p {
  margin-bottom: 1.1rem;
  color: #243042;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.2rem;
  padding-left: 1.3rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body a {
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--navy);
  background: rgba(255, 211, 0, 0.18);
}

.article-body blockquote {
  margin: 1.6rem 0;
  padding: 0.6rem 0 0.6rem 1.2rem;
  border-left: 3px solid var(--yellow);
  color: var(--navy);
  font-size: 1.12rem;
}

.article-body strong {
  color: var(--navy);
}

/* Pricing calculator */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.calc-controls {
  display: grid;
  gap: 1.1rem;
}

.calc-field {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1.1rem 1.2rem 1.3rem;
  margin: 0;
}

.calc-field legend {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  padding: 0 0.4rem;
}

.calc-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.calc-radio,
.calc-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 0.92rem;
  transition: border-color 140ms ease, background 140ms ease;
}

.calc-radio { background: var(--white); }

.calc-radio:hover,
.calc-check:hover {
  border-color: var(--yellow);
}

.calc-radio input,
.calc-check input {
  accent-color: var(--navy);
  width: 16px;
  height: 16px;
  flex: none;
}

.calc-radio:has(input:checked),
.calc-check:has(input:checked) {
  border-color: var(--yellow);
  background: rgba(255, 211, 0, 0.12);
  box-shadow: inset 0 0 0 1px var(--yellow);
}

.calc-result {
  position: sticky;
  top: 92px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  padding: 1.4rem;
  border-top: 3px solid var(--yellow);
}

.calc-result .eyebrow {
  color: var(--yellow);
}

.calc-result .eyebrow::before {
  color: var(--yellow);
}

.calc-figure {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.calc-figure span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.calc-figure strong {
  font-family: var(--mono);
  font-size: 1.45rem;
  color: var(--yellow);
  text-shadow: 0 0 14px rgba(255, 211, 0, 0.4);
}

.calc-discount {
  margin: 0.7rem 0 0;
  font-size: 0.85rem;
  color: var(--yellow);
}

.calc-selected {
  list-style: none;
  margin: 0.9rem 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.calc-selected li {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.85);
  padding-left: 1rem;
  position: relative;
}

.calc-selected li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--yellow);
}

.calc-selected .calc-empty {
  color: rgba(255, 255, 255, 0.6);
  padding-left: 0;
}

.calc-selected .calc-empty::before {
  content: "";
}

.calc-disclaimer {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

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

  .calc-result {
    position: static;
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Motion & micro-interactions
   ============================================================ */

/* Animated yellow underline under top-level nav items */
.site-nav > a:not(.nav-cta),
.nav-parent {
  position: relative;
}

.site-nav > a:not(.nav-cta)::after,
.nav-parent::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 5px;
  height: 2px;
  background: var(--yellow);
  box-shadow: 0 0 8px rgba(255, 211, 0, 0.6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.site-nav > a:not(.nav-cta):hover::after,
.site-nav > a.is-active::after,
.nav-item:hover .nav-parent::after,
.nav-item.is-active .nav-parent::after {
  transform: scaleX(1);
}

/* Header gains depth once the page is scrolled */
.site-header {
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.12), 0 0 16px rgba(255, 211, 0, 0.28);
}

/* Button hover lift */
.button {
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

/* Card link arrow nudges on hover */
.card-link::after {
  display: inline-block;
  transition: color 160ms ease, transform 160ms ease;
}

.feature-card:hover .card-link::after {
  transform: translateX(4px);
}

/* Hero entrance (above the fold, runs on load) */
@keyframes kb-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-inner > * {
  animation: kb-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-inner > .eyebrow { animation-delay: 0.05s; }
.hero-inner > h1 { animation-delay: 0.16s; }
.hero-inner > .hero-lede { animation-delay: 0.3s; }
.hero-inner > .actions { animation-delay: 0.44s; }

/* Scroll-reveal (JS adds .reveal, then .reveal-in when in view) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.reveal-in {
  opacity: 1;
  transform: none;
}

/* Trust stats count-up: subtle glow pulse when they land */
.trust-grid strong.counted {
  animation: kb-pulse 0.5s ease;
}

@keyframes kb-pulse {
  0% { text-shadow: 0 0 14px rgba(255, 211, 0, 0.5); }
  50% { text-shadow: 0 0 26px rgba(255, 211, 0, 0.9); }
  100% { text-shadow: 0 0 14px rgba(255, 211, 0, 0.5); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner > *,
  .trust-grid strong.counted {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .dropdown-menu,
  .dropdown-menu a {
    transition: none;
  }

  .button:hover,
  .feature-card:hover .card-link::after,
  .dropdown-menu a:hover {
    transform: none;
  }
}
