/* Dear Lingo /start: the quiz in the "Landing v7 — Quiet" look (tokens, type, pill buttons and the
   character window are in base.css). One screen at a time in a centred column on glaze: a round
   portrait and a cobalt bubble when Lingo or a host speaks, a big serif title, answers as quiet rows
   between hairlines, and one pill button, docked at the bottom on phones. Tiles stay quiet accents:
   the language tiles, the café's wainscot and the tile wall. Components/Start and js/quiz write the
   markup. */

html {
  --line: #172e731a; /* hairlines */
  scroll-padding-top: 120px;
}
.app {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
/* Without JavaScript the quiz can't work: only the note shows. */
body:has(.noscript) .app {
  display: none;
}
dd,
dt,
.option-text,
.say-bubble,
.speech p {
  overflow-wrap: anywhere;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}

/* Header: back, the logo and the menu in a thin translucent bar, the stage progress under them. */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--line);
  background: #fdfcf8eb;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.header-inner,
.progress-wrap {
  width: min(100% - 32px, 720px);
  margin-inline: auto;
}
.header-inner {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  height: 58px;
}
.header-inner .brand {
  grid-column: 2;
  justify-self: center;
  gap: 10px;
}
.header-inner [data-back] {
  grid-column: 1;
}
.header-inner [data-menu] {
  grid-column: 3;
}
.header img {
  width: 28px;
  height: 28px;
}
.header .wordmark {
  font-size: 22px;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--cobalt-ink);
  transition: background-color 0.18s var(--ease);
}
.icon-button:hover {
  background: var(--porcelain);
}
.icon-button .icon {
  width: 22px;
  height: 22px;
}

/* Stage progress: four thin tracks that fill with saffron as you go. */
.progress-wrap {
  padding-bottom: 12px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.2;
  color: var(--slate);
}
.progress-label strong {
  font-weight: 600;
  color: var(--cobalt-ink);
}
.segments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.segment {
  position: relative;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--blue-line);
}
.segment-ink {
  position: absolute;
  inset: 0;
  background: var(--saffron);
  transform-origin: left center;
  transform: scaleX(var(--fill, 0));
  animation: fill 0.5s var(--ease) both;
}
@keyframes fill {
  from {
    transform: scaleX(var(--from, 0));
  }
}

/* The screen: a centred column. The main action follows the content (on phones it docks). */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.deck {
  width: min(100% - 48px, 600px);
  margin-inline: auto;
  padding: 48px 0 64px;
}
.page,
.page > section,
.page > form {
  display: flex;
  flex-direction: column;
}
.page > section,
.page > form {
  position: relative;
}
.page-forward {
  animation: turn-in 0.4s var(--ease) both;
}
.page-back {
  animation: turn-back 0.4s var(--ease) both;
}
@keyframes turn-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
}
@keyframes turn-back {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
}
.offline {
  width: min(100% - 48px, 600px);
  margin: 16px auto 0;
  text-align: center;
}

/* Type: a centred headline and note, lists under them. */
.deck h1 {
  font: 400 36px / 1.08 var(--serif);
  letter-spacing: -0.03em;
  text-align: center;
}
.deck h1:focus {
  outline: none;
}
.deck .eyebrow {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-align: center;
}
.deck .eyebrow::before {
  content: none;
}
.question-note,
.lead {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--slate);
  text-align: center;
}
.list-title {
  margin: 40px 0 14px;
  font: 400 24px / 1.2 var(--serif);
  letter-spacing: -0.02em;
}
.fine-print {
  font-size: 14px;
  color: var(--slate);
  text-align: center;
}

