/* v2/v3 blocks (2026-11-19): hero demo (.hstage/.hscr, v4), 3-step story (.story), sticky chapters (.chapters).
   Extends site.css: same tokens, fonts and buttons; nothing in site.css is overridden. */

/* =========================== hero demo (v4): the two devices are the chooser =========================== */
.hcam { position: relative; transform-origin: 0 0; transition: transform .76s cubic-bezier(.22, .8, .25, 1); }
.hcam .phone { bottom: -32px; }
.hcam .laptop, .hcam .phone { transition: opacity .5s var(--ease), transform .5s var(--ease), filter .4s var(--ease), visibility .5s; }

/* device buttons + label chips (idle) */
.hdev { position: absolute; inset: 0; z-index: 6; border: 0; padding: 0; margin: 0; background: transparent; cursor: pointer; border-radius: 18px; }
.hdev:focus-visible { outline: 3px solid var(--turq-500); outline-offset: 6px; }
.hero__stage:not(.is-idle) .hdev { display: none; }
.hchip {
  position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .95); color: var(--sea-900); font: 600 13px/1.2 var(--font); white-space: nowrap; pointer-events: none;
  box-shadow: 0 8px 20px -10px rgba(4, 42, 66, .45), 0 0 0 1px rgba(4, 42, 66, .08); transition: transform .3s var(--ease), box-shadow .3s;
}
.hchip i { width: 7px; height: 7px; border-radius: 50%; background: var(--turq-500); box-shadow: 0 0 0 3px rgba(22, 189, 182, .22); }
.hdev--laptop .hchip { left: 3.5%; top: -15px; }
.hdev--phone .hchip { left: 50%; top: -15px; transform: translateX(-50%); }
.hero__stage.is-idle .laptop:has(> .hdev:hover), .hero__stage.is-idle .laptop:has(> .hdev:focus-visible) { transform: translateY(-5px); filter: drop-shadow(0 34px 44px rgba(4, 42, 66, .22)) drop-shadow(0 0 22px rgba(22, 189, 182, .35)); }
.hero__stage.is-idle .phone:has(> .hdev:hover), .hero__stage.is-idle .phone:has(> .hdev:focus-visible) { transform: translateY(-6px); box-shadow: var(--shadow-device), inset 0 0 0 1px rgba(255, 255, 255, .18), inset 0 0 0 2px rgba(0, 0, 0, .55), 0 0 30px rgba(22, 189, 182, .45); }
.hdev:hover .hchip, .hdev:focus-visible .hchip { box-shadow: 0 10px 24px -10px rgba(4, 42, 66, .5), 0 0 0 2px var(--turq-300); }
.hhint {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .9); border: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-muted); white-space: nowrap; transition: opacity .3s;
}
.hhint > span:not(.hhint__t) { width: 6px; height: 6px; border-radius: 50%; background: var(--turq-500); animation: hhint-pulse 2s var(--ease) infinite; }
@keyframes hhint-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.hero__stage:not(.is-idle) .hhint { opacity: 0; pointer-events: none; }

/* focus: laptop -> the phone slides away; phone -> the laptop dims back */
.hero__stage.is-focus-laptop .hcam .phone { opacity: 0; visibility: hidden; transform: translateX(70px); }
.hero__stage.is-focus-phone .hcam .laptop { opacity: .08; filter: none; }

