/* ==========================================================================
   Blue Bettle ELD — Main Stylesheet
   One shared stylesheet for every page. Colors and spacing live in the
   :root tokens below, so brand adjustments only need to be made once.
   ========================================================================== */

:root {
  /* Brand palette */
  --navy-950: #050d1c;
  --navy-900: #081326;
  --navy-850: #0b1a33;
  --navy-800: #0f2242;
  --navy-700: #16305a;
  --blue-600: #0284c7;
  --blue-500: #0284c7;
  --blue-400: #38bdf8;
  --cyan-400: #38bdf8;
  --cyan-300: #7dd3fc;

  --white: #ffffff;
  --gray-50: #f0f8ff;
  --gray-100: #eaeef5;
  --gray-200: #d6dde9;
  --gray-300: #b6c2d6;
  --gray-400: #8c9bb4;
  --gray-500: #64748f;
  --gray-700: #334058;
  --gray-900: #111a2b;

  --success: #22c38e;
  --warning: #f5b544;
  --danger: #f16a6a;

  /* Semantic tokens (dark by default) */
  --bg: var(--navy-900);
  --surface: var(--navy-850);
  --surface-2: var(--navy-800);
  --border: rgba(148, 176, 220, 0.14);
  --border-strong: rgba(148, 176, 220, 0.26);
  --text: #e8eef8;
  --text-muted: #9fb0c9;
  --accent: var(--cyan-400);

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px -24px rgba(0, 0, 0, 0.6);
  --shadow-float: 0 30px 80px -30px rgba(3, 10, 25, 0.85);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[hidden] { display: none !important; }

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--white);
  font-weight: 700;
}
h1 { font-size: clamp(2.35rem, 5.6vw, 4.1rem); letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.3rem); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--white);
  color: var(--navy-900);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue-500);
  --btn-fg: var(--white);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { --btn-bg: var(--blue-500); box-shadow: 0 10px 24px -12px rgba(2, 132, 199, 0.8); }
.btn-primary:hover { --btn-bg: #0ea5e9; }

.btn-accent { --btn-bg: var(--cyan-400); --btn-fg: var(--navy-950); box-shadow: 0 10px 24px -12px rgba(56, 189, 248, 0.7); }
.btn-accent:hover { --btn-bg: var(--cyan-300); }

.btn-outline { --btn-bg: rgba(255, 255, 255, 0.03); --btn-border: var(--border-strong); }
.btn-outline:hover { --btn-bg: rgba(255, 255, 255, 0.08); --btn-border: rgba(148, 176, 220, 0.45); }

.btn-sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-lg { min-height: 54px; padding: 0.9rem 1.6rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.text-link {
  color: var(--cyan-300);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: border-color 0.25s var(--ease);
  border-bottom: 1px solid transparent;
}
/* The blurred background lives on a pseudo-element: a backdrop-filter on the
   header itself would trap the fixed-position mobile menu inside the header. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 15, 31, 0.9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.site-header.is-scrolled::before,
body.nav-open .site-header::before { opacity: 1; }
.site-header.is-scrolled,
body.nav-open .site-header { border-bottom-color: var(--border); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: none;
}
.brand img { width: 36px; height: 36px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.14rem;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
}
.brand-name span { color: var(--cyan-400); }

.primary-nav { margin-left: auto; }
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-list a {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  color: var(--gray-300);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-list a:hover { color: var(--white); background: rgba(255, 255, 255, 0.05); }
.nav-list a[aria-current="page"] { color: var(--white); }
.nav-list a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: var(--cyan-400);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  align-items: center;
  justify-content: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.25s var(--ease), background-color 0.2s;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
body.nav-open .nav-toggle-bars { background: transparent; }
body.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-panel-note { display: none; }

/* Mobile / tablet navigation */
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .header-actions .btn-demo { display: none; }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    background: rgba(6, 15, 31, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1.5rem var(--gutter) 2rem;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s linear 0.22s;
  }
  body.nav-open .primary-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  }
  body.nav-open { overflow: hidden; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .nav-list a {
    font-size: 1.15rem;
    padding: 0.95rem 0.25rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    color: var(--gray-200);
  }
  .nav-list a:hover { background: transparent; }
  .nav-list a[aria-current="page"] { color: var(--cyan-300); }
  .nav-list a[aria-current="page"]::after { display: none; }

  .mobile-panel-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.75rem;
  }
  .mobile-panel-note {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
  }
}
@media (max-width: 559px) {
  .header-actions .btn-login-desktop { display: none; }
}
@media (min-width: 1024px) {
  .mobile-panel-actions { display: none; }
}

