/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f6ff;
  --line: rgba(10, 34, 85, 0.12);
  --text: #0a2255;
  --text-muted: #4a5f86;
  --accent: #1747ee;
  --accent-bright: #00a6f5;
  --accent-cyan: #7ff0ff;
  --accent-tint: rgba(23, 71, 238, 0.1);
  --navy-deep: #071a44;
  --navy: #0a2255;
  --navy-mid: #123aa8;
  --success: #1e9e6b;
  --danger: #c23b3b;
  --shadow-soft: 0 20px 50px -28px rgba(10, 34, 85, 0.5);

  --font-display: "Heebo", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Assistant", "Segoe UI", Tahoma, sans-serif;

  --container: 1120px;
  --container-narrow: 760px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

/* Dark mode intentionally disabled: the design is tuned for the light
   palette only, and the site has no theme toggle, so it must not switch
   based on the visitor's OS-level dark mode setting (this caused the
   background to turn navy blue on iOS, which respects that setting more
   consistently than some Android browsers). */

/* ==========================================================================
   Reset
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-inline: 20px;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  max-width: var(--container);
  margin-inline: auto;
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(40px, 5.5vw, 72px); }

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 16px;
}
.eyebrow.center { justify-content: center; }
.eyebrow--light { color: var(--accent-cyan); }

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(194, 59, 59, 0.08);
  border: 1px solid var(--danger);
  color: var(--danger);
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  text-align: center;
  flex-wrap: wrap;
  row-gap: 4px;
}
.eyebrow-badge svg { flex-shrink: 0; }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.22;
  text-wrap: balance;
  margin: 0 0 20px;
}
.section-title--light { color: #eaf2ff; }
.section-title--start { text-align: start; }
.section-title.center { text-align: center; }

.section-lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 640px;
  margin-inline: auto;
}
.section-lead.center { text-align: center; }
.section-lead--start { text-align: start; margin-inline: 0; max-width: 520px; }
.section-lead--start + .section-lead--start { margin-top: 14px; }

.hl { color: var(--accent); }
.hl-inline {
  color: var(--accent);
  font-weight: 700;
}
.hl-inline--light { color: var(--accent-cyan); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --btn-fg: #ffffff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 15px 30px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.22s ease;
  white-space: nowrap;
  will-change: transform;
}
.btn--primary {
  overflow: hidden;
  background: linear-gradient(100deg, var(--accent-bright), var(--accent) 60%, var(--navy));
  color: var(--btn-fg);
  box-shadow: 0 18px 38px -18px rgba(23, 71, 238, 0.85);
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3.2s ease-in-out infinite;
}
@keyframes shimmer {
  0% { inset-inline-start: -60%; }
  55%, 100% { inset-inline-start: 130%; }
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -16px rgba(23, 71, 238, 0.95); }
.btn--primary:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 18px 38px; font-size: 17.5px; }
.btn--sm { padding: 10px 20px; font-size: 13.5px; }
.btn--block { width: 100%; }
.btn__arrow { transform: scaleX(-1); }
.btn:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .btn--primary::after { animation: none; display: none; }
}

.btn__spinner { display: none; }
.btn.is-loading .btn__text { visibility: hidden; }
.btn.is-loading .btn__spinner {
  display: block;
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--btn-fg);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Scroll progress
   ========================================================================== */
