/* Rekaz × Sehhaty. The stage is 1920×1080 and scales to the window; colours are the catalog's Sehhaty brand. */
:root {
  --bg: #f5f6fb;
  --ink: #171b34;
  --muted: #5d6a80;
  --line: #cdd3df;
  --card: #ffffff;
  --primary: #2b79be;
  --mint: #67c3ae;
  --tint: #ebf2fa;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --fit: 1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Cairo', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

ul,
ol {
  list-style: none;
}

.stage {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 1080px;
  transform: translate(-50%, -50%) scale(var(--fit));
}

/* ── Slides ─────────────────────────────────────────────────────────────────────────────── */

.slide {
  position: absolute;
  inset: 0;
  padding: 92px 128px 112px;
  visibility: hidden;
  opacity: 0;
  /* Changing slide is a key press: a short fade and no travel. What is on the slide builds after it. */
  transition:
    opacity 150ms ease,
    visibility 0s 150ms;
}

.slide.is-on {
  visibility: visible;
  opacity: 1;
  transition: opacity 150ms ease;
}

[data-build] {
  opacity: 0;
  transform: translateY(12px);
}

.is-on [data-build] {
  opacity: 1;
  transform: none;
  transition:
    opacity 500ms var(--ease-out) var(--d, 0ms),
    transform 500ms var(--ease-out) var(--d, 0ms);
}

.foot {
  position: absolute;
  inset-inline: 128px;
  bottom: 44px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 20px;
  font-weight: 500;
}

.foot b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ── Type ───────────────────────────────────────────────────────────────────────────────── */

.kicker {
  color: var(--primary);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  margin-top: 14px;
  font-size: 96px;
  font-weight: 700;
  line-height: 1.2;
}

.lead {
  max-width: 1000px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 33px;
  line-height: 1.65;
}

h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
}

code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.88em;
}

[data-count],
[data-fig],
time {
  font-variant-numeric: tabular-nums;
}

/* ── Phone ──────────────────────────────────────────────────────────────────────────────── */

.phone {
  --s: 1;
  --edge: 11px;
  flex: none;
  width: calc(390px * var(--s) + 2 * var(--edge));
  height: calc(844px * var(--s) + 2 * var(--edge));
  padding: var(--edge);
  border-radius: calc(52px * var(--s) + var(--edge));
  background: var(--ink);
  box-shadow:
    0 50px 90px -40px rgb(23 27 52 / 0.45),
    0 18px 36px -18px rgb(23 27 52 / 0.25);
}

.phone .screen {
  position: relative;
  width: calc(390px * var(--s));
  height: calc(844px * var(--s));
  overflow: hidden;
  border-radius: calc(52px * var(--s));
  background: #eef1f6;
  direction: ltr;
}

/* A real 390px page, scaled: its media queries answer for a phone, not for the slide. */
.phone iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: 844px;
  border: 0;
  transform: scale(var(--s));
  transform-origin: 0 0;
  opacity: 0;
  transition: opacity 240ms ease;
}

/* A phone holding several screens shows the one in front; the change is a quick cross-fade. */
.phone iframe.is-front {
  opacity: 1;
}

/* ── Shared pieces ──────────────────────────────────────────────────────────────────────── */

.lockup {
  display: flex;
  align-items: center;
  gap: 26px;
}

.lockup .rekaz {
  height: 54px;
}

.lockup .times {
  color: var(--line);
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
}