/* Lingo or a host in a round portrait, and what they say in a bubble beside it. */
.character-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}
.avatar {
  position: relative;
  flex: none;
  width: 56px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--sky);
  cursor: default;
  user-select: none;
}
.avatar > img {
  position: absolute;
  top: 6%;
  left: -9%;
  width: 118%;
  max-width: none;
  height: auto;
}
.say-bubble {
  min-width: 0;
  max-width: 340px;
  padding: 10px 16px 11px;
  border-radius: 20px 20px 20px 5px;
  background: var(--cobalt);
  color: #fff;
  font: 600 16px / 1.35 var(--body);
  text-align: left;
  animation: appear 0.4s var(--ease) 0.1s both;
}
.say-bubble .who {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--saffron-soft);
}
.bubble-sub {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--caption);
}
.say-bubble.ole {
  background: var(--saffron);
  color: var(--cobalt-ink);
}
.say-bubble.ole .who {
  color: var(--cobalt-ink);
}
/* Welcome and goodbye: a larger portrait over the bubble. */
.framing-full {
  flex-direction: column;
  align-items: center;
}
.framing-full .avatar {
  width: 112px;
}
.framing-full .say-bubble {
  border-radius: 20px;
  text-align: center;
}
/* The language question's host swaps in as the options are hovered. */
.host-preview .avatar > img {
  animation: appear 0.35s var(--ease) both;
}

/* The main action, centred under the screen. */
.action-dock {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 44px;
}
.action-dock .btn,
.waitlist-form > .btn {
  width: min(100%, 360px);
  min-height: 60px;
  font-size: 18px;
}
.action-dock.inline {
  margin-top: 24px;
}
.btn.is-waiting,
.btn.is-waiting:hover {
  background: var(--blue-line);
  color: var(--slate);
}
.btn:disabled {
  cursor: progress;
  opacity: 0.6;
}
.text-button {
  min-height: 44px;
  padding: 0 8px;
  color: var(--cobalt);
  font-weight: 600;
}
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.chip-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--porcelain);
  font: 600 15px / 1.2 var(--body);
  transition: background-color 0.18s var(--ease);
}
.chip-button:hover {
  background: var(--sky);
}
.chip-button .icon {
  width: 18px;
  height: 18px;
}
.shake {
  animation: shake 0.4s var(--ease);
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(-5px);
  }
  40%,
  80% {
    transform: translateX(5px);
  }
}
.field-hint,
.field-error {
  font-size: 15px;
  font-weight: 600;
  color: var(--error);
}

/* Welcome: the four stages, numbered, between hairlines. */
.roadmap {
  display: grid;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}
.roadmap li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.num {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--cobalt);
  font: 600 15px / 1 var(--body);
}

/* Answers: quiet rows between hairlines. Chosen: a porcelain fill and a cobalt check. */
.options {
  display: grid;
  margin-top: 28px;
}
.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 18px 14px;
  border-radius: 16px;
  color: var(--cobalt-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  transition:
    background-color 0.18s var(--ease),
    transform 0.18s var(--ease);
}
.option::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}
@media (hover: hover) {
  .option:hover {
    background: var(--wash);
  }
}
.option:active {
  transform: scale(0.99);
}
.option.selected {
  background: var(--porcelain);
}
.option:focus-visible {
  outline-offset: 0;
  border-radius: 16px;
}
.option-text {
  display: grid;
  flex: 1;
  min-width: 0;
}
.option-text small {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 400;
  color: var(--slate);
}
.option-tile,
.option-art {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.option-art {
  padding: 5px;
  background: var(--wash);
}
.hello {
  flex: none;
  font: 600 17px / 1 var(--display);
  color: var(--cobalt);
}
.option-mark,
.checkbox,
.radio,
.check-box,
.point-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.option-mark {
  color: var(--mist);
}
.option-mark .icon {
  width: 20px;
  height: 20px;
}
.checkbox,
.radio,
.check-box {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--mist);
}
.selected .option-mark,
.selected .checkbox,
.selected .radio,
.point-mark {
  background: var(--cobalt);
  box-shadow: none;
}
.tick {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--glaze);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tick path {
  stroke-dasharray: 1;
  animation: draw 0.35s var(--ease) 0.05s both;
}
@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
}

/* Ticked points */
.points {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}
.points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.45;
}
.list-title + .points {
  margin-top: 0;
}
.point-mark {
  width: 22px;
  height: 22px;
  margin-top: 2px;
}
.point-mark .tick {
  width: 14px;
  height: 14px;
}