.scroll-progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 3px;
  z-index: 80;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--navy), var(--accent) 45%, var(--accent-cyan));
  box-shadow: 0 0 10px rgba(23, 71, 238, 0.6);
  transition: width 0.1s linear;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(72px, 11vw, 130px) clamp(36px, 5vw, 60px);
  overflow: clip;
}
.hero__glow {
  position: absolute;
  inset-inline-start: 50%;
  top: -220px;
  width: 900px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-tint), transparent 70%);
  pointer-events: none;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.28;
  pointer-events: none;
}
.hero__orb--a {
  inset-inline-start: 8%;
  top: 18%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at 35% 35%, var(--accent-cyan), transparent 68%);
  animation: orbFloatA 16s ease-in-out infinite;
}
.hero__orb--b {
  inset-inline-end: 6%;
  top: 62%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at 40% 40%, var(--accent), transparent 70%);
  animation: orbFloatB 20s ease-in-out infinite;
}
@keyframes orbFloatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -30px) scale(1.12); }
}
@keyframes orbFloatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 24px) scale(0.92); }
}
.hero__spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 30%), rgba(23, 71, 238, 0.14), transparent 70%);
}
.hero:hover .hero__spotlight { opacity: 1; }
@media (hover: none) {
  .hero__spotlight { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__orb { animation: none; }
}
.hero__inner {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.18;
  text-wrap: balance;
  margin: 0 0 22px;
}
.hero__sub {
  font-size: clamp(18px, 2.4vw, 23px);
  color: var(--text-muted);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 34px;
}
.hero__sub--bridge {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.hero__note { margin-top: 18px; font-size: 14px; color: var(--text-muted); }
.hero__note--strong {
  margin-top: 24px;
  font-size: 16px;
  font-weight: 800;
  color: var(--danger);
}

/* ==========================================================================
   Video section
   ========================================================================== */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -24px rgba(23, 71, 238, 0.35);
}
/* The YouTube IFrame API replaces #video-embed with its own <iframe>,
   carrying over the same id/class — so this rule must target the class
   directly (not "iframe" as a descendant) to size the actual player. */
.video-frame__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.video-sound-btn {
  position: absolute;
  bottom: 16px;
  inset-inline-end: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 20, 45, 0.55);
  backdrop-filter: blur(4px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.video-sound-btn:hover { background: rgba(10, 20, 45, 0.75); transform: scale(1.06); }
.video-sound-btn__icon { display: none; }
.video-sound-btn[aria-pressed="false"] .video-sound-btn__icon--muted { display: block; }
.video-sound-btn[aria-pressed="true"] .video-sound-btn__icon--unmuted { display: block; }
.play-btn {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(150deg, var(--accent-cyan), var(--accent));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 rgba(0, 180, 255, 0.55);
  animation: pulse 2.6s ease-out infinite;
  pointer-events: none;
}
.play-btn svg { margin-inline-start: 3px; }
.play-btn--sm { width: 50px; height: 50px; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 180, 255, 0.45); }
  70% { box-shadow: 0 0 0 22px rgba(0, 180, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 180, 255, 0); }
}
.video-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}

/* ==========================================================================
   Pain section
   ========================================================================== */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-block: 44px 40px;
}
.pain-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pain-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px -24px rgba(23, 71, 238, 0.4);
}
.pain-card__mark {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 10px;
}
.pain-card--accent {
  background: linear-gradient(160deg, var(--accent-tint), var(--surface));
  border-color: var(--accent);
}
.pain-card--accent .pain-card__mark { color: var(--accent); }
.pain-resolve {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.6;
  max-width: 680px;
  margin-inline: auto;
}

/* ==========================================================================
   Bridge section
   ========================================================================== */
