/* ============ Luminous Dental — Coming Soon ============ */
:root {
  --navy: #1E375D;
  --blue: #517BBB;
  --highlight: #A6DCF2;
  --ink: #0E1F36;
  --accent: #A6DCF2;
}

* { box-sizing: border-box; }
html, body, #root { margin: 0; padding: 0; height: 100%; }
body {
  font-family: "Montserrat", "Proxima Nova", system-ui, -apple-system, sans-serif;
  color: #fff;
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* ---------- Page layout ---------- */
.page {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: clamp(24px, 4vw, 64px);
}

.page.align-left .stage { align-items: flex-end; justify-content: flex-start; padding-bottom: clamp(64px, 8vh, 120px); }
.page.align-right .stage { align-items: flex-end; justify-content: flex-end; padding-bottom: clamp(64px, 8vh, 120px); }
.page.align-center .stage { align-items: center; justify-content: center; }

/* ---------- Background ---------- */
.bg-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}
.bg-video.ken-burns {
  animation: kenburns 28s ease-in-out infinite alternate;
  transform-origin: center center;
}
@keyframes kenburns {
  0%   { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1%); }
}
.bg-tint { position: absolute; inset: 0; pointer-events: none; }
.bg-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,0.35) 80%,
    rgba(0,0,0,0.6) 100%);
}
.bg-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}
.bg-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(81,123,187,0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 70%, rgba(166,220,242,0.22) 0%, transparent 60%),
    linear-gradient(135deg, #0E1F36 0%, #1E375D 60%, #234777 100%);
}

/* ---------- Common overlay text ---------- */
.logo {
  width: clamp(220px, 22vw, 340px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.25));
}

.eyebrow {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: clamp(11px, 0.95vw, 14px);
  color: var(--accent);
  text-align: center;
  margin: 0;
}

.headline {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-align: center;
  text-wrap: balance;
}

.tagline {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  letter-spacing: 0.005em;
  margin: 0 auto;
  max-width: 46ch;
  text-align: center;
  color: rgba(255,255,255,0.85);
  text-wrap: pretty;
}

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(166, 220, 242, 0.45);
  border-radius: 999px;
  background: rgba(30, 55, 93, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(166,220,242,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(166,220,242,0); }
  100% { box-shadow: 0 0 0 0 rgba(166,220,242,0); }
}

/* ---------- BOXED overlay ---------- */
.overlay.boxed {
  position: relative;
  width: min(800px, 92vw);
  padding: clamp(36px, 5vw, 64px) clamp(28px, 4.5vw, 72px);
  background: rgba(14, 31, 54, 0.32);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  border: 1px solid rgba(255,255,255,0.10);
  outline: 1px solid rgba(255,255,255,0.04);
  outline-offset: 8px;
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.overlay.boxed .overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.4vw, 28px);
}
.overlay.boxed .rule {
  position: absolute; left: 16px; right: 16px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166,220,242,0.55), transparent);
}
.overlay.boxed .rule-top { top: 12px; }
.overlay.boxed .rule-bottom { bottom: 12px; }

.divider {
  display: flex; align-items: center; justify-content: center;
  width: 100%; gap: 14px;
  color: var(--accent);
}
.divider::before,
.divider::after {
  content: "";
  height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, rgba(166,220,242,0.5), transparent);
  max-width: 80px;
}
.divider .diamond {
  width: 8px; height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(166,220,242,0.7);
}