/* What we heard: a grouped list of terms and answers. */
.facts {
  display: grid;
  margin-top: 28px;
}
.facts > div {
  display: grid;
  gap: 2px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-size: 14px;
  line-height: 1.45;
  color: var(--slate);
}
.facts dd {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.next-stage {
  margin-top: 28px;
  font-size: 16px;
  color: var(--slate);
  text-align: center;
}
.next-stage strong {
  font-weight: 600;
  color: var(--cobalt-ink);
}

/* The tile wall, just for fun: a small glazed tile for each finished stage, the next one pounced
   (drawn in dots) and saffron-edged ones for hidden finds. A stage finished just now glazes. */
.tile-wall {
  margin-top: 32px;
  text-align: center;
}
.wall-title {
  font: 600 15px / 1.3 var(--body);
  letter-spacing: 0;
}
.wall-title small {
  margin-left: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--slate);
}
.wall-tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 8px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}
.wall-tiles li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  width: 72px;
}
.wall-tiles small {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--slate);
}
.wall-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--wash);
  color: var(--slate);
}
.wall-tile svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.6;
}
.glazed .wall-tile,
.next .wall-tile {
  background: url("/tiles/glazed.svg") 0 0 / 100% 100%;
}
.next .wall-tile {
  background-image: url("/tiles/pounced.svg");
  box-shadow: inset 0 0 0 1.5px var(--cobalt);
}
.glazed .wall-tile svg,
.next .wall-tile svg {
  display: none;
}
.glazed small,
.next small {
  color: var(--cobalt-ink);
}
.egg .wall-tile {
  box-shadow: inset 0 0 0 2px var(--saffron);
  color: var(--cobalt);
  animation: pop 0.45s var(--spring) both;
}
/* Glazing: the whitewash lifts off the fresh tile. */
.fresh .wall-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--wash);
  transform-origin: 50% 0;
  animation: glaze 0.7s var(--ease) 0.35s both;
}
@keyframes glaze {
  to {
    transform: scaleY(0);
  }
}

/* The loader: each choice ticks in turn. */
.checklist {
  display: grid;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--slate);
  line-height: 1.35;
  transition: color 0.3s var(--ease);
}
.check-box {
  transition:
    background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.checklist li.now,
.checklist li.done {
  color: var(--cobalt-ink);
}
.checklist li.now .check-box {
  box-shadow: inset 0 0 0 2px var(--cobalt);
  animation: pulse 0.9s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    transform: scale(1.12);
  }
}
.checklist li.done .check-box {
  background: var(--cobalt);
  box-shadow: none;
}

/* Summary */
.summary-card {
  margin-top: 32px;
  padding: 22px 20px 4px;
  border-radius: 22px;
  background: var(--wash);
}
.summary-title {
  padding-bottom: 12px;
  font: 400 24px / 1.2 var(--serif);
  letter-spacing: -0.02em;
}
.summary-card .facts {
  margin-top: 0;
  border-top: 1px solid var(--line);
}
.summary-card .facts > div:last-child {
  border-bottom: 0;
}
.reassurance,
.honest-note {
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--slate);
  text-align: center;
}

/* Why speaking: your episode as a card, its art on a faint tile as on the homepage's posters. */
.scene-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  padding: 12px 20px 12px 12px;
  border-radius: 24px;
  background: var(--wash);
}
.scene-card-art {
  display: grid;
  place-items: center;
  flex: none;
  width: 120px;
  aspect-ratio: 1;
  border-radius: 16px;
  background:
    linear-gradient(#dce3f4f0 0 0),
    url("/tiles/az.svg") 0 0 / 50% auto;
}
.scene-card .scene-card-art svg {
  width: 58%;
  height: auto;
}
.scene-card-body {
  min-width: 0;
}
.scene-card .eyebrow {
  margin: 0;
  font-size: 14px;
  text-align: left;
}
.scene-card h2 {
  margin-top: 4px;
  font-size: 24px;
}
.scene-goal {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.goal-mark {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--saffron);
}
.scene-twist {
  margin: 2px 0 0 18px;
  font-size: 15px;
  color: var(--slate);
}

/* Plan preview: the five episodes on their suggested days, as a grouped list. */
.scene-list {
  display: grid;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}
.scene-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.scene-icon {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 6px;
  border-radius: 12px;
  background: var(--wash);
}
.is-goal .scene-icon {
  background: var(--sky);
}
.scene-text {
  display: grid;
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.scene-text strong {
  font-weight: 600;
}
.scene-text small {
  margin-top: 2px;
  font-size: 14px;
  color: var(--slate);
}
.scene-date {
  display: grid;
  justify-items: end;
  gap: 4px;
  flex: none;
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}
.scene-date em,
.tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: #fdefcf;
  font: 600 13px / 1.3 var(--body);
  font-style: normal;
  letter-spacing: 0;
  color: var(--bisque-ink);
  white-space: nowrap;
}

/* Hints: the host's line, then a hint card for each "I'm stuck". */
.demo {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  padding: 20px;
  border-radius: 24px;
  background: var(--wash);
}
.demo-line {
  font: 600 21px / 1.3 var(--display);
  letter-spacing: -0.01em;
}
.demo-line > span {
  display: block;
  margin-bottom: 4px;
  font: 600 13px / 1.2 var(--body);
  letter-spacing: 0;
  color: var(--cobalt);
}
.hint-stack {
  display: grid;
  gap: 8px;
}
.hint-stack:empty {
  display: none;
}
.hint-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-chip);
  line-height: 1.4;
  animation: appear 0.35s var(--ease) both;
}
.hint-card .icon {
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 50%;
  background: #fdefcf;
  color: var(--bisque-ink);
}
.hint-card strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--cobalt);
}
.hint-card q {
  font: 600 18px / 1.3 var(--display);
  quotes: none;
}
.hint-card small {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  color: var(--slate);
}
.stuck-button {
  justify-self: start;
}

