/* =========================================================================
   HOME — Synthetic Swarm art direction.
   One value per role, no other colour. Everything is scoped under .home so
   the other pages keep their current appearance.
   ========================================================================= */

.home {
  --ink: #15162b;
  --soft: #4a4b63;
  --mute: rgba(21, 22, 43, .48);
  --blue: #0A66C2;
  --electric: #2f5bff;
  --electric-light: #5b84ff;
  --green: #1D9E75;
  --green-text: #178A66;
  --red-soft: #d9534f;
  --red-text: #a3372f;
  --bg: #faf9f6;
  --line: rgba(21, 22, 43, .09);
  --border-soft: rgba(160, 176, 216, .5);
  --shadow-long: 0 2px 6px rgba(30, 50, 120, .05), 0 34px 64px -20px rgba(30, 50, 120, .24);
  --grad-electric: linear-gradient(135deg, #5b84ff 0%, #2f5bff 100%);
  --card: linear-gradient(165deg, #ffffff 0%, #fbfcff 100%);
  --tint: rgba(10, 102, 194, .07);
  --accent-font: "Cormorant Garamond", Georgia, serif;
}

/* Quiet warm-white canvas. */
.home {
  color: var(--ink);
  background: var(--bg);
}
.home::before { content: none; }

/* The hero keeps its composition; the coloured aurora and the 3D props go. */
.home .aurora,
.home .hero-decor { display: none; }

/* ── Type ── */
.home,
.home .demo-wrapper {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: normal;
}
.home h1, .home h2, .home h3 { color: var(--ink); }

/* Section title: Inter 700, tight tracking. */
.home .testimonial-heading h2,
.home .home-purchase-faq > h2,
.home .home-signals h2,
.home .home-radar .radar-section-heading h2,
.home .brand-close-copy h2 {
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--ink);
}

/* Label above a block: 11px Inter 700, spaced capitals, electric blue. */
.home .home-signals-eyebrow,
.home .testimonial-eyebrow,
.home .brand-close-newsletter h2 {
  color: var(--electric);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.home .home-trust h2,
.home .site-footer-columns h2 {
  color: var(--mute);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* Accent: Cormorant Garamond italic 500, electric blue, 1.14x its title. */
.home .demo-hero__headline .hero-word-highlight,
.home .brand-close-copy h2 span,
.home .signals-intro,
.home .home-radar .radar-section-heading p,
.home .testimonial-quote-mark {
  font-family: var(--accent-font);
  font-style: italic;
  font-weight: 500;
  font-synthesis: none;
  color: var(--electric);
}

/* ── Header ── */
.home .header { background: rgba(250, 249, 246, .9); border-bottom: 1px solid var(--line); }
.home .logo { color: var(--ink); }
.home .nav-links a, .home .about-menu > button, .home .language-trigger { color: var(--soft); }
.home .nav-links a:hover, .home .about-menu > button:hover { color: var(--ink); }
.home .shared-chevron-trigger .dropdown-chevron { color: var(--mute); }
.home .nav-disabled { color: var(--mute); }

/* Buttons: primary electric, secondary white with the bluish border. No icon. */
.home .btn-get-started,
.home .page-button {
  background: var(--electric);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: none;
}
.home .btn-get-started:hover { background: #2749d8; }
.home .btn-login,
.home .page-button--secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-weight: 600;
}
.home .btn-login:hover, .home .page-button--secondary:hover { background: #fbfcff; border-color: var(--electric-light); }
.home .nav-actions .btn-login.header-action { border-color: var(--border-soft); }

/* Menus and popovers: standard card. */
.home .about-menu-panel,
.home .language-panel,
.home .demo-booking-popover {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  box-shadow: var(--shadow-long);
}
.home .about-menu-panel a:hover,
.home .language-panel a:hover,
.home .language-panel a[aria-current="true"],
.home .demo-booking-person:hover { background: var(--tint); border-radius: 14px; }
.home .demo-booking-person { color: var(--ink); }
.home .demo-booking-person-copy > span { color: var(--mute); }
.home .demo-booking-avatar {
  background: transparent;
  outline: 1px dashed var(--blue);
  outline-offset: 3px;
}

/* ── Hero ── */
.home .demo-wrapper .demo-hero__eyebrow {
  padding: 11px 20px;
  gap: 14px;
  border: 1px solid rgba(21, 22, 43, .08);
  border-radius: 999px;
  background: linear-gradient(115deg, rgba(255, 255, 255, .12), transparent 34%, rgba(21, 22, 43, .025) 74%, rgba(255, 255, 255, .08));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .9),
    inset 0 -1px 1px rgba(21, 22, 43, .045),
    0 4px 14px rgba(21, 22, 43, .035);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  backdrop-filter: blur(18px) saturate(115%);
}
.home .demo-wrapper .demo-hero__eyebrow::before {
  display: block;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(165deg, rgba(255, 255, 255, .38), transparent 24%, transparent 78%, rgba(255, 255, 255, .2));
}
.home .demo-wrapper .demo-hero__eyebrow::after {
  display: block;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  border-top-color: rgba(255, 255, 255, .72);
  border-left-color: rgba(255, 255, 255, .4);
  background: none;
}
.home .hero-eyebrow-badge {
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--electric);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}
.home .demo-wrapper .demo-hero__eyebrow .hero-eyebrow-news { color: var(--mute); font-weight: 500; }

.home .demo-hero__headline .motion-headline-part { color: var(--ink); font-weight: 700; letter-spacing: -.025em; }
.home .demo-wrapper .demo-hero__headline .hero-word-highlight,
.home .demo-hero__headline .hero-word-highlight {
  color: var(--electric);
  font-size: 1.14em;
  line-height: 1.08;
  letter-spacing: -.02em;
  background: none;
  -webkit-text-fill-color: currentColor;
  animation: none;
}
.home .demo-wrapper .demo-hero__subtitle { color: var(--soft); }

.home .home-actions .btn-get-started {
  background: var(--electric);
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.home .home-actions .btn-get-started::before,
.home .home-actions .btn-get-started::after { display: none; }
.home .home-actions .btn-get-started:hover { background: #2749d8; transform: none; box-shadow: none; }
.home .home-actions > .page-button--secondary {
  min-height: 56px;
  padding: 0 30px;
  font-size: 16px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--ink);
}
.home .home-actions > .page-button--secondary::after { content: none; }

/* ── Hero video (French page): a standard card, never a dark one ── */
.home .home-hero-video {
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow-long);
}
.home .home-hero-video-unmute {
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 22px;
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  text-shadow: 0 1px 6px rgba(255, 255, 255, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8),
    inset 0 -1px 0 rgba(255, 255, 255, .18),
    0 10px 32px rgba(21, 22, 43, .1);
}
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .home .home-hero-video-unmute {
    background: linear-gradient(135deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .12));
    -webkit-backdrop-filter: blur(10px) saturate(135%) brightness(1.06);
    backdrop-filter: blur(10px) saturate(135%) brightness(1.06);
  }
  .home .home-hero-video-unmute:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, .36), rgba(255, 255, 255, .18));
  }
}
.home .home-hero-video-unmute::after { display: none; }
.home .home-hero-video-unmute span { color: var(--soft); }
.home .home-hero-video-unmute:focus-visible { outline: 2px solid var(--blue); }

