/* ============================================================
   Blaze ABA — Prototype
   Brand system from Figma style tile:
   Primary Blue #1D4ED8 · Accent Green #22C55E · Dark #0F172A
   Light BG #F1F5F9 · Teal #14B8A6 · Lavender #A78BFA
   H1 Sora · H2/H3/Body Inter · Radius 16 · Soft shadows
   ============================================================ */

:root {
  --blue: #1D4ED8;
  --blue-hover: #1E40AF;
  --blue-pressed: #1E3A8A;
  --focus-ring: #93C5FD;
  --green: #22C55E;
  --teal: #14B8A6;
  --lavender: #A78BFA;
  --dark: #0F172A;
  --light: #F1F5F9;
  --white: #FFFFFF;
  --stroke: #E2E8F0;
  --muted: #475569;
  --radius: 16px;
  --shadow: 1px 6px 18px 2px rgba(0, 0, 0, 0.08);
  --shadow-lift: 2px 12px 32px 4px rgba(15, 23, 42, 0.14);
  --font-head: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; }
p { font-size: 1rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
.center { text-align: center; margin-top: 48px; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3); }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(29, 78, 216, 0.38); }
.btn-primary:active { background: var(--blue-pressed); transform: translateY(0); }

.btn-ghost { background: var(--white); color: var(--blue); border-color: var(--stroke); }
.btn-ghost:hover { border-color: var(--blue); transform: translateY(-2px); }

.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15, 23, 42, 0.25); }

.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.btn-outline-white:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  transition: transform 0.35s ease;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { height: 44px; display: block; }
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.93rem;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--blue); }
.header-ctas { display: flex; gap: 10px; }
.header-ctas .btn { padding: 9px 18px; font-size: 0.88rem; }

/* ---------------- Hero ---------------- */
.hero-wrap {
  /* carries the hero background so GSAP's pin-spacer never shows raw white
     when scrolling back up through the pinned zone */
  background: linear-gradient(160deg, #FFFFFF 0%, #F1F5F9 45%, #E8F1FB 100%);
}
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #FFFFFF 0%, #F1F5F9 45%, #E8F1FB 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 620px at 78% 42%, rgba(29, 78, 216, 0.10), transparent 65%),
    radial-gradient(480px 480px at 88% 70%, rgba(34, 197, 94, 0.10), transparent 65%),
    radial-gradient(420px 420px at 65% 20%, rgba(167, 139, 250, 0.10), transparent 65%);
  pointer-events: none;
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 24px 60px;
  pointer-events: none;
}
.hero-text { max-width: 560px; pointer-events: auto; }
.hero-sub { font-size: 1.18rem; color: var(--muted); margin: 20px 0 30px; max-width: 460px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-chips {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-chips li {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--dark);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--stroke);
  padding: 7px 14px;
  border-radius: 999px;
}

.hero-phase2 {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: left;
  opacity: 0;
  pointer-events: none;
}
.hero-phase2 h2, .hero-phase2 p { max-width: 540px; }
.hero-phase2 h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; }
.hero-phase2 h2 br + span { color: var(--blue); }
.hero-phase2 p { color: var(--muted); margin-top: 14px; font-size: 1.1rem; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.scroll-cue-line {
  width: 2px;
  height: 36px;
  background: var(--stroke);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 14px;
  background: var(--blue);
  border-radius: 2px;
  animation: cueDrop 1.6s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { transform: translateY(-14px); }
  70%, 100% { transform: translateY(36px); }
}

/* ---------------- Trust bar ---------------- */
.trust-bar { padding: 36px 0; background: var(--white); border-bottom: 1px solid var(--stroke); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.94rem;
  justify-content: center;
}
.trust-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}
.ti-blue { background: var(--blue); }
.ti-green { background: var(--green); }
.ti-teal { background: var(--teal); }
.ti-lavender { background: var(--lavender); }

/* ---------------- Sections ---------------- */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