/* a device screen that runs a tour */
.laptop__screen .hscr { position: absolute; inset: 0; }
.phone__screen .hscr { position: absolute; left: 0; right: 0; bottom: 0; top: 17px; top: 8.4cqw; z-index: 1; background: #F4F7FD; } /* = the status-bar padding-top of .phone__screen (site.css, cqw of the phone) */
.hscr[hidden] { display: none; }
.hscr__stage { position: absolute; inset: 0; overflow: hidden; }
.hscr__layer { position: absolute; left: 0; top: 0; transform-origin: 0 0; transition: transform .7s var(--ease); will-change: transform; }
.hscr .hscr__img { display: block; width: 100%; height: 100%; max-width: none; transition: opacity .35s var(--ease); }
.hscr__img.is-loading { opacity: .55; }
.hscr.is-free .hscr__stage::after { content: ""; position: absolute; inset: 0; background: rgba(4, 30, 46, .14); pointer-events: none; }
.hscr__spot {
  position: absolute; z-index: 1; border: 0; padding: 0; cursor: pointer; background: transparent; border-radius: 9px;
  box-shadow: 0 0 0 3px var(--turq-500), 0 0 0 4000px rgba(4, 30, 46, .3);
  transition: left .5s var(--ease), top .5s var(--ease), width .5s var(--ease), height .5s var(--ease);
}
.hscr__spot::after { content: ""; position: absolute; inset: -3px; border-radius: 11px; border: 3px solid var(--turq-300); animation: hscr-pulse 1.9s var(--ease) infinite; pointer-events: none; }
.hscr__spot[hidden] { display: none; }
.hscr__spot:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
@keyframes hscr-pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.3); } }

/* compact chooser inside the laptop screen */
.hchoose { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(4, 30, 46, .2); }
.hchoose[hidden] { display: none; }
.hchoose__in { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .96); text-align: center; box-shadow: 0 24px 50px -24px rgba(4, 42, 66, .6); }
.hchoose__in p { font-size: 14px; font-weight: 650; color: var(--sea-900); margin-bottom: 10px; }
.hchoose__pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hpill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px 0 8px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-strong); background: #fff; color: var(--sea-900); font: 600 14px/1.2 var(--font); transition: border-color .2s, background .2s;
}
.hpill:hover { border-color: var(--turq-600); background: var(--turq-100); }
.hpill b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--turq-100); color: var(--turq-700); font-size: 12px; }
.hpill--dark { width: 100%; justify-content: center; padding: 0 12px; min-height: 32px; font-size: 13px; background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.hpill--dark:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* compact tooltip + end chip: beside the focused device, outside its screen */
.htip, .hend {
  position: absolute; z-index: 8; text-align: left; left: 0; top: 0; width: 288px; padding: 13px 12px 10px; border-radius: 12px;
  background: var(--sea-900); color: #fff; font-size: 13.5px; line-height: 1.4;
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
  transition: left .45s var(--ease), top .45s var(--ease), opacity .25s;
}
.htip[hidden], .hend[hidden], .hclose[hidden] { display: none; }
.htip::before, .hend::before { content: ""; position: absolute; top: var(--ay, 50%); width: 12px; height: 12px; margin-top: -6px; background: var(--sea-900); transform: rotate(45deg); border-radius: 2px; }
.htip.is-right::before, .hend.is-right::before { left: -5px; }
.htip.is-left::before, .hend.is-left::before { right: -5px; }
.htip__bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 12px 12px 0 0; overflow: hidden; background: rgba(255, 255, 255, .14); }
.htip__bar span { display: block; height: 100%; width: 0; background: var(--turq-500); transition: width .5s var(--ease); }
.htip__count { font-size: 11.5px; font-weight: 600; color: var(--turq-300); font-variant-numeric: tabular-nums; }
.htip__line { margin-top: 2px; font-weight: 500; }
.htip__actions { display: flex; gap: 6px; margin-top: 9px; align-items: center; }
.htip__back { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .1); color: #fff; }
.htip__back:hover { background: rgba(255, 255, 255, .18); }
.htip__back:disabled { opacity: .3; cursor: default; }
.htip__back svg, .hclose svg { width: 16px; height: 16px; }
.htip__act { flex: 1; min-height: 32px; padding: 0 12px; font-size: 13px; justify-content: space-between; text-align: left; box-shadow: none; }
.htip__act svg { flex: none; width: 15px; height: 15px; }
.hend__h { font-weight: 650; font-size: 14px; }
.hend__btns { display: grid; gap: 6px; margin: 9px 0 8px; }
.hend__try { width: 100%; min-height: 34px; font-size: 13.5px; }
.hend__try svg { width: 15px; height: 15px; }
.hclose {
  position: absolute; z-index: 9; top: 0; right: 0; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border); cursor: pointer; background: rgba(255, 255, 255, .95); color: var(--sea-900);
  box-shadow: 0 6px 16px -6px rgba(4, 42, 66, .45);
}

