/* Night Doctor v2: homepage. Loaded after v2.css. */

/* ---------- hero ---------- */
.hero {
  position: relative; margin: 12px; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; background: var(--navy); color: #fff;
}
.hero__media { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero__img.is-active { opacity: 1; }
.hero__img--home { object-position: 12% 30%; }
.hero__img--tele { object-position: center 40%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 22, 43, .55) 0%, rgba(0, 22, 43, .45) 45%, rgba(0, 22, 43, .82) 100%); }
.nav-space { height: var(--nav-space); flex: none; }
.hero__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; padding-block: 24px 96px; }
.hero__title { font: 700 clamp(48px, 7vw, 104px)/.96 var(--font-head); letter-spacing: -.03em; max-width: 12ch; }
.hero__sub { margin: 22px 0 32px; font-size: 22px; line-height: 1.4; max-width: 36ch; color: #e6e9ee; }
.hero__000 { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 17px; color: #e6e9ee; }
.hero__strip {
  position: absolute; left: 0; right: 0; bottom: 28px; z-index: 1;
  display: flex; justify-content: center; gap: 24px;
  font: 400 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: #e6e9ee;
}
@media (max-width: 860px) {
  .hero { margin: 8px; border-radius: 26px; min-height: min(600px, calc(100svh - 16px)); }
  .hero__body { margin-top: auto; padding-bottom: 40px; }
  .hero__img--home { object-position: 37% 20%; }
  .hero__img--tele { object-position: 85% 20%; }
  .hero__shade { background: linear-gradient(180deg, rgba(0, 22, 43, .45) 0%, rgba(0, 22, 43, .1) 28%, rgba(0, 22, 43, .55) 50%, rgba(0, 22, 43, .9) 78%); }
  .hero__title { font-size: 44px; }
  .hero__sub { font-size: 19px; }
  .hero__strip { display: none; }
}
@media (max-width: 599px) {
  .hero__img--home { top: -14%; height: 114%; }
}
@media (min-width: 600px) and (max-width: 860px) {
  .hero { margin: 12px; border-radius: 32px; min-height: min(900px, calc(100svh - 24px)); }
  .hero__img--home { object-position: 13% 20%; }
  .hero__img--tele { object-position: 40% 20%; }
  .hero__body { padding-bottom: 56px; }
  .hero__title { font-size: 80px; }
  .hero__sub { font-size: 22px; }
}

/* ---------- service choice ---------- */
.route { padding-bottom: 72px; }
.route__choose { margin: 32px 0 14px; font-size: 18px; font-weight: 600; }
.svc {
  display: flex; gap: 6px; padding: 6px; max-width: 680px; margin-bottom: 56px;
  border-radius: 999px; background: var(--band); border: 1px solid var(--line);
}
.svc__opt, .minitoggle button {
  border: 0; background: #fff; color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.svc__opt[aria-pressed="true"], .minitoggle button[aria-pressed="true"] {
  background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(0, 22, 43, .18);
}
.svc__opt {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 8px 18px 8px 8px; border-radius: 999px; text-align: left;
}
.svc__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(127, 140, 160, .18); }
.svc__txt { min-width: 0; line-height: 1.25; }
.svc__txt strong { display: block; font-size: 17px; font-weight: 600; }
.svc__txt span { display: block; font-size: 15px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minitoggle {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 18px; align-self: flex-start; max-width: 100%;
  border-radius: 999px; background: var(--band); border: 1px solid var(--line);
}
.minitoggle button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; font-weight: 600; font-size: 16px; white-space: nowrap;
}
@media (max-width: 860px) {
  .svc { flex-direction: column; border-radius: 32px; }
  .svc__opt { min-height: 56px; gap: 8px; padding: 4px 12px 4px 4px; }
  .svc__icon { width: 36px; height: 36px; }
  .svc__txt strong { font-size: 16px; white-space: nowrap; }
}
@media (min-width: 600px) and (max-width: 860px) {
  .svc { flex-direction: row; border-radius: 999px; }
  .svc__opt { min-height: 64px; }
}

/* ---------- scroll-pinned steps ---------- */
/* Desktop: list of steps on the left, the active step's panel on the right.
   Phones and tablets: the active step opens under its title. home.js sets data-state on each step. */
/* Snap to each step only with a mouse or trackpad: on touch screens snapping fights momentum scrolling. */
@media (hover: hover) and (pointer: fine) { html:has(.track) { scroll-snap-type: y proximity; } }
.track { --step: 600px; position: relative; height: calc(660px + (var(--n) - 1) * var(--step) + 300px); }
.snap { position: absolute; left: 0; top: calc(var(--k) * var(--step)); scroll-snap-align: start; }
.pin-area {
  position: sticky; top: clamp(120px, calc((100vh - 470px) / 2 + 40px), 220px);
  height: 660px; padding-block: 8px; display: flex;
}
.stage {
  --col1: calc((100% - 48px) * .8 / 2.2);
  position: relative; width: 100%; height: 100%;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 48px;
}
.stage__list { display: flex; flex-direction: column; padding-top: 24px; min-height: 0; }
.steps { display: flex; flex-direction: column; gap: 4px; }

.step__tab {
  position: relative; display: flex; align-items: center; gap: 18px; width: 100%;
  min-height: 56px; padding: 6px 10px 6px 0; border: 0; background: none; text-align: left;
}
.step__pin {
  position: relative; z-index: 1; flex: none; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--blue); background: var(--bg); transition: background-color .4s;
}
.step:is([data-state="done"], [data-state="active"]) .step__pin { background: var(--blue); }
.step__num { font: 400 12px/1 var(--font-mono); letter-spacing: .14em; color: var(--blue); }
.step__title { font: 700 22px/1.2 var(--font-head); letter-spacing: -.03em; color: var(--muted); transition: color .4s; }
.step[data-state="active"] .step__title { color: var(--ink); }

