/* hero: the headline beside a kid's iPhone running the whole loop.
   Inside the phone everything is in iPhone points (var(--pt)), copied from the
   simulator captures of the real build (04-home, 16-lesson-challenge,
   17-lesson-complete, 18-rewardSheet, 19-rewardActive). */

.hero {
  --hero-pw: clamp(260px, min(31vw, calc((100svh - 168px) * 0.4868)), 410px);
  padding: calc(var(--menubar-h) + clamp(40px, 6vh, 72px)) 0 clamp(40px, 6vh, 72px);
}
.hero-wrap {
  max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "copy stage" "text stage";
  column-gap: clamp(40px, 6.5vw, 110px);
  align-items: center;
}
.hero-copy { grid-area: copy; align-self: end; }
.hero-text { grid-area: text; align-self: start; }
.hero-stage { grid-area: stage; display: flex; flex-direction: column; align-items: center; }

/* ---------- copy ---------- */
.hero-kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; letter-spacing: -0.012em;
  margin-bottom: clamp(16px, 2.6vh, 26px);
}
.hero-kicker img {
  width: 30px; height: 30px; border-radius: 22.37%;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.14);
}
.hero-title {
  font-size: clamp(36px, min(5.3vw, 8.1vh), 80px);
  line-height: 1.04; letter-spacing: -0.026em;
  text-wrap: balance;
}
.hero-l1, .hero-l2 { display: block; }
.hero-l2 { color: var(--gold-deep); margin-top: 0.1em; }
/* the odometer: the final value sizes the slot, the column rolls through it */
.hero-roll { position: relative; display: inline-block; clip-path: inset(0 -0.12em); font-variant-numeric: tabular-nums lining-nums; }
.hero-roll-size { visibility: hidden; }
.hero-roll-col {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; flex-direction: column; align-items: center;
  will-change: transform;
}
.hero-roll-col > span { display: block; height: 1.04em; }

.hero-lede {
  max-width: 30ch; margin-top: clamp(20px, 3vh, 30px);
  font-size: clamp(18px, 1.55vw, 22px);
}
.hero-cta { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: clamp(20px, 3vh, 30px); }
.hero-cta .soon { font-size: 17px; }

/* ---------- the phone and its control ---------- */
.hero .hero-phone { --phone-w: var(--hero-pw); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hero-ctrl {
  width: var(--hero-pw); height: 40px; margin-top: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 4%;
}
.hero-skip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
  opacity: 0; white-space: nowrap;
}
.hero-skip svg { width: 17px; height: 17px; }
.hero-play {
  position: relative; flex: none; margin-left: auto;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--soft); color: var(--ink);
  display: grid; place-items: center;
  transition: transform 0.3s var(--spring);
}
.hero-play:active { transform: scale(0.92); }
.hero-play:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.hero-play canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-play-i { grid-area: 1 / 1; display: grid; }
.hero-play-i svg { width: 15px; height: 15px; }
.hero-i-play { opacity: 0; }
.hero-paused .hero-i-play { opacity: 1; }
.hero-paused .hero-i-pause { opacity: 0; }