/* ---------- LIGHT theme overlay variant ---------- */
.overlay.boxed-light {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
  border: 1px solid rgba(30, 55, 93, 0.10);
  outline: 1px solid rgba(30, 55, 93, 0.06);
  outline-offset: 8px;
  box-shadow:
    0 30px 80px -20px rgba(14, 31, 54, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.overlay.boxed-light .rule {
  background: linear-gradient(90deg, transparent, rgba(81, 123, 187, 0.45), transparent);
}
.overlay.boxed-light .eyebrow { color: var(--navy); }
.overlay.boxed-light .headline { color: var(--navy); }
.overlay.boxed-light .tagline { color: rgba(30, 55, 93, 0.78); }
.overlay.boxed-light .visit-block {
  border-top-color: rgba(30, 55, 93, 0.18);
}
.overlay.boxed-light .visit-block .meta-value {
  color: var(--navy);
}
.overlay.boxed-light .visit-block:hover .meta-value {
  color: var(--blue);
}
.visit-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  margin-top: clamp(8px, 1.5vw, 16px);
  padding-top: clamp(20px, 2.5vw, 28px);
  border-top: 1px solid rgba(255,255,255,0.18);
  width: 100%;
  transition: opacity .2s ease;
}
.visit-block,
.visit-block:hover,
.visit-block:focus,
.visit-block:active {
  text-decoration: none;
}
.visit-block .meta-value {
  transition: color .25s ease;
}
.visit-block:hover .meta-value,
.visit-block:focus-visible .meta-value {
  color: var(--accent);
}
.overlay.boxed-light .visit-block:hover .meta-value,
.overlay.boxed-light .visit-block:focus-visible .meta-value {
  color: var(--blue);
}
.visit-block .meta-label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.visit-block .meta-value {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
}

/* ---------- CARD overlay ---------- */
.overlay.card {
  width: min(560px, 92vw);
  padding: clamp(40px, 5vw, 64px) clamp(32px, 4.5vw, 56px);
  background: var(--navy);
  border-radius: 4px;
  box-shadow:
    0 40px 100px -20px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.08);
  border: 1px solid rgba(166,220,242,0.18);
}
.overlay.card .card-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(16px, 2vw, 22px);
}
.overlay.card .card-divider {
  width: 40px; height: 2px;
  background: var(--accent);
  margin: 4px 0;
}
.address-block {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: clamp(13px, 1vw, 15px);
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(166,220,242,0.4);
  padding-bottom: 6px;
  transition: border-color .2s, color .2s;
}
.address-block:hover { color: #fff; border-color: var(--accent); }
.address-block .meta-arrow {
  position: static;
  transform: none;
  font-size: 14px;
  opacity: 0.85;
}

/* ---------- GLASS overlay ---------- */
.overlay.glass {
  width: min(640px, 92vw);
  padding: clamp(40px, 5vw, 64px) clamp(32px, 4.5vw, 56px);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 2px;
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.12);
}
.overlay.glass .glass-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(16px, 2vw, 24px);
}
.overlay.glass .glass-rule {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Bottom-left/right alignment adjustments */
.page.align-left .overlay,
.page.align-right .overlay {
  text-align: left;
}
.page.align-left .overlay .overlay-inner,
.page.align-left .overlay .card-inner,
.page.align-left .overlay .glass-inner,
.page.align-right .overlay .overlay-inner,
.page.align-right .overlay .card-inner,
.page.align-right .overlay .glass-inner {
  align-items: flex-start;
}
.page.align-left .logo,
.page.align-right .logo { margin: 0; }
.page.align-left .headline,
.page.align-left .tagline,
.page.align-left .eyebrow,
.page.align-right .headline,
.page.align-right .tagline,
.page.align-right .eyebrow {
  text-align: left;
}
.page.align-left .tagline,
.page.align-right .tagline { margin: 0; }
.page.align-left .divider::before,
.page.align-right .divider::before { display: none; }

/* ---------- Corner badges ---------- */
.corner {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  font-weight: 500;
}
.corner-tl { top: clamp(20px, 2.5vw, 32px); left: clamp(20px, 2.5vw, 32px); }
.corner-tl .corner-icon {
  width: 22px; height: 22px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}
.corner-br {
  bottom: clamp(20px, 2.5vw, 28px); right: clamp(20px, 2.5vw, 32px);
  font-size: 10px;
  color: rgba(255,255,255,0.55);
}

/* hide top-left icon when overlay is bottom-left to avoid clutter */
.page.align-left .corner-tl,
.page.align-right .corner-tl { opacity: 0.55; }

/* ---------- Entrance animations ---------- */
.overlay {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.1s cubic-bezier(.2,.7,.2,1) .15s,
              transform 1.1s cubic-bezier(.2,.7,.2,1) .15s;
}
.page.loaded .overlay {
  opacity: 1;
  transform: translateY(0);
}
.overlay > * > * {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .8s ease, transform .8s ease;
}
.page.loaded .overlay > * > * {
  opacity: 1;
  transform: translateY(0);
}
.page.loaded .overlay > * > *:nth-child(1) { transition-delay: .35s; }
.page.loaded .overlay > * > *:nth-child(2) { transition-delay: .50s; }
.page.loaded .overlay > * > *:nth-child(3) { transition-delay: .65s; }
.page.loaded .overlay > * > *:nth-child(4) { transition-delay: .80s; }
.page.loaded .overlay > * > *:nth-child(5) { transition-delay: .95s; }
.page.loaded .overlay > * > *:nth-child(6) { transition-delay: 1.10s; }
.page.loaded .overlay > * > *:nth-child(7) { transition-delay: 1.25s; }

.corner {
  opacity: 0;
  transition: opacity 1s ease 1.2s;
}
.page.loaded .corner { opacity: 1; }
.page.loaded .corner-br { opacity: .55; }

/* responsive tweaks */
@media (max-width: 640px) {
  .meta-row { grid-template-columns: 1fr; gap: 18px; }
  .corner-tl span, .corner-br { display: none; }
}

/* ==========================================================
   Offer hook + Mission (overlay copy)
   ========================================================== */
.offer-hook {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: clamp(13px, 1vw, 15px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.offer-hook::before,
.offer-hook::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  opacity: .7;
}
.offer-hook::after {
  background: linear-gradient(90deg, var(--accent), transparent);
}
.overlay.boxed-light .offer-hook { color: var(--blue); }
.overlay.boxed-light .offer-hook::before { background: linear-gradient(90deg, transparent, var(--blue)); }
.overlay.boxed-light .offer-hook::after  { background: linear-gradient(90deg, var(--blue), transparent); }

.tagline.mission {
  max-width: 54ch;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.6;
}

/* ==========================================================
   "Claim Your Spot" CTA button
   ========================================================== */
.cta-btn {
  --cta-bg-from: #C7E9F7;
  --cta-bg-to: #A6DCF2;
  --cta-glow: rgba(166, 220, 242, 0.7);
  position: relative;
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 30px 16px 34px;
  margin-top: 4px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(13px, 1vw, 15px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  background:
    linear-gradient(180deg, var(--cta-bg-from), var(--cta-bg-to));
  border-radius: 999px;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.55) inset,
    0 -1px 0 0 rgba(30,55,93,0.18) inset,
    0 12px 30px -10px rgba(14, 31, 54, 0.55),
    0 0 0 1px rgba(255,255,255,0.45);
  transition: transform .35s cubic-bezier(.2,.7,.2,1),
              box-shadow .35s cubic-bezier(.2,.7,.2,1),
              background .35s ease;
  isolation: isolate;
  overflow: hidden;
}
/* Inner sheen */
.cta-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.6) 0%,
    rgba(255,255,255,0.18) 35%,
    rgba(255,255,255,0) 65%);
  pointer-events: none;
  z-index: -1;
}
/* Sweeping shimmer */
.cta-btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -40%;
  width: 40%;
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(255,255,255,0.18) 45%,
    rgba(255,255,255,0.35) 50%,
    rgba(255,255,255,0.18) 55%,
    transparent 100%);
  transform: skewX(-18deg);
  transition: left .9s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
  z-index: -1;
}
.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.65) inset,
    0 -1px 0 0 rgba(30,55,93,0.18) inset,
    0 18px 40px -10px rgba(14, 31, 54, 0.6),
    0 0 0 1px rgba(255,255,255,0.6),
    0 0 36px -4px var(--cta-glow);
}
.cta-btn:hover::after { left: 110%; }
.cta-btn:active {
  transform: translateY(0);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.4) inset,
    0 -1px 0 0 rgba(30,55,93,0.22) inset,
    0 6px 16px -8px rgba(14, 31, 54, 0.55),
    0 0 0 1px rgba(255,255,255,0.5);
}
.cta-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.cta-btn .cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0;
  transition: transform .35s cubic-bezier(.2,.7,.2,1),
              background .35s ease,
              color .35s ease;
}
.cta-btn:hover .cta-arrow {
  transform: translateX(4px);
  background: var(--ink);
  color: #fff;
}
.cta-btn .cta-arrow-back {
  margin-right: -4px;
}
.cta-btn:hover .cta-arrow-back {
  transform: translateX(-4px);
}