/* One line of proof under the hero button. */
.home .home-hero-proof { color: var(--mute); }
.home .home-hero-proof strong { color: var(--electric); font-weight: 700; }
.home .home-hero-proof-faces img { border-color: #fcfbf8; }

/* ── Measured results band (French page) ── */
.home .home-results-inner { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home .home-result { border-left: 1px solid var(--line); }
.home .home-result strong { color: var(--electric); font-weight: 800; font-style: italic; letter-spacing: -.04em; }
.home .home-result:hover strong { color: #2749d8; }
.home .home-result-what { color: var(--ink); }
.home .home-result-who, .home .home-result-firm { color: var(--soft); }
.home .home-result-date { color: var(--mute); }
.home .home-result img { outline: 1px dashed var(--blue); outline-offset: 3px; }

/* ── Insurance network logos ── */
.home .home-trust-logo { filter: grayscale(1); opacity: .5; }
.home .home-trust-logo:hover { opacity: .72; }

/* ── Proof line ── */
.home .proof-shell {
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow-long);
}
.home .proof-inner { padding: 18px 22px; }
.home .proof-slide { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 14px; }
.home .proof-quote { flex-direction: column; align-items: flex-start; gap: 6px; overflow: visible; white-space: normal; color: var(--ink); font-weight: 400; }
.home .proof-quote-text { overflow: visible; text-overflow: clip; }
.home .proof-quote-text .proof-long { display: inline; }
.home .proof-quote-text .proof-short { display: none; }
.home .proof-quote strong { color: var(--electric); font-size: 30px; font-style: italic; font-weight: 800; line-height: 1.2; }
.home .proof-meta { display: inline-flex; flex-wrap: wrap; color: var(--mute); font-size: 12px; line-height: 1.5; }
.home .proof-meta > span[aria-hidden] { display: none; }
.home .proof-cta { padding-left: 0; color: var(--electric); font-weight: 600; }
.home .proof-cta:hover { color: #2749d8; }
.home .proof-cta:focus-visible { color: var(--electric); outline-color: var(--electric); }
.home .proof-cta-arrow { display: none; }
.home .proof-slide-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  outline: 1px dashed var(--blue);
  outline-offset: 3px;
}
.home .proof-slide-icon img { border-radius: 50%; }
@media (max-width: 700px) {
  .home .proof-slide { grid-template-columns: 30px minmax(0, 1fr); gap: 8px 12px; }
  .home .proof-quote strong { font-size: 28px; }
  .home .proof-cta { grid-column: 2; justify-self: start; margin-left: 0; padding: 0; line-height: 1.5; }
  .home .proof-cta .proof-cta-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal; }
}

/* ── Territory demo ── */
.home .home-radar { --radar-ink: var(--ink); --radar-muted: var(--mute); --radar-line: var(--line); }
.home .home-radar .radar-section-heading p { font-size: 1.14em; line-height: 1.35; }
.home .radar-steps button[aria-pressed=true]::after { background: var(--electric); }
.home .radar-signal-icon,
.home .radar-signal-value { color: var(--electric); }
/* ── Detected changes ── */
.home .home-signals h2 { color: var(--ink); }
.home .signals-intro { font-size: 1.14em; line-height: 1.35; }
.home .signals-examples-note { color: var(--mute); }
.home .signals-controls button svg { color: var(--electric); }
.home .signal-context-heading svg { color: var(--electric); }
.home .signal-change { border-color: var(--line); background: #f7f7f6; }
.home .signal-field,
.home .signal-unit,
.home .signal-context > p { color: var(--soft); }
.home .signal-values > div > span,
.home .signal-before strong { color: var(--mute); }
.home .signal-after strong,
.home .signal-context-heading { color: var(--ink); }
.home .signal-change-arrow { stroke: var(--mute); }
.home .signals-enhanced .signal-scan {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(21, 22, 43, .015) 72%,
    rgba(21, 22, 43, .06) 93%,
    rgba(21, 22, 43, .12) 95%,
    rgba(47, 91, 255, .22) 95.6%,
    rgba(255, 255, 255, .8) 96.3%,
    transparent 100%);
}
.home .signals-controls button:focus-visible,
.home .signal-next:focus-visible { outline-color: var(--electric); }
/* ── Customer stories ── */
.home .home-testimonial {
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow-long);
  padding: 30px;
}
.home .testimonial-quote-mark { height: 34px; font-size: 54px; line-height: 1; }
.home .home-testimonial blockquote p { color: var(--soft); font-style: italic; }
.home .testimonial-author h3 { color: var(--ink); font-weight: 600; }
.home .testimonial-author p { color: var(--mute); }
.home .testimonial-author img { outline: 1px dashed var(--blue); outline-offset: 3px; }

