/* Homepage only (meta `css: home`): the hero route map, its phone fallback, the proof strip, layout variants. */
.hhero{padding-block:clamp(40px,6vw,88px) clamp(56px,7vw,104px)}
.hhero__grid{display:grid;grid-template-columns:minmax(0,560px) 600px;justify-content:space-between;align-items:start;gap:32px 40px}
/* the title runs across both columns at the page-title scale: two lines */
.hhero h1{grid-column:1/-1;max-width:24ch}
.hhero__copy{display:grid;gap:24px;align-content:start}
.hhero .ctas{margin-top:6px}

/* the patient's route: six stations on three lines; mirrors in English */
.hmap{position:relative;width:600px;height:700px}
.hmap svg{position:absolute;inset:0;width:600px;height:700px}
[dir="ltr"] .hmap svg{transform:scaleX(-1)}
.hmap .q{stroke:var(--l-queue)}
.hmap .k{stroke:var(--l-ink)}
.hmap .v{stroke:var(--l-inv)}
.hmap .b{stroke:var(--l-connect)}
.hmap .a{stroke:var(--l-sms)}
.hmap .st{fill:var(--station);stroke:var(--l-ink);stroke-width:5}
.hmap .tm{fill:var(--l-ink)}
.stn{position:absolute;display:grid;gap:8px;justify-items:start}
.stn b{font:700 21px/1.3 var(--font-display);white-space:nowrap}
.stn--wrap b{white-space:normal;width:300px}
.hmap__note{position:absolute;top:0;inset-inline-end:0;width:280px;font:500 13px/1.6 var(--font-display);color:var(--ink-3)}
.hmap__note .dot{width:10px;height:10px;margin-inline-end:6px;vertical-align:-1px}
@media (prefers-reduced-motion:no-preference){
  .hmap path{stroke-dasharray:var(--len) var(--len);animation:draw 1.1s var(--ease) both;animation-delay:var(--d,0s)}
  .stn{animation:rise .6s var(--ease) both;animation-delay:var(--d,0s)}
}
@keyframes rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* the same route as a vertical list, for screens too narrow for the map */
.rlist{display:none;margin:0;padding:0;list-style:none}
.rlist li{position:relative;min-height:64px;padding-inline-start:46px;padding-bottom:26px}
.rlist li::before{content:"";position:absolute;inset-inline-start:7px;top:14px;bottom:-14px;width:12px;background:var(--seg,transparent)}
.rlist li.pair::before{inset-inline-start:3px;width:20px;background:linear-gradient(to left,var(--l-connect) 0 50%,var(--l-sms) 50% 100%)}
.rlist li:last-child::before{display:none}
.rlist li::after{content:"";position:absolute;inset-inline-start:0;top:2px;width:26px;height:26px;border-radius:50%;background:var(--station);border:5px solid var(--l-ink)}
.rlist li.term::after{background:var(--l-ink)}
.rlist b{display:block;margin-bottom:6px;font:700 19px/1.4 var(--font-display)}

/* merged problem + system strips: the problem leads, the line that fixes it follows */
.strip__head .fixline{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:14px}
.strip__head .fixline .status{margin:0}

/* proof: what is live today, said once */
.hproof{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto;align-items:center;gap:16px 40px;padding-block:24px;border-block:2px solid var(--ink)}
.hproof p{font:600 18px/1.6 var(--font-display)}
.hproof .bullets{display:inline-flex;vertical-align:middle;margin-inline-end:6px}
.hproof a:not(.more){text-decoration:underline}

.legend--4{--cols:4}
.lcards--2{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
.lcard h3 .status{margin:0}
.price-foot strong small:first-child{display:block;margin-bottom:2px}

@media (max-width:1180px){
  .hhero__grid{grid-template-columns:minmax(0,1fr)}
  .hhero__copy{max-width:720px}
  .hmap{display:none}
  .rlist{display:block;margin-top:12px}
  .legend--4{--cols:2}
}
@media (max-width:900px){
  .hproof{grid-template-columns:minmax(0,1fr)}
}
