/* =====================================================
   MEDICARE TIMELINE — first-impression onboarding section
   Replaces the hero. Calm, premium, modern-fintech feel.
   ===================================================== */

.timeline-section {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft, #f7f9fc) 100%);
  position: relative;
}

/* ---- Header ---- */
.timeline-section .container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.timeline-header { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.timeline-agent-avatar {
  display: flex; justify-content: center; margin-bottom: 20px;
}
.timeline-agent-avatar img {
  width: 72px; height: 72px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.timeline-header h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--c1);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.timeline-header .lede {
  font-size: 20px;
  color: #4b5563;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto;
}

/* ---- Cards grid ---- */
.timeline-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.journey-card {
  appearance: none;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 24px;
  padding: 32px 26px 28px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 248px;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.25s ease,
              box-shadow 0.28s ease;
}
.journey-card:hover {
  transform: translateY(-4px);
  border-color: var(--c2);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.10), 0 8px 16px -4px rgba(0,0,0,0.04);
}
.journey-card:focus-visible {
  outline: 3px solid var(--c2);
  outline-offset: 3px;
}
.journey-card[aria-checked="true"] {
  border-color: var(--c2);
  box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.12),
              0 24px 48px -12px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}
.journey-card[aria-checked="true"]::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  z-index: -1;
  padding: 2px;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}

.journey-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--c2);
  color: var(--on-c2, #fff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.journey-card:hover .journey-icon { transform: scale(1.06) rotate(-3deg); }
.journey-icon svg { width: 28px; height: 28px; stroke-width: 2; }

.journey-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--c1);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.journey-card p {
  font-size: 16px;
  line-height: 1.55;
  color: #4b5563;
  flex: 1;
  margin: 0;
}
.journey-arrow {
  font-size: 22px;
  color: var(--c2);
  margin-top: auto;
  font-weight: 600;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  align-self: flex-start;
}
.journey-card:hover .journey-arrow,
.journey-card[aria-checked="true"] .journey-arrow {
  transform: translateX(6px);
}

/* ---- Empty-state placeholder before any card is selected ---- */
.timeline-placeholder {
  text-align: center;
  padding: 32px 24px 0;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.5;
}
.timeline-placeholder strong { color: var(--c1); }

/* ---- Timeline display container ---- */
.timeline-display {
  min-height: 0;
  transition: opacity 0.4s ease;
  margin-bottom: 48px;
  position: relative;
}
.timeline-display[aria-hidden="true"] { opacity: 0; min-height: 0; pointer-events: none; }
.timeline-display[aria-hidden="false"] { opacity: 1; min-height: 380px; }

.timeline-track-title {
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c2);
  font-weight: 700;
  margin-bottom: 28px;
}

.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 8px 0 16px;
}

.timeline-line {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 28px;
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
  border-radius: 2px;
}
.timeline-line-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  border-radius: 2px;
  transition: width 1.4s cubic-bezier(0.2, 0.6, 0.2, 1) 0.2s;
}
.timeline-track.revealed .timeline-line-fill { width: 100%; }

