/* =====================================================================
   Vivasafe "glass" theme — deep navy, living aurora in the brand blues,
   frosted translucent surfaces. Loaded last; overrides the light theme.
   Brand: navy #212f54 / #1b2747, light blue #6b9bdb, white → blue wordmark.
   ===================================================================== */
:root {
  --bg: #0b1330;
  --ink: #ffffff;
  --text: #c6d2ea;
  --muted: #8fa0c4;
  --line: rgba(201, 218, 243, .14);
  --glass: rgba(255, 255, 255, .055);
  --glass-strong: rgba(255, 255, 255, .09);
  --glass-border: rgba(201, 218, 243, .16);
  --glass-shadow: 0 24px 60px -28px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .08);
  --brand-grad: linear-gradient(100deg, #ffffff, #c9daf3 38%, #6b9bdb 100%);
  --sun-ink: #9cc1ec;
  --font-display: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
}

html { background: var(--bg); }
body { background: var(--bg); color: var(--text); }

/* Living aurora behind everything (fixed, so glass surfaces blur it) */
body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 18% 22%, rgba(107, 155, 219, .30), transparent 70%),
    radial-gradient(34vmax 28vmax at 82% 18%, rgba(45, 79, 158, .55), transparent 70%),
    radial-gradient(40vmax 30vmax at 70% 82%, rgba(156, 193, 236, .18), transparent 70%),
    radial-gradient(36vmax 30vmax at 12% 85%, rgba(33, 47, 84, .9), transparent 70%);
  animation: aurora 26s ease-in-out infinite alternate;
}
body::after {
  /* fine grain so the gradients feel like light, not flat color */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(4vmax, -3vmax, 0) rotate(8deg) scale(1.08); }
  100% { transform: translate3d(-3vmax, 3vmax, 0) rotate(-6deg) scale(1.02); }
}