.lockup .sehhaty {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lockup .sehhaty img {
  height: 50px;
}

.lockup .sehhaty b {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.split {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 110px;
}

/* ── 1 · Cover ──────────────────────────────────────────────────────────────────────────── */

.cover {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 110px;
  padding-inline-end: 190px;
}

.cover .lockup {
  margin-top: 0;
}

.cover h1 {
  margin-top: 44px;
  font-size: 118px;
  line-height: 1.16;
}

.cover .lead {
  max-width: 860px;
  margin-top: 26px;
  font-size: 44px;
}

/* ── 2 · The idea ───────────────────────────────────────────────────────────────────────── */

.idea {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 150px;
}

.idea h1 {
  font-size: 96px;
}

/* The chips arrive one after another, the new ones last. */
.chips li {
  opacity: 0;
  transform: translateY(10px);
}

.is-on .chips li {
  opacity: 1;
  transform: none;
  transition:
    opacity 400ms var(--ease-out) var(--w, 400ms),
    transform 400ms var(--ease-out) var(--w, 400ms);
}

.chips li:nth-child(1) { --w: 400ms; }
.chips li:nth-child(2) { --w: 460ms; }
.chips li:nth-child(3) { --w: 520ms; }
.chips li:nth-child(4) { --w: 580ms; }
.chips li:nth-child(5) { --w: 640ms; }
.chips li:nth-child(6) { --w: 700ms; }

.added .chips li:nth-child(1) { --w: 900ms; }
.added .chips li:nth-child(2) { --w: 970ms; }
.added .chips li:nth-child(3) { --w: 1040ms; }
.added .chips li:nth-child(4) { --w: 1110ms; }
.added .chips li:nth-child(5) { --w: 1180ms; }
.added .chips li:nth-child(6) { --w: 1250ms; }

@media (prefers-reduced-motion: reduce) {
  .chips li {
    transform: none;
  }
}

.rows {
  display: grid;
  gap: 40px;
  margin-top: 76px;
}

.rows .row {
  display: grid;
  grid-template-columns: 250px 1fr;
  align-items: center;
  gap: 24px;
}

.rows h2 {
  color: var(--muted);
  font-size: 30px;
  font-weight: 600;
}

.rows .added h2 {
  color: var(--primary);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.chips li {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 68px;
  padding: 0 24px;
  border: 2px solid var(--primary);
  border-radius: 18px;
  background: color-mix(in oklab, var(--primary) 8%, var(--card));
  color: color-mix(in oklab, var(--primary) 82%, black);
  font-size: 28px;
  font-weight: 700;
  white-space: nowrap;
}

.chips i {
  font-size: 38px;
  font-style: normal;
  line-height: 1;
}

.chips.plain li {
  height: 68px;
  padding: 0 28px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 28px;
  font-weight: 500;
}

/* ── 3 · The numbers: two figures, and the Kingdom with who is in each city ──────────────── */

.numbers {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 60px 128px 100px 60px;
}

.numbers h1 {
  font-size: 64px;
}

.figures {
  display: grid;
  gap: 36px;
  margin-top: 64px;
}

.figures dt {
  font-size: 128px;
  font-weight: 700;
  line-height: 1.05;
}

.figures dd {
  margin-top: 2px;
  color: var(--muted);
  font-size: 32px;
}

#kingdom {
  position: relative;
  width: 1040px;
  height: 860px;
  direction: ltr;
}

#kingdom svg {
  position: absolute;
  inset: 0;
  overflow: visible;
  filter: drop-shadow(0 30px 50px rgb(23 27 52 / 0.1));
}

#kingdom path {
  fill: var(--card);
  stroke: var(--line);
  stroke-width: 2px;
  stroke-linejoin: round;
}

#kingdom i {
  position: absolute;
  width: var(--logo);
  height: var(--logo);
  margin: calc(var(--logo) / -2) 0 0 calc(var(--logo) / -2);
  border-radius: 99px;
  background-color: var(--card);
  background-image: url(img/catalog/logos.webp);
  background-size: var(--sheet) auto;
  box-shadow: 0 0 0 0.5px rgb(23 27 52 / 0.16);
  opacity: 0;
  transform: scale(0.4);
}

.is-on #kingdom i {
  opacity: 1;
  transform: none;
  transition:
    opacity 260ms ease var(--d, 0ms),
    transform 420ms var(--ease-out) var(--d, 0ms);
}

/* A city's name and its number of branches, on a small label in Sehhaty's blue. */
#kingdom .city {
  position: absolute;
  padding: 5px 14px 6px;
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  direction: rtl;
  z-index: 2;
  box-shadow: 0 0 0 3px var(--bg, #f5f6fb), 0 6px 16px rgb(23 27 52 / 0.18);
  opacity: 0;
}

.is-on #kingdom .city {
  opacity: 1;
  transition: opacity 400ms ease var(--d, 0ms);
}