/* The café episode on screen, as on the homepage: the whitewashed wall over a faded tiled wainscot,
   the host in her doorway and the series' title card. Your goal under it, then the lines. */
.story-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 26px;
  background:
    linear-gradient(var(--wash) 0 0) 0 0 / 100% 62% no-repeat,
    linear-gradient(#1e3e9e59 0 0) 0 62% / 100% 2px no-repeat,
    linear-gradient(#fdfcf8db 0 0),
    url("/tiles/az.svg") 50% 100% / 56px 56px;
  box-shadow:
    0 30px 60px -36px #172e7366,
    0 0 0 1px #172e730f;
}
.stage-door {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 50%;
  translate: -50% 0;
}
.screen-title {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  gap: 1px;
  padding: 8px 14px 9px;
  border-radius: 14px;
  background: #fdfcf8eb;
  box-shadow: 0 0 0 1px #172e730f;
}
.screen-title b {
  font: 400 17px / 1.2 var(--serif);
  letter-spacing: -0.01em;
}
.screen-title span {
  font-size: 13px;
  line-height: 1.3;
  color: var(--slate);
}
.goal-bar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--wash);
  line-height: 1.35;
}
.goal-bar > span:last-child {
  display: grid;
  gap: 2px;
}
.goal-bar strong {
  font-weight: 600;
}
.goal-bar small {
  font-size: 15px;
  color: var(--slate);
}
.thread {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}
.speech {
  justify-self: start;
  max-width: 88%;
  padding: 12px 18px 13px;
  border-radius: 22px 22px 22px 6px;
  background: #fff;
  box-shadow: var(--shadow-card);
  animation: appear 0.35s var(--ease) both;
}
.speech.your-turn {
  justify-self: end;
  border-radius: 22px 22px 6px;
  background: var(--cobalt);
  color: var(--glaze);
}
.speaker {
  display: block;
  margin-bottom: 2px;
  font: 600 13px / 1.3 var(--body);
  color: var(--cobalt);
}
.your-turn .speaker {
  color: var(--saffron-soft);
}
.speech p {
  font: 600 19px / 1.3 var(--body);
  letter-spacing: -0.01em;
}
.speech small {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--slate);
}
.your-turn small {
  color: var(--caption);
}
.translate-tap {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cobalt);
}
.your-turn .translate-tap {
  color: var(--saffron-soft);
}
.caret {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 2px;
  vertical-align: -0.08em;
  background: currentColor;
  animation: blink 0.8s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.story-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.story-count {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--slate);
}

