/* ============================================================
   eInsights - Insurance Discovery for Hospitals
   Design system + page styles
   ============================================================ */

:root {
  /* Brand palette */
  --navy-900: #0a2336;   /* deep navy - primary text, dark sections */
  --navy-700: #143b5c;   /* mid-deep */
  --navy-500: #1d4f78;   /* mid navy - secondary headings */
  --teal:     #1f9fb8;   /* teal accent */
  --cyan:     #36b5cc;   /* cyan accent */
  --orange:   #e8821e;   /* punch color - CTA + the "e" */
  --orange-dk:#cf6f10;

  /* Grounds */
  --white:    #ffffff;
  --ground:   #f4f9fc;   /* soft white/blue */
  --ground-2: #eef6fb;
  --line:     #e2edf3;
  --line-2:   #d3e3ed;

  /* Text */
  --ink:      #0a2336;
  --ink-soft: #3a5168;
  --ink-mute: #6c8197;

  /* Type */
  --font: "sohne-var", "Helvetica Neue", Arial, sans-serif;

  /* Geometry */
  --maxw: 1200px;
  --radius: 18px;
  --radius-sm: 12px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0.01, 0.16, 1);
  --shadow-1: 0 1px 2px rgba(10,35,54,.04), 0 4px 14px rgba(10,35,54,.05);
  --shadow-2: 0 18px 48px -18px rgba(10,35,54,.30), 0 4px 14px rgba(10,35,54,.06);
  --shadow-cta: 0 10px 26px -8px rgba(232,130,30,.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: #f4f9fc; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  color: var(--ink);
  background: transparent;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(54,181,204,.22); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 84px; display: flex; align-items: center;
  transition: padding .35s var(--ease), height .35s var(--ease);
}
/* on scroll the bar contracts into a centered, floating rounded pill */
.nav.scrolled { padding: 0 18px; height: 80px; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .35s var(--ease), border-color .4s var(--ease);
  border: 1px solid transparent; }
.nav.scrolled .nav__inner {
  padding: 11px 14px 11px 26px;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(170%) blur(16px);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  border-radius: 22px;
  border-color: rgba(10,35,54,.07);
  box-shadow: 0 18px 40px -16px rgba(10,35,54,.40), 0 2px 6px -3px rgba(10,35,54,.16);
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 27px; width: auto; display: block; }
.logo--footer img { height: 30px; }
.logo__legacy { display: inline-flex; align-items: baseline; gap: 1px; font-weight: 700; font-size: 24px; letter-spacing: -.02em; color: var(--navy-900); }
.logo .e { color: var(--orange); }
.logo__mark { display:inline-flex; align-items:center; justify-content:center; width: 34px; height: 34px; border-radius: 9px; background: var(--navy-900); margin-right: 10px; position: relative; }
.logo__mark::before { content: "e"; font-weight: 700; font-size: 21px; color: var(--orange); line-height: 1; }

.nav__links { display: flex; align-items: center; gap: 32px; white-space: nowrap; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--navy-900); opacity: .82; transition: opacity .2s var(--ease); position: relative; }
.nav__links a::after { content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); border-radius:2px; }
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__right { display: flex; align-items: center; gap: 20px; }
.nav__phone { font-size: 13px; font-weight: 600; color: var(--navy-500); white-space: nowrap; letter-spacing: .01em; }