#kingdom .city b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#kingdom .below { transform: translate(-50%, 0); }
#kingdom .above { transform: translate(-50%, -100%); }
#kingdom .east { transform: translate(0, -50%); }
#kingdom .west { transform: translate(-100%, -50%); }

@media (prefers-reduced-motion: reduce) {
  #kingdom i {
    transform: none;
  }
}

/* ── 4 · What is in the catalog ─────────────────────────────────────────────────────────── */

.wellness {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 150px;
}

.wellness h1 {
  font-size: 104px;
}

.wellness h1 span {
  color: var(--primary);
  unicode-bidi: isolate;
  direction: ltr;
}

/* The whole catalog as one bar: each group takes the width of its share. */
.share {
  display: flex;
  gap: 4px;
  height: 64px;
  margin-top: 64px;
  overflow: hidden;
  border-radius: 12px;
  clip-path: inset(0 0 0 0 round 12px);
}

.share i {
  background: var(--c);
}

/* It draws in from the reading side, once. */
.slide:not(.is-on) .share {
  clip-path: inset(0 0 0 100% round 12px);
}

.is-on .share {
  transition:
    clip-path 1100ms var(--ease-out) 350ms,
    opacity 500ms var(--ease-out) var(--d, 0ms),
    transform 500ms var(--ease-out) var(--d, 0ms);
}

.legend {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
  margin-top: 44px;
}

.legend li {
  display: grid;
  gap: 6px;
  align-content: start;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.legend i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--c);
}

.legend b {
  margin: 6px 0 10px;
  font-size: 26px;
  white-space: nowrap;
  font-weight: 600;
  line-height: 1.45;
}

.legend span {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.legend small {
  color: var(--muted);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

/* ── 5 · Explore ────────────────────────────────────────────────────────────────────────── */

.explore {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 110px;
  padding-inline-end: 190px;
}

.points {
  display: grid;
  gap: 34px;
  margin-top: 56px;
  counter-reset: point;
}

.points li {
  display: grid;
  grid-template-columns: 60px 1fr;
  column-gap: 26px;
  counter-increment: point;
}

.points li::before {
  content: counter(point);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 99px;
  background: var(--tint);
  color: var(--primary);
  font-size: 28px;
  font-weight: 700;
}

.points b {
  align-self: center;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.4;
}

.points span {
  color: var(--muted);
  font-size: 28px;
  line-height: 1.5;
}

/* ── 6 · Book and pay ───────────────────────────────────────────────────────────────────── */

.book {
  padding-top: 64px;
}

.book h1 {
  margin-top: 8px;
  font-size: 80px;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 104px;
  margin-top: 30px;
}

.steps figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.steps figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 28px;
  font-weight: 700;
}

.steps i,
.three i {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 99px;
  background: var(--tint);
  color: var(--primary);
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
}

/* ── 7 · Comes to you, and gifts ────────────────────────────────────────────────────────── */

.more {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 90px;
}

.more h1 {
  font-size: 68px;
  white-space: nowrap;
}

.more h1 span {
  color: var(--primary);
}

.facts {
  display: grid;
  gap: 34px;
  margin-top: 54px;
}

.facts li {
  padding-inline-start: 26px;
  border-inline-start: 4px solid var(--mint);
}

.facts b {
  display: block;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.4;
}

.facts li > span {
  display: block;
  color: var(--muted);
  font-size: 27px;
  line-height: 1.55;
}

.phones {
  display: flex;
  gap: 52px;
}

/* ── 8 · A day with Noura ───────────────────────────────────────────────────────────────── */

.day {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 110px;
  padding-inline-end: 190px;
}

.day h1 {
  font-size: 76px;
}

.moments {
  margin-top: 44px;
}

.moments li {
  position: relative;
  display: grid;
  grid-template-columns: 250px 1fr;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

/* While the day plays, only the moment on the phone is lit. */
.moments time,
.moments b {
  transition: opacity 250ms ease;
}

.slide[data-step] .moments li:not(.is-now) time,
.slide[data-step] .moments li:not(.is-now) b {
  opacity: 0.3;
}

.moments time {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
}

.moments small {
  color: var(--muted);
  font-size: 30px;
  font-weight: 500;
}

.moments b {
  font-size: 44px;
  font-weight: 700;
}

/* A rule over the moment that is on. */
.moments li::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: -2px;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right center;
}

.moments li.is-now::after {
  transform: scaleX(1);
  transition: transform 450ms var(--ease-out);
}

/* ── 9 · How it works: one link in, Sehhaty's look and Sehhaty's choice of categories out ── */

.how {
  display: flex;
  flex-direction: column;
  padding-top: 64px;
}

.how h1 {
  margin-top: 0;
  font-size: 76px;
  text-align: center;
}

.how h1 span {
  color: var(--primary);
}

.wiring {
  display: grid;
  flex: 1;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 80px;
}

.side {
  display: grid;
  gap: 64px;
}

.part {
  transition: opacity 250ms ease;
}

.part p {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 36px;
  font-weight: 700;
}

.part p i {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 99px;
  background: var(--tint);
  color: var(--primary);
  font-size: 26px;
  font-style: normal;
}

.link code {
  display: block;
  width: max-content;
  margin-top: 26px;
  padding: 20px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  color: var(--muted);
  font-size: 27px;
  clip-path: inset(0 0 0 0 round 18px);
  transition: clip-path 700ms var(--ease-out);
}

.link code b {
  color: var(--primary);
  font-weight: 700;
}

.swatches {
  display: flex;
  gap: 14px;
  margin-top: 26px;
}

.swatches span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 20px;
  background: var(--c, var(--card));
  transition:
    transform 400ms var(--ease-out) var(--w, 0ms),
    opacity 300ms ease var(--w, 0ms);
}