/* ── Questions ── */
.home .home-purchase-faq .pricing-faq-item { border-top: 1px solid var(--line); }
.home .home-purchase-faq .pricing-faq-item:last-child { border-bottom: 1px solid var(--line); }
.home .home-purchase-faq .pricing-faq-item summary {
  min-height: 76px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.home .home-purchase-faq .pricing-faq-item summary::after {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 0;
  color: var(--soft);
  font-size: 20px;
  line-height: 1;
}
.home .home-purchase-faq .pricing-faq-item[open] summary::after {
  color: var(--electric);
  background: none;
}
.home .home-purchase-faq .pricing-faq-item summary:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 4px;
  border-radius: 8px;
}
.home .home-purchase-faq .pricing-faq-item p {
  max-width: 60ch;
  margin: 0 44px 0 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.8;
  text-wrap: pretty;
}
.home .home-purchase-faq .pricing-faq-item p + p { margin-top: 14px; }
.home .home-purchase-faq .pricing-faq-item p:last-child { margin-bottom: 30px; }
.home .home-purchase-faq .pricing-faq-item p strong { color: var(--ink); font-weight: 600; }
.home .home-purchase-faq .pricing-faq-item p a {
  color: var(--electric);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 700px) {
  .home .home-purchase-faq .pricing-faq-item summary {
    gap: 16px;
    padding: 18px 0;
    font-size: 15px;
  }
  .home .home-purchase-faq .pricing-faq-item p {
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    font-size: 15px;
  }
}