.burger { display: none; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; }
.burger span { display:block; width: 22px; height: 2px; background: var(--navy-900); border-radius: 2px; position: relative; transition: .3s var(--ease); }
.burger span::before, .burger span::after { content:""; position:absolute; left:0; width:22px; height:2px; background: var(--navy-900); border-radius:2px; transition: .3s var(--ease); }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.burger.open span { background: transparent; }
.burger.open span::before { top:0; transform: rotate(45deg); }
.burger.open span::after { top:0; transform: rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; border-radius: 999px; transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .25s var(--ease); }5s var(--ease); will-change: transform; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* primary CTA - flat orange, deep navy on hover, with a thin animated orange gradient border */
@property --bangle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn--cta {
  position: relative; color: #fff; padding: 11px 20px;
  background: var(--orange);
  box-shadow: var(--shadow-cta);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .25s var(--ease);
}
/* thin animated gradient border ring (orange, same in default + hover) */
.btn--cta::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--bangle),
    rgba(232,130,30,0) 0deg, rgba(232,130,30,0) 250deg,
    #f6a85a 300deg, #ffd8ab 330deg, #e8821e 350deg, rgba(232,130,30,0) 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: bspin 3.6s linear infinite; opacity: .9;
}
@keyframes bspin { to { --bangle: 360deg; } }
.btn--cta:hover {
  transform: translateY(-2px);
  background: var(--navy-900);
  box-shadow: 0 16px 34px -10px rgba(10,35,54,.5);
}
.btn--cta:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .btn--cta::before { animation: none; background: linear-gradient(100deg, #f6a85a, #e8821e); opacity: .9; }
}

.btn--cta-sm { padding: 9px 16px; font-size: 13px; }
.nav__right .btn--cta { white-space: nowrap; }

.btn--ghost { color: var(--navy-900); padding: 10px 20px; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

.btn--block { width: 100%; justify-content: center; }
.btn--start { align-self: flex-start; margin-top: 4px; }

.linkdown { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--navy-500); transition: color .2s var(--ease); }
.linkdown .chev { transition: transform .3s var(--ease); }
.linkdown:hover { color: var(--teal); }
.linkdown:hover .chev { transform: translateY(3px); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 64px 0 52px; text-align: center; overflow: hidden; background: #f7fcfe; }

/* animated mesh gradient - blurred blobs drifting on the compositor */
.hero__bg { position: absolute; inset: -25%; z-index: 0; pointer-events: none; filter: blur(72px) saturate(118%); }
.hero__bg .g { position: absolute; border-radius: 50%; will-change: transform; }
.hero__bg .g1 { width: 48vw; height: 48vw; left: -2%;  top: -8%;  background: radial-gradient(circle at 50% 50%, rgba(84,196,220,.95), rgba(84,196,220,0) 64%); animation: gdrift1 13s ease-in-out infinite; }
.hero__bg .g2 { width: 44vw; height: 44vw; right: -4%; top: -10%; background: radial-gradient(circle at 50% 50%, rgba(54,181,204,.9),   rgba(54,181,204,0) 64%);  animation: gdrift2 16s ease-in-out infinite; }
.hero__bg .g3 { width: 54vw; height: 54vw; left: 33%;  top: 26%;  background: radial-gradient(circle at 50% 50%, rgba(150,212,230,.98), rgba(150,212,230,0) 64%); animation: gdrift3 14s ease-in-out infinite; }
.hero__bg .g4 { width: 42vw; height: 42vw; left: -6%;  top: 34%;  background: radial-gradient(circle at 50% 50%, rgba(31,159,184,.8),    rgba(31,159,184,0) 64%);   animation: gdrift4 18s ease-in-out infinite; }
.hero__bg .g5 { width: 30vw; height: 30vw; right: 2%;  bottom: -8%; background: radial-gradient(circle at 50% 50%, rgba(238,165,92,.55),  rgba(238,165,92,0) 64%);   animation: gdrift5 17s ease-in-out infinite; }
@keyframes gdrift1 { 0%,100% { transform: translate(0,0) scale(1); } 25% { transform: translate(28%,30%) scale(1.22); } 50% { transform: translate(48%,12%) scale(1.06); } 75% { transform: translate(18%,38%) scale(1.28); } }
@keyframes gdrift2 { 0%,100% { transform: translate(0,0) scale(1.05); } 30% { transform: translate(-36%,24%) scale(1.28); } 60% { transform: translate(-14%,44%) scale(.9); } }
@keyframes gdrift3 { 0%,100% { transform: translate(0,0) scale(1); } 25% { transform: translate(-32%,-22%) scale(1.2); } 55% { transform: translate(-46%,16%) scale(1.32); } 80% { transform: translate(-10%,-28%) scale(1.08); } }
@keyframes gdrift4 { 0%,100% { transform: translate(0,0) scale(1); } 35% { transform: translate(40%,-22%) scale(1.26); } 70% { transform: translate(22%,28%) scale(1.1); } }
@keyframes gdrift5 { 0%,100% { transform: translate(0,0) scale(1); } 40% { transform: translate(-30%,-34%) scale(1.34); } 75% { transform: translate(-48%,-10%) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .hero__bg .g { animation: none !important; } }
.hero__veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 56% 50% at 50% 40%, rgba(247,252,254,.66), rgba(247,252,254,.24) 52%, rgba(247,252,254,0) 80%),
    linear-gradient(to bottom, rgba(247,252,254,.20) 0%, rgba(247,252,254,0) 28%, rgba(247,252,254,0) 60%, #ffffff 100%); }

.hero__inner { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; }
/* faint brand "e" watermarks filling empty hero space */
.hero__watermark { position: absolute; z-index: 1; pointer-events: none; will-change: transform; backface-visibility: hidden;
  width: 22vw; max-width: 290px; aspect-ratio: 174 / 163;
  background: var(--navy-900); opacity: .032;
  -webkit-mask: url("../einsights-icon.png") center / contain no-repeat;
          mask: url("../einsights-icon.png") center / contain no-repeat; }
.hero__watermark--tl { top: 9%; left: max(10px, calc(50% - 960px)); }
.hero__watermark--br { bottom: 24%; right: max(10px, calc(50% - 970px)); width: 26vw; max-width: 360px; }
@media (max-width: 980px) {
  .hero__watermark--tl { top: 5%; left: auto; right: 0; width: 40vw; }
  .hero__watermark--br { display: none; }
}

/* scattered brand-mark watermarks across the page (parallax, varied size, in front/behind) */
.wm { position: absolute; aspect-ratio: 174 / 163; pointer-events: none; will-change: transform; backface-visibility: hidden;
  background: var(--navy-900); opacity: .035;
  -webkit-mask: url("../einsights-icon.png") center / contain no-repeat;
          mask: url("../einsights-icon.png") center / contain no-repeat; }
.wm--behind { z-index: 0; }
.wm--front  { z-index: 0; opacity: .028; }
.wm--light  { background: #ffffff; opacity: .05; }
@media (max-width: 720px) { .wm { display: none; } }

/* full-bleed overlay; watermarks sit in the side gutters outside the content container */
.wm-rail { position: absolute; inset: 0; pointer-events: none; }
section > .wrap { position: relative; z-index: 1; }
/* hide gutter watermarks when the screen has no room beside the container */
@media (max-width: 1480px) { .wm, .hero__watermark { display: none !important; } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); background: rgba(54,181,204,.10); border: 1px solid rgba(54,181,204,.26); padding: 8px 16px; border-radius: 999px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(54,181,204,.18); }

.hero h1 {
  margin: 0 auto; max-width: 26ch;
  font-weight: 700; letter-spacing: -.027em; line-height: 1.06; color: var(--navy-900);
  font-size: clamp(38px, 5.4vw, 70px);
  text-wrap: balance;
}
.hero h1 .grad { background: linear-gradient(100deg, var(--teal), var(--navy-500) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero__sub { margin: 30px auto 0; max-width: 60ch; font-size: clamp(17px, 1.55vw, 21px); color: var(--ink-soft); font-weight: 400; }
.hero__sub b { color: var(--navy-900); font-weight: 700; }

.hero__cta { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 18px; }

.hero__klas { margin-top: 36px; display: inline-flex; align-items: stretch; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-1); overflow: hidden; }
.klas-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 26px; }
.klas-stat + .klas-stat { border-left: 1px solid var(--line); }
.klas-stat__num { font-size: 30px; font-weight: 700; color: var(--navy-900); letter-spacing: -.02em; line-height: 1; }
.klas-stat__lab { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.klas-badge { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; padding: 16px 24px; background: var(--navy-900); color: #fff; }
.klas-badge__top { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.klas-badge__sub { font-size: 12px; color: rgba(255,255,255,.7); font-weight: 500; }

/* ============================================================
   SECTION SHELL
   ============================================================ */
section { position: relative; }
.section { padding: 80px 0; }
.section--ground { background: transparent; }
#faq { background: transparent; }

/* "Independently recognized" (KLAS) - slant-faded dot pattern backdrop */
#klas { overflow: hidden; background: #ffffff; }
#klas::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(31,159,184,.28) 1.7px, transparent 2px);
  background-size: 20px 20px;
  -webkit-mask: linear-gradient(132deg, #000 2%, rgba(0,0,0,.6) 28%, rgba(0,0,0,0) 56%);
          mask: linear-gradient(132deg, #000 2%, rgba(0,0,0,.6) 28%, rgba(0,0,0,0) 56%); }
#klas > .wrap { position: relative; z-index: 1; }

/* floating parallax KLAS badge */
.klas-card__logo { height: 30px; width: auto; display: block; margin-bottom: 18px; }

/* client-scale stat band (under the hero trust strip) */
.scaleband { display: flex; align-items: stretch; justify-content: center; max-width: 720px; margin: 48px auto 0; }
.scaleband__stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 6px 24px; position: relative; text-align: center; }
.scaleband__stat + .scaleband__stat::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 48px; background: var(--line-2); }
.scaleband__num { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; color: var(--navy-900); letter-spacing: -.02em; line-height: 1; }
.scaleband__lab { font-size: 13.5px; font-weight: 600; color: var(--ink-mute); letter-spacing: .01em; }
@media (max-width: 720px) {
  .scaleband { flex-direction: column; gap: 26px; margin-top: 36px; }
  .scaleband__stat { padding: 0; }
  .scaleband__stat + .scaleband__stat::before { display: none; }
}
.klas-card__badges { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.klas-card__badge { width: 100px; height: auto; display: block; margin-top: 14px; }
.klas-card__doc { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 13.5px; font-weight: 600; color: var(--teal); border: 1px solid var(--line-2); background: #fff; border-radius: 10px; padding: 11px 15px; transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.klas-card__doc svg { width: 17px; height: 17px; flex: none; }
.klas-card__doc:hover { border-color: var(--teal); color: var(--navy-700); transform: translateY(-1px); box-shadow: var(--shadow-1); }
@media (prefers-reduced-motion: reduce) { .klas-card__doc { transition: none; } }
.section-head { max-width: 720px; }
.section-head--center { margin: 0 auto; text-align: center; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.section-head h2 { margin-top: 14px; font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--navy-900); text-wrap: balance; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--ink-soft); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: .08s; }
.reveal[data-d="2"]{ transition-delay: .16s; }
.reveal[data-d="3"]{ transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---- on-load entrance (only active while html.preanim is set, pre-paint) ---- */
.load-up, .load-right, .load-left, .load-nav {
  transition: opacity .7s var(--ease), transform .85s var(--ease);
  transition-delay: var(--ld, 0s);
}
html.preanim .load-up    { opacity: 0; transform: translateY(30px); }
html.preanim .load-right { opacity: 0; transform: translateX(48px); }
html.preanim .load-left  { opacity: 0; transform: translateX(-48px); }
html.preanim .load-nav   { opacity: 0; transform: translateY(-104%); }
.load-d1 { --ld: .15s; } .load-d2 { --ld: .30s; } .load-d3 { --ld: .45s; } .load-d4 { --ld: .60s; }
@media (prefers-reduced-motion: reduce) {
  .load-up, .load-right, .load-left, .load-nav { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   PROOF STRIP - bento grid of animated outcome cards
   ============================================================ */
.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ocard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden; transition: transform .35s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); transform-style: preserve-3d; }
.ocard.span2 { grid-column: span 2; }
.ocard::before { content:""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--teal), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); z-index: 4; }
.ocard::after { content:""; position: absolute; inset: 0; border-radius: inherit; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); background: radial-gradient(280px circle at var(--mx,50%) var(--my,50%), rgba(54,181,204,.14), rgba(54,181,204,0) 62%); }
.ocard:hover { transform: translateY(-8px); box-shadow: var(--shadow-2); border-color: transparent; }
.ocard:hover::before { transform: scaleX(1); }
.ocard:hover::after { opacity: 1; }

/* graphic area (the bento "header") */
.ocard__viz { position: relative; z-index: 1; height: 188px; background: transparent; overflow: hidden; }

/* colorful gradient-pattern flair kept as a top-right corner accent; faded to 0% over the central graphic and the text. One teal, one orange - different pattern each. */
.ocard--pat-a { background:
  radial-gradient(135% 115% at 100% 0%, rgba(255,255,255,0) 16%, #fff 60%),
  linear-gradient(225deg, rgba(31,159,184,.34), rgba(31,159,184,0) 64%),
  repeating-linear-gradient(135deg, rgba(31,159,184,.18) 0 1.5px, transparent 1.5px 13px),
  #fff; }
.ocard--pat-b { background:
  radial-gradient(135% 115% at 100% 0%, rgba(255,255,255,0) 16%, #fff 60%),
  linear-gradient(225deg, rgba(232,130,30,.32), rgba(232,130,30,0) 64%),
  radial-gradient(rgba(232,130,30,.24) 1.5px, transparent 2px) 0 0 / 16px 16px,
  #fff; }
.ocard__body { position: relative; z-index: 2; padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 0; }
.ocard__ico { width: 42px; height: 42px; border-radius: 11px; background: var(--ground); display: flex; align-items: center; justify-content: center; color: var(--teal); transition: background .4s var(--ease), color .4s var(--ease); }
.ocard:hover .ocard__ico { background: var(--navy-900); color: var(--cyan); }
.ocard__ico svg { width: 22px; height: 22px; }
.ocard__stat { margin-top: 16px; font-size: 30px; font-weight: 700; color: var(--navy-900); letter-spacing: -.02em; line-height: 1; }
.ocard__stat span { font-size: 17px; color: var(--ink-mute); font-weight: 600; }
.ocard h3 { margin-top: 12px; font-size: 16px; font-weight: 600; color: var(--navy-700); line-height: 1.45; }

/* ---- shared viz scaffolding ---- */
.viz__scan { position: absolute; top: 0; bottom: 0; width: 64px; left: -64px; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, rgba(54,181,204,0), rgba(54,181,204,.16) 50%, rgba(54,181,204,0));
  border-right: 1.5px solid rgba(54,181,204,.55); box-shadow: 0 0 18px rgba(54,181,204,.4); opacity: 0; }
.ocard.is-playing .viz__scan { animation: vizScan 3.2s var(--ease) .2s 1 both; }
@keyframes vizScan { 0% { left: -64px; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* ---- viz 1: scanned account field ---- */
.afield { position: absolute; inset: 22px 24px; display: grid; grid-template-columns: repeat(10, 1fr); grid-auto-rows: 1fr; gap: 7px; }
.ft { border-radius: 4px; background: #dde9f1; transition: background .45s var(--ease), box-shadow .45s var(--ease), transform .45s var(--ease); }
.ft.is-found { background: linear-gradient(135deg, var(--cyan), var(--teal)); box-shadow: 0 4px 12px -2px rgba(31,159,184,.55); transform: scale(1.12); }

/* ---- viz 2: conversion gauge ---- */
.gauge { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.gauge svg { width: 150px; height: auto; overflow: visible; }
.gauge .g-track { fill: none; stroke: #dce8f0; stroke-width: 12; stroke-linecap: round; }
.gauge .g-band { fill: none; stroke: rgba(54,181,204,.28); stroke-width: 12; stroke-linecap: round; }
.gauge .g-fill { fill: none; stroke: url(#gaugeGrad); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s var(--ease); }
.ocard.is-playing .gauge .g-fill, .ocard.is-final .gauge .g-fill { stroke-dashoffset: var(--goff, 48); }
.gauge__val { margin-top: -34px; font-size: 26px; font-weight: 700; color: var(--navy-900); letter-spacing: -.02em; }
.gauge__cap { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); }

/* ---- viz 3: radar precision sweep ---- */
.radar { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.radar__face { position: relative; width: 168px; height: 168px; border-radius: 50%; background:
  radial-gradient(circle, rgba(54,181,204,.09), rgba(54,181,204,0) 70%); }
.radar__ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1.5px solid rgba(31,159,184,.34); }
.radar__ring.r2 { inset: 32px; border-color: rgba(31,159,184,.26); }
.radar__ring.r3 { inset: 64px; border-color: rgba(31,159,184,.2); }
.radar__sweep { position: absolute; inset: 0; border-radius: 50%; opacity: 0;
  background: conic-gradient(from 0deg, rgba(54,181,204,.5), rgba(54,181,204,0) 55%); }
.ocard.is-playing .radar__sweep { animation: radarSpin 3.0s linear .2s 1 both; }
@keyframes radarSpin { 0% { transform: rotate(0); opacity: 1; } 92% { opacity: 1; } 100% { transform: rotate(360deg); opacity: 0; } }
.radar__dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #b3c8d6; transform: translate(-50%,-50%); transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.radar__dot.is-hit { background: var(--orange); box-shadow: 0 0 0 6px rgba(232,130,30,.18), 0 0 14px rgba(232,130,30,.6); }
.radar__val { position: absolute; left: 50%; top: 140px; transform: translateX(-50%); z-index: 3; white-space: nowrap; font-size: 26px; font-weight: 700; color: var(--navy-900); letter-spacing: -.02em; line-height: 1; padding: 5px 13px; border-radius: 999px; background: rgba(255,255,255,.82); box-shadow: 0 1px 6px rgba(16,42,67,.08); }

/* ---- viz 4: rising value chart ---- */
.vchart { position: absolute; inset: 26px 26px 30px; display: flex; align-items: flex-end; gap: 12px; }
.vbar { flex: 1; border-radius: 6px 6px 0 0; background: #dce8f0; height: 12%; transition: height 1s var(--ease); position: relative; }
.vbar.is-lead { background: linear-gradient(180deg, var(--cyan), var(--teal)); }
.vbar__delta { position: absolute; top: -22px; left: 50%; transform: translateX(-50%) translateY(6px); opacity: 0; font-size: 12px; font-weight: 700; color: var(--teal); white-space: nowrap; transition: opacity .5s var(--ease) .9s, transform .5s var(--ease) .9s; }
.ocard.is-playing .vbar__delta, .ocard.is-final .vbar__delta { opacity: 1; transform: translateX(-50%) translateY(0); }
.vchart__base { position: absolute; left: 26px; right: 26px; bottom: 30px; height: 1px; background: var(--line-2); }

@media (prefers-reduced-motion: reduce) {
  .ocard.is-playing .viz__scan, .ocard.is-playing .radar__sweep { animation: none; }
}
/* instant reset between loop cycles (transitions off so state snaps back, then replays) */
.ocard.is-resetting .g-fill,
.ocard.is-resetting .vbar,
.ocard.is-resetting .ft,
.ocard.is-resetting .radar__dot { transition: none !important; }

/* "How it works" - slant-faded medical-cross pattern backdrop */
#how { overflow: hidden; }
#how::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15'%3E%3Cpath d='M6.4 4h2.2v2.4h2.4v2.2h-2.4v2.4h-2.2v-2.4h-2.4v-2.2h2.4z' fill='%231f9fb8' fill-opacity='0.28'/%3E%3C/svg%3E");
  background-size: 15px 15px;
  -webkit-mask: linear-gradient(132deg, #000 0%, rgba(0,0,0,.42) 24%, rgba(0,0,0,0) 50%);
          mask: linear-gradient(132deg, #000 0%, rgba(0,0,0,.42) 24%, rgba(0,0,0,0) 50%); }
#how > .wrap { position: relative; z-index: 1; }
#how .wm--behind { z-index: 1; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { margin-top: 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { position: relative; display: flex; flex-direction: column; padding: 0; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.step::before { content:""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--teal), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); z-index: 4; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: transparent; }
.step:hover::before { transform: scaleX(1); }

/* teal-toned graphic header with corner gradient + diagonal hatch pattern */
/* teal graphic + hatch pattern spanning the WHOLE card, softly washed to near-white behind the text for legibility */
.step__viz { position: relative; z-index: 1; height: 158px; overflow: hidden; }
.step--pat-a { background:
  linear-gradient(180deg, rgba(238,246,250,0) 28%, rgba(255,255,255,.5) 56%, rgba(255,255,255,.86) 100%),
  linear-gradient(215deg, rgba(31,159,184,.30), rgba(31,159,184,0) 58%),
  repeating-linear-gradient(135deg, rgba(31,159,184,.13) 0 1.5px, transparent 1.5px 13px),
  #eef6fa; }
.step__body { position: relative; z-index: 2; padding: 24px 30px 30px; }
.step__body h3, .step__body p { position: relative; }
.step__num { font-size: 14px; font-weight: 700; color: #fff; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--teal), var(--cyan)); display: flex; align-items: center; justify-content: center; letter-spacing: .02em; box-shadow: 0 8px 18px -7px rgba(31,159,184,.6); }
.step h3 { margin-top: 20px; font-size: 20px; font-weight: 700; color: var(--navy-900); letter-spacing: -.01em; }
.step p { margin-top: 10px; font-size: 15.5px; color: var(--ink-soft); }

/* ---- step graphic 1: secure exchange ---- */
.sx { position: absolute; inset: 0; }
.sx__node { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 14px; background: #fff; border: 1.5px solid rgba(31,159,184,.45); display: flex; align-items: center; justify-content: center; color: var(--teal); box-shadow: 0 8px 18px -8px rgba(31,159,184,.45); z-index: 3; }
.sx__node svg { width: 24px; height: 24px; }
.sx__node--a { left: 15%; }
.sx__node--b { right: 15%; background: var(--navy-900); border-color: transparent; color: var(--cyan); }
.sx__wire { position: absolute; top: 50%; left: calc(15% + 48px); right: calc(15% + 48px); height: 2px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, rgba(31,159,184,.6) 0 6px, transparent 6px 12px); opacity: .7; z-index: 1; }
.sx__lock { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 110px; height: 110px; display: flex; align-items: center; justify-content: center; z-index: 4; }
.sx__lock svg { width: 15px; height: 15px; }
.sx__lock img { width: 110px; height: 110px; object-fit: contain; display: block; }
.sx__packet { position: absolute; top: 50%; left: 15%; width: 13px; height: 13px; border-radius: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle at 35% 35%, var(--cyan), var(--teal)); box-shadow: 0 0 12px rgba(54,181,204,.8); opacity: 0; z-index: 2; }
.step.is-playing .sx__packet { animation: sxTravel 4.8s var(--ease) 2 both; }
.step.is-playing .sx__lock { animation: sxLock 4.8s var(--ease) 2 both; }
@keyframes sxTravel { 0% { left: calc(15% + 24px); opacity: 0; } 12% { opacity: 1; } 50% { left: 50%; } 88% { opacity: 1; } 100% { left: calc(85% - 24px); opacity: 0; } }
@keyframes sxLock { 0%,44% { transform: translate(-50%,-50%) scale(1); } 56% { transform: translate(-50%,-50%) scale(1.18); } 70%,100% { transform: translate(-50%,-50%) scale(1); } }

/* ---- step graphic 2: discovery pulse across payer sources ---- */
.sp { position: absolute; inset: 0; }
.sp__core { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 88px; height: 88px; border-radius: 50%; background: #fff; border: 1.5px solid rgba(31,159,184,.3); display: flex; align-items: center; justify-content: center; z-index: 3; box-shadow: 0 8px 20px -8px rgba(10,35,54,.34); }
.sp__core img { width: 52px; height: auto; display: block; }
.sp__pulse { position: absolute; top: 50%; left: 50%; width: 86px; height: 86px; transform: translate(-50%,-50%); border-radius: 50%; border: 1.5px solid rgba(31,159,184,.5); opacity: 0; z-index: 1; }
.step.is-playing .sp__pulse { animation: spPulse 2.6s var(--ease) infinite both; }
.step.is-playing .sp__pulse--2 { animation-delay: 1.3s; }
@keyframes spPulse { 0% { width: 50px; height: 50px; opacity: .7; } 100% { width: 230px; height: 230px; opacity: 0; } }
.sp__src { position: absolute; width: 11px; height: 11px; border-radius: 50%; transform: translate(-50%,-50%); background: #e0cdbb; box-shadow: 0 0 0 4px rgba(232,130,30,.06); z-index: 2; transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.step.is-playing .sp__src { animation: spLight 2.6s var(--ease) infinite both; }
.sp__src:nth-of-type(2) { animation-delay: .14s; }
.sp__src:nth-of-type(3) { animation-delay: .28s; }
.sp__src:nth-of-type(4) { animation-delay: .42s; }
.sp__src:nth-of-type(5) { animation-delay: .56s; }
.sp__src:nth-of-type(6) { animation-delay: .7s; }
@keyframes spLight { 0%,40% { background: #e0cdbb; box-shadow: 0 0 0 4px rgba(232,130,30,.06); } 60% { background: var(--orange); box-shadow: 0 0 0 5px rgba(232,130,30,.2), 0 0 10px rgba(232,130,30,.55); } 100% { background: var(--orange); box-shadow: 0 0 0 4px rgba(232,130,30,.15); } }

/* ---- step graphic 3: recovered value returns ---- */
.rc { position: absolute; inset: 30px 30px 28px; display: flex; align-items: flex-end; gap: 12px; }
.rc__bar { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: #cfe0ea; transform-origin: bottom; }
.rc__bar--lead { background: linear-gradient(180deg, var(--cyan), var(--teal)); box-shadow: 0 6px 16px -6px rgba(31,159,184,.55); }
.step.is-playing .rc__bar { animation: rcGrow .7s var(--ease) 1; }
.step.is-playing .rc__bar:nth-of-type(2) { animation-delay: .12s; }
.step.is-playing .rc__bar:nth-of-type(3) { animation-delay: .24s; }
.step.is-playing .rc__bar:nth-of-type(4) { animation-delay: .36s; }
@keyframes rcGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.rc__check { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--navy-900); color: var(--cyan); display: flex; align-items: center; justify-content: center; z-index: 3; box-shadow: 0 6px 16px -6px rgba(10,35,54,.5); }
.rc__check svg { width: 17px; height: 17px; }
.step.is-playing .rc__check { animation: rcPop .5s var(--ease) .5s 1; }
@keyframes rcPop { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.18); } 100% { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .step.is-playing .sx__packet, .step.is-playing .sx__lock,
  .step.is-playing .sp__pulse, .step.is-playing .sp__src,
  .step.is-playing .rc__bar, .step.is-playing .rc__check { animation: none; }
}

/* inline cold-path form */
.coldform { margin-top: 60px; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); border-radius: 24px; padding: 48px 52px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; position: relative; overflow: hidden; }
.coldform::after { content:""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(54,181,204,.30), transparent 65%); }
.coldform__copy { position: relative; z-index: 1; }
.coldform__copy h3 { color: #fff; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.coldform__copy p { color: rgba(255,255,255,.74); margin-top: 12px; font-size: 16px; max-width: 40ch; }
.coldform__copy .micro { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--cyan); font-weight: 600; }
.coldform form { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.coldform .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ============================================================
   FORM FIELDS (shared)
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 7px; text-align: left; }
.field label { font-size: 13px; font-weight: 600; color: var(--navy-700); }
/* spam honeypot: kept out of sight, tab order, and the a11y tree */
.hp-wrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field label .req { color: #e0492f; margin-left: 3px; font-size: 1.25em; font-weight: 700; line-height: 0; vertical-align: middle; }
.field label .opt { color: var(--ink-mute); font-weight: 500; margin-left: 4px; }
.field input, .field textarea, .field select { font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 11px; padding: 13px 15px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); width: 100%; }
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: #9fb2c1; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(31,159,184,.14); }
.field .help { font-size: 12.5px; color: var(--ink-mute); }
.field.err input, .field.err textarea, .field.err select { border-color: #e05656; background: #fef6f6; box-shadow: 0 0 0 4px rgba(224,86,86,.10); }
.field .errmsg { display: none; font-size: 12.5px; color: #d64545; font-weight: 600; align-items: center; gap: 6px; }
.field.err .errmsg { display: flex; }

/* optional pill selector (single-select) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink-soft); background: var(--ground); border: 1.5px solid var(--line-2); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.pill:hover { border-color: var(--teal); color: var(--teal); }
.pill:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(31,159,184,.18); }
.pill[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.field--pills label { color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .pill { transition: none; } }

/* ============================================================
   MULTI-STEP FORM (stepper)
   ============================================================ */
.stepper__head { margin-bottom: 24px; }
.stepper__count { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.stepper__count b { color: var(--teal); font-weight: 700; }
.stepper__bar { margin-top: 10px; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.stepper__bar i { display: block; height: 100%; width: 33.33%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--cyan)); transition: width .5s var(--ease); }
@media (prefers-reduced-motion: reduce) { .stepper__bar i { transition: none; } }

.fstep { display: none; flex-direction: column; gap: 16px; }
.fstep.is-active { display: flex; }
.fstep__title { font-size: 19px; font-weight: 700; color: var(--navy-900); letter-spacing: -.01em; line-height: 1.25; }
/* keep the two-up controls on one line even when one label wraps to 2 lines */
.fstep .field-row { align-items: end; }
/* labels: balance wrapping so a single word never orphans on its own line */
.fstep .field label { text-wrap: balance; }
@media (prefers-reduced-motion: no-preference) {
  .fstep.is-active { animation: fstepIn .42s var(--ease); }
}
@keyframes fstepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

.fstep__nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.fstep__nav .step-back { margin-right: auto; }
.fstep__nav .btn--cta { min-width: 132px; justify-content: center; }
.step-back { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink-soft); background: none; border: none; cursor: pointer; padding: 8px 2px; transition: color .2s var(--ease); }
.step-back:hover { color: var(--navy-700); }
.step-skip { font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink-mute); background: none; border: none; cursor: pointer; padding: 8px 12px; border-radius: 999px; transition: color .2s var(--ease), background .2s var(--ease); }
.step-skip:hover { color: var(--teal); background: rgba(31,159,184,.08); }
.step-back:focus-visible, .step-skip:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(31,159,184,.18); border-radius: 8px; }

/* trust line inside step 3 */
.fstep__trust { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--ink-mute); line-height: 1.45; }
.fstep__trust svg { width: 16px; height: 16px; color: var(--teal); flex: none; margin-top: 1px; }

/* optional qualification group - set apart, visually lighter than required fields */
.qual { margin-top: 4px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.qual__head h4 { font-size: 14px; font-weight: 700; color: var(--navy-700); letter-spacing: -.01em; }
.qual__head h4 .opt { color: var(--ink-mute); font-weight: 500; margin-left: 6px; }
.qual__head p { margin-top: 4px; font-size: 12.5px; color: var(--ink-mute); line-height: 1.5; }
.qual .field label { color: var(--ink-soft); font-weight: 600; }
/* custom brand dropdown (replaces native select) */
.selectx { position: relative; }
.selectx__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 11px; padding: 13px 15px; cursor: pointer; text-align: left; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.selectx__btn:hover { border-color: #bcd2e0; }
.selectx.open .selectx__btn, .selectx__btn:focus-visible { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(31,159,184,.14); }
.selectx__val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selectx__val.is-placeholder { color: #9fb2c1; }
.selectx__chev { flex: none; color: var(--ink-mute); transition: transform .25s var(--ease); }
.selectx.open .selectx__chev { transform: rotate(180deg); }
.selectx__list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(10,35,54,.32); padding: 6px; margin: 0; list-style: none; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s var(--ease), transform .18s var(--ease); }
.selectx.open .selectx__list { opacity: 1; transform: none; pointer-events: auto; }
.selectx__opt { padding: 11px 12px; border-radius: 8px; font-size: 14.5px; color: var(--navy-700); cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: background .15s var(--ease), color .15s var(--ease); }
.selectx__opt:hover, .selectx__opt.is-active { background: rgba(31,159,184,.10); color: var(--navy-900); }
.selectx__opt.is-selected { color: var(--teal); font-weight: 600; }
.selectx__opt.is-selected::after { content: ""; width: 15px; height: 15px; flex: none; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%231f9fb8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
.modal .selectx__btn { padding: 10px 14px; }
@media (prefers-reduced-motion: reduce) { .selectx__list, .selectx__chev, .selectx__opt { transition: none; } }

/* dark variant (cold form on navy) */
.coldform .field label { color: rgba(255,255,255,.86); }
.coldform .field input { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: #fff; }
.coldform .field input::placeholder { color: rgba(255,255,255,.45); }
.coldform .field input:focus { border-color: var(--cyan); background: rgba(255,255,255,.12); box-shadow: 0 0 0 4px rgba(54,181,204,.20); }
.coldform .field.err input { border-color: #ff8a8a; background: rgba(255,90,90,.10); }
.coldform .field .errmsg { color: #ffb4b4; }
.coldform .field label .opt { color: rgba(255,255,255,.5); }

/* inline form success */
.form-success { display: none; flex-direction: column; align-items: flex-start; gap: 12px; }
.form-success.show { display: flex; }
.form-success .check { width: 52px; height: 52px; border-radius: 50%; background: rgba(31,159,184,.14); display: flex; align-items: center; justify-content: center; color: var(--teal); }
.coldform .form-success .check { background: rgba(54,181,204,.18); color: var(--cyan); }
.form-success h4 { font-size: 20px; font-weight: 700; color: var(--navy-900); }
.form-success p { color: var(--ink-soft); font-size: 15px; }
.coldform .form-success h4 { color: #fff; }
.coldform .form-success p { color: rgba(255,255,255,.74); }

/* Submission error line, shown only when a send to the Function fails. */
.form-err { display: none; margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: rgba(214,69,69,.08); border: 1px solid rgba(214,69,69,.3); font-size: 13px; font-weight: 600; line-height: 1.4; color: #d64545; }
.form-err.show { display: block; }
.coldform .form-err { background: rgba(255,180,180,.1); border-color: rgba(255,180,180,.34); color: #ffb4b4; }

/* ============================================================
   TESTIMONIAL / KLAS QUOTE
   ============================================================ */
.quote-sec { background: var(--navy-900); color: #fff; overflow: hidden; }
.quote-sec .wrap { position: relative; z-index: 1; }
.quote-bg { position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none; }
.quote-bg .b { position: absolute; border-radius: 50%; filter: blur(80px); }
.quote-bg .b1 { width: 500px; height: 500px; left: -120px; bottom: -160px; background: radial-gradient(circle, rgba(31,159,184,.4), transparent 65%); }
.quote-bg .b2 { width: 460px; height: 460px; right: -100px; top: -160px; background: radial-gradient(circle, rgba(29,79,120,.55), transparent 65%); }
.qcard { max-width: 920px; margin: 0 auto; text-align: center; }
.qmark { font-size: 120px; line-height: .6; font-weight: 700; color: var(--cyan); height: 60px; }
.qcard blockquote { font-size: clamp(22px, 2.7vw, 34px); font-weight: 600; line-height: 1.34; letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.qcard blockquote em { color: var(--cyan); font-style: normal; }
.qattr { margin-top: 30px; display: inline-flex; align-items: center; gap: 16px; text-align: left; }
.qattr__txt { display: flex; flex-direction: column; gap: 4px; }
.qattr .who { font-size: 15px; font-weight: 700; color: #fff; }
.qattr .src { font-size: 13.5px; color: rgba(255,255,255,.6); font-weight: 500; }
.qface { flex: none; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--cyan), 0 0 0 6px rgba(54,181,204,.18); }
.qface--klas { width: auto; height: auto; border-radius: 14px; background: #fff; padding: 13px 16px; display: flex; align-items: center; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 10px 24px -10px rgba(0,0,0,.5); }
.qface--klas img { height: 30px; width: auto; display: block; }

/* ---- duotone treatment for user-dropped imagery ---- */
.duo { position: relative; display: inline-block; line-height: 0; }
.duo image-slot { display: block; filter: grayscale(1) contrast(1.04); }
.duo::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; mix-blend-mode: soft-light; opacity: .55; background: linear-gradient(150deg, var(--navy-900), var(--teal)); }

/* ============================================================
   HERO TRUST MARQUEE (scrolling fake logos)
   ============================================================ */
.hero-trust { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 92px auto 0; padding: 8px 32px 0; }
.hero-trust__label { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); opacity: .7; }
.marquee { margin-top: 20px; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__track { display: flex; width: max-content; animation: heroMarquee 64s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; }
.flogo { display: inline-flex; align-items: center; margin-right: 92px; white-space: nowrap; }
.flogo img { height: 56px; width: auto; display: block; object-fit: contain;
  filter: grayscale(1); opacity: .62; transition: filter .3s var(--ease), opacity .3s var(--ease); }
.flogo img:hover { filter: grayscale(0); opacity: 1; }
.flogo__mark { width: 26px; height: 26px; border-radius: 7px; flex: none; opacity: .85; }
.flogo__mark--circle { border-radius: 50%; }
@keyframes heroMarquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
/* trust-band logos run oversized on small phones; scale them down so they fit
   the viewport and stay proportionate. Desktop sizing (56px) is unchanged. */
@media (max-width: 480px) {
  .flogo img { height: 36px; }
  .flogo { margin-right: 52px; }
}
.qscores { margin-top: 34px; display: inline-flex; gap: 14px; }
.qscore { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 14px 22px; display: flex; flex-direction: column; gap: 2px; }
.qscore b { font-size: 26px; font-weight: 700; color: var(--cyan); letter-spacing: -.02em; }
.qscore span { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 600; }

/* ============================================================
   CASE STUDY
   ============================================================ */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: stretch; }
.section-head + .case { margin-top: 64px; }
.case > .case__copy { align-self: center; }
.case__num { font-size: clamp(60px, 9vw, 124px); font-weight: 700; letter-spacing: -.04em; line-height: .9; color: var(--navy-900); }
.case__num .pre { color: var(--orange); }
.case__tag { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.case h2 { font-size: 22px; font-weight: 700; color: var(--navy-900); margin-top: 20px; letter-spacing: -.01em; }
.case p { font-size: 16.5px; color: var(--ink-soft); margin-top: 14px; max-width: 46ch; }
.case__partners { margin-top: 26px; display: flex; align-items: center; gap: 18px; }
.case__partners .p { font-weight: 700; color: var(--navy-700); font-size: 16px; }
.case__partners .x { color: var(--ink-mute); font-weight: 500; }

/* case study PDF link */
.case__pdf { display: inline-block; margin-top: 20px; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--teal); transition: color .2s var(--ease); }
.case__pdf-txt { border-bottom: 1.5px solid rgba(31,159,184,.35); padding-bottom: 2px; transition: border-color .2s var(--ease); }
.case__pdf-txt i { font-style: italic; }
.case__pdf svg { flex: none; vertical-align: -2px; margin-left: 6px; transition: transform .25s var(--ease); }
.case__pdf:hover { color: var(--navy-500); }
.case__pdf:hover .case__pdf-txt { border-color: var(--navy-500); }
.case__pdf:hover svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .case__pdf, .case__pdf svg { transition: none; } .case__pdf:hover svg { transform: none; } }

/* resources sub-section (secondary to the case study) */
.resources { margin-top: 34px; }
.resources__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.resources__col { min-width: 0; }
.resources__coltitle { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-700); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.resources__list { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.resource { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.resource:hover { border-color: rgba(31,159,184,.35); box-shadow: var(--shadow-1); }
.resource__name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--navy-700); line-height: 1.4; }
.resource__actions { flex: none; display: inline-flex; align-items: center; gap: 8px; }
.resource__action { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--teal); padding: 6px 11px; border: 1px solid rgba(31,159,184,.32); border-radius: 999px; white-space: nowrap; transition: background .2s var(--ease), border-color .2s var(--ease); }
.resource__action svg { width: 13px; height: 13px; flex: none; }
.resource__action:hover { background: rgba(31,159,184,.08); border-color: var(--teal); }
@media (prefers-reduced-motion: reduce) { .resource { transition: none; } }
@media (max-width: 720px) { .resources__cols { grid-template-columns: 1fr; gap: 22px; } }
@media (max-width: 460px) {
  .resource { flex-direction: column; align-items: flex-start; gap: 10px; }
  .resource__actions { width: 100%; }
}
.case__visual { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-2); }
@media (max-width: 1000px) { .case__visual { aspect-ratio: 4/3.4; } }

/* striped placeholder */
.ph { position: relative; width: 100%; height: 100%; background:
  repeating-linear-gradient(135deg, var(--ground) 0 14px, var(--ground-2) 14px 28px);
  display: flex; align-items: center; justify-content: center; }
.ph__label { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--ink-mute); background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 12px; letter-spacing: .02em; }

/* mini bar viz inside case visual */
.viz { position: absolute; inset: 0; padding: 30px; display: flex; flex-direction: column; }
.viz__top { display: flex; align-items: center; justify-content: space-between; }
.viz__chip { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); background: rgba(31,159,184,.10); padding: 6px 11px; border-radius: 999px; }
.viz__dots { display: flex; gap: 6px; }
.viz__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.viz__bars { margin-top: auto; display: flex; align-items: flex-end; gap: 14px; height: 62%; }
.viz__bars .bar { flex: 1; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, var(--cyan), var(--teal)); position: relative; transition: height .9s var(--ease); }
.viz__bars .bar.muted { background: var(--line); }
.viz__bars .bar b { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--navy-700); }
.viz__base { margin-top: 6px; height: 1px; background: var(--line-2); }

/* ============================================================
   FAQ - accordion
   ============================================================ */
.faq { max-width: 820px; margin: 50px auto 0; display: flex; flex-direction: column; gap: 14px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.faq__item.is-open { border-color: rgba(31,159,184,.4); box-shadow: var(--shadow-1); }
.faq__q { margin: 0; }
.faq__btn { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; text-align: left; padding: 22px 26px; font-family: inherit; font-size: 17px; font-weight: 600; color: var(--navy-900); letter-spacing: -.01em; line-height: 1.4; cursor: pointer; background: none; transition: color .2s var(--ease); }
.faq__btn:hover { color: var(--teal); }
.faq__btn:focus-visible { outline: 2px solid var(--teal); outline-offset: -3px; border-radius: var(--radius-sm); }
.faq__icon { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: border-color .25s var(--ease), background .25s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 2px; background: var(--navy-700); border-radius: 2px; transform: translate(-50%,-50%); transition: transform .3s var(--ease), background .25s var(--ease); }
.faq__icon::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq__btn:hover .faq__icon { border-color: var(--teal); }
.faq__item.is-open .faq__icon { background: var(--teal); border-color: var(--teal); }
.faq__item.is-open .faq__icon::before, .faq__item.is-open .faq__icon::after { background: #fff; }
.faq__item.is-open .faq__icon::after { transform: translate(-50%,-50%) rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; }
.faq__a-inner p { padding: 0 26px 24px; margin: 0; font-size: 15.5px; line-height: 1.62; color: var(--ink-soft); max-width: 70ch; }
.faq__a-list { padding: 0 26px 24px 46px; margin: 0; font-size: 15.5px; line-height: 1.62; color: var(--ink-soft); max-width: 70ch; }
.faq__a-list li { margin: 0 0 8px; }
.faq__a-list li:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .faq__a { transition: none; }
  .faq__icon::before, .faq__icon::after { transition: none; }
}
@media (max-width: 720px) {
  .faq__btn { font-size: 16px; padding: 18px 20px; }
  .faq__a-inner p { padding: 0 20px 20px; }
  .faq__a-list { padding: 0 20px 20px 40px; }
}

/* ============================================================
   MID-PAGE CTA - "every second counts" (futuristic stopwatch)
   ============================================================ */
.cta-banner { position: relative; padding: 80px 0; }
.cta-card { position: relative; overflow: hidden; border-radius: 24px; padding: 44px 64px;
  display: grid; grid-template-columns: auto auto; justify-content: center; gap: 56px; align-items: center;
  box-shadow: var(--shadow-2);
  background:
    radial-gradient(115% 120% at 88% 16%, rgba(54,181,204,.26), rgba(54,181,204,0) 52%),
    radial-gradient(110% 120% at 6% 96%, rgba(232,130,30,.12), rgba(232,130,30,0) 50%),
    linear-gradient(135deg, #0d465c 0%, #0a3650 48%, #07273d 100%); }
.cta-card::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(120,205,225,.10) 0 1.5px, transparent 1.5px 15px);
  -webkit-mask: linear-gradient(315deg, #000 0%, rgba(0,0,0,.45) 45%, transparent 78%);
          mask: linear-gradient(315deg, #000 0%, rgba(0,0,0,.45) 45%, transparent 78%); }
.squiggly-defs { position: absolute; width: 0; height: 0; }

.cta-banner__grid { position: relative; z-index: 1; }
.cta-banner__copy { text-align: left; position: relative; z-index: 1; }
.cta-banner__eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.cta-banner__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(232,130,30,.22); animation: ctabBlink 1.8s ease-in-out infinite; }
@keyframes ctabBlink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.cta-banner__title { color: #fff; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-size: clamp(27px, 2.7vw, 40px); max-width: 24ch; margin: 16px 0 0; }
.cta-banner__sub { color: rgba(255,255,255,.78); font-weight: 400; font-size: clamp(16px, 1.5vw, 19px); max-width: 46ch; margin: 20px 0 0; }
.cta-banner__cta { margin-top: 34px; display: flex; }

/* the single deliberate wiggle word */
.squiggly { display: inline-block; color: var(--orange); filter: url(#sq0); animation: squiggle 1.1s steps(1, end) infinite; }
@keyframes squiggle {
  0%   { filter: url(#sq0); }
  25%  { filter: url(#sq1); }
  50%  { filter: url(#sq2); }
  75%  { filter: url(#sq3); }
  100% { filter: url(#sq0); }
}

/* ---- stopwatch visual ---- */
.cta-banner__viz { display: flex; justify-content: center; position: relative; z-index: 1; }
.stopwatch { width: 300px; max-width: 100%; height: auto; overflow: visible; display: block; }
.sw-halo { transform-box: view-box; transform-origin: 180px 250px; opacity: .8; }
.sw-fill { stroke-dashoffset: 100; animation: swFill 24s linear infinite; }
@keyframes swFill {
  0% { stroke-dashoffset: 100; opacity: .25; }
  8% { opacity: 1; }
  64%, 94% { stroke-dashoffset: 0; opacity: 1; }
  99% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 100; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .squiggly { animation: none; filter: none; }
  .sw-fill { animation: none; stroke-dashoffset: 36; }
  .cta-banner__eyebrow .dot { animation: none; }
}

@media (max-width: 860px) {
  .cta-card { grid-template-columns: 1fr; gap: 18px; text-align: center; padding: 38px 28px; }
  .cta-banner__copy { text-align: center; }
  .cta-banner__title, .cta-banner__sub { margin-left: auto; margin-right: auto; }
  .cta-banner__cta { justify-content: center; }
  .cta-banner__viz { order: -1; }
  .stopwatch { width: 260px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; overflow: hidden; color: rgba(255,255,255,.7);
  background: linear-gradient(180deg, #0a2336 0%, #08233a 24%, #061a29 70%);
  padding: 80px 0 20px; }
/* giant full-bleed brand wordmark, chopped off at the bottom edge of the page */
.footer__wordmark { width: 100%; overflow: hidden; line-height: 0; margin-top: 60px; aspect-ratio: 937 / 163; }
.footer__wordmark span { display: block; width: 100%; aspect-ratio: 937 / 163;
  background: rgba(255,255,255,.02);
  -webkit-mask: url("../einsights-mask.png") top center / 100% auto no-repeat;
  mask: url("../einsights-mask.png") top center / 100% auto no-repeat; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .logo { color: #fff; }
.footer__blurb { margin-top: 18px; font-size: 14.5px; max-width: 34ch; color: rgba(255,255,255,.6); }
.footer__col h5 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }

/* back-to-top sticky button */
.to-top { position: fixed; right: 28px; bottom: 28px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; background: var(--navy-900); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 28px -8px rgba(10,35,54,.5); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s var(--ease), background .2s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange); transform: translateY(-3px); box-shadow: 0 16px 32px -8px rgba(232,130,30,.5); }
.to-top:active { transform: translateY(0); }
.to-top svg { width: 22px; height: 22px; }
.to-top:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(31,159,184,.35); }
@media (max-width: 720px) { .to-top { right: 18px; bottom: 18px; width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .3s, visibility .3s; } .to-top:hover, .to-top:active { transform: none; } }
.footer__col a { display: block; margin-top: 12px; font-size: 14.5px; color: rgba(255,255,255,.7); transition: color .2s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__badges { margin-top: 38px; display: flex; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.82); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 9px 14px; }
.badge .shield { width: 16px; height: 16px; color: var(--cyan); }
.footer__bar { margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.10); display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.5); }
.footer__bar .legal { display: flex; gap: 22px; }
.footer__bar a { color: rgba(255,255,255,.78); transition: color .2s var(--ease); }
.footer__bar a:hover { color: var(--teal); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-root { position: fixed; inset: 0; z-index: 200; display: none; }
.modal-root.open { display: block; }
.modal-overlay { position: absolute; inset: 0; background: rgba(6,20,32,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s var(--ease); }
.modal-root.open .modal-overlay { opacity: 1; }
.modal { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.97); width: min(560px, calc(100vw - 40px)); max-height: calc(100vh - 48px); overflow-y: auto; background: #fff; border-radius: 22px; box-shadow: 0 40px 90px -30px rgba(6,20,32,.6); opacity: 0; transition: opacity .35s var(--ease), transform .4s var(--ease); }
.modal-root.open .modal { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.modal__head { padding: 24px 34px 0; position: relative; }
.modal__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.modal__head h3 { margin-top: 10px; font-size: 25px; font-weight: 700; color: var(--navy-900); letter-spacing: -.02em; line-height: 1.15; }
.modal__head p { margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); }
.modal__close { position: absolute; top: 22px; right: 22px; width: 40px; height: 40px; border-radius: 50%; background: var(--ground); display: flex; align-items: center; justify-content: center; color: var(--navy-700); transition: background .2s var(--ease), transform .2s var(--ease); }
.modal__close:hover { background: var(--line); transform: rotate(90deg); }
.modal__body { padding: 16px 34px 26px; }
.modal form { display: flex; flex-direction: column; gap: 12px; }
.modal .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal .field input, .modal .field textarea { padding: 10px 14px; }
.modal .field textarea { min-height: 58px; }
.modal__trust { margin-top: 4px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-mute); }
.modal__trust svg { width: 15px; height: 15px; color: var(--teal); flex: none; }
.modal__submit { margin-top: 4px; align-self: flex-start; }

/* modal success */
.modal__success { display: none; padding: 50px 40px 46px; text-align: center; flex-direction: column; align-items: center; }
.modal__success.show { display: flex; }
.modal__success .ring { width: 84px; height: 84px; border-radius: 50%; background: rgba(31,159,184,.12); display: flex; align-items: center; justify-content: center; color: var(--teal); margin-bottom: 8px; }
.modal__success .ring svg { width: 42px; height: 42px; }
.success-pop { animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.modal__success h3 { margin-top: 16px; font-size: 26px; font-weight: 700; color: var(--navy-900); letter-spacing: -.02em; }
.modal__success p { margin-top: 12px; font-size: 16px; color: var(--ink-soft); max-width: 36ch; }
.modal__success .meta { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-mute); background: var(--ground); border-radius: 999px; padding: 9px 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .nav__phone { display: none; }
  .nav__links { gap: 26px; }
}

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .ocard.span2 { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .coldform { grid-template-columns: 1fr; gap: 30px; padding: 38px 34px; }
  .case { grid-template-columns: 1fr; gap: 40px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 880px) {
  .wrap { padding: 0 20px; }
  .nav__links, .nav__phone { display: none; }  .burger { display: flex; }
  .nav__panel { display: flex; }
  .hero { padding: 96px 0 56px; }
  .section { padding: 60px 0; }
  .bento { grid-template-columns: 1fr; }
  .ocard.span2 { grid-column: span 1; }
  .hero__klas { flex-wrap: wrap; }
  .modal .field-row { grid-template-columns: 1fr; }
  .coldform .field-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; gap: 14px; text-align: center; }
  .qscores { flex-wrap: wrap; justify-content: center; }
  .case__partners { flex-wrap: wrap; }
  .cta-banner { padding: 60px 0; }

  /* tap/press feedback on mobile */
  .ocard:active, .step:active { transform: scale(.985); }
  .btn--cta:active { transform: scale(.97); }
}

/* phones: the bar CTA doesn't fit beside the logo + burger; the menu panel carries the CTA */
@media (max-width: 640px) {
  .nav__right .btn--cta { display: none; }
  .nav__right { gap: 10px; }
}

/* nav mobile panel (always rendered; hidden via opacity/pointer-events so the slide transition works) */
.nav__panel { display: flex; position: fixed; inset: 70px 0 auto 0; background: rgba(255,255,255,.98); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); padding: 18px 20px 26px; flex-direction: column; align-items: stretch; gap: 2px; transform: translateY(-14px); opacity: 0; pointer-events: none; transition: transform .32s var(--ease), opacity .32s var(--ease); z-index: 99; }
.nav__panel.open { transform: none; opacity: 1; pointer-events: auto; }
.nav__panel a { padding: 15px 8px; font-size: 17px; font-weight: 600; color: var(--navy-900); border-bottom: 1px solid var(--line); }
.nav__panel a:last-of-type { border-bottom: none; }
.nav__panel .btn { margin-top: 14px; justify-content: center; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page { background: var(--ground); }
.contact-hero { position: relative; padding: 140px 0 96px; overflow: hidden; }
.contact-hero .wrap { position: relative; z-index: 2; }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }

/* left - primary hot path */
.contact-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 40px 40px 36px; }
.contact-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.contact-main h1 { margin-top: 14px; font-size: clamp(30px, 3.5vw, 46px); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; color: var(--navy-900); text-wrap: balance; }
.contact-main .lede { margin-top: 16px; font-size: 17px; color: var(--ink-soft); max-width: 52ch; }
.contact-main .lede b { color: var(--navy-900); font-weight: 700; }
.contact-form { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-trust { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-mute); }
.contact-trust svg { width: 15px; height: 15px; color: var(--teal); flex: none; }

/* inline success (replaces form) */
.contact-success { display: none; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 0 6px; }
.contact-success.show { display: flex; }
.contact-success .ring { width: 70px; height: 70px; border-radius: 50%; background: rgba(31,159,184,.12); display: flex; align-items: center; justify-content: center; color: var(--teal); }
.contact-success .ring svg { width: 34px; height: 34px; }
.contact-success h2 { font-size: 24px; font-weight: 700; color: var(--navy-900); letter-spacing: -.02em; }
.contact-success p { font-size: 16px; color: var(--ink-soft); max-width: 42ch; }
.contact-success .meta { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-mute); background: var(--ground); border-radius: 999px; padding: 9px 16px; }
.contact-success .meta svg { width: 14px; height: 14px; }

/* right - direct contact + soft option */
.contact-aside { display: flex; flex-direction: column; gap: 22px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 30px 30px 28px; }
.contact-card h2 { font-size: 19px; font-weight: 700; color: var(--navy-900); letter-spacing: -.01em; }
.contact-channels { margin-top: 22px; display: flex; flex-direction: column; gap: 18px; }
.contact-channel { display: flex; align-items: center; gap: 14px; }
.contact-channel__ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--ground); display: flex; align-items: center; justify-content: center; color: var(--teal); }
.contact-channel__ico svg { width: 21px; height: 21px; }
.contact-channel__lab { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.contact-channel a { display: block; font-size: 18px; font-weight: 600; color: var(--navy-900); letter-spacing: -.01em; transition: color .2s var(--ease); }
.contact-channel a:hover { color: var(--teal); }
.contact-card .respond { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; gap: 9px; }
.contact-card .respond .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(31,159,184,.16); flex: none; }

.contact-soft { background: linear-gradient(140deg, var(--navy-900), var(--navy-700)); border-radius: var(--radius); padding: 28px 30px; color: #fff; }
.contact-soft h3 { font-size: 17px; font-weight: 700; }
.contact-soft p { margin-top: 8px; font-size: 14.5px; color: rgba(255,255,255,.74); }
.contact-soft .linkdown { margin-top: 16px; color: var(--cyan); }
.contact-soft .linkdown:hover { color: #fff; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid > * { min-width: 0; }
  .contact-main { padding: 32px 26px 30px; }
  .contact-form .field-row { grid-template-columns: 1fr; }
}

/* contact page phone polish */
@media (max-width: 640px) {
  .contact-hero { padding: 92px 0 56px; }
  .contact-main { padding: 26px 20px 26px; }
  .contact-main h1 { font-size: 27px; }
  .contact-main .lede { font-size: 15.5px; }
  .contact-card { padding: 24px 20px 22px; }
  .contact-channel a { font-size: 15.5px; overflow-wrap: anywhere; }
  .contact-soft { padding: 24px 20px; }
}

/* ============================================================
   PHONE polish (after all other media blocks so it wins)
   ============================================================ */
@media (max-width: 640px) {
  /* smaller CTA buttons */
  .btn--cta { padding: 10px 18px; font-size: 13.5px; }
  .hero--v2 .hero-v2__cta .btn--cta { font-size: 14px; padding: 12px 22px; }
  .btn--cta-sm { padding: 8px 14px; font-size: 12.5px; }

  /* close the gap between the FAQ section and the CTA banner below it */
  #faq.section { padding-bottom: 32px; }
  .cta-banner { padding: 16px 0 64px; }

  /* testimonial score chips: one line */
  .qscores { display: flex; flex-wrap: nowrap; gap: 8px; width: 100%; justify-content: center; margin-top: 26px; }
  .qscore { flex: 1; min-width: 0; padding: 10px 8px; border-radius: 11px; align-items: center; text-align: center; }
  .qscore b { font-size: 19px; }
  .qscore span { font-size: 9.5px; letter-spacing: .05em; white-space: nowrap; }
}