.swatches .logo {
  border: 1px solid var(--line);
}

.swatches img {
  width: 48px;
}

.swatches span:nth-child(2) { --w: 60ms; }
.swatches span:nth-child(3) { --w: 120ms; }
.swatches span:nth-child(4) { --w: 180ms; }
.swatches span:nth-child(5) { --w: 240ms; }

.cats ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 560px;
  margin-top: 26px;
}

.cats li {
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--muted);
  font-size: 24px;
  font-weight: 500;
  transition:
    background-color 250ms ease var(--w, 0ms),
    border-color 250ms ease var(--w, 0ms),
    color 250ms ease var(--w, 0ms);
}

.cats li.on {
  border-color: var(--primary);
  background: color-mix(in oklab, var(--primary) 8%, var(--card));
  color: color-mix(in oklab, var(--primary) 82%, black);
  font-weight: 700;
}

.cats li:nth-child(2) { --w: 90ms; }
.cats li:nth-child(3) { --w: 180ms; }
.cats li:nth-child(4) { --w: 270ms; }

/* Before its beat, a part waits: dimmed, its link unwritten, its colours and choices not yet made. */
.how[data-step] .part:not(.is-now):not(.is-past) {
  opacity: 0.3;
}

.how[data-step] .link:not(.is-now):not(.is-past) code {
  clip-path: inset(0 100% 0 0 round 18px);
}

.how[data-step] .look:not(.is-now):not(.is-past) .swatches span {
  opacity: 0;
  transform: translateY(10px) scale(0.92);
}

.how[data-step] .cats:not(.is-now):not(.is-past) li.on {
  border-color: var(--line);
  background: var(--card);
  color: var(--muted);
}

/* ── 10 · Who gains: three parties on one ring, the question in the middle ───────────────── */

.why {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 100px;
}

.ring {
  position: relative;
  width: 760px;
  height: 760px;
  direction: ltr;
}

.ring > svg {
  position: absolute;
  inset: 0;
  overflow: visible;
}

.ring .track {
  fill: none;
  stroke: var(--line);
  stroke-width: 3px;
}

.ring > svg path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 6px;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 900ms var(--ease-out);
}

.why[data-step] .ring > svg path:not(.is-now):not(.is-past) {
  stroke-dashoffset: 1;
  transition-duration: 0s;
}

.ring h1 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 76px;
  direction: rtl;
}