/* Plans: two cards, the chosen one ringed in cobalt; the annual trial as a short timeline. */
.plans {
  display: grid;
  gap: 10px;
  margin-top: 32px;
}
.price-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px 18px 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
  transition:
    box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease);
}
.price-option:hover {
  background: var(--wash);
}
.price-option.selected {
  background: var(--porcelain);
  box-shadow: inset 0 0 0 2px var(--cobalt);
}
.price-copy {
  display: grid;
  flex: 1;
  min-width: 0;
}
.price-copy strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font: 600 19px / 1.2 var(--body);
}
.price-copy small {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--slate);
}
.price {
  display: grid;
  justify-items: end;
  flex: none;
}
.price > strong {
  font: 400 24px / 1 var(--serif);
  letter-spacing: -0.02em;
}
.price > small {
  margin-top: 4px;
  font-size: 13px;
  color: var(--slate);
}
.timeline {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding: 20px;
  border-radius: 20px;
  background: var(--wash);
  list-style: none;
}
.timeline li {
  position: relative;
  display: grid;
  padding-left: 28px;
  line-height: 1.4;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cobalt);
}
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 7px;
  top: calc(0.45em + 14px);
  bottom: -14px;
  width: 2px;
  border-radius: 1px;
  background: var(--sky);
}
.timeline strong {
  font-weight: 600;
}
.timeline span,
.plan-note {
  font-size: 15px;
  color: var(--slate);
}
.plan-note {
  margin-top: 16px;
  text-align: center;
}
.cancel-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  font-weight: 600;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq .list-title + details {
  border-top: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 16px 36px 16px 0;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background:
    linear-gradient(var(--cobalt) 0 0) 50% 50% / 12px 2px no-repeat,
    linear-gradient(var(--cobalt) 0 0) 50% 50% / 2px 12px no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq p {
  padding: 0 36px 16px 0;
  color: var(--slate);
}
.price-terms {
  margin-top: 24px;
}

/* Fields: white pills, ringed in cobalt while typing. */
.field-group {
  margin-top: 36px;
}
.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}
.name-input input,
.waitlist-form input[type="email"] {
  width: 100%;
  min-height: 58px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--mist);
  font-size: 19px;
  font-weight: 500;
  transition:
    box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease);
}
.name-input input:focus,
.waitlist-form input[type="email"]:focus {
  outline: none;
  background: #fff;
  box-shadow:
    inset 0 0 0 2px var(--cobalt),
    0 0 0 4px var(--sky);
}
.waitlist-form input[aria-invalid="true"] {
  box-shadow: inset 0 0 0 2px var(--error);
}
.field-hint,
.name-screen .field-error {
  margin-top: 8px;
  text-align: center;
}

/* A namesake peeks over the name field. */
.name-input {
  position: relative;
}
.name-input input {
  position: relative;
  z-index: 1;
}
.name-egg-peek {
  position: absolute;
  right: 14px;
  bottom: calc(100% - 14px);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
  animation: peek 0.5s var(--spring) both;
}
@keyframes peek {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}
.name-egg-face {
  width: 56px;
}
.name-egg-say {
  display: grid;
  padding: 7px 12px 8px;
  border-radius: 16px 16px 4px;
  background: var(--cobalt);
  color: #fff;
  font: 600 15px / 1.25 var(--body);
  white-space: nowrap;
}
.name-egg-say small {
  font-size: 13px;
  font-weight: 400;
  color: var(--caption);
}
.name-screen .field-group {
  margin-top: 64px;
}

/* The invite */
.waitlist-form {
  display: grid;
  margin-top: 32px;
}
.waitlist-form > .btn {
  justify-self: center;
  margin-top: 28px;
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--slate);
  cursor: pointer;
}
.consent-row input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--cobalt);
}
.form-status {
  margin-top: 10px;
  text-align: center;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.waitlist-alt {
  margin-top: 20px;
  font-size: 15px;
  color: var(--slate);
  text-align: center;
}
.farewell {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 28px;
}
.farewell .character-stage {
  margin: 0;
}
.farewell .say-bubble {
  font-size: 16px;
}
.waitlist-links {
  display: grid;
  justify-items: center;
  margin-top: 44px;
}

/* The menu: a rounded sheet over the quiz (from the bottom on phones). */
.sheet {
  width: min(100% - 32px, 400px);
  max-height: calc(100dvh - 32px);
  padding: 20px 22px 22px;
  border: 0;
  border-radius: 24px;
  background: var(--glaze);
  color: var(--cobalt-ink);
  box-shadow: 0 30px 80px -20px #172e7359;
}
.sheet::backdrop {
  background: #172e7340;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.sheet[open] {
  animation: appear 0.3s var(--ease) both;
}
.sheet .close {
  float: right;
  margin: -8px -8px 0 0;
  background: var(--porcelain);
}
.sheet h2 {
  padding-top: 4px;
  font-size: 24px;
}
.sheet > p {
  clear: both;
  margin: 14px 0 10px;
  font-size: 15px;
  color: var(--slate);
}
.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  border-top: 1px solid var(--line);
  color: var(--cobalt-ink);
  font-weight: 500;
  text-align: left;
  text-decoration: none;
}
.menu-row .icon {
  width: 18px;
  height: 18px;
  color: var(--slate);
}
.menu-row:hover {
  color: var(--cobalt);
}
.sheet .btn {
  width: 100%;
  margin-top: 16px;
}