/* connector line between pins: grey track + blue progress */
.step__tab::before, .step__tab::after,
.step::before, .step::after {
  content: ""; position: absolute; left: 11px; top: 26px; width: 2px;
}
.step__tab::before { height: calc(100% + 4px); background: var(--line-strong); opacity: .5; }
.step__tab::after { height: 0; background: var(--blue); }
.step[data-state="done"] .step__tab::after { height: calc(100% + 4px); }
.step[data-state="active"] .step__tab::after { height: calc((100% + 4px) * var(--sub, 0)); }
.step:last-child .step__tab::before, .step:last-child .step__tab::after { display: none; }
.step::before, .step::after { display: none; }

.step__panel {
  position: absolute; top: 0; bottom: 0; right: 0; left: calc(var(--col1) + 48px);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(18px);
  transition: opacity .18s ease, transform .25s ease, visibility 0s linear .25s;
}
.step[data-state="done"] .step__panel { transform: translateY(-18px); }
.step[data-state="active"] .step__panel {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  transition: opacity .45s ease .2s, transform .6s var(--ease) .2s, visibility 0s;
}
.step__inner { display: flex; flex-direction: column; gap: 22px; padding-top: 12px; }
.step__heading { font: 700 clamp(28px, 3.2vw, 46px)/1.04 var(--font-head); letter-spacing: -.03em; margin-bottom: -10px; }
.step__text { color: var(--muted); font-size: 18px; max-width: 44ch; }
.step__text a { color: var(--blue); font-weight: 600; }
.step__media { max-width: 600px; }
.step__next { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-size: 15px; }
.step__next > span:first-child { font-weight: 600; color: var(--muted); }
.step__bar { flex: 1; min-width: 40px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.step__bar span { display: block; height: 100%; width: calc(var(--sub, 0) * 100%); background: var(--blue); transition: width .1s linear; }
.step__nexttitle { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; opacity: calc(.55 + .45 * var(--sub, 0)); }
.step__next .bob { color: var(--blue); }
.step__chev { display: none; }
.step__hint { display: flex; gap: 8px; align-items: center; margin-top: -12px; font-size: 15px; font-weight: 600; color: var(--blue); }

.stepnav { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-left: 42px; }
.stepnav__btn {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; border: 1px solid var(--line-strong); background: transparent;
}
.stepnav__prev { transform: scaleX(-1); }
.stepnav__count { font-size: 15px; font-weight: 600; color: var(--muted); }

@media (max-width: 860px) {
  /* Phones and tablets: a plain accordion. Tap a step to open it; no scroll-driven pinning. */
  .track { height: auto; }
  .snap { display: none; }
  .pin-area { position: static; height: auto; padding: 0; }
  .minitoggle { display: none; } /* the service selector sits directly above */
  .stage { display: flex; flex-direction: column; gap: 14px; }
  .stage__list { padding-top: 0; }
  .steps { gap: 0; }
  .step { position: relative; }
  .step__tab { min-height: 56px; padding-right: 0; }
  .step__tab::before, .step__tab::after { display: none; }
  .step__chev { display: block; flex: none; margin-left: auto; color: var(--muted); transition: transform .3s var(--ease); }
  .step[data-state="active"] .step__chev { transform: rotate(180deg); }
  .step::before { display: block; height: calc(100% + 4px); background: var(--line-strong); opacity: .5; }
  .step::after { display: block; height: 0; background: var(--blue); }
  .step[data-state="done"]::after { height: calc(100% + 4px); }
  .step:last-child::before, .step:last-child::after { display: none; }
  .step__panel, .step[data-state] .step__panel {
    position: static; display: grid; grid-template-rows: 0fr; opacity: 0;
    visibility: visible; transform: none; pointer-events: auto;
    transition: grid-template-rows .5s var(--ease), opacity .4s;
  }
  .step[data-state="active"] .step__panel { grid-template-rows: 1fr; opacity: 1; }
  .step__inner { min-height: 0; overflow: hidden; gap: 0; padding: 2px 0 16px 42px; }
  .step__heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .step__text { font-size: 17px; line-height: 1.5; margin-bottom: 14px; max-width: none; }
  .step__next, .stepnav { display: none; }
  .step__hint { display: none; }
}

/* ---------- step media ---------- */
.card { border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.card--pad { padding: 28px; }
.card--stack { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.card--flush { overflow: hidden; }
.card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; }
.card__foot .muted { font-size: 17px; }
@media (max-width: 860px) { .card--pad { padding: 20px; } }

.map { position: relative; overflow: hidden; }
.map--short { aspect-ratio: 16 / 6; }
.map img, .map svg, .also__map > img, .also__map > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pin { fill: var(--blue); stroke: #fff; stroke-width: 4; }
.pulse {
  fill: none; stroke: var(--blue); stroke-width: 3; opacity: 0;
  transform-box: fill-box; transform-origin: center; animation: pulse 7.2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 12%, 100% { transform: scale(3.6); opacity: 0; } }

.callcard__num { font: 700 44px/1.2 var(--font-head); letter-spacing: -.03em; white-space: nowrap; margin-bottom: 18px; }
.callcard__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
@media (max-width: 860px) { .callcard__num { font-size: clamp(30px, 9vw, 40px); margin-bottom: 14px; } }

.note { border-radius: 16px; background: var(--bg); border: 1px solid var(--line); padding: 10px 14px; box-shadow: 0 6px 16px rgba(0, 22, 43, .06); }
.note--hi { border-color: var(--blue); box-shadow: 0 10px 24px rgba(0, 22, 43, .1); }
.note__head { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.note__head strong { color: var(--ink); }
.note p { margin-top: 2px; font-size: 16px; }

.photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; background: var(--navy); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; }
.kenburns { animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.08) translate(-1.5%, -1%); } }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); padding: 16px; }
.tile__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--band); color: var(--blue); }
.tile__t { margin-top: 12px; font-weight: 600; font-size: 17px; }
.tile__s { margin-top: 2px; font-size: 15px; color: var(--muted); }
@media (max-width: 860px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; padding: 12px; }
  .tile__icon { grid-row: 1 / 3; }
  .tile__t { margin: 0; }
}
@media (max-width: 599px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 6px; }
  .tile__t { margin-top: 8px; font-size: 15px; line-height: 1.25; }
  .tile__s { display: none; }
}
.linkrow {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 2px;
  padding: 12px 12px 12px 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); text-decoration: none;
}
.linkrow__go { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; }