.ring .node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  margin: -90px 0 0 -90px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  transition:
    transform 300ms var(--ease-out),
    border-color 250ms ease,
    color 250ms ease,
    box-shadow 300ms ease;
}

.ring .node svg {
  width: 78px;
  height: 78px;
}

.ring .node img {
  width: 88px;
}

.ring .node.is-now {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.12);
  box-shadow: 0 24px 50px -22px rgb(43 121 190 / 0.55);
}

.ring .node.is-past {
  border-color: var(--primary);
  color: var(--primary);
}

.gain {
  position: absolute;
  width: 430px;
  margin-top: -52px;
  direction: rtl;
  transition: opacity 250ms ease;
}

.gain.east {
  text-align: left;
}

.gain.west {
  margin-left: -430px;
  text-align: right;
}

.gain b {
  display: block;
  color: var(--primary);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.3;
}

.gain span {
  font-size: 30px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.why[data-step] .gain:not(.is-now):not(.is-past) {
  opacity: 0.25;
}

/* ── 6 · A step waits, dimmed, until its beat ───────────────────────────────────────────── */

.steps figure {
  transition: opacity 250ms ease;
}

.book[data-step] .steps figure:not(.is-now):not(.is-past) {
  opacity: 0.3;
}

/* ── Beats: one dot for each, lit as they play ──────────────────────────────────────────── */

.beats {
  position: absolute;
  inset-inline: 0;
  bottom: 50px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.beats i {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--line);
  transition: background-color 200ms ease;
}

.beats i.is-on {
  background: var(--primary);
}

/* ── 11 · Close ─────────────────────────────────────────────────────────────────────────── */

.close {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px;
  text-align: center;
}

.close .lockup {
  gap: 40px;
}

.close .lockup .rekaz {
  height: 92px;
}

.close .lockup .times {
  font-size: 64px;
}

.close .lockup .sehhaty {
  gap: 18px;
}

.close .lockup .sehhaty img {
  height: 86px;
}

.close .lockup .sehhaty b {
  font-size: 72px;
}

.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 84px;
}

.qr img {
  width: 300px;
  height: 300px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  image-rendering: pixelated;
}

.qr code {
  color: var(--muted);
  font-size: 24px;
}

/* ── Progress ───────────────────────────────────────────────────────────────────────────── */

.progress {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  height: 4px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--primary);
  transform: scaleX(var(--at, 0));
  transform-origin: right center;
  transition: transform 300ms var(--ease-out);
}

/* ── A word on screen when the sound is switched ────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  padding: 10px 22px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--bg);
  font-size: 17px;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition:
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out);
  pointer-events: none;
}

.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── Reduced motion: fades stay, travel goes ────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  [data-build] {
    transform: none;
  }

  .is-on .chart .bar {
    transition-duration: 0s;
  }
}

/* ── Print: every slide at its finished frame, one per page ─────────────────────────────── */

@page {
  size: 1920px 1080px;
  margin: 0;
}

.print,
.print body {
  height: auto;
  overflow: visible;
}

.print .stage {
  position: static;
  transform: none;
  height: auto;
}

.print .slide {
  position: relative;
  inset: auto;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  visibility: visible;
  opacity: 1;
  break-after: page;
  break-inside: avoid;
}

.print *,
.print *::before {
  transition: none !important;
}

.print .progress,
.print .toast {
  display: none;
}



/* Print keeps backgrounds and the phones' shadows are drawn softer on paper. */
.print body {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* A figure inside a point reads as part of the line. */
.points b span {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  font-variant-numeric: tabular-nums;
}

/* "+1,000" is a figure: its plus sign stays in front of it in a right-to-left line. */
.plus {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

.cover .cover-sparkles { display: inline-block; font-size: .53em; vertical-align: .10em; letter-spacing: 0; }

.day h1 { font-size: 78px; }

.day h1 { font-size: 70px; }
.day .moments { margin-top: 30px; }
.day .moments li { padding: 19px 0; }
.day .moments .existing-service b small { display: block; font-size: 20px; color: var(--muted); margin-top: 3px; }
.day .moments .existing-service time, .day .moments .existing-service b { opacity: 1; }