/* Typography */
h1, h2, h3 { color: var(--ink); }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; }
h1 em, h2 em {
  font-style: normal; font-weight: 700;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow, .eyebrow--sun, .eyebrow--light { color: #9cc1ec; }
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 1px; margin: 0 10px 3px 0; vertical-align: middle; background: currentColor; }
.section__head p:last-child, .section__head--light p:last-child { color: var(--muted); }
p { color: inherit; }
a:focus-visible, button:focus-visible { outline-color: #9cc1ec; }

/* ---------- Glass surfaces ---------- */
.feature, .step, .value, .faq__item, .quiz, .wizard, .contact-card, .ins-detail__main, .ins-detail__side,
.tabs__list, .quote-help, .pick, .review, .flip__back, .office, .picker__box, .big-quote,
.panel, .lang, .cta-band__inner, .route__step, .about__copy, .marquee {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--glass-shadow);
}
/* light edge that catches the aurora */
.feature, .step, .value, .quiz, .wizard, .contact-card, .ins-detail__main, .review, .office, .cta-band__inner, .panel, .about__copy {
  position: relative;
}
.feature::after, .step::after, .quiz::after, .wizard::after, .contact-card::after, .ins-detail__main::before, .review::after, .cta-band__inner::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(140deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 35%, rgba(107, 155, 219, .25) 70%, rgba(255, 255, 255, 0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.step:not(:last-child)::after { inset: 0; width: auto; height: auto; top: 0; right: 0; left: 0; bottom: 0; }

/* Sections become transparent so the aurora shows through */
.section, .section--tint, .section--navy, .scene, .quiz-section, .route, .page-hero, .quote-page, .cta-band, .hero2, .home-hero, .picker {
  background: transparent;
}
.section--tint, .quiz-section { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .025) 20%, rgba(255, 255, 255, .025) 80%, transparent); }
.quiz-section::before, .page-hero::before, .quote-page::before, .hero2__glow { display: none; }
.page-hero::after { background: var(--brand-grad); }
.marquee { border-left: 0; border-right: 0; border-radius: 0; }

/* ---------- Header ---------- */
.topbar { background: rgba(6, 11, 30, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--glass-border); }
.header { background: rgba(11, 19, 48, .55); border-bottom: 1px solid var(--glass-border); }
.header.is-scrolled { background: rgba(11, 19, 48, .78); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); }
.brand { color: #fff; }
.brand__name { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__sub { color: #9cc1ec; }
.brand__icon { color: #6b9bdb; }
.brand__arc path { stroke: #ffffff; }
.nav > a:not(.btn) { color: var(--text); }
.nav > a:not(.btn):hover { background: var(--glass-strong); color: #fff; }
.nav > a.is-active { background: var(--glass-strong); color: #fff; box-shadow: inset 0 0 0 1px var(--glass-border); }
.lang a { color: var(--muted); }
.lang a[aria-current="true"] { background: var(--brand-grad); color: var(--navy-800); }
.menu-toggle span { background: #fff; }
@media (max-width: 920px) {
  .nav { background: rgba(11, 19, 48, .92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom-color: var(--glass-border); }
}

/* ---------- Buttons ---------- */
.btn--primary, .btn--sun, .ins-detail__side .btn--primary, .office .btn--primary, .wizard [data-submit] {
  background: var(--brand-grad); color: var(--navy-800);
  box-shadow: 0 14px 34px -14px rgba(107, 155, 219, .9), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn--primary:hover, .btn--sun:hover { background: var(--brand-grad); filter: brightness(1.08); }
.btn--outline, .btn--ghost, .btn--light, .ins-detail__side .btn--outline, .office .btn--outline {
  background: var(--glass); color: #fff; border-color: var(--glass-border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn--outline:hover, .btn--ghost:hover, .btn--light:hover { border-color: rgba(255, 255, 255, .5); background: var(--glass-strong); }
.btn--text { color: var(--muted); }
.btn--text:hover { color: #fff; }
.ripple, .btn--outline .ripple, .chip .ripple { background: rgba(255, 255, 255, .35); }

/* ---------- Hero (shared pieces) ---------- */
.hero2__kicker { color: #9cc1ec; }
.hero2__kicker::before { background: var(--brand-grad); }
.hero2__rotator .rotator__word { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; }
.hero2__chips a { background: var(--glass); border-color: var(--glass-border); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero2__chips svg { color: #9cc1ec; }
.hero2__chips a:hover { border-color: #9cc1ec; }

/* ---------- Panels ---------- */
.panel { background: linear-gradient(165deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); }
.panel::before { background: radial-gradient(420px 320px at 100% 0%, rgba(107, 155, 219, .35), transparent 70%) !important; }
.panel--commercial::before { background: radial-gradient(420px 320px at 0% 0%, rgba(156, 193, 236, .3), transparent 70%) !important; }
.panel--health::before { background: radial-gradient(420px 320px at 100% 100%, rgba(107, 155, 219, .35), transparent 70%) !important; }
.panel__icon { color: #c9daf3; }
.panel__open .panel__icon { background: var(--brand-grad); color: var(--navy-800); }
.panel__tag { color: #9cc1ec; }
.panel__covers li { background: rgba(255, 255, 255, .07); }
.panel__covers svg { color: #9cc1ec; }

/* ---------- Quiz / route / flips ---------- */
.quiz__num { color: #9cc1ec; }
.quiz__q h3, .quiz__result h3 { color: #fff; }
.quiz__opt { background: rgba(255, 255, 255, .04); border-color: var(--glass-border); color: #fff; }
.quiz__opt:hover { background: rgba(255, 255, 255, .1); border-color: #9cc1ec; }
.quiz__opt.is-picked { background: var(--brand-grad); color: var(--navy-800); border-color: transparent; }
.quiz__progress, .wizard__progress { background: rgba(255, 255, 255, .08); }
.quiz__rec { background: rgba(255, 255, 255, .05); border-color: var(--glass-border); }
.quiz__rec strong { color: #fff; }
.quiz__rec-icon { background: var(--brand-grad); color: var(--navy-800); }
.quiz__rec a { color: #9cc1ec; }
.route__step { padding: 28px 18px; border-radius: var(--radius-lg); }
.route__dot { background: rgba(255, 255, 255, .06); color: #9cc1ec; border-color: var(--glass-border); }
.route__step.is-on .route__dot { background: var(--brand-grad); color: var(--navy-800); }
.route__list::before, .route__list::after { top: 55px; }
.route__runner { top: 50px; box-shadow: 0 0 0 4px rgba(201, 218, 243, .35), 0 0 22px 8px rgba(107, 155, 219, .8); }
.flip__front { background: linear-gradient(165deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02)); border: 1px solid var(--glass-border); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.flip__front::before { background: radial-gradient(circle, rgba(107, 155, 219, .45), transparent 70%); }
.flip__big { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; font-family: var(--font-display); font-weight: 800; }
.flip__back { border-color: rgba(156, 193, 236, .4); color: var(--text); }
.flip__back .flip__label { color: #9cc1ec; }

/* ---------- Reviews, FAQ, CTA ---------- */
.review blockquote { color: #e6ecf8; }
.review__avatar { background: var(--brand-grad); color: var(--navy-800); }
.slider__dots button { background: rgba(255, 255, 255, .2); }
.slider__dots button[aria-selected="true"] { background: #9cc1ec; }
.faq__item summary { color: #fff; }
.faq__item[open] { border-color: rgba(156, 193, 236, .4); }
.faq__icon { background: rgba(255, 255, 255, .08); color: #fff; }
.faq__item[open] .faq__icon { background: var(--brand-grad); color: var(--navy-800); }
.faq__answer { color: var(--text); }
.cta-band__inner { background: linear-gradient(135deg, rgba(107, 155, 219, .22), rgba(255, 255, 255, .04)); }

/* ---------- Inner pages ---------- */
.page-hero h1 em, .quote-page__intro h1 em { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; }
.page-hero .eyebrow { color: #9cc1ec; }
.tabs__tab { color: var(--text); }
.tabs__tab:hover { background: var(--glass-strong); color: #fff; }
.tabs__tab[aria-selected="true"] { background: var(--brand-grad); color: var(--navy-800); box-shadow: 0 10px 26px -12px rgba(107, 155, 219, .9); }
.ins-detail__icon, .checklist svg { background: var(--brand-grad); color: var(--navy-800); }
.checklist li { color: #fff; }
.ins-detail__side h3 { color: #fff; }
.ins-detail__side .pill-list li { background: rgba(255, 255, 255, .07); }
.pill-list li { background: var(--glass); border-color: var(--glass-border); color: #e6ecf8; }
.about__lead { color: #fff; }
.about__lead::first-letter { color: #9cc1ec; font-family: var(--font-display); }
.about__sign { color: #c9daf3; }
.about__role { color: var(--muted); }
.about__badge { background: rgba(11, 19, 48, .7); color: #c6d2ea; border: 1px solid var(--glass-border); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.about__badge strong { color: #fff; }
.page-about .about__photo::before { background: var(--brand-grad); opacity: .35; }
.about__copy { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); }
.value .feature__icon, .feature__icon, .contact-card__icon { background: rgba(255, 255, 255, .08); color: #c9daf3; }
.value::before { background: var(--brand-grad); }
.big-quote { padding: 40px; border-radius: var(--radius-lg); }
.big-quote p { color: #fff; }
.big-quote svg { color: #9cc1ec; }
.contact-card__title { color: #fff; }
.contact-card__value { color: #9cc1ec; }
.contact-card:hover { border-color: rgba(156, 193, 236, .45); }
.contact-card:hover .contact-card__icon { background: var(--brand-grad); color: var(--navy-800); }
.office__address svg { color: #9cc1ec; }

/* Quote wizard */
.quote-page__intro > p { color: var(--text); }
.quote-help strong { color: #fff; }
.chip-link { background: var(--glass-strong); color: #fff; }
.chip-link--wa { background: rgba(37, 211, 102, .15); color: #7cf0ad; }
.wizard__count, .wizard__sub, .wizard__privacy { color: var(--muted); }
.wizard__title, .question__label, .field, .type-option__name { color: #fff; }
.type-option__box { background: rgba(255, 255, 255, .04); border-color: var(--glass-border); }
.type-option__icon { background: rgba(255, 255, 255, .08); color: #c9daf3; }
.type-option input:checked + .type-option__box { border-color: #9cc1ec; background: rgba(107, 155, 219, .14); box-shadow: 0 0 0 4px rgba(107, 155, 219, .18); }
.chip span { background: rgba(255, 255, 255, .04); border-color: var(--glass-border); color: var(--text); }
.chip input:checked + span { background: var(--brand-grad); color: var(--navy-800); border-color: transparent; }
.field input, .field textarea { background: rgba(255, 255, 255, .05); border-color: var(--glass-border); color: #fff; }
.field input::placeholder, .field textarea::placeholder { color: #6f80a6; }
.field input:focus, .field textarea:focus { background: rgba(255, 255, 255, .09); border-color: #9cc1ec; }
.wizard__nav { border-top-color: var(--glass-border); }
.wizard__done p { color: var(--text); }
.wizard__done-icon { background: var(--brand-grad); color: var(--navy-800); }
.wizard__error { color: #ffb4ab; }

/* Footer & floating */
.footer { background: rgba(6, 11, 30, .65); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-image: var(--brand-grad) 1; }
.footer__title { color: #9cc1ec; }
.to-top { background: var(--glass-strong); color: #fff; border-color: var(--glass-border); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.to-top:hover { background: var(--brand-grad); color: var(--navy-800); }
.scroll-progress { background: var(--brand-grad); }
.confetti i { border-radius: 50%; }

/* =====================================================================
   Hero v3 — rain of light + movable glass shield
   ===================================================================== */
.hero3 {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: calc(100vh - 112px); min-height: calc(100svh - 112px);
  display: flex; align-items: center; padding: 70px 0 150px;
}
.hero3__rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero3__shield {
  --size: 230px;
  position: absolute; left: 0; top: 0; z-index: 1; width: var(--size); height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2); border-radius: 50%; pointer-events: none;
  transform: translate3d(50vw, 45vh, 0);
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .28), rgba(255, 255, 255, .06) 42%, rgba(107, 155, 219, .10) 70%, rgba(201, 218, 243, .18));
  -webkit-backdrop-filter: blur(7px) saturate(170%); backdrop-filter: blur(7px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .38);
  box-shadow: inset 0 0 50px rgba(156, 193, 236, .35), inset 0 -10px 30px rgba(33, 47, 84, .4), 0 0 70px -6px rgba(107, 155, 219, .55);
  display: grid; place-items: center; opacity: 0; transition: opacity .6s;
}
.hero3.is-live .hero3__shield { opacity: 1; }
.hero3__shield::before, .hero3__shield::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(156, 193, 236, .45);
  animation: shield-ring 3s ease-out infinite;
}
.hero3__shield::after { animation-delay: 1.5s; }
@keyframes shield-ring { from { transform: scale(.92); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.hero3__shield.is-hit { box-shadow: inset 0 0 60px rgba(201, 218, 243, .55), inset 0 -10px 30px rgba(33, 47, 84, .4), 0 0 90px 0 rgba(107, 155, 219, .8); }
.hero3__shield-core { width: 64px; height: 64px; color: #fff; filter: drop-shadow(0 4px 14px rgba(107, 155, 219, .9)); }
.hero3__shield-core svg { width: 100%; height: 100%; }
.hero3__shield-core .logo__shield-fill { fill: #6b9bdb; fill-opacity: .55; }
.hero3__shield-label {
  position: absolute; bottom: 26px; font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #e6ecf8;
}

.hero3__inner { position: relative; z-index: 2; text-align: center; max-width: 980px; pointer-events: none; }
.hero3__inner a, .hero3__inner button { pointer-events: auto; }
.hero3__kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; margin-bottom: 26px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: #c9daf3;
}
.hero3__dot { width: 8px; height: 8px; border-radius: 50%; background: #7cf0ad; box-shadow: 0 0 0 0 rgba(124, 240, 173, .6); animation: live-dot 2s infinite; }
@keyframes live-dot { 70% { box-shadow: 0 0 0 10px rgba(124, 240, 173, 0); } 100% { box-shadow: 0 0 0 0 rgba(124, 240, 173, 0); } }
.hero3__title { font-size: clamp(2.7rem, 6.6vw, 6.1rem); line-height: .98; margin-bottom: 26px; letter-spacing: -.045em; }
.hero3__line { display: block; }
.hero3__title em { padding-bottom: .06em; }
.hero3__lead { font-size: clamp(1.02rem, 1.6vw, 1.22rem); max-width: 40em; margin: 0 auto; color: var(--text); text-shadow: 0 2px 20px rgba(11, 19, 48, .8); }
.hero3__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 34px 0 26px; }
.hero3__hint { display: inline-flex; align-items: center; gap: 12px; margin: 0; font-size: .82rem; letter-spacing: .04em; color: var(--muted); }
.hero3__mouse { width: 18px; height: 28px; border: 2px solid #8fa0c4; border-radius: 10px; position: relative; flex-shrink: 0; }
.hero3__mouse::after { content: ""; position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: #c9daf3; animation: wheel 1.8s infinite; }

.hero3__agent {
  position: absolute; left: 32px; bottom: 28px; z-index: 3; display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px;
  border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  animation: spring-in .9s 1.2s cubic-bezier(.34, 1.6, .5, 1) both;
}
.hero3__agent img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(201, 218, 243, .6); }
.hero3__agent p { margin: 0; line-height: 1.25; }
.hero3__agent-name { font-weight: 700; color: #fff; }
.hero3__agent-role { font-size: .8rem; color: var(--muted); }
.hero3__stars { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; color: #f5c64d; }
.hero3__stars svg { width: 13px; height: 13px; }
.hero3__stars small { margin-left: 6px; color: var(--muted); font-size: .72rem; }

.hero3__chips {
  position: absolute; right: 32px; bottom: 34px; z-index: 3; list-style: none; margin: 0; padding: 0; display: flex; gap: 8px;
  animation: fade-up .8s 1.4s var(--ease) both;
}
.hero3__chips a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: .86rem; font-weight: 600; color: #e6ecf8; transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.hero3__chips svg { width: 18px; height: 18px; color: #9cc1ec; }
.hero3__chips a:hover { background: var(--glass-strong); border-color: #9cc1ec; transform: translateY(-3px); }

/* entrance */
.hero3__kicker, .hero3__lead, .hero3__actions, .hero3__hint { animation: fade-up .9s var(--ease) both; }
.hero3__kicker { animation-delay: .1s; }
.hero3__lead { animation-delay: .55s; }
.hero3__actions { animation-delay: .7s; }
.hero3__hint { animation-delay: .9s; }
.hero3__title .hero3__line { animation: title-in 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.hero3__title .hero3__line:nth-child(2) { animation-delay: .18s; }
@keyframes title-in { from { opacity: 0; transform: translateY(40px); filter: blur(12px); } }

@media (max-width: 1080px) {
  .hero3 { flex-direction: column; justify-content: center; padding-bottom: 40px; }
  .hero3__agent, .hero3__chips { position: relative; left: auto; right: auto; bottom: auto; margin-top: 26px; }
  .hero3__chips { flex-wrap: wrap; justify-content: center; padding: 0 16px; }
}
@media (max-width: 640px) {
  .hero3 { min-height: auto; padding-top: 48px; }
  .hero3__shield { --size: 150px; }
  .hero3__shield-core { width: 44px; height: 44px; }
  .hero3__shield-label { bottom: 16px; font-size: .58rem; }
  .hero3__actions .btn { flex: 1 1 100%; }
  .hero3__chips a { font-size: .8rem; padding: 8px 12px; }
}

/* Panels: icon back in the flow so it never covers the text */
.panel__open { padding-top: clamp(26px, 3vw, 40px); }
.panel__open .panel__icon { position: static; margin: 0 0 auto; }
@media (min-width: 921px) { .panels { height: 560px; } }