.bridge-section {
  position: relative;
  background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-mid) 100%);
  background-size: 140% 140%;
  animation: navyDrift 18s ease-in-out infinite;
  color: #eaf2ff;
  overflow: clip;
}
@keyframes navyDrift {
  0%, 100% { background-position: 0% 30%; }
  50% { background-position: 100% 70%; }
}
@media (prefers-reduced-motion: reduce) {
  .bridge-section, .final-cta { animation: none; }
}
.bridge-section__glow {
  position: absolute;
  inset-inline-start: 50%;
  top: 10%;
  width: 700px;
  height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(127, 240, 255, 0.18), transparent 70%);
  pointer-events: none;
}
.bridge-text {
  position: relative;
  font-size: clamp(16px, 2vw, 19px);
  color: #bfd3f7;
  max-width: 640px;
  margin: 26px auto;
}
.bridge-compare {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 36px 0;
  flex-wrap: wrap;
}
.bridge-compare__side {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(234, 242, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
}
.bridge-compare__side--accent {
  border-color: var(--accent-cyan);
  background: linear-gradient(160deg, rgba(75, 149, 255, 0.22), rgba(255, 255, 255, 0.04));
}
.bridge-compare__tag {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #a9cbff;
  margin-bottom: 10px;
}
.bridge-compare__side--accent .bridge-compare__tag { color: var(--accent-cyan); }
.bridge-compare__side p {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.bridge-compare__arrow { color: var(--accent-cyan); transform: scaleX(-1); }
.bridge-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
  margin: 36px auto 0;
}
.bridge-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: #dbeaff;
  line-height: 1.55;
}
.bridge-list li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

/* ==========================================================================
   Testimonials — video gallery
   ========================================================================== */
.testi-gallery-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}
.testi-gallery {
  flex: 1;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 4px 4px 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}
.testi-gallery::-webkit-scrollbar { height: 6px; }
.testi-gallery::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.testi-video {
  flex: 0 0 200px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: start;
  font: inherit;
  color: inherit;
}
.testi-video__frame {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.testi-video:hover .testi-video__frame,
.testi-video:focus-visible .testi-video__frame {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 24px 44px -20px rgba(23, 71, 238, 0.4);
}
.testi-video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testi-video__glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 30% 25%, var(--accent-tint), transparent 55%);
  pointer-events: none;
}
.testi-video__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 15, 46, 0) 55%, rgba(5, 15, 46, 0.55) 100%);
  pointer-events: none;
}
.testi-video .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}
.testi-gallery__nav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.testi-gallery__nav:hover { border-color: var(--accent); color: var(--accent); }

/* ---- video lightbox ---- */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-lightbox[hidden] { display: none; }
.video-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 46, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.video-lightbox.is-open .video-lightbox__backdrop { opacity: 1; }
.video-lightbox__panel {
  position: relative;
  width: min(360px, 100%);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
  transform: scale(0.94) translateY(10px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), opacity 0.3s ease;
}
.video-lightbox.is-open .video-lightbox__panel { transform: scale(1) translateY(0); opacity: 1; }
.video-lightbox__close {
  position: absolute;
  top: -14px;
  inset-inline-end: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 18px -6px rgba(23, 71, 238, 0.6);
}
.video-lightbox__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-lightbox__glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 40% 30%, var(--accent-tint), transparent 55%);
}
.video-lightbox__video {
  position: relative;
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}
@media (max-width: 640px) {
  .testi-gallery__nav { display: none; }
}

/* ==========================================================================
   Final CTA + form
   ========================================================================== */
.final-cta {
  position: relative;
  background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-mid) 100%);
  background-size: 140% 140%;
  animation: navyDrift 22s ease-in-out infinite;
  color: #f4f8ff;
  overflow: clip;
}
.final-cta__glow {
  position: absolute;
  inset-inline-start: 50%;
  bottom: -10%;
  width: 900px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(127, 240, 255, 0.2), transparent 70%);
  pointer-events: none;
}