/* Pulsing aura behind the button on dark theme */
.overlay.boxed:not(.boxed-light) .cta-btn:not(:hover) {
  animation: ctaIdleGlow 4.5s ease-in-out infinite;
}
@keyframes ctaIdleGlow {
  0%, 100% { box-shadow:
      0 1px 0 0 rgba(255,255,255,0.55) inset,
      0 -1px 0 0 rgba(30,55,93,0.18) inset,
      0 12px 30px -10px rgba(14, 31, 54, 0.55),
      0 0 0 1px rgba(255,255,255,0.45),
      0 0 0 0 rgba(166,220,242,0); }
  50%      { box-shadow:
      0 1px 0 0 rgba(255,255,255,0.55) inset,
      0 -1px 0 0 rgba(30,55,93,0.18) inset,
      0 12px 30px -10px rgba(14, 31, 54, 0.55),
      0 0 0 1px rgba(255,255,255,0.6),
      0 0 28px -2px rgba(166,220,242,0.55); }
}

/* Light-theme CTA keeps same light-blue treatment, slightly stronger border */
.overlay.boxed-light .cta-btn {
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.55) inset,
    0 -1px 0 0 rgba(30,55,93,0.18) inset,
    0 12px 28px -10px rgba(14, 31, 54, 0.35),
    0 0 0 1px rgba(30,55,93,0.10);
}