/* Existing-customer card (contact page) */
.login-card {
  margin-top: 1.75rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(400px 160px at 100% 0%, rgba(56, 189, 248, 0.12), transparent 70%),
    linear-gradient(180deg, var(--navy-800), var(--navy-850));
}
.login-card h3 { margin-bottom: 0.4rem; }
.login-card p { color: var(--text-muted); margin-bottom: 1rem; }
.support-band .hero-actions { margin-top: 1.5rem; }
figure { margin: 0; }

/* ---------- Sections ---------- */
main { display: block; }

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); position: relative; }
.section-sm { padding-block: clamp(3rem, 6vw, 4.5rem); }

.section--alt { background: var(--navy-950); }
.section--raised { background: linear-gradient(180deg, var(--navy-850), var(--navy-900)); }

/* Light sections for rhythm and contrast */
.section--light {
  --text: var(--gray-700);
  --text-muted: var(--gray-500);
  --border: rgba(17, 26, 43, 0.09);
  --border-strong: rgba(17, 26, 43, 0.16);
  background: var(--gray-50);
  color: var(--gray-700);
}
.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4 { color: var(--gray-900); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-400);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.section--light .eyebrow { color: var(--blue-600); }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4rem));
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  isolation: isolate;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 13, 28, 0.94) 0%, rgba(5, 13, 28, 0.72) 40%, rgba(5, 13, 28, 0.05) 75%),
    linear-gradient(0deg, var(--navy-900) 0%, rgba(8, 19, 38, 0) 30%);
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}

.hero-copy { max-width: 660px; }
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 .accent {
  color: transparent;
  background: linear-gradient(90deg, var(--cyan-300), var(--blue-400));
  -webkit-background-clip: text;
  background-clip: text;
}
.hero .lead { max-width: 560px; color: var(--gray-300); margin-bottom: 2rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-note {
  margin-top: 1.1rem;
  font-size: 0.86rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-note svg { width: 16px; height: 16px; color: var(--cyan-400); flex: none; }

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  max-width: 560px;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-300);
  font-size: 0.93rem;
  font-weight: 500;
}
.hero-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}
.hero-visual img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
}
.visual-caption {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--gray-400);
  text-align: right;
}

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 6rem));
  padding-bottom: clamp(3.5rem, 7vw, 5rem);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(2, 132, 199, 0.28), transparent 70%),
    radial-gradient(600px 300px at 0% 110%, rgba(56, 189, 248, 0.1), transparent 70%),
    var(--navy-950);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 176, 220, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 176, 220, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); max-width: 820px; }
.page-hero .lead { max-width: 680px; color: var(--gray-300); }
.page-hero .hero-actions { margin-top: 2rem; }

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 1.25rem;
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--gray-500); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(22, 48, 90, 0.45), rgba(11, 26, 51, 0.6));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.card:hover { border-color: rgba(56, 189, 248, 0.35); transform: translateY(-3px); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.97rem; margin-bottom: 0; }
.card .text-link { margin-top: 1.1rem; }

.section--light .card {
  background: var(--white);
  box-shadow: 0 1px 2px rgba(17, 26, 43, 0.04), 0 12px 30px -18px rgba(17, 26, 43, 0.18);
}
.section--light .card:hover { border-color: rgba(2, 132, 199, 0.35); }
.section--light .text-link { color: var(--blue-600); }

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.16), rgba(2, 132, 199, 0.16));
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.icon-badge img { width: 24px; height: 24px; }
.section--light .icon-badge {
  background: linear-gradient(145deg, #e0f2fe, #eaf6ff);
  border-color: rgba(2, 132, 199, 0.18);
}

.card-list {
  list-style: none;
  margin-top: 1.1rem;
  display: grid;
  gap: 0.55rem;
}
.card-list li,
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.card-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2338bdf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.section--light .card-list li::before,
.section--light .check-list li::before {
  background-color: rgba(2, 132, 199, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230284c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8'/%3E%3C/svg%3E");
}
.check-list { list-style: none; display: grid; gap: 0.75rem; margin: 1.5rem 0; }
.check-list li { font-size: 1rem; }

/* Split feature rows */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse > :first-child { order: 2; }
}
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-float);
  background: var(--navy-950);
}
.split-media img { width: 100%; }
.section--light .split-media { box-shadow: 0 30px 60px -30px rgba(17, 26, 43, 0.35); border-color: rgba(17, 26, 43, 0.1); }
.split-copy p { color: var(--text-muted); }