.signup-form {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 26px 60px -28px rgba(5, 15, 46, 0.6);
  padding: clamp(24px, 4vw, 40px);
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  opacity: 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 13.5px; color: #4a5f86; font-weight: 600; }
.field input {
  background: #f0f6ff;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 15.5px;
  color: #0a2255;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder { color: #8296bb; }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(23, 71, 238, 0.12);
}
.field input:invalid:not(:placeholder-shown) { border-color: #c23b3b; }
.field.has-error input { border-color: #c23b3b; background: #fff3f3; }
.field.has-error .field__label { color: #c23b3b; }
.form-note { text-align: center; font-size: 13px; color: #a9cbff; margin: 0; }
.form-status {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  min-height: 20px;
  margin: 0;
}
.form-status.is-success { color: #1e9e6b; }
.form-status.is-error { color: #c23b3b; }

.field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.field--checkbox input {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #1747ee;
  cursor: pointer;
}
.field--checkbox span {
  font-size: 13.5px;
  line-height: 1.55;
  color: #4a5f86;
}
.field--checkbox a {
  color: #1747ee;
  font-weight: 700;
  text-decoration: underline;
}
.field--checkbox.has-error span { color: #c23b3b; }

/* ==========================================================================
   Footer / sticky CTA
   ========================================================================== */
.footer { padding-block: 30px; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.footer__sep { opacity: 0.5; }
.footer__inner a,
.footer__a11y-link {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.footer__inner a:hover,
.footer__a11y-link:hover { color: var(--accent); }

.footer__credit {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__credit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  box-shadow: 0 1px 2px rgba(10, 34, 85, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.footer__credit-link:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(10, 34, 85, 0.1);
}
.footer__credit-logo {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer__credit-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.footer__credit-text {
  font-weight: 400;
  white-space: nowrap;
}
.footer__credit-brand {
  font-weight: 700;
  color: var(--text);
}

.sticky-cta {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 60;
  text-align: center;
  padding: 15px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--accent-bright), var(--accent) 60%, var(--navy));
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 34px -14px rgba(10, 34, 85, 0.5);
  transform: translateY(120%);
  transition: transform 0.35s ease;
  display: none;
}
.sticky-cta.is-visible { transform: translateY(0); }

@media (max-width: 860px) {
  .sticky-cta { display: block; }
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ==========================================================================
   Accessibility widget
   ========================================================================== */
.a11y-toggle {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 70;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--accent-bright), var(--accent));
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(23, 71, 238, 0.6);
  transition: transform 0.2s ease;
}
.a11y-toggle:hover { transform: scale(1.06); }
.a11y-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.a11y-panel {
  position: fixed;
  left: 18px;
  bottom: 80px;
  z-index: 90;
  width: min(320px, calc(100vw - 36px));
  max-height: min(560px, calc(100vh - 110px));
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(5, 15, 46, 0.35);
  padding: 20px;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.a11y-panel__head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
}
.a11y-panel__close {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.a11y-panel__close:hover { color: var(--accent); }

.a11y-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.a11y-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.a11y-opt__icon {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
}
.a11y-opt:hover { border-color: var(--accent); }
.a11y-opt[aria-pressed="true"] {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--accent);
}
.a11y-reset {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.a11y-reset:hover { color: var(--danger); border-color: var(--danger); }
.a11y-statement {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-muted);
}
.a11y-statement a { color: var(--accent); font-weight: 700; }

/* ---- a11y states, applied on <html> ---- */
html.a11y-contrast {
  --bg: #000000;
  --surface: #0d0d0d;
  --surface-2: #161616;
  --line: rgba(255, 255, 255, 0.4);
  --text: #ffffff;
  --text-muted: #f2f2f2;
  --accent: #ffd400;
  --accent-bright: #ffd400;
  --accent-cyan: #ffd400;
  --accent-tint: rgba(255, 212, 0, 0.16);
  --navy-deep: #000000;
  --navy: #0d0d0d;
  --navy-mid: #161616;
}
html.a11y-contrast .btn--primary,
html.a11y-contrast .sticky-cta,
html.a11y-contrast .a11y-toggle,
html.a11y-contrast .play-btn { background: #ffd400 !important; color: #000000 !important; }
html.a11y-contrast .btn--primary::after { display: none; }
html.a11y-contrast .signup-form { background: #0d0d0d !important; box-shadow: none !important; border: 1px solid rgba(255, 212, 0, 0.4); }
html.a11y-contrast .field input { background: #1a1a1a !important; color: #ffffff !important; border-color: rgba(255, 255, 255, 0.3) !important; }
html.a11y-contrast .field__label,
html.a11y-contrast .field--checkbox span,
html.a11y-contrast .form-note { color: #f2f2f2 !important; }
html.a11y-contrast .field--checkbox a { color: #ffd400 !important; }
html.a11y-contrast .bridge-section,
html.a11y-contrast .final-cta { background: #000000 !important; animation: none !important; }
html.a11y-contrast .testi-card,
html.a11y-contrast .pain-card,
html.a11y-contrast .video-frame { background: #0d0d0d !important; border-color: rgba(255, 255, 255, 0.3) !important; }

html.a11y-grayscale { filter: grayscale(1); }

html.a11y-underline-links a { text-decoration: underline !important; text-underline-offset: 3px; }

html.a11y-readable-font body,
html.a11y-readable-font h1,
html.a11y-readable-font h2,
html.a11y-readable-font h3,
html.a11y-readable-font p,
html.a11y-readable-font span,
html.a11y-readable-font a,
html.a11y-readable-font li,
html.a11y-readable-font button,
html.a11y-readable-font input {
  font-family: Arial, "Segoe UI", sans-serif !important;
  letter-spacing: normal !important;
}

html.a11y-stop-motion *,
html.a11y-stop-motion *::before,
html.a11y-stop-motion *::after {
  animation: none !important;
  transition: none !important;
}

html.a11y-big-cursor,
html.a11y-big-cursor * {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 24 24"><path d="M4 2l14 12-6 1.2 3.6 6.6-2.6 1.4L9.4 17 5 21z" fill="black" stroke="white" stroke-width="1.2"/></svg>') 4 4, auto !important;
}

/* ==========================================================================
   Cookie banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: 640px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(5, 15, 46, 0.4);
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  transform: translateY(140%);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p {
  flex: 1 1 320px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}
.cookie-banner a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ==========================================================================
   Legal pages (terms / privacy)
   ========================================================================== */
.legal-header {
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}
.legal-header__inner {
  max-width: var(--container-narrow);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.legal-header__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.legal-main {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 72px);
}
.legal-main h1 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 8px;
}
.legal-updated { color: var(--text-muted); font-size: 13.5px; margin-bottom: 40px; }
.legal-main h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  margin: 40px 0 14px;
}
.legal-main p, .legal-main li { color: var(--text-muted); font-size: 15.5px; line-height: 1.8; }
.legal-main p { margin: 0 0 14px; }
.legal-main ul, .legal-main ol { margin: 0 0 14px; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-main strong { color: var(--text); }
.legal-main a { color: var(--accent); text-decoration: underline; }
.legal-placeholder {
  background: var(--accent-tint);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-weight: 700;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .pain-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; padding-inline: 16px; }
  .pain-grid { grid-template-columns: 1fr; }
  .bridge-compare { flex-direction: column; }
  .bridge-compare__arrow { transform: rotate(90deg); }
  .container, .section { padding-inline: 0; }
  .section { padding-block: 34px; }
  .hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-block: 96px 40px;
  }
  .hero__orb--a, .hero__orb--b { opacity: 0.16; }
  .hero__orb--b { width: 220px; height: 220px; top: 68%; }
}

@media (max-width: 860px) {
  .a11y-toggle { bottom: 82px; }
  .a11y-panel { bottom: 144px; }
  .cookie-banner { bottom: 82px; }
}
@media (max-width: 480px) {
  .cookie-banner { flex-direction: column; align-items: stretch; padding: 12px 14px; gap: 8px; border-radius: var(--radius-sm); }
  .cookie-banner p { font-size: 12px; line-height: 1.45; }
  .cookie-banner__actions { width: 100%; gap: 8px; justify-content: flex-end; }
  .cookie-banner__actions .btn { flex: 0 0 auto; }
  .cookie-banner__actions .btn--sm { padding: 7px 14px; font-size: 12px; }
}