/* ==========================================================
   Waitlist Modal
   ========================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
  background:
    radial-gradient(ellipse at center, rgba(14,31,54,0.55) 0%, rgba(8,18,34,0.85) 80%);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  animation: modalFade .3s ease forwards;
}
@keyframes modalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: clamp(36px, 4.5vw, 56px) clamp(28px, 4vw, 56px);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(166,220,242,0.10), transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
  border-radius: 8px;
  border: 1px solid rgba(30,55,93,0.10);
  box-shadow:
    0 40px 100px -20px rgba(0,0,0,0.55),
    0 0 0 1px rgba(166,220,242,0.18),
    inset 0 1px 0 rgba(255,255,255,0.9);
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
  animation: modalRise .55s cubic-bezier(.2,.7,.2,1) forwards;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
}
@keyframes modalRise {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Top + bottom luminous rules echoing the boxed overlay */
.modal-dialog::before,
.modal-dialog::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(81,123,187,0.5), transparent);
  pointer-events: none;
}
.modal-dialog::before { top: 14px; }
.modal-dialog::after  { bottom: 14px; }

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30,55,93,0.15);
  background: rgba(255,255,255,0.7);
  color: var(--navy);
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  font-weight: 300;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.modal-close:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  transform: rotate(90deg);
}
.modal-close:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Diamond accent above title */
.modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 14px;
}
.modal-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--blue);
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(81,123,187,0.12);
}

.modal-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--navy);
  text-wrap: balance;
}

.modal-perks {
  list-style: none;
  margin: 18px 0 28px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, rgba(166,220,242,0.18), rgba(166,220,242,0.06));
  border: 1px solid rgba(166,220,242,0.55);
  border-radius: 6px;
}
.modal-perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.modal-perks li em {
  font-style: normal;
  color: var(--blue);
  font-weight: 600;
}
.perk-check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background: var(--navy);
  color: var(--accent);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.field-row {
  display: flex;
  gap: 14px;
}
.field-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy);
}
.field input {
  appearance: none;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid rgba(30,55,93,0.22);
  padding: 10px 2px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field input::placeholder {
  color: rgba(30,55,93,0.35);
  font-weight: 400;
}
.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 1px 0 0 var(--blue);
}

.interest-set {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.interest-set legend {
  padding: 0;
  margin-bottom: 4px;
}
.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.radio-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(30,55,93,0.18);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  background: #fff;
  transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
}
.radio-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-chip::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(30,55,93,0.3);
  background: #fff;
  flex-shrink: 0;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.radio-chip:hover {
  border-color: rgba(81,123,187,0.5);
  background: rgba(166,220,242,0.10);
}
.radio-chip.selected {
  border-color: var(--blue);
  background: rgba(166,220,242,0.20);
  box-shadow: 0 0 0 1px var(--blue);
}
.radio-chip.selected::before {
  border-color: var(--navy);
  background: var(--navy);
  box-shadow: inset 0 0 0 3px #fff;
}