/* ---------- inside the phone ---------- */
.hs { background: #000; text-align: left; }
.hs-in { position: absolute; inset: 0; }
.hs svg { display: block; }
.hs .status { pointer-events: none; }
.hs-time { font-variant-numeric: tabular-nums; }

/* the home screen */
.hs-board { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.hs-wall {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 85% 105%, #f0a46a 0%, rgba(240, 164, 106, 0) 60%),
    linear-gradient(178deg, #1b2a52 0%, #3b4a86 48%, #8a6c9c 82%, #c98a7e 100%);
}
.hs-grid { position: absolute; inset: 0; transform-origin: 50% 32%; will-change: transform, opacity; }
.hs-app {
  position: absolute;
  left: calc(var(--x) * var(--pt)); top: calc(var(--y) * var(--pt));
  width: calc(64 * var(--pt));
}
.hs-ico {
  position: relative;
  width: calc(64 * var(--pt)); height: calc(64 * var(--pt));
  border-radius: calc(14.5 * var(--pt));
  display: grid; place-items: center; overflow: hidden;
  color: #fff;
  box-shadow: 0 calc(1 * var(--pt)) calc(3 * var(--pt)) rgba(0, 0, 0, 0.18);
  transform: scale(0.94);
}
.hs-ico::after { /* the top sheen every iOS icon has */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 48%);
  box-shadow: inset 0 0 0 calc(0.5 * var(--pt)) rgba(255, 255, 255, 0.2);
  pointer-events: none;
}
.hs-ico > svg { width: 56%; height: 56%; }
.hs-ico-video { background: linear-gradient(180deg, #7a6bff, #4b3bdb); }
.hs-ico-game { background: linear-gradient(180deg, #4cd97b, #1f9f4a); --hole: #26a852; }
.hs-ico-music { background: linear-gradient(180deg, #ffb340, #f57a10); }
.hs-ico-blocks { background: linear-gradient(180deg, #4fb3e8, #1d78c1); }
.hs-ico-ll { transform: none; background: #ece2c6; }
.hs-ico-ll img { width: 100%; height: 100%; }
.hs-shade {
  position: absolute; inset: 0; border-radius: inherit; z-index: 1;
  /* iOS draws a limited app greyed out, with the hourglass beside its name only */
  background: rgba(28, 28, 30, 0.42);
  -webkit-backdrop-filter: grayscale(1); backdrop-filter: grayscale(1);
  display: grid; place-items: center;
}
.hs-shade b { display: none; }
.hs-shade b svg { width: 100%; height: auto; }
.hs-lbl {
  position: absolute; left: 50%; top: calc(70 * var(--pt));
  width: calc(90 * var(--pt)); margin-left: calc(-45 * var(--pt));
  display: grid; justify-items: center;
  font-family: var(--sans); font-weight: 500; font-size: calc(12 * var(--pt)); line-height: 1.2;
  color: #fff; text-shadow: 0 calc(0.5 * var(--pt)) calc(2 * var(--pt)) rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}
.hs-lbl > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: calc(2 * var(--pt)); }
.hs-lbl em { font-style: normal; }
.hs-lbl-on { color: rgba(255, 255, 255, 0.72); }
.hs-lbl-on i { display: grid; width: calc(10 * var(--pt)); }
.hs-lbl-on i svg { width: 100%; height: auto; }
.hs-app:not(.hs-ll) .hs-lbl-off { opacity: 0; }

/* the app window */
.hs-win {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  transform-origin: 0 0; overflow: hidden;
  border-radius: calc(55 * var(--pt));
  background: #fff; /* what is left once the app's content has faded on the way home */
  visibility: hidden; z-index: 2;
  will-change: transform;
}
.hs-win-in { position: absolute; inset: 0; transform-origin: 0 0; background: var(--parch); will-change: transform; }
.hs-winicon {
  position: absolute; left: 0; top: 50%; width: 100%; height: auto; aspect-ratio: 1;
  translate: 0 -50%; border-radius: 22.37%;
  z-index: 9; pointer-events: none;
  transform-origin: 50% 50%;
  background: #ece2c6; /* behind the opaque icon tile while it scales */
}

/* Home */
.hs-home { position: absolute; inset: 0; display: flex; flex-direction: column; }
.hs-hero {
  --dc: #059669;
  position: relative; overflow: hidden; flex: none;
  min-height: calc(505 * var(--pt));
  padding: calc(108 * var(--pt)) calc(20 * var(--pt)) calc(40 * var(--pt));
  border-radius: 0 0 calc(40 * var(--pt)) calc(40 * var(--pt));
  background: linear-gradient(180deg, var(--dc) 0%, var(--dc) 40%, color-mix(in srgb, var(--dc) 84%, #fff) 100%);
  color: #fff;
}
.hs-hero-mark {
  position: absolute; right: calc(-18 * var(--pt)); bottom: calc(-26 * var(--pt));
  width: calc(170 * var(--pt)); height: calc(170 * var(--pt));
  color: rgba(255, 255, 255, 0.1); stroke-width: 1.2;
}
.hs-hero-mark g { stroke-width: 1.1; }
.hs-pill {
  position: absolute; top: calc(60 * var(--pt)); right: calc(16 * var(--pt));
  height: calc(42 * var(--pt)); border-radius: 999px;
  display: flex; align-items: center; gap: calc(7 * var(--pt));
  padding: 0 calc(15 * var(--pt)) 0 calc(9 * var(--pt));
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 calc(0.6 * var(--pt)) rgba(255, 255, 255, 0.4);
  font-family: var(--sans); font-weight: 500; font-size: calc(19 * var(--pt));
  font-variant-numeric: tabular-nums;
}
.hs-pill-ico { display: grid; width: calc(25 * var(--pt)); height: calc(25 * var(--pt)); }
.hs-pill-ico svg { width: 100%; height: 100%; }
.hs-pill-clock circle { fill: #fff; }
.hs-pill-clock path { stroke: var(--dc); }
.hs-pill-play { position: absolute; left: calc(9 * var(--pt)); top: 50%; translate: 0 -50%; opacity: 0; padding: calc(3 * var(--pt)); }
.hs-pill-t { display: grid; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.hs-pill-t > span { grid-area: 1 / 1; white-space: nowrap; }
.hs-pill-b { opacity: 0; }
.hs-hi { display: flex; flex-direction: column; gap: calc(2 * var(--pt)); }
.hs-greet { font-weight: 500; font-size: calc(16 * var(--pt)); color: rgba(255, 255, 255, 0.65); }
.hs-name { font-weight: 700; font-size: calc(27 * var(--pt)); line-height: 1.15; }
.hs-streak {
  position: absolute; top: calc(115 * var(--pt)); right: calc(21 * var(--pt));
  display: flex; align-items: center; gap: calc(6 * var(--pt));
  padding: calc(7 * var(--pt)) calc(12 * var(--pt)); border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  font-size: calc(17 * var(--pt)); font-weight: 700;
}
.hs-streak svg { width: calc(16 * var(--pt)); height: calc(16 * var(--pt)); }
.hs-chip {
  display: inline-flex; align-items: center; gap: calc(7 * var(--pt));
  margin-top: calc(22 * var(--pt));
  height: calc(27 * var(--pt)); padding: 0 calc(13 * var(--pt)); border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  font-weight: 600; font-size: calc(15 * var(--pt)); color: rgba(255, 255, 255, 0.92);
}
.hs-chip svg { width: calc(14 * var(--pt)); height: calc(14 * var(--pt)); }
.hs-course { margin-top: calc(22 * var(--pt)); font-weight: 500; font-size: calc(16 * var(--pt)); color: rgba(255, 255, 255, 0.6); }
.hs-ltitle {
  margin-top: calc(6 * var(--pt));
  font-weight: 700; font-size: calc(32 * var(--pt)); line-height: 1.16; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hs-dots { display: flex; align-items: center; gap: calc(11 * var(--pt)); margin-top: calc(20 * var(--pt)); height: calc(24 * var(--pt)); }
.hs-dots i {
  width: calc(9 * var(--pt)); height: calc(9 * var(--pt)); border-radius: 50%;
  background: rgba(255, 255, 255, 0.28); flex: none; position: relative;
}
.hs-dots i.d { background: #fff; }
.hs-dots i.d::after {
  content: ""; position: absolute; left: 30%; top: 22%; width: 26%; height: 42%;
  border: solid var(--dc); border-width: 0 calc(1.3 * var(--pt)) calc(1.3 * var(--pt)) 0; transform: rotate(40deg);
}
.hs-dots i.a { width: calc(14 * var(--pt)); height: calc(14 * var(--pt)); background: #fff; margin: 0 calc(4 * var(--pt)); }
.hs-dots i.a::after { content: ""; position: absolute; inset: calc(-5 * var(--pt)); border-radius: 50%; box-shadow: inset 0 0 0 calc(2 * var(--pt)) rgba(255, 255, 255, 0.4); }
.hs-dots span { margin-left: auto; font-weight: 600; font-size: calc(14 * var(--pt)); color: rgba(255, 255, 255, 0.6); font-variant-numeric: tabular-nums; }
.hs-chips { display: flex; gap: calc(14 * var(--pt)); margin-top: calc(22 * var(--pt)); }
.hs-chips span {
  display: inline-flex; align-items: center; gap: calc(6 * var(--pt));
  height: calc(25 * var(--pt)); padding: 0 calc(11 * var(--pt)); border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  font-weight: 500; font-size: calc(13.5 * var(--pt)); white-space: nowrap;
}
.hs-chips em { font-style: normal; }
.hs-chips svg { width: calc(12 * var(--pt)); height: calc(12 * var(--pt)); }
.hs-chips span:nth-child(3) svg { --hole: rgba(0, 0, 0, 0.35); width: calc(15 * var(--pt)); height: calc(15 * var(--pt)); }
.hs-cont {
  display: flex; align-items: center; justify-content: center; gap: calc(12 * var(--pt));
  margin-top: calc(28 * var(--pt)); height: calc(51 * var(--pt)); border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  font-weight: 600; font-size: calc(20 * var(--pt));
}
.hs-cont svg { width: calc(17 * var(--pt)); height: calc(17 * var(--pt)); }
.hs-card {
  margin: calc(22 * var(--pt)) calc(20 * var(--pt)) 0;
  display: flex; align-items: center; gap: calc(16 * var(--pt));
  padding: calc(18 * var(--pt)) calc(18 * var(--pt));
}
.hs-ring { position: relative; width: calc(56 * var(--pt)); height: calc(56 * var(--pt)); flex: none; display: grid; place-items: center; color: #0284c7; }
.hs-ring > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs-ring > svg + svg { width: calc(24 * var(--pt)); height: calc(24 * var(--pt)); }
.hs-card-t { flex: 1; min-width: 0; }
.hs-card-k { font-weight: 600; font-size: calc(11.5 * var(--pt)); letter-spacing: 0.05em; text-transform: uppercase; color: rgba(26, 26, 26, 0.5); }
.hs-card-d { color: #0284c7; }
.hs-card-l { font-weight: 700; font-size: calc(18 * var(--pt)); line-height: 1.2; margin-top: calc(4 * var(--pt)); }
.hs-card-c { font-size: calc(14 * var(--pt)); color: rgba(26, 26, 26, 0.55); margin-top: calc(3 * var(--pt)); }
.hs-card-go { width: calc(38 * var(--pt)); height: calc(38 * var(--pt)); border-radius: 50%; background: #0284c7; color: #fff; display: grid; place-items: center; flex: none; }
.hs-card-go svg { width: 46%; height: 46%; margin-left: 8%; }
.hs-tabs {
  position: absolute; left: calc(64 * var(--pt)); right: calc(64 * var(--pt)); bottom: calc(22 * var(--pt));
  height: calc(60 * var(--pt)); border-radius: 999px;
  display: flex; align-items: stretch; padding: calc(4 * var(--pt));
  background: rgba(255, 249, 232, 0.9);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.hs-tabs span {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(2 * var(--pt));
  border-radius: 999px; color: var(--app-ink);
  font-family: var(--sans); font-weight: 500; font-size: calc(10.5 * var(--pt));
}
.hs-tabs span.on { color: var(--gold); background: rgba(201, 166, 107, 0.16); }
.hs-tabs em { font-style: normal; }
.hs-tabs svg { width: calc(24 * var(--pt)); height: calc(24 * var(--pt)); }

/* Free time */
.hs-dim { position: absolute; inset: 0; background: #000; opacity: 0; z-index: 5; }
.hs-sheet {
  position: absolute; left: calc(8 * var(--pt)); right: calc(8 * var(--pt));
  top: calc(262 * var(--pt)); bottom: calc(8 * var(--pt));
  border-radius: calc(40 * var(--pt));
  background: var(--parch);
  box-shadow: 0 0 calc(30 * var(--pt)) rgba(0, 0, 0, 0.18);
  visibility: hidden; will-change: transform; z-index: 6;
}
.hs-grab { position: absolute; left: 50%; top: calc(7 * var(--pt)); width: calc(36 * var(--pt)); height: calc(5 * var(--pt)); margin-left: calc(-18 * var(--pt)); border-radius: 3px; background: rgba(26, 26, 26, 0.2); }
.hs-act, .hs-run { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; }
.hs-run { opacity: 0; }
.hs-sh-title { margin-top: calc(28 * var(--pt)); font-weight: 700; font-size: calc(30 * var(--pt)); line-height: 1.2; }
.hs-avail {
  display: flex; align-items: center; gap: calc(6 * var(--pt)); margin-top: calc(6 * var(--pt));
  font-weight: 500; font-size: calc(14 * var(--pt)); color: rgba(26, 26, 26, 0.55);
}
.hs-avail svg { width: calc(16 * var(--pt)); height: calc(16 * var(--pt)); }
.hs-big { margin-top: calc(16 * var(--pt)); font-weight: 700; font-size: calc(64 * var(--pt)); line-height: 1.1; color: var(--gold); font-variant-numeric: tabular-nums; }
.hs-act > .hs-min { font-weight: 500; font-size: calc(14 * var(--pt)); color: rgba(26, 26, 26, 0.55); }
.hs-presets { display: flex; gap: calc(12 * var(--pt)); margin-top: calc(22 * var(--pt)); width: calc(100% - 40 * var(--pt)); }
.hs-presets span {
  flex: 1; height: calc(70 * var(--pt)); border-radius: calc(10 * var(--pt));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(2 * var(--pt));
  background: var(--cream); box-shadow: inset 0 0 0 1px rgba(26, 26, 26, 0.05), 0 calc(2 * var(--pt)) calc(4 * var(--pt)) rgba(26, 26, 26, 0.06);
  color: rgba(26, 26, 26, 0.28);
}
.hs-presets b { font-size: calc(24 * var(--pt)); line-height: 1.1; }
.hs-presets em { font-style: normal; font-weight: 500; font-size: calc(12 * var(--pt)); }
.hs-step { display: flex; align-items: center; gap: calc(16 * var(--pt)); margin-top: calc(22 * var(--pt)); }
.hs-step > span {
  width: calc(40 * var(--pt)); height: calc(40 * var(--pt)); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cream); box-shadow: inset 0 0 0 1px rgba(26, 26, 26, 0.1);
}
.hs-step > span svg { width: calc(17 * var(--pt)); height: calc(17 * var(--pt)); }
.hs-step > span.off { color: rgba(26, 26, 26, 0.17); }
.hs-step em { font-style: normal; font-weight: 500; font-size: calc(14 * var(--pt)); color: rgba(26, 26, 26, 0.55); }
.hs-hold {
  position: absolute; left: calc(20 * var(--pt)); right: calc(20 * var(--pt)); bottom: calc(46 * var(--pt));
  height: calc(56 * var(--pt)); border-radius: calc(10 * var(--pt));
  overflow: hidden; display: grid; place-items: center;
  background: rgba(201, 166, 107, 0.14);
}
.hs-hold-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--gold); transform: translate3d(-100%, 0, 0); }
.hs-hold-l {
  grid-area: 1 / 1; position: relative;
  display: flex; align-items: center; gap: calc(8 * var(--pt));
  font-weight: 600; font-size: calc(17 * var(--pt)); color: var(--gold); white-space: nowrap;
}
.hs-hold-l em { font-style: normal; }
.hs-hold-l svg { width: calc(19 * var(--pt)); height: calc(19 * var(--pt)); }
.hs-hold-keep { opacity: 0; }
.hs-ringbox { position: relative; width: calc(232 * var(--pt)); height: calc(232 * var(--pt)); margin-top: calc(26 * var(--pt)); display: grid; place-items: center; }
.hs-ringbox svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs-ringbox p { position: relative; display: flex; flex-direction: column; align-items: center; gap: calc(4 * var(--pt)); }
.hs-count { font-weight: 700; font-size: calc(62 * var(--pt)); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hs-until { font-weight: 500; font-size: calc(13 * var(--pt)); color: rgba(26, 26, 26, 0.55); }
.hs-more {
  position: absolute; bottom: calc(118 * var(--pt)); left: 0; right: 0;
  display: flex; justify-content: center; align-items: center; gap: calc(6 * var(--pt));
  font-weight: 500; font-size: calc(13 * var(--pt)); color: rgba(26, 26, 26, 0.55);
}
.hs-more svg { width: calc(14 * var(--pt)); height: calc(14 * var(--pt)); }
.hs-stop {
  position: absolute; left: calc(20 * var(--pt)); right: calc(20 * var(--pt)); bottom: calc(52 * var(--pt));
  height: calc(46 * var(--pt)); border-radius: calc(10 * var(--pt));
  display: flex; align-items: center; justify-content: center; gap: calc(8 * var(--pt));
  background: var(--cream); box-shadow: inset 0 0 0 1px rgba(26, 26, 26, 0.1);
  font-weight: 600; font-size: calc(15 * var(--pt));
}
.hs-stop svg { width: calc(14 * var(--pt)); height: calc(14 * var(--pt)); }

/* the lesson cover */
.hs-cover { position: absolute; inset: 0; background: var(--parch); will-change: transform; z-index: 7; }
.hs-chat, .hs-done { position: absolute; inset: 0; }
.hs-bar {
  position: absolute; top: calc(60 * var(--pt)); left: calc(16 * var(--pt)); right: calc(16 * var(--pt));
  height: calc(44 * var(--pt)); display: flex; align-items: center; gap: calc(12 * var(--pt));
  font-family: var(--sans);
}
.hs .hs-x, .hs .hs-of, .hs .hs-send, .hs .hs-finish, .hs .hs-next {
  background: rgba(255, 248, 226, 0.94);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 0 0 0.5px rgba(138, 106, 59, 0.12), 0 calc(4 * var(--pt)) calc(14 * var(--pt)) rgba(120, 90, 40, 0.13);
}
.hs-x, .hs-of { width: calc(44 * var(--pt)); height: calc(44 * var(--pt)); border-radius: 50%; display: grid; place-items: center; flex: none; }
.hs-x { color: var(--gold); }
.hs-x svg { width: calc(22 * var(--pt)); height: calc(22 * var(--pt)); }
.hs-of { font-size: calc(15 * var(--pt)); color: rgba(26, 26, 26, 0.62); font-variant-numeric: tabular-nums; }
.hs-bar-t { flex: 1; min-width: 0; text-align: center; font-weight: 600; font-size: calc(17 * var(--pt)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-msgs-clip {
  position: absolute; top: calc(108 * var(--pt)); bottom: calc(95 * var(--pt)); left: 0; right: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 calc(28 * var(--pt)));
  mask-image: linear-gradient(180deg, transparent 0, #000 calc(28 * var(--pt)));
}
.hs-msgs {
  position: absolute; left: calc(20 * var(--pt)); right: calc(20 * var(--pt)); top: calc(20 * var(--pt));
  display: flex; flex-direction: column; gap: calc(16 * var(--pt));
  will-change: transform;
}
.hs-m { display: flex; align-items: flex-start; gap: calc(10 * var(--pt)); }
.hs-m.ai { padding-right: calc(44 * var(--pt)); }
.hs-m.me { justify-content: flex-end; padding-left: calc(44 * var(--pt)); transform-origin: 100% 100%; }
.hs-m p {
  font-size: calc(16 * var(--pt)); line-height: 1.5;
  padding: calc(12 * var(--pt)) calc(16 * var(--pt)); border-radius: calc(16 * var(--pt));
  box-shadow: 0 calc(2 * var(--pt)) calc(4 * var(--pt)) rgba(26, 26, 26, 0.06);
}
.hs-m.ai p { background: var(--cream); box-shadow: inset 0 0 0 0.5px rgba(26, 26, 26, 0.1), 0 calc(2 * var(--pt)) calc(4 * var(--pt)) rgba(26, 26, 26, 0.06); }
.hs-m.me p { background: var(--gold); color: #fff; }
.hs-av { width: calc(30 * var(--pt)); height: calc(30 * var(--pt)); border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(201, 166, 107, 0.12); color: var(--gold); }
.hs-av svg { width: calc(15 * var(--pt)); height: calc(15 * var(--pt)); }
.hs-new, .hs-typing { opacity: 0; }
.hs-typing p { display: flex; gap: calc(5 * var(--pt)); padding: calc(17 * var(--pt)) calc(18 * var(--pt)); }
.hs-typing i { width: calc(7 * var(--pt)); height: calc(7 * var(--pt)); border-radius: 50%; background: rgba(26, 26, 26, 0.28); }
.hs-finish {
  position: absolute; left: 0; right: 0; margin: 0 auto; width: max-content;
  bottom: calc(103 * var(--pt));
  display: flex; align-items: center; gap: calc(8 * var(--pt));
  padding: calc(10 * var(--pt)) calc(20 * var(--pt)); border-radius: 999px;
  color: var(--gold); font-weight: 500; font-size: calc(14 * var(--pt));
  opacity: 0;
}
.hs-finish svg { width: calc(15 * var(--pt)); height: calc(15 * var(--pt)); }
.hs-input {
  position: absolute; left: 0; right: 0; bottom: calc(34 * var(--pt)); height: calc(61 * var(--pt));
  display: flex; align-items: center; gap: calc(12 * var(--pt));
  padding: 0 calc(20 * var(--pt));
  border-top: 0.5px solid rgba(26, 26, 26, 0.1);
  background: var(--parch);
}
.hs-field {
  flex: 1; min-width: 0; height: calc(42 * var(--pt)); border-radius: calc(20 * var(--pt));
  display: grid; align-items: center; padding: 0 calc(16 * var(--pt));
  background: var(--cream); box-shadow: inset 0 0 0 0.5px rgba(26, 26, 26, 0.1);
  font-size: calc(16 * var(--pt));
}
.hs-field > span { grid-area: 1 / 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-ph { color: rgba(26, 26, 26, 0.3); opacity: 0; }
.hs-send { width: calc(36 * var(--pt)); height: calc(36 * var(--pt)); border-radius: 50%; display: grid; place-items: center; flex: none; }
.hs-send i { grid-area: 1 / 1; display: grid; }
.hs-send svg { width: calc(16 * var(--pt)); height: calc(16 * var(--pt)); }
.hs-send-off { color: rgba(26, 26, 26, 0.22); }
.hs-send-on { color: var(--gold); }

/* Lesson complete! */
.hs-done {
  display: flex; flex-direction: column; align-items: center;
  padding-top: calc(120 * var(--pt));
  background: radial-gradient(calc(200 * var(--pt)) calc(200 * var(--pt)) at 50% calc(190 * var(--pt)), rgba(201, 166, 107, 0.13), rgba(201, 166, 107, 0));
  visibility: hidden; opacity: 0;
}
.hs-seal { position: relative; width: calc(140 * var(--pt)); height: calc(140 * var(--pt)); flex: none; display: grid; place-items: center; }
.hs-seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs-seal-body {
  position: relative; width: calc(110 * var(--pt)); height: calc(110 * var(--pt)); border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, #d4b87a 4%, #c9a66b 48%, #a67b5b 100%);
  box-shadow: 0 calc(6 * var(--pt)) calc(18 * var(--pt)) rgba(138, 106, 59, 0.2);
  color: #fff;
}
.hs-seal-body > * { grid-area: 1 / 1; }
.hs-seal-dots { width: 100%; height: 100%; fill: rgba(255, 255, 255, 0.15); }
.hs-seal-in { width: calc(94 * var(--pt)); height: calc(94 * var(--pt)); border-radius: 50%; box-shadow: inset 0 0 0 calc(1.5 * var(--pt)) rgba(255, 255, 255, 0.25); }
.hs-seal-deco { width: calc(76 * var(--pt)); height: calc(76 * var(--pt)); border-radius: 50%; box-shadow: inset 0 0 0 calc(0.5 * var(--pt)) rgba(255, 255, 255, 0.12); }
.hs-seal-body > svg:last-child { width: calc(40 * var(--pt)); height: calc(40 * var(--pt)); filter: drop-shadow(0 1px 1.5px rgba(139, 107, 58, 0.5)); }
.hs-done-t { margin-top: calc(28 * var(--pt)); font-weight: 700; font-size: calc(32 * var(--pt)); line-height: 1.25; text-align: center; padding: 0 calc(16 * var(--pt)); }
.hs-done-l { margin-top: calc(6 * var(--pt)); font-weight: 500; font-size: calc(16 * var(--pt)); color: rgba(26, 26, 26, 0.55); text-align: center; padding: 0 calc(20 * var(--pt)); }
.hs-orn { display: flex; align-items: center; gap: calc(12 * var(--pt)); width: calc(100% - 96 * var(--pt)); margin: calc(26 * var(--pt)) 0 calc(30 * var(--pt)); }
.hs-orn i { flex: 1; height: 0.5px; background: rgba(201, 166, 107, 0.35); }
.hs-orn b { width: calc(5 * var(--pt)); height: calc(5 * var(--pt)); background: rgba(201, 166, 107, 0.5); transform: rotate(45deg); }
.hs-rw {
  width: calc(100% - 40 * var(--pt)); margin-bottom: calc(14 * var(--pt));
  display: flex; align-items: center; gap: calc(16 * var(--pt));
  padding: calc(16 * var(--pt)) calc(18 * var(--pt));
  background: var(--cream); border-radius: calc(14 * var(--pt));
  box-shadow: inset 0 0 0 0.5px rgba(26, 26, 26, 0.07), 0 calc(2 * var(--pt)) calc(4 * var(--pt)) rgba(26, 26, 26, 0.06);
}
.hs-rw-i {
  width: calc(52 * var(--pt)); height: calc(52 * var(--pt)); border-radius: calc(12 * var(--pt)); flex: none;
  display: grid; place-items: center; color: var(--c);
  background: color-mix(in srgb, var(--c) 8%, transparent);
  box-shadow: inset 0 0 0 0.5px color-mix(in srgb, var(--c) 15%, transparent);
}
.hs-rw-i svg { width: calc(23 * var(--pt)); height: calc(23 * var(--pt)); }
.hs-rw em { display: block; font-style: normal; font-weight: 500; font-size: calc(13 * var(--pt)); color: rgba(26, 26, 26, 0.55); }
.hs-rw p { display: flex; align-items: baseline; gap: calc(5 * var(--pt)); margin-top: calc(2 * var(--pt)); }
.hs-rw p b { font-size: calc(26 * var(--pt)); line-height: 1.15; font-variant-numeric: tabular-nums; }
.hs-rw p span { font-weight: 500; font-size: calc(15 * var(--pt)); color: rgba(26, 26, 26, 0.55); }
.hs-next {
  width: calc(100% - 40 * var(--pt)); margin-top: calc(26 * var(--pt));
  height: calc(55 * var(--pt)); border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: calc(10 * var(--pt));
  font-weight: 600; font-size: calc(18 * var(--pt));
}
.hs-next svg { width: calc(16 * var(--pt)); height: calc(16 * var(--pt)); }
.hs-cstatus { color: var(--app-ink); }

/* the finger */
.hs-touch {
  position: absolute; left: 0; top: 0; z-index: 20;
  width: calc(44 * var(--pt)); height: calc(44 * var(--pt)); border-radius: 50%;
  background: rgba(72, 72, 80, 0.3);
  box-shadow: 0 0 0 calc(1.5 * var(--pt)) rgba(255, 255, 255, 0.75), 0 calc(2 * var(--pt)) calc(10 * var(--pt)) rgba(0, 0, 0, 0.16);
  opacity: 0; pointer-events: none; will-change: transform, opacity;
}

/* ---------- narrow: headline, the phone, then the words ---------- */
@media (max-width: 860px) {
  .hero { --hero-pw: min(calc(100vw - 2 * var(--gutter) - 24px), 340px); padding-top: clamp(64px, 10vh, 84px); }
  .hero-wrap {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "stage" "text";
    text-align: center;
  }
  .hero-kicker { justify-content: center; }
  .hero-title { font-size: clamp(34px, 9.6vw, 60px); }
  .hero-stage { margin-top: clamp(28px, 4vh, 40px); }
  .hero-lede { margin: clamp(28px, 4vh, 40px) auto 0; }
  .hero-cta { justify-content: center; }
}