/* Feature overview (home) */
.feature-grid .card { padding-bottom: 1.6rem; display: flex; flex-direction: column; }
.feature-grid .card .text-link { margin-top: auto; padding-top: 1.1rem; }
.feature-grid .card .icon-badge { flex: none; }

/* Numbered steps */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  counter-increment: step;
  position: relative;
  padding: 1.75rem 1.5rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--cyan-400);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.step h3 { font-size: 1.12rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* Solutions tiles */
.solution-card { display: flex; flex-direction: column; }
.solution-card .tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-300);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.section--light .solution-card .tag { color: var(--blue-600); background: rgba(2, 132, 199, 0.08); border-color: rgba(2, 132, 199, 0.18); }
.solution-card .text-link { margin-top: auto; padding-top: 1.25rem; }

/* Audience blocks (solutions page) */
.audience {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--border);
}
.audience:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 960px) {
  .audience { grid-template-columns: 0.9fr 1.1fr; }
}
.audience-intro .icon-badge { width: 56px; height: 56px; }
.audience-intro .icon-badge img { width: 28px; height: 28px; }
.audience-intro p { color: var(--text-muted); }
.audience-points {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .audience-points { grid-template-columns: repeat(2, 1fr); } }
.point {
  padding: 1.25rem 1.3rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
}
.section--light .point { background: var(--white); }
.point h4 { font-size: 1rem; margin-bottom: 0.35rem; }
.point p { font-size: 0.93rem; color: var(--text-muted); margin: 0; }

/* Features page detailed blocks */
.feature-detail-grid .card h3 { display: flex; align-items: center; gap: 0.6rem; }
.feature-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.feature-nav a {
  font-size: 0.87rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--gray-300);
  transition: all 0.2s var(--ease);
}
.feature-nav a:hover { color: var(--white); border-color: var(--cyan-400); background: rgba(56, 189, 248, 0.08); }

/* Support band */
.support-band {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(56, 189, 248, 0.12), transparent 70%),
    linear-gradient(180deg, var(--navy-800), var(--navy-850));
}
@media (min-width: 960px) { .support-band { grid-template-columns: 1.2fr 1fr; } }
.support-band p { color: var(--text-muted); }
.support-list { list-style: none; display: grid; gap: 1rem; }
.support-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(5, 13, 28, 0.45);
  border: 1px solid var(--border);
}
.support-list img { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.support-list strong { display: block; color: var(--white); font-weight: 600; }
.support-list span { color: var(--text-muted); font-size: 0.93rem; }
.support-list a { color: var(--cyan-300); overflow-wrap: anywhere; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 0.75rem; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq details[open] { border-color: rgba(2, 132, 199, 0.3); box-shadow: 0 16px 30px -22px rgba(17, 26, 43, 0.3); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 3.5rem 1.2rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--gray-900);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230284c7' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 3.5v9M3.5 8h9'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.4rem 1.3rem; color: var(--gray-500); }
.faq .faq-body p:last-child { margin-bottom: 0; }
.faq a { color: var(--blue-600); font-weight: 600; }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 4rem);
  background:
    radial-gradient(700px 300px at 0% 0%, rgba(56, 189, 248, 0.22), transparent 70%),
    linear-gradient(120deg, #0284c7, #0b5a91 55%, var(--navy-800));
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { margin-bottom: 0.5rem; }
.cta-band p { color: rgba(232, 238, 248, 0.85); margin: 0; font-size: 1.05rem; }
.cta-band .hero-actions { justify-content: flex-start; }
.cta-band .btn-outline { --btn-bg: rgba(255, 255, 255, 0.08); --btn-border: rgba(255, 255, 255, 0.35); }

/* ---------- Forms ---------- */
.contact-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 1000px) { .contact-layout { grid-template-columns: 0.85fr 1.15fr; } }
.contact-aside p { color: var(--text-muted); }
.contact-aside .support-list { margin-top: 1.75rem; }