/* phones: no two-device zoom; the device chips are the two choices, the laptop frame melts into a
   phone-width screen while a tour runs and the compact tooltip is docked under it */
@media (max-width: 700px) {
  .hero__stage { padding-bottom: 78px; }
  .hcam .phone { bottom: -30px; }
  .hhint { display: none; }
  .hdev--laptop .hchip { top: auto; bottom: -62px; left: 0; }
  .hdev--phone .hchip { top: auto; bottom: -32px; left: auto; right: 0; transform: none; }
  .hchip { font-size: 13px; padding: 8px 13px 8px 11px; }

  .hero__stage.is-touring { padding-bottom: 40px; }
  .hero__stage.is-touring .hcam { transform: none !important; }
  .hero__stage.is-touring .hcam .phone { display: none; }
  .hero__stage.is-touring .laptop { filter: none; opacity: 1; }
  .hero__stage.is-touring .laptop__lid { background: none; padding: 0; box-shadow: none; border-radius: 0; }
  .hero__stage.is-touring .laptop__lid::before, .hero__stage.is-touring .laptop__base { display: none; }
  .hero__stage.is-touring .laptop__screen { aspect-ratio: auto; overflow: visible; border-radius: 0; background: transparent; }
  .hero__stage.is-touring .hscr--laptop { position: relative; inset: auto; border-radius: 18px 18px 0 0; overflow: hidden; background: #F4F7FD; box-shadow: 0 0 0 1px rgba(4, 42, 66, .08); }
  .hero__stage.is-touring .hscr--laptop .hscr__stage { position: relative; inset: auto; height: clamp(380px, 56svh, 500px); }
  .hero__stage.is-touring .htip, .hero__stage.is-touring .hend { position: relative; left: auto !important; top: auto !important; width: auto; border-radius: 0 0 18px 18px; transition: none; box-shadow: 0 24px 40px -26px rgba(4, 42, 66, .5); }
  .hero__stage.is-touring .htip::before, .hero__stage.is-touring .hend::before { display: none; }
  .hero__stage.is-touring .htip__bar { border-radius: 0; }
  .hero__stage.is-touring .htip__line { font-size: 14px; }
  .hero__stage.is-touring[data-state="choose"] .hscr--laptop { border-radius: 18px; }
  .hclose { top: 10px; right: 10px; }
  .hchoose__in { margin: 0 14px; }
  .hchoose__pills { flex-direction: column; }
  .hpill { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .hcam, .hcam .laptop, .hcam .phone, .hscr__layer, .hscr__spot, .htip, .hend, .hscr__img, .htip__bar span { transition: none !important; }
  .hscr__spot::after, .hhint > span:not(.hhint__t) { animation: none; }
}

/* =========================== 3-step story =========================== */
.story__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.story h2 { font-size: clamp(36px, 4.6vw, 60px); color: var(--sea-900); letter-spacing: -0.03em; }
.story h2 span { display: block; background: linear-gradient(100deg, var(--turq-700), var(--sea-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.story__steps { display: grid; gap: 10px; margin-top: 44px; }
.story__step {
  position: relative; display: block; width: 100%; text-align: left; cursor: pointer; overflow: hidden;
  padding: 20px 24px; border-radius: 18px; border: 1px solid transparent; background: var(--bg-soft);
  font: inherit; color: inherit; transition: background .35s var(--ease), border-color .35s, box-shadow .35s;
}
.story__step:hover { background: #EAF2F6; }
.story__step.is-on { background: #fff; border-color: var(--border); box-shadow: 0 18px 40px -28px rgba(4, 42, 66, .35); }
.story__title { display: block; font-size: 20px; font-weight: 650; letter-spacing: -0.015em; color: #7E97A4; transition: color .35s; }
.story__step.is-on .story__title { color: var(--sea-900); }
.story__desc { display: block; max-height: 0; opacity: 0; overflow: hidden; font-size: 16px; color: var(--text-muted); transition: max-height .5s var(--ease), opacity .4s, margin .4s; }
.story__step.is-on .story__desc { max-height: 120px; opacity: 1; margin-top: 6px; }
.story__bar { position: absolute; left: 24px; right: 24px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--border); opacity: 0; }
.story__bar i { display: block; height: 100%; width: 0; background: var(--turq-600); border-radius: inherit; }
.story__step.is-on .story__bar { opacity: 1; }
.story__step.is-on .story__bar i { animation: story-fill 6.5s linear forwards; }
.story.is-paused .story__bar i { animation-play-state: paused; }
.story.is-static .story__bar { display: none; }
.story.is-static .story__step.is-on .story__bar i { animation: none; }
@keyframes story-fill { from { width: 0; } to { width: 100%; } }

.story__visual { position: relative; aspect-ratio: 4 / 5; max-height: 680px; width: 100%; margin-left: auto; border-radius: 26px; overflow: hidden; background: #3B3A35; }
.story__photo { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.05); transition: opacity .9s var(--ease), transform 6s var(--ease); }
.story__photo.is-on { opacity: 1; transform: scale(1); }
.story__photo img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.03) saturate(.88) sepia(.06); }
/* film grain + soft vignette over the photo */
.story__visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(20, 16, 10, .35));
  mix-blend-mode: overlay; opacity: .55;
}
.story__card {
  position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 20px;
  background: rgba(255, 255, 255, .97); border-radius: 16px; font-size: 14px; line-height: 1.4; color: var(--text);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none;
}
.story__card.is-on { opacity: 1; transform: none; transition-delay: .15s; }
.qc__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--sea-900); }
.qc__head small { font-weight: 500; color: var(--text-muted); font-size: 13px; }
.qc__rows { list-style: none; margin: 0; padding: 0; }
.qc__rows li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid #EDF3F6; }
.qc__rows li:last-child { border-bottom: 0; }
.qc__av { grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--sea-600); }
.qc__who { font-weight: 600; color: var(--sea-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc__when { font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.qc__what { grid-column: 2 / 4; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.qc__what b { color: var(--text); font-weight: 600; }
.qc__rows li.is-faded { opacity: .45; }
.qc__items { padding: 6px 16px; }
.qc__item { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed #E2ECF1; color: var(--text); }
.qc__item span:last-child, .qc__total span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.qc__total { display: flex; justify-content: space-between; padding: 10px 0 4px; font-weight: 700; color: var(--sea-900); font-size: 15.5px; }
.qc__link { display: flex; gap: 8px; padding: 10px 16px 14px; }
.qc__url { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--sea-700); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc__copied { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 10px; background: var(--turq-100); color: var(--turq-700); font-weight: 600; font-size: 13px; }
.qc__copied svg, .qc__tl svg { width: 15px; height: 15px; }
.qc__pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--sea-100); color: var(--sea-700); }
.qc__pill--ok { background: #DDF3E6; color: var(--green-600); }
.qc__tl { list-style: none; margin: 0; padding: 6px 16px 12px; }
.qc__tl li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; }
.qc__dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sea-100); color: var(--sea-700); }
.qc__tl li.is-yes .qc__dot { background: var(--green-600); color: #fff; }
.qc__tl li.is-yes { font-weight: 600; color: var(--sea-900); }

@media (max-width: 960px) {
  .story__in { grid-template-columns: 1fr; gap: 40px; }
  .story__visual { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .story__steps { margin-top: 30px; gap: 8px; }
  .story__step { padding: 16px 18px; }
  .story__title { font-size: 17.5px; }
  .story__desc { font-size: 15px; }
  .story__bar { left: 18px; right: 18px; }
  .story__visual { border-radius: 20px; }
  .story__card { left: 12px; right: 12px; bottom: 12px; font-size: 13px; }
  .qc__rows li { padding: 8px 12px; }
  .qc__head, .qc__items, .qc__link, .qc__tl { padding-left: 12px; padding-right: 12px; }
}

/* =========================== sticky chapters ("How it works") =========================== */
.chapters { position: relative; }
.chapters__pin {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 64px;
  grid-template-areas: "list stage" "text stage"; grid-template-rows: auto 1fr; align-items: start;
}
.chapters__list { grid-area: list; list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.chapters__tab {
  display: block; width: 100%; text-align: left; cursor: pointer; border: 0; background: none;
  padding: 7px 0 7px 20px; border-left: 2px solid var(--border);
  font: 600 21px/1.25 var(--font); letter-spacing: -0.015em; color: #A3B6C0; transition: color .3s, border-color .3s;
}
.chapters__tab:hover { color: var(--sea-700); }
.chapters__tab[aria-selected="true"] { color: var(--sea-900); border-left-color: var(--turq-600); }
.chapters__texts { grid-area: text; margin-top: 30px; }
.chapters__text h3 { font-size: clamp(26px, 2.4vw, 32px); color: var(--sea-900); }
.chapters__text p { margin-top: 14px; font-size: 17px; color: var(--text-muted); }
.chapters__text .feature__list { margin-top: 20px; gap: 9px; }
.chapters__text .feature__list li { font-size: 15px; }
.chapters__text:not([hidden]) { animation: ch-in .55s var(--ease); }
@keyframes ch-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.chapters__stage { grid-area: stage; position: relative; border-radius: 28px; background: var(--bg-soft); border: 1px solid var(--border); overflow: hidden; }
.scene { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 40px 28px; opacity: 0; transform: translateY(34px) scale(.98); transition: opacity .6s var(--ease), transform .7s var(--ease); pointer-events: none; }
.scene.is-before { transform: translateY(-34px) scale(.98); }
.scene.is-on { opacity: 1; transform: none; pointer-events: auto; }
.scene .laptop { width: 100%; max-width: 720px; }
.scene .phone--feature { width: min(260px, 70%); }
.scene__frames { position: relative; }
.scene__chips { display: inline-flex; gap: 4px; padding: 4px; margin-top: 22px; background: #fff; border: 1px solid var(--border); border-radius: 999px; }
.scene__chips button { border: 0; background: transparent; font: 500 14px/1 var(--font); color: var(--text-muted); padding: 9px 15px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.scene__chips button[aria-pressed="true"] { background: var(--sea-900); color: #fff; }
.scene__phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); width: 100%; max-width: 620px; }
.scene__phones figure { margin: 0; }
.scene__phones figure:nth-child(2) { transform: translateY(-18px); }
.scene__phones figcaption { margin-top: 14px; text-align: center; font-size: 14px; color: var(--text-muted); }
.scene__phones figcaption b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--turq-600); color: #fff; font-size: 12px; }
.chapters__mark { position: absolute; left: 0; top: 0; width: 1px; height: 1px; pointer-events: none; }

/* wide screens: scroll drives the chapters */
.chapters.is-scrolly { height: calc(var(--n) * var(--step) + 100vh - 64px); }
.chapters.is-scrolly .chapters__pin { position: sticky; top: 64px; height: calc(100vh - 64px); align-content: center; padding: 24px 0; }
.chapters.is-scrolly .chapters__stage { height: min(620px, calc(100vh - 64px - 64px)); align-self: center; }
.chapters.is-scrolly .chapters__mark { top: calc(var(--i) * var(--step) + 20px); }
.chapters:not(.is-scrolly) .chapters__stage { min-height: 560px; }

@media (max-width: 960px) {
  .chapters__pin { grid-template-columns: 1fr; grid-template-areas: "list" "stage" "text"; grid-template-rows: auto; }
  .chapters__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 14px; margin: 0 -2px; scroll-snap-type: x proximity; }
  .chapters__list::-webkit-scrollbar { display: none; }
  .chapters__list li { flex: none; scroll-snap-align: start; }
  .chapters__tab { width: auto; white-space: nowrap; padding: 10px 16px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--text-muted); }
  .chapters__tab[aria-selected="true"] { background: var(--sea-900); border-color: var(--sea-900); color: #fff; }
  .chapters__stage { min-height: 0 !important; border-radius: 22px; }
  .scene { position: relative; inset: auto; display: none; padding: 28px 16px 22px; transform: none; transition: none; }
  .scene.is-on { display: flex; animation: ch-in .5s var(--ease); }
  .chapters__texts { margin-top: 26px; }
}
@media (max-width: 700px) {
  .scene__phones { gap: 10px; }
  .scene__phones figure:nth-child(2) { transform: none; }
  .scene__phones figcaption { font-size: 12px; margin-top: 10px; }
  .scene__phones figcaption b { display: grid; margin: 0 auto 4px; }
  .scene__chips button { padding: 9px 12px; font-size: 13.5px; }
}

/* =========================== reduced motion =========================== */
@media (prefers-reduced-motion: reduce) {
  .story__photo, .story__card, .story__desc { transition: none; transform: none; }
  .story__bar { display: none; }
  .scene, .scene.is-before { transition: none; transform: none; }
  .chapters__text:not([hidden]), .scene.is-on { animation: none; }
}

/* frames inside a chapter scene (same behaviour as .swap in site.css) */
.scene__frames img { transition: opacity .45s var(--ease); }
.scene__frames img.is-hidden { position: absolute; inset: 0; opacity: 0; pointer-events: none; }

/* v4: while the hero demo is open the page must not move by itself (no scroll anchoring) */
html.hdemo-open { overflow-anchor: none; }

/* =========================== v5: hero devices visible on first load =========================== */
/* The hero stage no longer waits for the scroll observer (with the HU lead it started below 92% of a 900 px
   viewport and never revealed until scrolling); it fades in on load instead. */
.js .hero .hero__stage.reveal { opacity: 1; transform: none; animation: hero-stage-in .9s var(--ease) .25s both; }
@keyframes hero-stage-in { from { opacity: 0; transform: translateY(40px) scale(.97); } to { opacity: 1; transform: none; } }

/* =========================== v5b: "you can try it" cue (assets/hero-cue.js): ghost cursor; beacons as fallback =========================== */
.hcue-beacon, .hcue-cursor, .hcue-ripple { position: absolute; pointer-events: none; }
.hero__stage:not(.is-idle) .hcue-beacon, .hero__stage:not(.is-idle) .hcue-cursor, .hero__stage:not(.is-idle) .hcue-ripple, .hero__stage.hcue-done .hcue-beacon { display: none; }

/* beacons: phones (<=700px) and the static reduced-motion fallback */
.hcue-beacon { z-index: 3; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--turq-500); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 4px 10px rgba(4, 42, 66, .35); opacity: 0; transition: opacity .4s; }
.hcue-beacon::before, .hcue-beacon::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--turq-500); opacity: 0; }
.hcue-beacon--laptop { left: 98%; top: 14.8%; } /* top-right corner of "New quote", like a badge: the label stays readable */
.hcue-beacon--phone { left: 86%; top: 47%; } /* right end of "Download PDF" */
.hero__stage[data-cue-live="beacon"].hcue-run .hcue-beacon, .hero__stage.hcue-static .hcue-beacon { opacity: 1; }
.hero__stage[data-cue-live="beacon"].hcue-run .hcue-beacon::before { animation: hcue-ping 2s cubic-bezier(.2, .7, .3, 1) infinite; }
.hero__stage[data-cue-live="beacon"].hcue-run .hcue-beacon::after { animation: hcue-ping 2s cubic-bezier(.2, .7, .3, 1) 1s infinite; }
.hero__stage[data-cue-live="beacon"].hcue-run .hcue-beacon--phone::before, .hero__stage[data-cue-live="beacon"].hcue-run .hcue-beacon--phone::after { animation-delay: .5s, 1.5s; }
.hero__stage.hcue-static .hcue-beacon::before { opacity: .5; transform: scale(1.4); }
@keyframes hcue-ping { 0% { opacity: .85; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.6); } }

/* ghost cursor + click ripple (positions driven by the Web Animations API) */
.hcue-cursor { z-index: 7; left: 0; top: 0; width: 24px; height: 24px; opacity: 0; transform-origin: 0 0; filter: drop-shadow(0 4px 8px rgba(4, 42, 66, .35)); }
.hcue-cursor svg { display: block; }
.hcue-ripple { z-index: 6; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--turq-500); background: rgba(22, 189, 182, .18); opacity: 0; }

@media (max-width: 700px) {
  .hcue-beacon { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__stage .hcue-beacon::before, .hero__stage .hcue-beacon::after { animation: none !important; }
}