/* ---- Milestone ---- */
.milestone {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.milestone[data-revealed="true"] { opacity: 1; transform: translateY(0); }
.milestone[data-revealed="true"]:nth-child(1) { transition-delay: 0.20s; }
.milestone[data-revealed="true"]:nth-child(2) { transition-delay: 0.36s; }
.milestone[data-revealed="true"]:nth-child(3) { transition-delay: 0.52s; }
.milestone[data-revealed="true"]:nth-child(4) { transition-delay: 0.68s; }
.milestone[data-revealed="true"]:nth-child(5) { transition-delay: 0.84s; }

.milestone-node {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--c2);
  margin-bottom: 22px;
  position: relative;
  box-shadow: 0 0 0 5px #ffffff, 0 0 0 6px var(--c2);
}
@keyframes milestone-pulse {
  0%, 100% { box-shadow: 0 0 0 5px #ffffff, 0 0 0 6px var(--c2), 0 0 0 0 rgba(30,136,229,0); }
  50%      { box-shadow: 0 0 0 5px #ffffff, 0 0 0 6px var(--c2), 0 0 0 14px rgba(30,136,229,0.10); }
}
.milestone[data-revealed="true"] .milestone-node {
  animation: milestone-pulse 4s ease-in-out infinite;
}

.milestone-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 22px 20px 20px;
  text-align: left;
  box-shadow: 0 6px 24px -8px rgba(0,0,0,0.08);
  width: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.milestone-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -8px rgba(0,0,0,0.12);
}

.milestone-when {
  font-size: 14px;
  font-weight: 700;
  color: var(--c2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.milestone-summary {
  font-size: 17px;
  color: #1a1a1a;
  line-height: 1.6;
  margin: 0 0 16px;
}
.milestone-actions {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.milestone-actions li {
  font-size: 16px;
  color: #4b5563;
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
  line-height: 1.55;
}
.milestone-actions li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px; height: 16px;
  border: 2px solid var(--c2);
  border-radius: 4px;
  background: #ffffff;
  box-sizing: border-box;
}
.milestone-actions li {
  padding-left: 28px;
}
.milestone-attribution {
  font-size: 14px;
  color: #6b7280;
  font-style: italic;
  border-top: 1px solid #f0f2f5;
  padding-top: 12px;
  margin: 0;
  line-height: 1.45;
}

/* ---- CTA area ---- */
.timeline-cta {
  text-align: center;
  margin: 8px auto 24px;
  max-width: 720px;
  /* Removed from layout until the journey is complete — otherwise the invisible CTA
     leaves a 150-200px empty block below the team grid before the next section. */
  display: none;
}
.timeline-cta[data-revealed="true"] {
  display: block;
  animation: timelineCtaFadeIn 0.5s ease 0.5s both;
}
@keyframes timelineCtaFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.agent-signature {
  font-size: 17px;
  color: var(--c1);
  font-weight: 600;
  margin: 0 0 18px;
  letter-spacing: -0.005em;
}
.agent-signature em { font-style: normal; color: #4b5563; font-weight: 500; }

.cta-row {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}
.cta-primary,
.cta-secondary {
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  border-radius: 50px;
  min-height: 52px;
  line-height: 1.2;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.cta-primary {
  background: var(--c2);
  color: var(--on-c2, #fff);
  border: 2px solid var(--c2);
  padding: 15px 32px;
  box-shadow: 0 10px 24px -8px rgba(30, 136, 229, 0.45);
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(30, 136, 229, 0.55);
}
.cta-secondary {
  background: transparent;
  color: var(--c1);
  border: 2px solid var(--c1);
  padding: 15px 30px;
}
.cta-secondary:hover { background: var(--c1-soft, rgba(10,61,98,0.06)); }
.cta-microcopy {
  font-size: 16px;
  color: #6b7280;
  margin: 4px auto 0;
  max-width: 580px;
  line-height: 1.55;
}

/* ---- Disclaimer ---- */
.timeline-disclaimer {
  font-size: 15px;
  color: #6b7280;
  text-align: center;
  max-width: 720px;
  margin: 24px auto 0;
  line-height: 1.65;
  padding: 0 16px;
}

/* ---- Tablet ---- */
@media (max-width: 1024px) {
  .timeline-cards { grid-template-columns: repeat(2, 1fr); }
  .timeline-track { grid-template-columns: 1fr; gap: 26px; padding: 4px 0 0; }
  .timeline-line { display: none; }
  .milestone { flex-direction: row; align-items: flex-start; gap: 14px; }
  .milestone-node { margin: 8px 0 0; flex-shrink: 0; }
  .milestone-card { flex: 1; }
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
  .timeline-section { padding: 56px 0 48px; }
  .timeline-header { margin-bottom: 32px; }
  .timeline-header .lede { font-size: 18px; }
  .timeline-cards { grid-template-columns: 1fr; gap: 14px; margin-bottom: 32px; }
  .journey-card { padding: 24px 22px; min-height: auto; gap: 12px; }
  .journey-card h3 { font-size: 21px; }
  .journey-card p { font-size: 17px; }
  .timeline-display[aria-hidden="false"] { min-height: 0; }
  .cta-primary, .cta-secondary { width: 100%; padding: 16px 24px; min-height: 56px; }
  .cta-row { flex-direction: column; width: 100%; }
  .milestone-summary { font-size: 17px; }
  .milestone-actions li { font-size: 16px; }
  .lead-field input { font-size: 17px; min-height: 56px; }
  .lead-consent { font-size: 15px; }
  .agent-bio-block .agent-bio-text { font-size: 17px; }
  .agent-bio-block .agent-bio-contact { font-size: 16px; }
  .timeline-disclaimer { font-size: 15px; }
}

/* =====================================================
   V2 ADDITIONS — Guided Journey
   Selected-bucket header, question flow, progress bar,
   lead capture form, milestone drop-lines, and v2 spacing.
   ===================================================== */

.timeline-section { padding-bottom: 32px; }

/* ===== AGENT BIO BLOCK (top of section) ===== */
.agent-bio-block {
  display: grid;
  grid-template-columns: 140px 1fr 132px;
  grid-template-rows: auto auto;
  column-gap: 28px;
  row-gap: 16px;
  align-items: start;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 24px 28px 28px;
  box-shadow: 0 8px 28px -10px rgba(0,0,0,0.06);
  margin: 40px auto 0;
  max-width: 880px;
}
.agent-bio-block[data-active="false"] { display: none; }
.agent-bio-tagline {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c2);
  border-bottom: 1px solid #f0f2f5;
  padding-bottom: 14px;
  margin: 0;
}
.agent-bio-tagline em {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--c1);
  letter-spacing: -0.005em;
  text-transform: none;
  font-style: normal;
}
.agent-bio-block .agent-bio-photo {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}
.agent-bio-block .agent-bio-info h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--c1);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.agent-bio-block .agent-bio-title {
  font-size: 16px;
  color: var(--c2);
  font-weight: 600;
  margin: 0 0 14px;
}
.agent-bio-block .agent-bio-text {
  font-size: 17px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 14px;
  white-space: pre-wrap;
}
.agent-bio-block .agent-bio-contact {
  font-size: 16px;
  color: #374151;
  line-height: 1.7;
}
.agent-bio-block .agent-bio-contact a {
  color: var(--c2);
  text-decoration: none;
}
.agent-bio-block .agent-bio-license {
  font-size: 14px;
  color: #6b7280;
  margin-top: 8px;
}
.agent-bio-block .agent-bio-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.agent-bio-block .agent-bio-qr-frame {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px;
  width: 116px; height: 116px;
  display: flex; align-items: center; justify-content: center;
}
.agent-bio-block .agent-bio-qr-frame svg {
  width: 100%; height: 100%; display: block;
}
.agent-bio-block .agent-bio-qr-label {
  font-size: 13px;
  color: #6b7280;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.35;
}
.agent-bio-block[data-no-photo="true"] {
  grid-template-columns: 1fr 132px;
}
.agent-bio-block[data-no-qr="true"] {
  grid-template-columns: 140px 1fr;
}
.agent-bio-block[data-no-photo="true"][data-no-qr="true"] {
  grid-template-columns: 1fr;
}

/* Social icons row at the bottom of the bio block — spans all columns, centered.
   Each icon is a 36px circle with the platform's brand color and a white SVG glyph. */
.agent-bio-block .agent-bio-socials {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid #f0f2f5;
}
.agent-bio-block .agent-bio-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 6px -2px rgba(0,0,0,0.18);
}
.agent-bio-block .agent-bio-social:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px -4px rgba(0,0,0,0.28);
}
.agent-bio-block .agent-bio-social svg {
  width: 18px;
  height: 18px;
  display: block;
}
/* Brand colors */
.agent-bio-block .agent-bio-social-fb { background: #1877F2; }
.agent-bio-block .agent-bio-social-ig {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.agent-bio-block .agent-bio-social-li { background: #0A66C2; }
.agent-bio-block .agent-bio-social-tt { background: #000000; }
.agent-bio-block .agent-bio-social-yt { background: #FF0000; }
@media (prefers-reduced-motion: reduce) {
  .agent-bio-block .agent-bio-social { transition: none; }
  .agent-bio-block .agent-bio-social:hover { transform: none; }
}

@media (max-width: 720px) {
  .agent-bio-block {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 22px 22px 24px;
    row-gap: 14px;
  }
  .agent-bio-block .agent-bio-photo { margin: 0 auto; }
  .agent-bio-block .agent-bio-qr { margin-top: 4px; }
  .agent-bio-tagline em { font-size: 17px; }
}

/* ===== Team grid (additional agents shown below the primary bio block) ===== */
.team-grid {
  max-width: 880px;
  margin: 28px auto 0;
}
.team-grid[data-active="false"] { display: none; }
.team-grid-header {
  text-align: center;
  margin-bottom: 18px;
}
.team-grid-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c2);
  margin-bottom: 6px;
}
.team-grid-heading {
  font-size: 24px;
  font-weight: 800;
  color: var(--c1);
  letter-spacing: -0.01em;
  margin: 0;
}
/* Each team member is a full-width bio block — stacks vertically below the primary
   so each agent gets the same visual weight as "Your guide". */
.team-grid-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* When the team-member uses the agent-bio-block class, override the default 40px top margin
   the primary block has (since the team-grid container already adds vertical spacing). */
.agent-bio-block.team-member {
  margin: 0 auto;
}
/* Initial-letter fallback when an agent didn't upload a photo. Same 140px size as the
   primary photo so the layout is identical regardless of whether a photo exists. */
.agent-bio-photo-empty {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--c2), var(--c1));
  color: #ffffff;
  font-size: 56px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .team-grid-heading { font-size: 21px; }
  .team-grid-cards { gap: 16px; }
}

/* Agent credentials block — appears immediately below the bio block on the timeline view */
.agent-credentials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--bg-soft, #f7f9fc);
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 22px 28px;
  margin: 16px auto 56px;
  max-width: 880px;
  text-align: center;
}
.agent-credentials[data-active="false"] { display: none; }
.agent-credentials .cred-stat { display: flex; flex-direction: column; gap: 4px; }
.agent-credentials .cred-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--c1);
  line-height: 1;
}
.agent-credentials .cred-label {
  font-size: 13px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
@media (max-width: 720px) {
  .agent-credentials {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 18px 22px;
  }
  .agent-credentials .cred-num { font-size: 24px; }
}

/* ===== "Start here" callout ===== */
.start-here {
  text-align: center;
  margin: 0 auto 24px;
  max-width: 520px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c2);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(30,136,229,0.08);
  border-radius: 999px;
}
.start-here-wrap {
  text-align: center;
  margin-bottom: 28px;
}
.start-here-arrow {
  display: inline-block;
  animation: start-here-bob 1.6s ease-in-out infinite;
}
@keyframes start-here-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
.start-here-wrap[data-hidden="true"] { display: none; }

