/* ============================================================
   How It Works — patient journey page
   Phone mockup components + journey layout
   ============================================================ */

/* ===== Phone mockup base ===== */
.pm-wrap { display: flex; align-items: center; justify-content: center; }
.pm { width: 220px; height: 460px; background: #1c1c1e; border-radius: 38px; border: 2px solid #3a3a3c; padding: 12px; position: relative; flex-shrink: 0; }
.pm::before { content: ''; position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 74px; height: 22px; background: #000; border-radius: 11px; z-index: 20; }
.pm .vol { position: absolute; left: -3px; background: #3a3a3c; border-radius: 2px 0 0 2px; width: 3px; }
.pm .v1 { top: 95px; height: 24px; } .pm .v2 { top: 128px; height: 24px; }
.pm .pwr { position: absolute; right: -3px; top: 110px; width: 3px; height: 48px; background: #3a3a3c; border-radius: 0 2px 2px 0; }
.pm-screen { width: 100%; height: 100%; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.pm-sbar { height: 38px; display: flex; align-items: flex-end; padding: 0 12px 6px; flex-shrink: 0; }
.pm-sbar.g { background: #075E54; } .pm-sbar.b { background: #1565C0; } .pm-sbar.s { background: #f2f2f7; }
.pm-st { font-size: 11px; font-weight: 700; color: #fff; font-family: -apple-system, sans-serif; }
.pm-sr { margin-left: auto; font-size: 11px; color: #fff; font-family: -apple-system, sans-serif; }
.pm-wah { padding: 6px 10px 8px; display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.pm-wah.g { background: #075E54; } .pm-wah.b { background: #1565C0; }
.pm-av { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; font-family: -apple-system, sans-serif; flex-shrink: 0; }
.pm-av.g { background: #128C7E; } .pm-av.b { background: #1976D2; }
.pm-wi { flex: 1; }
.pm-wn { font-size: 12px; font-weight: 600; color: #fff; font-family: -apple-system, sans-serif; line-height: 1.2; }
.pm-ws { font-size: 10px; color: rgba(255,255,255,.7); font-family: -apple-system, sans-serif; }
.pm-ws.on { color: #90EE90; }
.pm-chat { flex: 1; background: #e5ddd5; padding: 7px 7px 5px; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.pm-sep { align-self: center; background: rgba(241,246,250,.88); border-radius: 5px; padding: 2px 7px; font-size: 11px; color: #667781; font-family: -apple-system, sans-serif; margin: 2px 0 3px; text-align: center; }
.pm-m { max-width: 78%; padding: 5px 7px 3px; border-radius: 7px; font-family: -apple-system, sans-serif; font-size: 11px; line-height: 1.45; color: #111; word-break: break-word; }
.pm-m.r { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.pm-m.r.hm { background: #E3F2FD; border-left: 2px solid #1976D2; }
.pm-m.s { background: #dcf8c6; align-self: flex-end; border-top-right-radius: 2px; }
.pm-mt { font-size: 10px; color: rgba(0,0,0,.38); text-align: right; margin-top: 1px; }
.pm-m.s .pm-mt::after { content: ' ✓✓'; color: #53bdeb; font-size: 10px; }
.pm-qg { align-self: flex-start; display: flex; flex-direction: column; gap: 3px; max-width: 80%; }
.pm-qr { background: #fff; border-radius: 5px; padding: 5px 9px; font-size: 11px; font-weight: 600; color: #128C7E; font-family: -apple-system, sans-serif; }
.pm-cc { background: #fff; border-radius: 7px; overflow: hidden; align-self: flex-start; max-width: 82%; }
.pm-cch { padding: 5px 9px; font-size: 11px; font-weight: 600; color: #fff; font-family: -apple-system, sans-serif; }
.pm-cch.g { background: #128C7E; } .pm-cch.b { background: #1565C0; }
.pm-ccb { padding: 6px 9px; display: flex; flex-direction: column; gap: 3px; }
.pm-cr { font-size: 11px; color: #303030; font-family: -apple-system, sans-serif; }
.pm-tag { align-self: flex-start; background: rgba(18,140,126,.12); border-radius: 4px; padding: 2px 6px; font-size: 10px; color: #075E54; font-family: -apple-system, sans-serif; }
.pm-tag.b { background: rgba(25,118,210,.12); color: #1565C0; }
.pm-sys { align-self: center; border-radius: 6px; padding: 5px 10px; font-size: 11px; text-align: center; max-width: 88%; line-height: 1.4; border: .5px solid; font-family: -apple-system, sans-serif; }
.pm-sys.warn { background: #FFF8E1; border-color: #FFB300; color: #5D4037; }
.pm-sys.hand { background: #E8EAF6; border-color: #3F51B5; color: #1A237E; }
.pm-typing { background: #fff; border-radius: 7px; border-top-left-radius: 2px; padding: 7px 10px; display: flex; gap: 3px; align-items: center; align-self: flex-start; }
.pm-typing span { width: 5px; height: 5px; background: #bbb; border-radius: 50%; display: block; }
.pm-grev { background: #fff; border-radius: 6px; padding: 6px 9px; display: flex; align-items: center; gap: 7px; align-self: flex-start; max-width: 80%; }
.pm-gstars { font-size: 12px; color: #FBBC04; }
.pm-glabel { font-size: 11px; font-weight: 600; color: #4285F4; font-family: -apple-system, sans-serif; }
.pm-in { background: #f0f0f0; padding: 5px 7px; display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.pm-in-t { flex: 1; background: #fff; border-radius: 18px; padding: 5px 10px; font-size: 11px; color: #bbb; font-family: -apple-system, sans-serif; }
.pm-in-m { width: 28px; height: 28px; background: #075E54; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; color: #fff; }
.pm-lock { background: #1c2540; display: flex; flex-direction: column; padding: 42px 14px 16px; flex: 1; overflow: hidden; }
.pm-ltime { font-size: 48px; font-weight: 200; color: #fff; text-align: center; letter-spacing: -2px; line-height: 1; font-family: -apple-system, sans-serif; }
.pm-ldate { font-size: 13px; color: rgba(255,255,255,.6); text-align: center; font-family: -apple-system, sans-serif; margin-top: 5px; margin-bottom: 22px; }
.pm-nc { background: rgba(30,30,40,.72); border-radius: 12px; padding: 10px 12px; border: .5px solid rgba(255,255,255,.12); margin-bottom: 8px; }
.pm-nct { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.pm-nci { width: 18px; height: 18px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; font-weight: 700; flex-shrink: 0; font-family: -apple-system, sans-serif; }
.pm-nci.wa { background: #25D366; }
.pm-nci.ml { background: #007AFF; }
.pm-nca { font-size: 11px; color: rgba(255,255,255,.55); font-family: -apple-system, sans-serif; text-transform: uppercase; letter-spacing: .5px; }
.pm-nctm { font-size: 11px; color: rgba(255,255,255,.38); font-family: -apple-system, sans-serif; margin-left: auto; }
.pm-ncti { font-size: 12px; font-weight: 600; color: #fff; font-family: -apple-system, sans-serif; }
.pm-ncb { font-size: 11px; color: rgba(255,255,255,.7); font-family: -apple-system, sans-serif; margin-top: 2px; line-height: 1.4; }
.pm-lhint { margin-top: auto; text-align: center; font-size: 11px; color: rgba(255,255,255,.25); font-family: -apple-system, sans-serif; }
.pm-safbar { background: #f2f2f7; flex-shrink: 0; padding: 36px 10px 6px; display: flex; flex-direction: column; gap: 5px; }
.pm-safurl { background: #fff; border-radius: 8px; padding: 5px 10px; font-size: 10px; color: #888; text-align: center; border: .5px solid #d1d1d6; font-family: -apple-system, sans-serif; }
.pm-safnav { display: flex; justify-content: space-between; font-size: 16px; color: #007AFF; padding: 0 2px; }
.pm-fscreen { background: #fff; flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.pm-fhero { background: #128C7E; padding: 10px 14px 8px; flex-shrink: 0; }
.pm-fht { font-size: 12px; font-weight: 700; color: #fff; font-family: -apple-system, sans-serif; }
.pm-fhs { font-size: 10px; color: rgba(255,255,255,.75); font-family: -apple-system, sans-serif; margin-top: 2px; }
.pm-fbody { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pm-fl { font-size: 10px; color: #555; font-family: -apple-system, sans-serif; margin-bottom: 2px; display: block; }
.pm-fi { width: 100%; background: #f7f7f7; border: .5px solid #d1d1d6; border-radius: 6px; padding: 5px 8px; font-size: 11px; color: #1c1c1e; font-family: -apple-system, sans-serif; }
.pm-fi.active { border-color: #128C7E; background: #fff; }
.pm-fta { height: 42px; }
.pm-fbtn { background: #128C7E; border-radius: 8px; padding: 8px; text-align: center; font-size: 12px; font-weight: 600; color: #fff; font-family: -apple-system, sans-serif; margin-top: 4px; }
.pm-notif-ov { position: absolute; top: 54px; left: 14px; right: 14px; z-index: 10; }
.pm-np { background: rgba(30,30,40,.85); border-radius: 14px; padding: 9px 12px; border: .5px solid rgba(255,255,255,.15); }
.pm-npt { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.pm-npi { width: 16px; height: 16px; background: #25D366; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #fff; font-weight: 700; flex-shrink: 0; }
.pm-npa { font-size: 10px; color: rgba(255,255,255,.5); font-family: -apple-system, sans-serif; text-transform: uppercase; letter-spacing: .4px; }
.pm-nptm { font-size: 10px; color: rgba(255,255,255,.35); margin-left: auto; font-family: -apple-system, sans-serif; }
.pm-npti { font-size: 11px; font-weight: 600; color: #fff; font-family: -apple-system, sans-serif; }
.pm-npb { font-size: 11px; color: rgba(255,255,255,.65); font-family: -apple-system, sans-serif; margin-top: 2px; line-height: 1.4; }
.pm-suc { background: #fff; flex: 1; display: flex; flex-direction: column; }
.pm-such { background: #128C7E; padding: 9px 12px; }
.pm-sucht { font-size: 11px; font-weight: 700; color: #fff; font-family: -apple-system, sans-serif; }
.pm-suchs { font-size: 10px; color: rgba(255,255,255,.75); font-family: -apple-system, sans-serif; margin-top: 2px; }
.pm-sucb { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.pm-sucic { width: 44px; height: 44px; border-radius: 50%; background: #e8f5e9; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.pm-suct { font-size: 12px; color: #333; font-family: -apple-system, sans-serif; text-align: center; line-height: 1.5; }

/* ===== Journey disclaimer callout ===== */
.journey-disclaimer {
  border: 1px solid var(--color-glacier, rgba(255,255,255,0.15));
  border-radius: 8px;
  padding: 16px 24px;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.75;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Journey toggle (extends .billing-toggle from system.css) ===== */
.journey-toggle {
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
}

/* ===== Journey panels ===== */
.journey-panels {
  transition: opacity 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.journey-panel { display: none; }
.journey-panel.is-active { display: block; }

/* ===== Journey step ===== */
.journey-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: clamp(48px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--hairline-dark);
}
.journey-step:last-child { border-bottom: 0; }

.journey-step:nth-child(even) .journey-step-text { order: 2; }
.journey-step:nth-child(even) .journey-step-phone { order: 1; }

.journey-step-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(143, 203, 203, 0.28);
  margin-bottom: 16px;
}
.journey-step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 14px;
}
.journey-step p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--on-dark-2);
  margin: 0;
  max-width: 440px;
}

/* Step entrance animation when panel becomes active */
@keyframes jStepIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.journey-panel.is-active .journey-step {
  animation: jStepIn 480ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.journey-panel.is-active .journey-step:nth-child(1) { animation-delay: 0ms; }
.journey-panel.is-active .journey-step:nth-child(2) { animation-delay: 50ms; }
.journey-panel.is-active .journey-step:nth-child(3) { animation-delay: 100ms; }
.journey-panel.is-active .journey-step:nth-child(4) { animation-delay: 150ms; }
.journey-panel.is-active .journey-step:nth-child(5) { animation-delay: 200ms; }
.journey-panel.is-active .journey-step:nth-child(6) { animation-delay: 250ms; }
.journey-panel.is-active .journey-step:nth-child(7) { animation-delay: 300ms; }
.journey-panel.is-active .journey-step:nth-child(8) { animation-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  .journey-panel.is-active .journey-step {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .journey-step { grid-template-columns: 1fr; gap: 28px; }
  .journey-step .journey-step-text { order: 2 !important; }
  .journey-step .journey-step-phone { order: 1 !important; }
  .journey-step-phone { display: flex; justify-content: center; }
}

@media (max-width: 640px) {
  .journey-toggle {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    border-radius: 20px;
  }
  .journey-toggle .billing-opt {
    border-radius: 14px;
    justify-content: center;
  }
}