.form-card {
  background: var(--white);
  color: var(--gray-700);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(17, 26, 43, 0.06);
}
.section--light .form-card { box-shadow: 0 30px 70px -40px rgba(17, 26, 43, 0.4); }
.form-card h3 { color: var(--gray-900); font-size: 1.35rem; margin-bottom: 0.35rem; }
.form-card > p { color: var(--gray-500); font-size: 0.95rem; }

.form-grid {
  display: grid;
  gap: 1.1rem 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field-full { grid-column: 1 / -1; }

.field label,
.field legend {
  display: block;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.4rem;
  padding: 0;
}
.field .req { color: var(--blue-600); margin-left: 2px; }
.field .optional { color: var(--gray-400); font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-900);
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2364748f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 16px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--gray-400); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #d64545; background: #fff7f7; }
.field-error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.83rem;
  color: #c43c3c;
  font-weight: 500;
}
.field.has-error .field-error { display: block; }

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.radio-pill { position: relative; }
.radio-pill input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.radio-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.radio-pill input:checked + span {
  border-color: var(--blue-500);
  background: rgba(2, 132, 199, 0.08);
  color: var(--blue-600);
  box-shadow: inset 0 0 0 1px var(--blue-500);
}
.radio-pill input:focus-visible + span { outline: 2px solid var(--blue-500); outline-offset: 2px; }

.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-footer {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.9rem;
}
.form-legal { font-size: 0.83rem; color: var(--gray-500); margin: 0; }
.form-legal a { color: var(--blue-600); font-weight: 600; }

.btn[aria-busy="true"] { opacity: 0.75; pointer-events: none; }
.btn .spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn[aria-busy="true"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  display: none;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.55;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: #e9f9f2; border: 1px solid #a6e6cb; color: #106b4a; }
.form-status.is-error { background: #fdf0f0; border: 1px solid #f2b8b8; color: #9b2c2c; }
.form-status strong { display: block; margin-bottom: 0.15rem; }
.form-status a { font-weight: 600; text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 820px;
  margin-inline: auto;
}
.legal h2 { font-size: 1.45rem; margin-top: 2.5rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.75rem; }
.legal p, .legal li { color: var(--gray-500); }
.legal ul { padding-left: 1.25rem; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--blue-600); font-weight: 600; }
.legal .updated {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--gray-500);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

/* ---------- Compliance note ---------- */
.compliance-note {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.compliance-note img { width: 22px; height: 22px; flex: none; margin-top: 2px; opacity: 0.9; }
.compliance-note p { margin: 0; }
.compliance-note p + p { margin-top: 0.35rem; }

/* ---------- About ---------- */
.value-card h3 { font-size: 1.1rem; }
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--white);
  max-width: 900px;
}
.statement span { color: var(--cyan-300); }

.fact-list {
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
.fact-list li {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.97rem;
}
.fact-list span:first-child { color: var(--text-muted); }
.fact-list span:last-child { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.section--light .fact-list span:last-child { color: var(--gray-900); }
.fact-list a { color: var(--blue-600); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid var(--border);
  padding-top: clamp(3.5rem, 7vw, 5rem);
  font-size: 0.95rem;
}
.footer-top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (min-width: 720px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer-brand p { color: var(--text-muted); margin: 1.1rem 0 1.4rem; max-width: 340px; }
.footer-col h2 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 1.1rem;
}
.footer-links { list-style: none; display: grid; gap: 0.6rem; }
.footer-links a { color: var(--gray-300); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-contact li { color: var(--gray-300); overflow-wrap: anywhere; }
.footer-contact a { color: var(--gray-300); }
.footer-contact a:hover { color: var(--cyan-300); }
.footer-portal-note { margin-top: 0.85rem; font-size: 0.83rem; color: var(--gray-400); max-width: 320px; }

.social-links { list-style: none; display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--gray-300);
  transition: all 0.2s var(--ease);
}
.social-links a:hover { color: var(--white); border-color: var(--cyan-400); }
.social-links svg { width: 17px; height: 17px; }

.footer-compliance {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--gray-400);
  line-height: 1.6;
}
.footer-compliance p { margin: 0; max-width: 980px; }
.footer-compliance p + p { margin-top: 0.3rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--gray-400);
}
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- 404 ---------- */
.error-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
  background:
    radial-gradient(700px 360px at 80% 10%, rgba(2, 132, 199, 0.25), transparent 70%),
    var(--navy-950);
}
.error-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  background: linear-gradient(180deg, var(--cyan-300), var(--blue-600));
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.error-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2.5rem; }
.error-links a { color: var(--cyan-300); font-weight: 600; }

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 1023px) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(5, 13, 28, 0.55) 0%, rgba(5, 13, 28, 0.85) 55%, var(--navy-900) 100%);
  }
  .hero-media img { object-position: 58% 50%; }
}