/* ---------------- Cards / Services ---------------- */
.card {
  background: var(--white);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.services { background: var(--light); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}
.service-card { padding: 32px; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.service-card h3 { margin: 18px 0 10px; }
.service-card p { color: var(--muted); font-size: 0.95rem; }
.service-icon, .mini-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
}
.si-blue { background: linear-gradient(135deg, var(--blue), #3B82F6); }
.si-green { background: linear-gradient(135deg, var(--green), #4ADE80); }
.si-teal { background: linear-gradient(135deg, var(--teal), #2DD4BF); }
.si-lavender { background: linear-gradient(135deg, var(--lavender), #C4B5FD); }

/* ---------------- How it works ---------------- */
.steps-wrap { position: relative; max-width: 1040px; margin: 0 auto; }
.steps-line {
  position: absolute;
  top: 26px; left: 12%; right: 12%;
  height: 3px;
  background: var(--stroke);
  border-radius: 3px;
  overflow: hidden;
}
.steps-line-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--green));
  border-radius: 3px;
  transform-origin: left center;
  transform: scaleX(0);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.step { text-align: center; padding: 0 8px; }
.step-num {
  width: 52px; height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue);
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* ---------------- Photo band ---------------- */
.photo-band { padding: 0 0 96px; }
.photo-band-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.photo-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  margin: 0;
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 360px;
}
.photo-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 80px 32px 28px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.78), transparent);
}
.photo-card blockquote {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.4;
  max-width: 560px;
  border: none;
}

/* ---------------- Why Blaze ---------------- */
.why-blaze { background: var(--light); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.why-left h2 { margin-bottom: 16px; }
.why-left > p { color: var(--muted); margin-bottom: 24px; }
.checklist { list-style: none; margin-bottom: 32px; }
.checklist li {
  padding-left: 34px;
  position: relative;
  margin-bottom: 12px;
  font-weight: 500;
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-right { display: flex; flex-direction: column; gap: 18px; }
.mini-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  align-items: flex-start;
}
.mini-card:hover { transform: translateX(6px); box-shadow: var(--shadow-lift); }
.mini-icon { width: 46px; height: 46px; font-size: 1.15rem; flex-shrink: 0; }
.mini-card h3 { font-size: 1rem; margin-bottom: 6px; }
.mini-card p { color: var(--muted); font-size: 0.9rem; }

/* ---------------- Insurance ---------------- */
.insurance { padding-bottom: 64px; }
.insurance-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  padding: 36px 24px;
  background: var(--white);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 920px;
  margin: 0 auto;
}
.ins-logo {
  height: 38px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.25s ease, transform 0.25s ease;
}
.ins-logo-aetna { height: 30px; }
.ins-logo:hover { filter: grayscale(0) opacity(1); transform: translateY(-2px); }

/* ---------------- FAQ ---------------- */
.faq { background: var(--light); }
.faq-list details {
  background: var(--white);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-list summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--blue); }
.faq-plus {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--blue);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-list details[open] .faq-plus { transform: rotate(45deg); }
.faq-list details p {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------------- CTA ---------------- */
.cta-section { padding-top: 64px; }
.cta-panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 80px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--blue) 0%, #2563EB 45%, var(--teal) 100%);
  color: var(--white);
  box-shadow: var(--shadow-lift);
}
.cta-panel h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; position: relative; }
.cta-panel > p { max-width: 520px; margin: 0 auto 32px; opacity: 0.92; position: relative; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* split CTA: copy left, intake form right */
.cta-panel-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
  padding: 56px;
}
.cta-panel-split h2 { margin-bottom: 14px; }
.cta-panel-split .cta-copy > p { margin: 0 0 26px; max-width: 440px; }
.cta-panel-split .cta-buttons { justify-content: flex-start; margin-bottom: 28px; }
.cta-points { list-style: none; position: relative; }
.cta-points li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  font-size: 0.93rem;
  opacity: 0.95;
}
.cta-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: #BBF7D0;
}

/* ---------------- Intake form ---------------- */
.intake-form {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-lift);
  color: var(--dark);
  min-width: 0; /* allow the card to shrink inside the CTA grid */
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; margin-bottom: 14px; min-width: 0; }
.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  border: 1.5px solid var(--stroke);
  border-radius: 10px;
  padding: 11px 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  min-width: 0; /* inputs/selects refuse to shrink in grids without this */
  box-sizing: border-box;
}
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.5);
}
.form-submit { width: 100%; margin-top: 4px; }
.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}

.cta-blocks { position: absolute; inset: 0; pointer-events: none; }
.cta-blocks span {
  position: absolute;
  width: 34px; height: 34px;
  border-radius: 9px;
  opacity: 0.22;
  animation: floatBlock 7s ease-in-out infinite;
}
.cta-blocks span:nth-child(1) { background: #fff; top: 14%; left: 8%; animation-delay: 0s; }
.cta-blocks span:nth-child(2) { background: var(--green); top: 68%; left: 14%; width: 24px; height: 24px; animation-delay: -1.5s; }
.cta-blocks span:nth-child(3) { background: #fff; top: 22%; right: 10%; width: 44px; height: 44px; animation-delay: -3s; }
.cta-blocks span:nth-child(4) { background: var(--lavender); top: 72%; right: 16%; animation-delay: -4.5s; }
.cta-blocks span:nth-child(5) { background: var(--green); top: 44%; left: 4%; width: 18px; height: 18px; animation-delay: -2.2s; }
.cta-blocks span:nth-child(6) { background: #fff; top: 50%; right: 4%; width: 20px; height: 20px; animation-delay: -5.6s; }
@keyframes floatBlock {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(12deg); }
}

/* ---------------- Footer ---------------- */
.site-footer { background: var(--dark); color: #CBD5E1; padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand img {
  height: 42px;
  background: var(--white);
  border-radius: 10px;
  padding: 6px 12px;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 0.9rem; max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-col a, .footer-col span {
  display: block;
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.82rem;
  color: #64748B;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .cta-panel-split { grid-template-columns: 1fr; padding: 40px 28px; }
  .photo-band-grid { grid-template-columns: 1fr; }
  .photo-tall img { max-height: 420px; }
  .card-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps-line { display: none; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-text { max-width: 100%; }
  #heroCanvas { opacity: 0.5; }
}
@media (max-width: 560px) {
  .card-grid, .trust-grid, .steps-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .header-ctas .btn-ghost { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .intake-form { padding: 20px; }
  .form-field input,
  .form-field select,
  .form-field textarea { font-size: 16px; } /* prevents iOS zoom-on-focus */
}

/* ---------------- Motion preferences ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-cue { display: none; }
}