.timeline-cards { transition: opacity 0.4s ease, transform 0.4s ease; }
.timeline-cards[data-collapsed="true"] {
  display: none;
}

/* Compact selected-bucket header (replaces the 4-card grid once a bucket is chosen) */
.bucket-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 16px 22px;
  margin: 0 auto 56px;
  max-width: 720px;
  box-shadow: 0 6px 24px -8px rgba(0,0,0,0.06);
}
.bucket-header[data-active="true"] { display: flex; }
.bucket-header .bucket-header-info {
  display: flex; align-items: center; gap: 14px;
}
.bucket-header .bucket-header-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--c2);
  color: var(--on-c2, #fff);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bucket-header .bucket-header-icon svg { width: 22px; height: 22px; stroke-width: 2; }
.bucket-header .bucket-header-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--c2); margin-bottom: 4px;
}
.bucket-header .bucket-header-title {
  font-size: 21px; font-weight: 700; color: var(--c1);
}
.bucket-header .bucket-header-change {
  font-size: 15px; font-weight: 600; color: var(--c2);
  background: transparent; border: none; cursor: pointer;
  padding: 10px 14px; border-radius: 10px;
  text-decoration: underline;
  flex-shrink: 0;
  min-height: 44px;
}
.bucket-header .bucket-header-change:hover { background: var(--c2-soft, rgba(30,136,229,0.08)); }
.bucket-header .bucket-header-change:focus-visible { outline: 2px solid var(--c2); outline-offset: 2px; }