.noscript {
  width: min(100% - 48px, 560px);
  margin: 14vh auto;
  text-align: center;
}
.noscript h1 {
  font-size: 32px;
}
.noscript p {
  margin-top: 12px;
  color: var(--slate);
}

/* Phones: the screen fills the page and the main action docks at the bottom. */
@media (max-width: 640px) {
  html {
    scroll-padding-top: 104px;
  }
  .header-inner,
  .progress-wrap {
    width: auto;
    padding-inline: max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-right));
  }
  .progress-wrap {
    padding: 0 max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
  }
  .header-inner {
    height: 58px;
  }
  .main,
  .deck,
  .page,
  .page > section,
  .page > form {
    flex: 1;
  }
  .deck {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 28px max(20px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
  }
  .offline {
    width: auto;
    margin: 12px 20px 0;
  }
  .character-stage {
    margin-bottom: 20px;
  }
  .framing-full .avatar {
    width: 96px;
  }
  .say-bubble {
    font-size: 16px;
  }
  .options {
    margin-top: 24px;
  }
  .option {
    gap: 12px;
    padding-inline: 12px;
  }
  /* The main action stays in reach, over a frosted strip. */
  .page section > :has(+ .action-dock:not(.inline)) {
    margin-bottom: 28px;
  }
  .action-dock:not(.inline) {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: auto calc(-1 * max(20px, env(safe-area-inset-left)))
      calc(-1 * max(16px, env(safe-area-inset-bottom)));
    padding: 12px max(20px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: #fdfcf8f2;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
  .action-dock .btn,
  .waitlist-form > .btn {
    width: 100%;
  }
  .wall-tiles li {
    width: calc(25% - 6px);
  }
  .scene-card {
    gap: 14px;
    padding: 10px 14px 10px 10px;
  }
  .scene-card-art {
    width: 92px;
  }
  .scene-card h2 {
    font-size: 20px;
  }
  .scene-list li {
    gap: 12px;
  }
  .scene-text small {
    font-size: 13px;
  }
  .scene-date {
    font-size: 14px;
  }
  .story-screen {
    aspect-ratio: 7 / 4;
    margin-top: 22px;
  }
  .screen-title b {
    font-size: 17px;
  }
  .speech p,
  .demo-line {
    font-size: 18px;
  }
  .speech {
    max-width: 94%;
  }
  .price-option {
    padding: 16px 14px;
    gap: 12px;
  }
  .price-copy strong {
    font-size: 18px;
  }
  .farewell {
    gap: 16px;
  }
  .sheet {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }
}
/* Short screens (a phone with the keyboard open): tighter, and the header scrolls away. */
@media (max-width: 640px) and (max-height: 700px) {
  .deck h1 {
    font-size: 31px;
  }
  .framing-full .avatar {
    width: 80px;
  }
  .action-dock:not(.inline) {
    padding-top: 8px;
  }
}
@media (max-width: 640px) and (max-height: 520px) {
  .header {
    position: static;
  }
  html {
    scroll-padding-top: 8px;
  }
  .progress-label {
    display: none;
  }
}
@media (max-width: 360px) {
  .deck h1 {
    font-size: 31px;
  }
  .price-option {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
  }
  .price {
    grid-column: 2;
    justify-items: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .caret {
    display: none;
  }
}

/* Marks a state shows: a check once chosen or done, the chevron until then. */
.option:not(.selected) .tick,
.selected .option-mark .icon,
.price-option:not(.selected) .tick,
.checklist li:not(.done) .tick {
  display: none;
}