.gpsearch { padding: 22px; }
.gpsearch__label { display: block; font-weight: 700; font-size: 18px; line-height: 1.3; }
.gpsearch__help { margin: 4px 0 12px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.gpsearch__field {
  display: flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 999px;
  background: var(--bg); border: 1.5px solid var(--line-strong); color: var(--muted);
}
.gpsearch__field:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }
.gpsearch__field input { flex: 1; min-width: 0; min-height: 52px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 17px; text-overflow: ellipsis; }
.gpsearch__status { margin: 10px 0 6px; font-size: 15px; color: var(--muted); }
.gpsearch__results { display: flex; flex-direction: column; gap: 6px; }
.gpsearch__results li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--mint); }
.gpsearch__results svg { flex: none; color: #16613f; }
.gpsearch__results strong { font-weight: 600; font-size: 16px; }
.gpsearch__results span { margin-left: auto; font-size: 14px; color: #33475b; white-space: nowrap; }
.gpsearch__more { margin-top: 6px; font-size: 14px; color: var(--muted); }
.gpsearch__also { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--navy); color: #fff; }
.gpsearch__also p { margin-bottom: 8px; font-weight: 700; font-size: 16px; color: var(--yellow); }
.gpsearch__also ul { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; font-weight: 600; }
.gpsearch__also li { display: inline-flex; align-items: center; gap: 6px; }
.gpsearch__also svg { color: #4ade80; }
@media (max-width: 860px) {
  .gpsearch { padding: 16px; }
  .gpsearch__help { display: none; }
  .gpsearch__label { margin-bottom: 10px; }
  .gpsearch .gpsearch__more { display: none; } /* the status already says "Showing 2 of 3"; the full list is in the search sheet */
}
.gpsearch__field input[readonly] { cursor: text; }
/* Full-screen search sheet on phones and tablets (home.js). */
.gpsheet {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0;
  padding: max(16px, env(safe-area-inset-top)) 16px 24px; border: 0; background: var(--bg); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
}
.gpsheet::backdrop { background: var(--bg); }
html:has(.gpsheet[open]) { overflow: hidden; }
.gpsheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.gpsheet__title { font-weight: 700; font-size: 18px; line-height: 1.3; }
.gpsheet__close {
  flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: var(--panel); color: var(--ink);
}
.gpsheet .gpsearch__status { margin-top: 12px; }
@media (max-width: 860px) and (max-height: 700px) {
  .gpsearch[data-q="0"] .gpsearch__status { display: none; }
  .gpsearch__label { font-size: 16px; margin-bottom: 8px; }
  .gpsearch__also { margin-top: 10px; padding: 10px 12px; }
  .gpsearch__also p { font-size: 14px; margin-bottom: 4px; }
  .gpsearch__also ul { font-size: 14px; gap: 2px 12px; }
}

.vcall { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 0; background: linear-gradient(160deg, #14365e, var(--navy)); color: #fff; }
.vcall__live {
  position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .35); font-size: 14px; font-weight: 600;
}
.vcall__dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.vcall__dr { position: absolute; left: 0; right: 0; top: 40px; bottom: 64px; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; }
.vcall__avatar {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: clamp(56px, 22%, 96px); aspect-ratio: 1; border-radius: 50%;
  background: var(--sky); color: var(--navy); font: 700 30px/1 var(--font-head);
  animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(191, 224, 255, .45); } 50% { box-shadow: 0 0 0 18px rgba(191, 224, 255, 0); } }
.vcall__name { padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, .35); font-size: 14px; font-weight: 600; white-space: nowrap; }
.vcall__self {
  position: absolute; right: 14px; bottom: 66px; width: 22%; aspect-ratio: 3 / 4; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  border-radius: 14px; background: linear-gradient(160deg, var(--cream), var(--line)); border: 2px solid rgba(255, 255, 255, .7);
}
.vcall__self svg { width: 78%; fill: var(--line-strong); }
.vcall__self span { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 22, 43, .7); font-size: 12px; font-weight: 600; }
.vcall__ctrls { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 10px; }
.vcall__ctrls span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.vcall__ctrls .vcall__end { background: #e5484d; }
@media (max-width: 860px) {
  .vcall { aspect-ratio: 5 / 4; }
  .vcall__self { top: 14px; bottom: auto; width: 20%; }
  .vcall__dr { top: 44px; bottom: 58px; }
  .vcall__avatar { font-size: 22px; }
}
@media (min-width: 600px) and (max-width: 860px) { .vcall { aspect-ratio: 16 / 9; } .vcall__dr { top: 40px; bottom: 64px; } }
@media (max-width: 860px) and (max-height: 800px) { .vcall { aspect-ratio: 16 / 10; } .vcall__dr { top: 36px; bottom: 52px; } }
@media (max-width: 860px) and (max-height: 700px) { .vcall { aspect-ratio: 16 / 9; } .vcall__dr { top: 30px; bottom: 48px; } }

.plan__sheet { border-radius: 16px; background: var(--bg); border: 1px solid var(--line); padding: 18px 20px; }
.plan__title { font-weight: 700; font-size: 17px; }
.plan__list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.plan__list li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--panel); }
.plan__tick { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--band); color: var(--blue); }
.plan__list strong { display: block; font-size: 16px; }
.plan__s { display: block; font-size: 14px; color: var(--muted); }
@media (max-width: 599px) {
  .plan { padding: 0; border: 0; background: transparent; }
  .plan__sheet { padding: 14px 16px; }
  .plan__list { gap: 6px; }
  .plan__list li { padding: 8px 10px; }
  .plan__s { display: none; }
}