.modal-submit {
  appearance: none;
  border: 0;
  cursor: pointer;
  margin-top: 6px;
  padding: 16px 28px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #2a4a78, #1E375D);
  border-radius: 999px;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.18) inset,
    0 -1px 0 0 rgba(0,0,0,0.30) inset,
    0 12px 24px -10px rgba(14, 31, 54, 0.5),
    0 0 0 1px rgba(166,220,242,0.18);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.modal-submit::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -40%;
  width: 40%;
  background: linear-gradient(100deg,
    transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-18deg);
  transition: left .9s cubic-bezier(.2,.7,.2,1);
  z-index: -1;
}
.modal-submit:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.22) inset,
    0 -1px 0 0 rgba(0,0,0,0.30) inset,
    0 18px 32px -10px rgba(14, 31, 54, 0.6),
    0 0 0 1px rgba(166,220,242,0.32),
    0 0 28px -4px rgba(166,220,242,0.5);
}
.modal-submit:hover::after { left: 110%; }
.modal-submit:active { transform: translateY(0); }
.modal-submit:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
.modal-submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}
.modal-submit:disabled::after { display: none; }

.modal-error {
  margin: 0;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #8a1f2b;
  background: #fdecee;
  border: 1px solid #f3c2c8;
  border-radius: 6px;
  text-align: center;
}

.modal-fineprint {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(30,55,93,0.55);
  text-align: center;
  text-wrap: pretty;
}

/* ===== Success state ===== */
.modal-success {
  text-align: center;
  padding: 8px 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.success-icon {
  position: relative;
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #2a4a78, #1E375D);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(166,220,242,0.5),
    0 0 0 8px rgba(166,220,242,0.15),
    0 14px 28px -8px rgba(14,31,54,0.4);
  animation: successPop .6s cubic-bezier(.2,.9,.2,1.2);
}
.success-icon::before,
.success-icon::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(166,220,242,0.5);
  inset: -14px;
  animation: successRing 2.4s ease-out infinite;
}
.success-icon::after {
  inset: -22px;
  animation-delay: 0.6s;
  border-color: rgba(166,220,242,0.3);
}
@keyframes successPop {
  0%   { transform: scale(.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes successRing {
  0%   { opacity: .8; transform: scale(.85); }
  100% { opacity: 0; transform: scale(1.25); }
}
.modal-success-body {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(30,55,93,0.85);
  max-width: 38ch;
  margin: 0 auto;
  text-wrap: pretty;
}

/* ===== Light-mode backdrop variant (subtle) ===== */
.modal-backdrop.modal-light {
  background:
    radial-gradient(ellipse at center, rgba(14,31,54,0.45) 0%, rgba(8,18,34,0.78) 80%);
}

/* ===== Responsive ===== */
@media (max-width: 540px) {
  .field-row { flex-direction: column; gap: 18px; }
  .radio-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 12px; }
  .modal-dialog { padding: 32px 20px 28px; border-radius: 6px; }
  .modal-dialog::before { top: 10px; left: 12px; right: 12px; }
  .modal-dialog::after  { bottom: 10px; left: 12px; right: 12px; }
  .modal-close { top: 12px; right: 12px; width: 32px; height: 32px; font-size: 20px; }
  .modal-perks { padding: 14px 16px; gap: 8px; }
  .modal-perks li em { display: inline; }
  .modal-title { font-size: 24px; }
  .cta-btn { padding: 14px 22px 14px 26px; gap: 10px; }
}

/* ===== Mobile fixes for the main page overlay ===== */
@media (max-width: 640px) {
  /* Allow the page to scroll if the overlay is taller than the viewport (small phones) */
  html, body, #root { height: auto; min-height: 100%; }
  body { overflow-y: auto; }
  .page { height: auto; min-height: 100vh; }
  .stage { padding: 80px 16px 32px; min-height: 100vh; }
  .bg-wrap { position: fixed; }

  .overlay.boxed {
    width: 100%;
    padding: 36px 22px;
  }
  .overlay.boxed .rule { left: 12px; right: 12px; }
  .overlay.boxed .rule-top { top: 10px; }
  .overlay.boxed .rule-bottom { bottom: 10px; }

  .logo { width: clamp(180px, 50vw, 240px); }

  .headline { font-size: clamp(34px, 9vw, 44px); }

  .offer-hook {
    font-size: 12px;
    letter-spacing: 0.16em;
    gap: 10px;
  }
  .offer-hook::before,
  .offer-hook::after { width: 18px; }

  .tagline.mission { font-size: 14px; line-height: 1.55; }

  .visit-block { padding-top: 18px; margin-top: 6px; }
}