@media (max-width: 479px) {
  .hero-actions .btn { width: 100%; }
  .cta-band .btn { width: 100%; }
  .brand-name { font-size: 1.05rem; }
  .fact-list li { grid-template-columns: 1fr; gap: 0.2rem; }
}

@media print {
  .site-header, .nav-toggle, .hero-media, .cta-band, .site-footer .social-links { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   Affiliated compliance services (Test Pro LLC) — added in promotion patch
   ========================================================================== */
.testpro-head {
  display: grid;
  gap: 1.5rem 3rem;
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}
@media (min-width: 960px) { .testpro-head { grid-template-columns: 1.5fr 1fr; } }
.testpro-head h2 { margin-bottom: 0.9rem; }
.testpro-head .lead { margin: 0; max-width: 640px; }

.testpro-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: rgba(56, 189, 248, 0.06);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.testpro-badge img { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.testpro-badge strong { display: block; color: var(--white); font-weight: 600; }

.tp-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .tp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tp-grid { grid-template-columns: repeat(4, 1fr); } }

.tp-card {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(22, 48, 90, 0.4), rgba(11, 26, 51, 0.55));
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.tp-card:hover { border-color: rgba(56, 189, 248, 0.35); transform: translateY(-2px); }
.tp-card .icon-badge { width: 42px; height: 42px; border-radius: 11px; margin: 0; flex: none; }
.tp-card .icon-badge img { width: 21px; height: 21px; }
.tp-card h3 { font-size: 0.99rem; line-height: 1.3; margin-bottom: 0.3rem; }
.tp-card p { font-size: 0.88rem; line-height: 1.55; color: var(--text-muted); margin: 0; }

.testpro-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.testpro-disclosure {
  margin: 0;
  max-width: 520px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--gray-400);
}

/* Smaller promo card (features page) */
.tp-promo {
  display: grid;
  gap: 1.25rem 2rem;
  align-items: center;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(500px 200px at 100% 0%, rgba(56, 189, 248, 0.12), transparent 70%),
    linear-gradient(180deg, var(--navy-800), var(--navy-850));
}
@media (min-width: 900px) { .tp-promo { grid-template-columns: auto 1fr auto; } }
.tp-promo .icon-badge { margin: 0; width: 56px; height: 56px; }
.tp-promo .icon-badge img { width: 28px; height: 28px; }
.tp-promo h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: 0.5rem; }
.tp-promo .eyebrow { margin-bottom: 0.6rem; }
.tp-promo-copy p { color: var(--text-muted); margin-bottom: 0.6rem; }
.tp-promo-copy .testpro-disclosure { margin: 0; }
.tp-promo-actions { display: grid; gap: 0.9rem; justify-items: start; }
@media (min-width: 900px) { .tp-promo-actions { justify-items: center; } }

/* Inquiry-type note in the form */
.field-note {
  margin: 0.5rem 0 0;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--gray-500);
  background: #eef8ff;
  border: 1px solid #cfe9fb;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
}

@media (max-width: 479px) {
  .testpro-foot .btn, .tp-promo-actions .btn { width: 100%; }
  .tp-promo-actions { justify-items: stretch; }
}

.tp-promo-section { padding-bottom: 0; }

/* Separate insurance notice (CORE WEALTH INSURANCE LLC) — not part of Test Pro LLC services */
.insurance-note {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-top: 1.75rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
}
.insurance-note img { width: 22px; height: 22px; flex: none; margin-top: 3px; }
.insurance-note h3 { font-size: 0.98rem; margin-bottom: 0.3rem; }
.insurance-note p { margin: 0; font-size: 0.87rem; line-height: 1.55; color: var(--text-muted); }
.insurance-note .insurance-sep { margin-top: 0.35rem; font-size: 0.82rem; color: var(--gray-400); }