.phonecard { display: flex; justify-content: center; padding: 22px; }
.phone {
  display: flex; flex-direction: column; gap: 8px; width: 230px;
  border-radius: 30px; border: 6px solid var(--ink); background: var(--bg); padding: 16px 12px 20px;
}
.phone__notch { align-self: center; width: 56px; height: 6px; border-radius: 6px; background: var(--line); margin-bottom: 6px; }
.phone__list { display: flex; flex-direction: column; gap: 8px; }
.note--sm { border-radius: 14px; background: var(--panel); padding: 10px 12px; box-shadow: none; }
.note--sm .note__head { font-size: 12px; }
.note--sm p { margin-top: 6px; font-size: 13px; line-height: 1.35; }
.phone__token { display: flex; gap: 10px; align-items: center; margin-top: 6px; font-size: 13px; line-height: 1.35; }
.qr {
  flex: none; width: 42px; height: 42px; border-radius: 6px; border: 3px solid var(--bg); outline: 1px solid var(--line);
  background: conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / 12px 12px;
}
@media (max-width: 860px) { .phone { width: min(230px, 100%); border-width: 5px; padding: 12px 10px 14px; } }
@media (max-width: 860px) and (max-height: 700px) {
  .phone { border: 0; padding: 0; width: 100%; background: transparent; }
  .phone__notch { display: none; }
}

