/* Page sections, in page order. One display number per section; plain type on the surface with
   hairline rules instead of bordered cards. */

/* 1. opening */
.hero { background: var(--grad); padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__copy { display: grid; gap: 1.6rem; }
.hero .lede { color: rgba(255,255,255,0.88); max-width: 34em; }
.hero__how { color: rgba(255,255,255,0.72); max-width: 40em; }
/* the phone never stands taller than the window: its width is capped by the height left under the top bar */
.hero__loop { width: min(100%, 25rem, max(12rem, calc((100svh - 11rem) * 9 / 18.5))); margin: 0 auto; }
.hero__video { width: 100%; border-radius: var(--radius); background: #000; aspect-ratio: 16 / 9; }

/* 2. why two people go */
.jobs { margin-top: 2.25rem; border-top: 2px solid var(--navy); }
.jobs__row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 1.5fr); gap: 0.5rem 2rem; align-items: baseline; padding: 1.4rem 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; color: var(--navy); }
.jobs__row[hidden] { display: none; }
.jobs__row--head { padding: 0.9rem 0; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.jobs__row b { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.25; }
.jobs__now { color: var(--muted); }
.same { margin-top: 2.25rem; padding: 1.75rem 2rem; border-radius: 12px; background: var(--low); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem 2.5rem; }
.same p { margin: 0; color: var(--navy); }
.same__label { grid-column: 1 / -1; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* 3. the test: a flat dark stage, so the phone is the only bright thing on screen */
.stage { background: var(--navy); }
.stage h2 { margin-bottom: 2.5rem; }
.stage .sim__stage { width: min(25rem, max(12rem, calc((100svh - 16rem) * 9 / 18.5))); justify-self: end; }

/* 4. end of the day */
.pair, .trio { display: grid; gap: clamp(2rem, 4vw, 3.5rem); margin-top: 2.5rem; }
.shot { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 1.25rem 3rem; align-items: center; }
.shot:nth-child(even) { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); }
.shot:nth-child(even) figcaption { order: 2; }
.shot figcaption { order: -1; font-size: 1.125rem; line-height: 1.55; }
.shot figcaption b { display: block; margin-bottom: 0.4rem; color: var(--navy); font-weight: 600; font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.25; }
.shot .app--desk { font-size: 1.32cqw; }
.shot .device--desk { aspect-ratio: 16 / 10.8; }
/* a real screenshot of the app in the browser frame: the image sets the height */
.device--shot, .shot .device--shot { aspect-ratio: auto; display: block; }
.device--shot img { display: block; width: 100%; height: auto; }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; margin: 1.5rem 0; border-top: 1px solid var(--line); }
.fig { padding: 1.5rem 0 0.5rem; display: grid; gap: 0.4rem; align-content: start; }
.fig b { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 600; color: var(--navy); line-height: 1.1; }
.targets .muted { max-width: 60rem; }