/* Question flow */
.journey-flow {
  display: none;
  max-width: 720px;
  margin: 0 auto 48px;
  min-height: 380px;
}
.journey-flow[data-active="true"] { display: block; }

.journey-progress {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 36px;
}
.journey-progress-dot {
  width: 36px; height: 4px;
  background: #e5e7eb;
  border-radius: 999px;
  transition: background 0.3s ease;
}
.journey-progress-dot[data-state="done"] { background: var(--c2); }
.journey-progress-dot[data-state="current"] { background: var(--c2); }
.journey-progress-dot[data-state="upcoming"] { background: #e5e7eb; }
.journey-progress-label {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.question-screen {
  text-align: center;
  animation: questionFadeIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes questionFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.question-text {
  font-size: clamp(24px, 3.2vw, 28px);
  font-weight: 700;
  color: var(--c1);
  line-height: 1.3;
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto; margin-right: auto;
  letter-spacing: -0.01em;
}

.answer-list {
  display: flex; flex-direction: column;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 24px;
}
.answer-btn {
  appearance: none;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 22px;
  text-align: left;
  font: inherit;
  font-size: 18px;
  color: var(--c1);
  cursor: pointer;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease, background 0.18s ease;
  font-weight: 500;
  line-height: 1.4;
}
.answer-btn:hover {
  border-color: var(--c2);
  background: rgba(30, 136, 229, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -8px rgba(0,0,0,0.08);
}
.answer-btn:focus-visible {
  outline: 3px solid var(--c2);
  outline-offset: 2px;
}
.answer-btn[aria-pressed="true"] {
  border-color: var(--c2);
  background: var(--c2);
  color: var(--on-c2, #fff);
}
.answer-btn::before {
  content: '';
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.answer-btn:hover::before { border-color: var(--c2); }
.answer-btn[aria-pressed="true"]::before { border-color: #fff; background: #fff; }

.question-back {
  background: transparent;
  border: none;
  color: #6b7280;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
}
.question-back:hover { color: var(--c1); }
.question-back:focus-visible { outline: 2px solid var(--c2); outline-offset: 2px; }
.question-back-row {
  display: flex; justify-content: center;
  margin-top: 14px;
}

/* Lead capture screen */
.lead-screen {
  text-align: center;
  animation: questionFadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lead-screen h2 {
  font-size: clamp(26px, 3.4vw, 32px);
  font-weight: 800;
  color: var(--c1);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.lead-screen .lead-subhead {
  font-size: 17px;
  color: #4b5563;
  margin: 0 auto 32px;
  max-width: 520px;
  line-height: 1.55;
}
.lead-form {
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}
.lead-field {
  margin-bottom: 16px;
}
.lead-field label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--c1);
  margin-bottom: 8px;
}
.lead-field input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font: inherit;
  font-size: 17px;
  color: var(--c1);
  background: #ffffff;
  transition: border-color 0.2s ease;
  min-height: 52px;
}
.lead-field input:focus {
  outline: none;
  border-color: var(--c2);
}
.lead-submit {
  width: 100%;
  background: var(--c2);
  color: var(--on-c2, #fff);
  border: 2px solid var(--c2);
  border-radius: 50px;
  padding: 16px 28px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  min-height: 56px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 24px -8px rgba(30, 136, 229, 0.45);
}
.lead-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(30, 136, 229, 0.55);
}
.lead-submit:disabled {
  opacity: 0.6; cursor: not-allowed;
  transform: none; box-shadow: none;
}
.lead-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f7f9fc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 8px 0 14px;
  cursor: pointer;
  font-size: 15px;
  color: #374151;
  line-height: 1.55;
}
.lead-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0 0;
  flex-shrink: 0;
  accent-color: var(--c2);
  cursor: pointer;
}
.lead-consent strong { color: var(--c1); }
.lead-consent:hover { background: #f1f5f9; }
.lead-consent input:focus-visible { outline: 3px solid var(--c2); outline-offset: 2px; }

.lead-privacy-note {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  margin-top: 14px;
  line-height: 1.55;
}
.lead-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  margin-bottom: 14px;
  text-align: center;
}

/* Milestone drop-line (NEW v2) — connects each node down into its card */
.milestone {
  position: relative;
}
.milestone-node-link {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 2px;
  height: 22px;
  background: linear-gradient(180deg, var(--c2), rgba(30,136,229,0));
  transform: translateX(-50%);
  pointer-events: none;
}
@media (max-width: 1024px) {
  .milestone-node-link {
    top: 8px;
    left: 8px;
    height: 100%;
    width: 2px;
    transform: none;
    background: linear-gradient(180deg, var(--c2), rgba(30,136,229,0.15));
  }
}

/* Action row below the timeline (Print + Update answers) */
.timeline-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.timeline-print-btn {
  appearance: none;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--c2);
  background: #ffffff;
  border: 2px solid var(--c2);
  border-radius: 50px;
  padding: 14px 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.18s ease;
}
.timeline-print-btn:hover {
  background: var(--c2);
  color: var(--on-c2, #fff);
  transform: translateY(-1px);
}
.timeline-print-btn:focus-visible {
  outline: 3px solid var(--c2);
  outline-offset: 2px;
}
.timeline-print-btn svg { width: 18px; height: 18px; }

.timeline-update-link {
  font-size: 15px;
  color: #6b7280;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
  font-weight: 600;
  padding: 8px 14px;
  min-height: 44px;
}
.timeline-update-link:hover { color: var(--c1); }
.timeline-update-link:focus-visible { outline: 2px solid var(--c2); outline-offset: 2px; }

/* Spacing tightener — when bucket-header is shown, reduce header margin since it stacks above */
.bucket-header[data-active="true"] + .timeline-cards { display: none; }

@media (max-width: 600px) {
  .timeline-section { padding-bottom: 80px; }
  .bucket-header { padding: 14px 16px; gap: 12px; }
  .bucket-header .bucket-header-title { font-size: 17px; }
  .bucket-header .bucket-header-icon { width: 38px; height: 38px; }
  .question-text { font-size: 22px; }
  .answer-btn { font-size: 17px; padding: 16px 18px; min-height: 56px; }
  .lead-submit { font-size: 16px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .timeline-section *,
  .timeline-section *::before,
  .timeline-section *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .milestone[data-revealed="true"] .milestone-node { animation: none !important; }
  .milestone { opacity: 1 !important; transform: none !important; }
  .timeline-track .timeline-line-fill { width: 100% !important; }
  .timeline-cta { opacity: 1 !important; transform: none !important; }
}