/* items rise in one by one, the first time a step is shown */
.step[data-state="active"][data-seen="0"] .rise > * { animation: rise .55s var(--ease) both; }
.rise > :nth-child(1) { animation-delay: .35s !important; }
.rise > :nth-child(2) { animation-delay: 1.1s !important; }
.rise > :nth-child(3) { animation-delay: 1.85s !important; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- also on the route ---------- */
.also { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; }
.also__links { display: flex; flex-direction: column; gap: 12px; }
.also__links a {
  display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 20px;
  border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s;
}
.also__links a:hover { border-color: var(--blue); }
.also__links strong { display: block; font-weight: 600; font-size: 17px; }
.also__links span span { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; }
.also__links svg { margin-left: auto; flex: none; color: var(--blue); }
.also__map { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 360px; background: var(--navy); color: #fff; }
.route-line { fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 16; opacity: .6; }
.car circle { fill: var(--yellow); stroke: var(--navy); stroke-width: 4; }
.also__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 22, 43, .9) 0%, rgba(0, 22, 43, .6) 32%, rgba(0, 22, 43, 0) 52%); }
.also__cap { position: absolute; left: 24px; bottom: 22px; max-width: 38%; }
.also__cap p { font: 700 24px/1.2 var(--font-head); letter-spacing: -.02em; }
.also__cap a { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-weight: 600; }
@media (max-width: 860px) {
  .also { grid-template-columns: minmax(0, 1fr); }
  .also__cap { max-width: none; right: 24px; }
  .also__shade { background: linear-gradient(180deg, rgba(0, 22, 43, 0) 35%, rgba(0, 22, 43, .9) 100%); }
}
@media (prefers-reduced-motion: reduce) { .car { display: none; } }