/* ── Closing statement and footer ── */
.home .brand-close::before { background: none; }
.home .brand-close-copy h2 { font-weight: 800; }
.home .brand-close-copy h2 span { font-size: 1.14em; line-height: 1.06; letter-spacing: -.02em; }
.home .brand-close-copy > p { color: var(--soft); }
.home .brand-close .brand-close-cta .btn-get-started { background: var(--electric); border-radius: 999px; }
.home .brand-close-statement--cta {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 30px;
  text-align: center;
}
.home .brand-close-statement--cta .brand-close-copy > p { margin-inline: auto; }
.home .brand-close-statement--cta .brand-close-cta { justify-content: center; }
.home .brand-close-statement--cta .btn-get-started { min-height: 48px; }
.home .brand-close-statement--cta .btn-get-started:hover { color: #fff; }
.home .brand-close-delivery-note {
  margin: 26px 0 0;
  max-width: 420px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
  text-wrap: balance;
}
.home .brand-close-solution { color: var(--blue); }
.home .brand-close-solution span[aria-hidden] { display: none; }
.home .brand-close-newsletter p { color: var(--soft); }
.home .brand-close-fields input {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}
.home .brand-close-fields input::placeholder { color: var(--mute); }
.home .brand-close-fields button {
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}
.home .brand-close-fields button:hover { background: #fbfcff; border-color: var(--electric-light); }
.home .brand-close-navigation,
.home .brand-close-bottom { border-top: 1px solid var(--line); }
.home .brand-close-identity p,
.home .brand-close-login,
.home .site-footer-columns li { color: var(--soft); }
.home .brand-close-bottom p { color: var(--mute); }
.home .brand-close a:hover { color: var(--electric); }

/* ── Floating call to action: the one highlighted element ── */
.home .floating-demo-button {
  background: var(--grad-electric);
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 40px 70px -24px rgba(47, 91, 255, .55);
}
.home .floating-demo-arrow { display: none; }
.home .floating-demo-copy > span { color: rgba(255, 255, 255, .78); }
.home .floating-demo-avatars img { border-color: #3f66ff; }

/* ── Focus ── */
.home a:focus-visible,
.home button:focus-visible,
.home summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

@media (max-width: 700px) {
  .home .demo-wrapper .demo-hero__eyebrow {
    display: none;
  }
  .home .proof-inner { padding: 13px 15px; }
  .home .home-testimonial { padding: 26px; }
  .home .home-actions > .page-button--secondary {
    width: fit-content;
    min-height: 52px;
    padding: 0 26px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
  }
  .home .hero-eyebrow-badge { font-size: 10px; letter-spacing: .16em; }
  .home .demo-wrapper .demo-hero__eyebrow .hero-eyebrow-news { color: var(--mute); }
}

@media (prefers-reduced-motion: reduce) {
  .home .demo-hero__headline .hero-word-highlight { color: var(--electric); -webkit-text-fill-color: currentColor; }
}

/* Scale the composition with desktop space, with bounded reading widths. */
@media (min-width: 1280px) {
  .home {
    --home-content-width: clamp(1120px, calc(100vw - 192px), 1280px);
    --home-section-gap-lg: clamp(108px, 7vw, 128px);
    --home-section-gap-md: clamp(84px, 5.5vw, 104px);
    --home-section-gap-sm: clamp(52px, 3.5vw, 64px);
  }
  .home .header-inner,
  .home :is(.home-trust, .home-results, .home-proof-bar, .home-radar, .home-signals, .home-customer-proof, .brand-close-inner) {
    max-width: var(--home-content-width);
    margin-inline: auto;
  }
  .home .header-inner { padding-inline: 32px; }
  .home .brand-close-inner { max-width: calc(var(--home-content-width) - 64px); }
  .home .demo-wrapper .home-focused-hero {
    padding-top: clamp(20px, 2.4svh, 32px);
    padding-bottom: 40px;
  }
  .home .demo-wrapper .demo-hero { padding: 16px 24px 24px; }
  .home .home-focused-hero .hero-content,
  .home .demo-wrapper .demo-hero__inner { max-width: 1120px; }
  .home .demo-wrapper .demo-hero__eyebrow { margin-bottom: 24px; }
  .home .demo-wrapper .demo-hero__headline {
    max-width: 1080px;
    margin-bottom: 20px;
    font-size: clamp(60px, 4.2vw, 72px);
    line-height: 1.04;
  }
  .home .demo-wrapper .demo-hero__subtitle {
    max-width: 880px;
    margin-bottom: 26px;
    font-size: clamp(18px, 1.1vw, 20px);
    line-height: 1.6;
  }
  .home .home-hero-video {
    max-width: clamp(560px, min(42vw, 68svh), 720px);
    margin-bottom: 26px;
  }
  .home .home-hero-proof { margin-top: 18px; font-size: 14px; line-height: 1.5; }
  .home :is(.testimonial-heading h2, .home-purchase-faq > h2, .home-signals h2),
  .home .home-radar .radar-section-heading h2 {
    font-size: clamp(40px, 2.7vw, 48px);
    line-height: 1.15;
  }
  .home .home-signals h2 { max-width: 500px; }
  .home .signals-intro { font-size: 20px; }
  .home .signals-controls button { min-height: 58px; font-size: 12px; }
  .home .home-radar .radar-section-heading p { font-size: 18px; }
  .home .radar-stage { height: clamp(530px, 32vw, 580px); }
  .home .testimonial-heading { margin-bottom: 40px; }
  .home .testimonial-heading h2 { max-width: 880px; }
  .home .testimonial-grid { gap: 24px; }
  .home .home-testimonial { padding: 32px; }
  .home .home-testimonial blockquote p { font-size: 16px; }
  .home .testimonial-author h3 { font-size: 14px; }
  .home .testimonial-author p { font-size: 12px; }
  .home .home-purchase-faq { max-width: 840px; }
  .home .home-purchase-faq > h2 { margin-bottom: 36px; }
  .home .home-purchase-faq .pricing-faq-item summary { font-size: 18px; padding-block: 24px; }
  .home .brand-close-statement--cta { padding-block: 104px; gap: 36px; }
  .home .brand-close-copy h2 { font-size: clamp(44px, 3.2vw, 56px); }
  .home .brand-close-copy > p { max-width: 540px; font-size: 17px; }
  .home .brand-close-statement--cta .btn-get-started { min-height: 56px; padding: 16px 28px; font-size: 16px; }
  .home .floating-demo,
  .home .floating-demo.is-visible,
  .home .floating-demo.is-visible:has(.floating-demo-button:hover) {
    left: auto;
    right: 32px;
    transform: none;
  }
}

/* Keep the main action in view when a desktop window is short. */
@media (min-width: 1280px) and (max-height: 800px) {
  .home .demo-wrapper .home-focused-hero { padding-top: 12px; padding-bottom: 32px; }
  .home .demo-wrapper .demo-hero { padding-top: 8px; padding-bottom: 16px; }
  .home .demo-wrapper .demo-hero__eyebrow { margin-bottom: 16px; }
  .home .demo-wrapper .demo-hero__headline { font-size: clamp(54px, 3.7vw, 64px); margin-bottom: 16px; }
  .home .demo-wrapper .demo-hero__subtitle { font-size: 18px; margin-bottom: 18px; }
  .home .home-hero-video { max-width: min(560px, 66svh); margin-bottom: 20px; }
  .home .home-hero-proof { margin-top: 14px; }
}