/* 5. what it doesn't touch */
.draw { margin-top: 2rem; display: grid; gap: 1.5rem; }
.draw p { margin: 0; max-width: 56rem; }
.draw__nums { display: flex; flex-wrap: wrap; gap: 1rem 2.75rem; }
.draw__nums div { display: grid; gap: 0.2rem; max-width: 14rem; }
.draw__nums b { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.batt { display: grid; gap: 0.5rem; padding: 1.5rem 1.75rem; border-radius: 12px; background: var(--low, #f5f5fa); max-width: 56rem; }
.batt__big { font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.3; color: var(--navy); }
.batt__big b { font-weight: 700; }
.draw__nums span { font-size: 0.9375rem; line-height: 1.4; color: var(--muted); }
.facts3 { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; border-top: 1px solid var(--line); }
.facts3 p { margin: 0; padding-top: 1.4rem; }
.facts3 b { display: block; color: var(--navy); font-weight: 600; font-size: 1.125rem; margin-bottom: 0.25rem; }

/* 6. your panels */
.status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 2rem 0 1.25rem; }
.status__col { padding: 1.75rem 2rem; border-radius: 12px; background: #fff; display: grid; gap: 0.9rem; align-content: start; }
.status__col p { margin: 0; }
.status__col--wide { grid-column: 1 / -1; }
.status__big { font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.3; font-weight: 600; color: var(--navy); }
.status__list { font-size: 1.125rem; line-height: 1.6; color: var(--navy); }
.status b { color: var(--navy); }
.tag { justify-self: start; font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.65rem; border-radius: 4px; background: #eeeef3; color: #55576f; }
.tag--ok { background: #dff3e9; color: #146a47; }

/* 7. where it pays */
.line { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.25rem 3.5rem; margin: 1.5rem 0 2.25rem; }
.line__num { display: grid; }
.line__num b { font-size: clamp(3.25rem, 8.5vw, 7rem); line-height: 0.95; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); font-variant-numeric: tabular-nums; }
.line__num span { font-size: 1.1875rem; font-weight: 500; color: var(--navy); margin-top: 0.4rem; }
.line p { flex: 1 1 22rem; margin: 0; font-size: 1.1875rem; line-height: 1.55; max-width: 30em; }
.calc { background: var(--low); border-radius: 12px; padding: clamp(1.5rem, 3.5vw, 2.5rem); display: grid; gap: 1.9rem; }
.calc__presets { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.75rem; }
.calc__presets > span { font-weight: 600; color: var(--navy); }
.calc__presets small { font-size: 0.875rem; color: var(--muted); }
.calc__presets button { min-height: 2.75rem; padding: 0.5rem 1rem; border-radius: 6px; border: 1px solid #d1d5db; background: #fff; color: var(--navy); font-size: 0.9375rem; font-weight: 500; cursor: pointer; transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease); }
.calc__presets button:hover { border-color: var(--navy); }
.calc__presets button.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.calc__sliderhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.calc__sliderhead label { font-weight: 600; color: var(--navy); }
.calc__sliderhead output { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.calc__sliderhead small { font-size: 1rem; font-weight: 400; color: var(--muted); margin-left: 0.4rem; }
.calc__track { position: relative; height: 44px; margin-top: 0.4rem; }
.calc__track::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 10px; border-radius: 5px; background: #e2e2ea; }
.calc__track i { position: absolute; left: 0; top: 17px; height: 10px; border-radius: 5px; background: var(--orange); }
.calc__track u { position: absolute; top: 6px; bottom: 6px; width: 3px; margin-left: -1px; background: var(--navy); border-radius: 2px; }
.calc__track input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.calc__track input::-webkit-slider-runnable-track { background: transparent; height: 44px; }
.calc__track input::-moz-range-track { background: transparent; height: 44px; }
.calc__track input::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: 7px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); box-shadow: 0 2px 6px rgba(39,40,61,0.28); }
.calc__track input::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); box-shadow: 0 2px 6px rgba(39,40,61,0.28); }
.calc__scale { position: relative; display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--muted); height: 1.5rem; }
.calc__scale b { position: absolute; transform: translateX(-50%); font-weight: 600; color: var(--navy); white-space: nowrap; }
.calc__sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; padding-top: 1.75rem; border-top: 1px solid #dcdce6; }
.calc__sum > div { display: grid; gap: 0.2rem; align-content: start; }
.calc__sum span { font-size: 0.9375rem; color: var(--muted); }
.calc__sum b { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 600; line-height: 1.15; color: var(--navy); font-variant-numeric: tabular-nums; }
.calc__sum small { font-size: 0.875rem; color: var(--muted); line-height: 1.4; }
.calc__net { padding: 0.9rem 1.1rem; margin: -0.9rem 0; border-radius: 10px; background: #fff; }
.calc__net.is-ahead { background: #dff3e9; }
.calc__net.is-ahead span, .calc__net.is-ahead b, .calc__net.is-ahead small { color: #146a47; }
.calc__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.calc__fields label { display: grid; gap: 0.35rem; font-size: 0.9375rem; font-weight: 500; color: var(--navy); }
.calc__fields input { width: 100%; min-height: 3rem; padding: 0.5rem 0.85rem; border: 1px solid #d1d5db; border-radius: 6px; font: inherit; font-variant-numeric: tabular-nums; color: var(--navy); background: #fff; }
.after { margin-top: 2.5rem; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.25rem 3.5rem; align-items: baseline; }
.after p { margin: 0; }
.after__big { font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.25; font-weight: 600; color: var(--navy); }

/* 8. the pilot */
#pilot { background: var(--grad-slate); }
#pilot .lede { color: rgba(255,255,255,0.85); }
.pilot { margin-top: 2.5rem; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: 2rem 3.5rem; align-items: start; }
.pilot .same__label { color: rgba(255,255,255,0.7); }
.pilot ol { list-style: none; counter-reset: p; margin: 0.9rem 0 0; padding: 0; }
.pilot li { counter-increment: p; display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; align-items: baseline; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.18); font-size: 1.1875rem; line-height: 1.45; color: #fff; }
.pilot li:last-child { border-bottom: 1px solid rgba(255,255,255,0.18); }
.pilot li::before { content: counter(p); font-size: 1.375rem; font-weight: 600; color: var(--orange); font-variant-numeric: tabular-nums; }
#pilotTerms { margin-top: 1.25rem; color: rgba(255,255,255,0.85); }
.contact { background: #fff; color: var(--text); border-radius: 12px; padding: 2rem; display: grid; gap: 0.75rem; justify-items: start; }
.contact .same__label { color: #6d6f85; }
.contact p { margin: 0; }
.contact__big { font-size: 1.375rem; line-height: 1.35; font-weight: 600; color: var(--navy); }
.contact__name { margin-top: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--line); width: 100%; font-size: 1.125rem; font-weight: 600; color: var(--navy); }
.contact a:not(.btn) { color: var(--navy); font-weight: 500; }
.contact .btn { font-size: 1.0625rem; padding: 0.8rem 1.4rem; }

/* 9. also on the same unit */
.onsell { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); max-width: 62rem; }
.onsell b { color: var(--navy); }

/* 10. technical reference */
.faqs { display: grid; gap: 0.75rem; }
.faqs__group { display: grid; gap: 0.75rem; }
.faq { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 600; font-size: 1.0625rem; color: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; color: var(--orange-ink); line-height: 1; }
.faq[open] summary::after { content: "\2212"; }
.faq__a { padding: 0 1.25rem 1.25rem; display: grid; gap: 0.85rem; }
.faq__a p { margin: 0; }

@media (max-width: 960px) {
  .hero__in, .draw, .after, .pilot { grid-template-columns: minmax(0, 1fr); }
  .status, .figs, .facts3, .same, .calc__sum, .calc__fields, .shot, .shot:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .shot:nth-child(even) figcaption { order: -1; }
  .jobs__row { grid-template-columns: minmax(0, 1fr); padding: 1.1rem 0; }
  .jobs__row--head { display: none; }
  .jobs__now::before { content: "Today: "; }
  .calc__net { margin: 0; }
  .calc__scale b { position: static; transform: none; order: 3; }
}

/* everything else the unit does: two labelled groups of short cards */
.group__label { display: block; margin: 2.5rem 0 1.5rem; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.card { padding: 1.5rem 1.6rem; border-radius: 12px; background: var(--low); display: grid; gap: 0.5rem; align-content: start; }
.card b { color: var(--navy); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; }
.card p { margin: 0; font-size: 1rem; line-height: 1.55; }
.sell { margin-top: 3.5rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.sell__big { margin: 0; font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.25; font-weight: 600; color: var(--navy); max-width: 34rem; }
.cards--sell { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 2rem 0 1.25rem; }
.cards--sell .card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange, #fe8f1d); }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards, .cards--sell { grid-template-columns: minmax(0, 1fr); } }

/* winning and keeping contracts: the one extra demo, full width, then the report as a sheet of paper */
.demo { margin: 2.5rem 0 0; display: grid; gap: 1.5rem; }
.demo__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; background: #f5f5fa; }
.demo figcaption { max-width: 52rem; font-size: 1.125rem; line-height: 1.55; }
.demo figcaption b { display: block; margin-bottom: 0.4rem; color: var(--navy); font-weight: 600; font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.25; }
.proof { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2rem 4rem; align-items: center; }
.proof__copy { display: grid; gap: 1.25rem; justify-items: start; }
.proof__copy p { margin: 0; font-size: 1.125rem; line-height: 1.55; max-width: 34em; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; width: 100%; border-top: 1px solid var(--line); }
.ticks li { position: relative; padding: 0.9rem 0 0.9rem 2rem; border-bottom: 1px solid var(--line); color: var(--navy); font-size: 1.0625rem; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0.15rem; top: 1.2rem; width: 0.9rem; height: 0.45rem; border-left: 2.5px solid #1a8a5c; border-bottom: 2.5px solid #1a8a5c; transform: rotate(-45deg); }
.paper { display: block; justify-self: center; width: min(100%, 27rem); border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(39,40,61,0.08), 0 18px 50px rgba(39,40,61,0.16); transform: rotate(1.2deg); transition: transform 250ms var(--ease); }
.paper:hover { transform: rotate(0deg) translateY(-4px); }
.paper img { display: block; width: 100%; height: auto; }
/* the pilot offer: labelled rows */
.pilot dl { margin: 0.9rem 0 0; }
.pilot dl > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.4rem 1.5rem; align-items: baseline; padding: 1.1rem 0; border-top: 1px solid rgba(255,255,255,0.18); }
.pilot dl > div:last-child { border-bottom: 1px solid rgba(255,255,255,0.18); }
.pilot dt { font-size: 0.9375rem; font-weight: 600; color: var(--orange); }
.pilot dd { margin: 0; font-size: 1.125rem; line-height: 1.5; color: #fff; }
.pilot__demo { margin: 1.5rem 0 0; padding: 1.1rem 1.4rem; border-left: 4px solid var(--orange); background: rgba(255,255,255,0.08); border-radius: 0 10px 10px 0; color: #fff; font-size: 1.1875rem; line-height: 1.45; max-width: 52rem; }
@media (max-width: 960px) { .proof { grid-template-columns: minmax(0, 1fr); } .pilot dl > div { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .paper { transition: none; } }

/* everything else, shown with the real app: six picture tiles, then one row per service */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.75rem; }
.tile { margin: 0; display: grid; gap: 1rem; align-content: start; }
.tile__img { display: block; border-radius: 10px; overflow: hidden; border: 1px solid #d9dbe3; box-shadow: 0 10px 30px rgba(21,22,31,0.10); aspect-ratio: 16 / 10; background: #ececf3; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.tile__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.tile__img:hover, .combo .zoom:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(21,22,31,0.18); }
.tile figcaption { font-size: 1rem; line-height: 1.55; }
.tile figcaption b { display: block; margin-bottom: 0.25rem; color: var(--navy); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; }
.zoom { cursor: zoom-in; }
.svc { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2rem clamp(2rem, 5vw, 4.5rem); align-items: center; margin-top: clamp(3rem, 6vw, 5.5rem); }
.svc:nth-of-type(even) .svc__copy { order: 2; }
.svc__copy { display: grid; gap: 1rem; }
.svc__n { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.08em; color: var(--orange-ink, #a85300); font-variant-numeric: tabular-nums; }
.svc h3 { margin: 0; font-size: clamp(1.625rem, 2.6vw, 2.125rem); line-height: 1.2; }
.svc__copy p { margin: 0; font-size: 1.125rem; line-height: 1.55; }
.combo { position: relative; padding: 0 0 7% 0; }
.combo .device--shot { transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.combo__phone { position: absolute; right: -1.5%; bottom: 0; width: 23%; border-radius: 1.4rem; overflow: hidden; border: 0.4rem solid #27283d; background: #27283d; box-shadow: 0 18px 44px rgba(21,22,31,0.32); transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.svc:nth-of-type(even) .combo__phone { right: auto; left: -1.5%; }
.combo__phone img { display: block; width: 100%; height: auto; border-radius: 1rem; }
.sell > .muted { margin-top: 3rem; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(21,22,31,0.82); }
.lightbox img { display: block; max-width: 96vw; max-height: 94vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); cursor: zoom-out; }
.lightbox__x { position: absolute; top: -0.75rem; right: -0.75rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: #fff; color: #27283d; font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.3); }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .svc { grid-template-columns: minmax(0, 1fr); } .svc:nth-of-type(even) .svc__copy { order: 0; } }
@media (max-width: 640px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .tile__img, .combo .zoom, .combo__phone { transition: none; } }
.device.device--shot { aspect-ratio: auto; display: block; overflow: hidden; }
.combo a, .tile a { text-decoration: none; }
@media (min-width: 961px) { .svc:nth-of-type(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }
.device--shot img.print-only { display: none; }

/* the two demos fit the window: the page settles on them softly and they start once they are properly in view */
html { scroll-padding-top: 4.1rem; }
.sim__unmute { display: none; justify-self: start; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 1.1rem; border-radius: 1.4rem; border: 1px solid var(--orange); background: rgba(254,143,29,0.14); color: var(--head); font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer; }
.sim.is-blocked.is-playing .sim__unmute { display: inline-flex; animation: sim-words 400ms var(--ease) both; }
.demo figcaption { order: -1; }
.demo__frame { display: grid; gap: 0.9rem; width: 100%; margin: 0 auto; }
.demo__ctl { display: flex; align-items: center; gap: 1rem; }
.demo__play { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: var(--orange); color: #fff; font-size: 0.875rem; cursor: pointer; display: grid; place-items: center; }
.demo__steps { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 0.6fr 1.6fr; gap: 0.75rem; }
.demo__steps li { position: relative; padding-top: 0.7rem; font-size: 0.9375rem; line-height: 1.35; color: var(--muted); cursor: pointer; transition: color 200ms var(--ease); }
.demo__steps li::before, .demo__steps li i { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 0.25rem; border-radius: 0.125rem; background: #dcdce6; }
.demo__steps li i { background: var(--orange); transform-origin: left; transform: scaleX(0); z-index: 1; }
.demo__steps li.is-on, .demo__steps li.is-past { color: var(--navy); }
.demo__steps li.is-on { font-weight: 600; }
.demo__steps b { color: var(--orange-ink, #a85300); margin-right: 0.3rem; font-variant-numeric: tabular-nums; }
@media (min-width: 961px) and (min-height: 560px) {
  .stage { min-height: calc(100svh - 4.1rem); display: grid; align-items: center; padding-block: clamp(1.25rem, 3.5vh, 3rem); }
  .stage h2 { margin-bottom: clamp(1rem, 3vh, 2.5rem); }
  .stage .sim__stage { width: min(25rem, max(11rem, calc((100svh - 19.5rem) * 9 / 18.5))); }
  .demo__frame { width: min(100%, max(30rem, calc((100svh - 21rem) * 1.6))); }
}
@media (max-width: 640px) { .demo__steps { grid-template-columns: 1fr; gap: 0.5rem; } .demo__ctl { align-items: start; } }
.demo__steps { grid-template-columns: 1.1fr 0.9fr 1.8fr; }
@media (min-width: 961px) and (min-height: 560px) and (max-height: 780px) {
  .stage h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
  .stage .sim__stage { width: min(25rem, max(11rem, calc((100svh - 13.5rem) * 9 / 18.5))); }
  .demo figcaption b { font-size: 1.375rem; }
  .demo__frame { width: min(100%, max(30rem, calc((100svh - 18.5rem) * 1.6))); }
}
@media (max-width: 640px) { .demo__steps { grid-template-columns: 1fr; } }
/* phone-width walkthrough: step title, phone and controls fit one screen, with the phone centred */
@media (max-width: 820px) {
  .stage .sim__stage { justify-self: center; width: min(21rem, 100%, max(11rem, calc((100svh - 17rem) * 9 / 18.5))); }
  .sim--phone .sim__live { gap: 0.7rem; padding-top: 0.75rem; }
  .sim--phone .sim__side, .sim--phone .sim__words { display: contents; }
  .sim--phone .sim__n { order: -3; }
  .sim--phone .sim__caption { order: -2; margin: 0; font-size: 1.375rem; line-height: 1.2; min-height: 2.4em; display: grid; align-items: center; text-align: center; }
  .sim--phone .sim__say { order: 9; margin: 0.25rem 0 0; text-align: center; max-width: 30rem; }
  .sim--phone .sim__controls { justify-content: center; }
  .sim--phone .sim__unmute { justify-self: center; }
  .stage h2 { margin-bottom: 1.25rem; }
}
@media (max-width: 640px) { .top #soundBtn { display: inline-flex; } .top #presentBtn { display: none; } }
@media (max-width: 820px) {
  .stage .sim--phone .sim__live { gap: 0.7rem; }
  .stage .sim__stage { width: min(21rem, 100%, max(11rem, calc((100svh - 16.75rem) * 9 / 18.5))); }
  .stage .sim__controls { flex-wrap: nowrap; }
  .stage .sim__dots i { width: 1rem; }
}
.top .btn { white-space: nowrap; }
@media (max-width: 960px) { .top .top__for { display: none; } }
/* phone-width walkthrough, second pass: the mock-up gets every spare pixel. The step counter and progress
   bar go (the dots show both), and the mock-up is a little squatter so it can be wider. */
@media (max-width: 820px) {
  .stage .sim__n, .stage .sim__bar { display: none; }
  .stage .sim--phone .sim__live { gap: 0.5rem; padding-top: 0.5rem; }
  .stage .sim--phone .sim__caption { font-size: 1.1875rem; min-height: 2.4em; }
  .stage .device--phone { aspect-ratio: 9 / 16.5; border-width: 8px; border-radius: 2rem; }
  .stage .sim__stage { width: min(23rem, 100%, max(11rem, calc((100svh - 12.25rem) * 9 / 16.5))); }
}