/* ---------- opening hours ---------- */
.hoursgrid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; row-gap: 36px;
  grid-template-areas: "head card" "phg card";
}
.hoursgrid__head { grid-area: head; align-self: end; }
.phg {
  grid-area: phg; align-self: start; display: flex; align-items: center; gap: 18px; padding: 22px;
  border-radius: var(--radius); background: var(--mint); border: 1px solid var(--mint-line); color: var(--navy);
  text-decoration: none; box-shadow: 0 12px 28px rgba(24, 50, 95, .08); transition: background-color .2s;
}
.phg:hover { background: #dff4ea; }
.phg svg { flex: none; }
.phg strong { display: block; font-size: 19px; line-height: 1.3; }
.phg > span > span { display: block; margin-top: 4px; font-size: 16px; color: #33475b; }
.phg .phg__url { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; color: #18325f; }
.hours {
  --dw: 112px; grid-area: card; align-self: center; padding: 32px; border-radius: 28px;
  background: var(--navy); color: #fff; box-shadow: 0 24px 48px rgba(0, 22, 43, .18);
}
.hours dl { display: flex; flex-direction: column; gap: 18px; }
.hours__row { display: grid; grid-template-columns: var(--dw) minmax(0, 1fr); gap: 12px; align-items: end; }
.hours__row[data-today] { margin-bottom: 26px; }
.hours__row--hol { margin-top: 6px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hours dt { display: flex; flex-direction: column; gap: 2px; font-weight: 600; font-size: 17px; line-height: 1.2; }
.hours__today { display: none; font-size: 12px; font-weight: 700; color: var(--yellow); letter-spacing: .02em; }
.hours__row[data-today] .hours__today { display: inline; }
.hours__ab { display: none; }
.hours__labs { display: block; position: relative; height: 22px; margin-bottom: 6px; font-size: 15px; color: var(--on-dark-muted); }
.hours__lab { position: absolute; bottom: 0; white-space: nowrap; }
.hours__bar { display: block; position: relative; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.hours__seg { position: absolute; top: 0; bottom: 0; left: var(--a); width: calc(var(--b) - var(--a)); border-radius: 999px; background: var(--sky); }
.hours__now, .hours__nowtag { display: none; position: absolute; left: var(--now, 0); }
.hours__now { top: -6px; bottom: -6px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--yellow); box-shadow: 0 0 0 3px rgba(242, 208, 0, .25); }
.hours__nowtag { top: 16px; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.hours__row[data-today] :is(.hours__now, .hours__nowtag) { display: block; }
.hours__axis {
  display: flex; justify-content: space-between; margin: 14px 0 0 calc(var(--dw) + 12px);
  font: 400 12px/1 var(--font-mono); letter-spacing: .06em; color: #8fa0b3;
}
.hours__foot { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hours__foot p { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-size: 16px; color: var(--on-dark-muted); }
@media (max-width: 860px) {
  .hoursgrid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "card" "phg"; row-gap: 32px; }
  .hours { --dw: 52px; padding: 24px; }
  .hours__full { display: none; }
  .hours__ab { display: inline; }
  .hours__labs { font-size: 14px; }
}

/* ---------- reviews ---------- */
.reviews__head { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: end; margin-bottom: 48px; }
.rating { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rating__score { display: flex; align-items: center; gap: 12px; }
.rating__score > span:first-child { font: 700 56px/1 var(--font-head); letter-spacing: -.03em; }
.rating__count { font-size: 15px; color: var(--muted); }
.rating a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 16px; text-decoration: none; }
.stars { display: flex; color: #c27c0e; }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.review figure { height: 100%; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.review blockquote { margin: 18px 0 24px; font-size: 18px; line-height: 1.6; }
.review__more {
  display: none; align-self: flex-start; align-items: center; min-height: 44px; margin: -18px 0 18px; padding: 0;
  border: 0; background: none; color: var(--blue); font-weight: 700; font-size: 16px; text-decoration: underline; text-underline-offset: 3px;
}
.review figcaption { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; }
.avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 700; }
.avatar--peach { background: #fde7d3; color: #9a4a12; }
.avatar--lilac { background: #ede4fa; color: #5b2c99; }
.avatar--mint { background: #ddf2e8; color: #16613f; }
@media (max-width: 860px) {
  .rating { align-items: flex-start; }
  .reviews { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .review:not([data-expanded]) blockquote { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .review[data-clamped] .review__more { display: inline-flex; }
}

/* ---------- FAQ ---------- */
.faqgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 16px; text-decoration: none; transition: border-color .2s;
}
.chip svg { color: var(--blue); }
.chip:hover { border-color: var(--blue); }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: var(--blue); box-shadow: 0 12px 28px rgba(0, 22, 43, .08); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px;
  padding: 14px 16px 14px 24px; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item h3 { font-size: 18px; line-height: 1.35; font-weight: 600; transition: color .2s; }
.faq__item summary:hover h3, .faq__item[open] h3 { color: var(--blue); }
.faq__icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--band); transition: transform .25s, background-color .2s, color .2s;
}
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--navy); color: #fff; }
.faq__item p { padding: 0 24px 24px; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.faq__item a { color: var(--blue); font-weight: 600; }
@media (max-width: 860px) {
  .faqgrid { grid-template-columns: minmax(0, 1fr); }
  .faq__item summary { padding-left: 18px; }
  .faq__item p { padding: 0 18px 20px; }
}
