/* The Home day story. Without the script, or with reduced motion, each scene is a plain row:
   its words beside its phone screen. day.js adds `story` to <html>, which pins the stage and
   stacks every scene into one phone that scroll plays through a sample day. */

/* Phone screen content, shared by both layouts */
.day {
  position: relative;
}
.stage {
  position: relative;
  padding-block: clamp(32px, 6vw, 80px);
}
.sky,
.orb,
.pile,
.dial,
.tally,
.clockblock,
.phone-frame {
  display: none;
}
.scenes {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  max-width: 1040px;
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut-r);
}
.scene {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px 56px;
  align-items: center;
}
.beat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.beat h1,
.beat h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
  font-size: clamp(1.9rem, 3.5vw, 3.3rem);
}
.beat h1 {
  font-size: clamp(2.2rem, 4.2vw, 4rem);
}
.beat p {
  margin: 0;
  max-width: 30em;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}
.beat-done,
.needs-story {
  display: none;
}
.screen {
  position: relative;
  border-radius: 36px;
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 30% at 15% 0%, rgba(255, 159, 127, 0.2), transparent 70%),
    radial-gradient(80% 34% at 90% 0%, rgba(123, 97, 255, 0.3), transparent 70%), var(--bg);
  box-shadow: var(--card-shadow);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.s-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.s-head b {
  font-size: 14px;
  display: block;
}
.s-head div span {
  font-size: 11px;
  color: var(--ink-3);
  display: block;
}
.av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8e7bff, #2b1e8f);
  flex: none;
}
.tile {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  flex: none;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.s-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.s-title.sm {
  font-size: 18px;
  margin-top: 4px;
}
.card {
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 12px 14px;
}
.card.split {
  display: flex;
  align-items: center;
  gap: 14px;
}
.card b.t {
  display: block;
  font-size: 13px;
  margin-top: 8px;
}
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.rowi {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.rowi .g {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.rowi b {
  font-size: 13px;
}
.rowi small {
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.amt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
}
.money {
  font-family: var(--display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.money.md {
  font-size: 26px;
}
.money.sm {
  font-size: 20px;
}
.money small {
  font-size: 15px;
  color: var(--ink-3);
}
.sub {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2);
}
.sub.up {
  color: var(--mint);
}
.over {
  color: var(--rose);
}
.verdict {
  font-weight: 600;
  font-size: 15px;
  margin-top: 4px;
}
.ring {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
}
.ring svg {
  display: block;
  transform: rotate(-90deg);
}
.ring circle {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke 0.4s;
}
.ring .bgc {
  stroke: var(--fill);
}
.ring .fg {
  stroke: var(--mint);
}
.ring .fg.amber {
  stroke: var(--amber);
}
.ring .fg.rose {
  stroke: var(--rose);
}
.ring b {
  position: absolute;
  font-family: var(--display);
  font-weight: 600;
  font-size: 30px;
  font-variant-numeric: tabular-nums;
}
.ring.md b {
  font-size: 24px;
}
.ring.xs b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  color: #fff;
}
.ring.xs .bgc {
  stroke: rgba(255, 255, 255, 0.25);
}
.ring.xs .fg {
  stroke: #7fd8a6;
}
.lbl {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-2);
  margin-bottom: 5px;
}
.lbl span:last-child {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
}
.bar {
  height: 6px;
  border-radius: 999px;
  background: var(--fill);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: var(--w, 100%);
  border-radius: 999px;
  background: var(--accent);
}
.w-low {
  --w: 22%;
}
.w-mid {
  --w: 34%;
}
.w-high {
  --w: 86%;
}
.btn {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--cta);
  color: var(--cta-ink);
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.25s var(--spring);
}
.btn:active {
  transform: scale(0.96);
}
.spark {
  display: block;
  width: 100%;
  height: 70px;
  margin-top: 6px;
}
.spark path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lock {
  align-items: center;
}
.lock-time {
  font-family: var(--display);
  font-weight: 600;
  font-size: 78px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.lock-date {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.notif {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--line);
}
.notif .g {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.notif b {
  font-size: 12px;
}
.notif small {
  font-size: 11px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif time {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-3);
  align-self: flex-start;
}
.notif .gl {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}
.offer {
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.offer-top {
  height: 60px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: radial-gradient(120% 140% at 60% 0%, #4f8bff, #3a2bb8 55%, transparent 100%);
}
.offer-top .chip {
  background: rgba(10, 10, 17, 0.5);
  color: #fff;
}
.offer-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.done-mark {
  display: none;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--mint);
}
.approved .done-mark {
  display: flex;
  animation: pop 0.6s var(--spring) both;
}
.approved .btn,
html:not(.js) .needs-js {
  display: none;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}
.burst {
  position: absolute;
  left: 50%;
  bottom: 36px;
  width: 0;
  height: 0;
  pointer-events: none;
}
.burst i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}
.burst i:nth-child(3n + 1) {
  background: var(--peach);
}
.burst i:nth-child(3n + 2) {
  background: var(--mint);
}
.approved .burst i {
  animation: fly 0.9s var(--ease) both;
}
@keyframes fly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.3);
  }
}
@media (max-width: 760px) {
  .scene {
    grid-template-columns: minmax(0, 1fr);
  }
  .screen {
    max-width: 340px;
  }
}

/* ---------- Story mode ---------- */
.story .day {
  height: 900vh;
  margin-top: calc(-1 * var(--nav-h));
}
.story .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  padding: 0;
  overflow: hidden;
  background: var(--sky, #0a0a11);
  color: var(--ink);
  transition: color 0.45s;
}
.story .stage * {
  transition:
    color 0.45s,
    background-color 0.45s,
    border-color 0.45s;
}
.story .sky {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.stars {
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 28% 9%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 44% 24%, #fff, transparent),
    radial-gradient(1px 1px at 61% 12%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 83% 30%, #fff, transparent),
    radial-gradient(1px 1px at 91% 8%, #fff, transparent),
    radial-gradient(1px 1px at 7% 42%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 70% 44%, #fff, transparent),
    radial-gradient(1px 1px at 36% 52%, #fff, transparent),
    radial-gradient(1px 1px at 96% 58%, #fff, transparent);
  animation: twinkle 3.6s ease-in-out infinite alternate;
}
@keyframes twinkle {
  to {
    filter: brightness(0.55);
  }
}
.aur-night,
.aur-day {
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift {
  to {
    transform: translate3d(2.5%, 1.5%, 0) scale(1.08);
  }
}
.aur-night {
  background:
    radial-gradient(50% 55% at 78% 8%, rgba(123, 97, 255, 0.42), transparent 70%),
    radial-gradient(40% 45% at 8% 100%, rgba(255, 159, 127, 0.16), transparent 70%),
    radial-gradient(45% 45% at 55% 110%, rgba(79, 139, 255, 0.18), transparent 70%);
}
.aur-day {
  background:
    radial-gradient(55% 60% at 14% 0%, rgba(255, 186, 160, 0.75), transparent 70%),
    radial-gradient(60% 65% at 88% 4%, rgba(184, 168, 255, 0.8), transparent 70%),
    radial-gradient(45% 45% at 52% 0%, rgba(170, 200, 255, 0.4), transparent 70%);
}
.horizon {
  background: linear-gradient(
    0deg,
    rgba(255, 140, 100, 0.55),
    rgba(255, 159, 127, 0.18) 35%,
    transparent 62%
  );
}
.story .orb {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 110px;
  height: 110px;
  margin: -55px 0 0 -55px;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  transition: none;
}
.moon {
  background: radial-gradient(circle at 35% 30%, #f0ebff, #b3a3ff 58%, #7b61ff);
  box-shadow:
    0 0 90px rgba(179, 163, 255, 0.6),
    0 0 200px rgba(123, 97, 255, 0.35);
}
.sun {
  background: radial-gradient(circle at 35% 30%, #fff1e8, #ff9f7f 58%, #f2643d);
  box-shadow:
    0 0 100px rgba(255, 159, 127, 0.8),
    0 0 220px rgba(255, 186, 160, 0.55);
}
.story .scenes {
  position: relative;
  height: 100%;
  max-width: 1320px;
  gap: 0 36px;
  padding-top: calc(var(--nav-h) + 12px);
  padding-bottom: 104px;
  grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr);
  grid-template-areas:
    ". phone tally"
    "clock phone tally"
    "beats phone tally"
    ". phone tally";
}
.story .scene {
  display: contents;
}
.story .clockblock {
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-area: clock;
  position: relative;
  z-index: 6;
}
.clock {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3rem, 6.6vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.clock small {
  font-size: 0.3em;
  letter-spacing: 0;
  margin-left: 0.25em;
  color: var(--ink-2);
}
.you {
  font-size: 18px;
  color: var(--ink-2);
  min-height: 1.4em;
}
.story .beat-time {
  display: none;
}
.story .needs-story {
  display: inline-flex;
}
.story .beat {
  grid-area: beats;
  align-self: start;
  margin-top: 22px;
  position: relative;
  z-index: 6;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  pointer-events: none;
  transition:
    opacity 0.45s,
    transform 0.6s var(--ease),
    visibility 0s 0.45s;
}
.story .beat.on {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition-delay: 0.12s;
}
.story .beat-done {
  display: flex;
}
.scrollhint {
  align-items: center;
  gap: 8px;
}
.scrollhint i {
  width: 1px;
  height: 22px;
  background: var(--ink-3);
  animation: drip 1.8s infinite;
  transform-origin: top;
}
@keyframes drip {
  0% {
    transform: scaleY(0);
  }
  50% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}
.story .phone-frame {
  display: block;
  grid-area: phone;
  place-self: center;
  width: 300px;
  height: 620px;
  border-radius: 52px;
  background: var(--bezel);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  position: relative;
  z-index: 4;
  transform: perspective(1000px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition:
    transform 0.4s var(--ease),
    background-color 0.45s;
}
.phone-frame::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 44px;
  background:
    radial-gradient(70% 36% at 15% 0%, rgba(255, 159, 127, 0.26), transparent 70%),
    radial-gradient(80% 40% at 90% 0%, rgba(123, 97, 255, 0.38), transparent 70%), var(--bg);
  transition: background-color 0.45s;
}
.phone-frame::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 84px;
  height: 24px;
  margin-left: -42px;
  border-radius: 14px;
  background: #000;
}
.phone-frame.gulp {
  animation: gulp 0.5s var(--spring);
}
@keyframes gulp {
  40% {
    box-shadow:
      var(--shadow),
      0 0 0 5px var(--dot),
      0 0 60px var(--dot);
  }
}
/* day.js sets --zoom so the phone always fits between the words and the time bar. */
.story .phone-frame,
.story .screen {
  zoom: var(--zoom, 1);
}
.story .screen {
  grid-area: phone;
  place-self: center;
  width: 282px;
  height: 602px;
  max-width: none;
  border: 0;
  border-radius: 44px;
  background: none;
  box-shadow: none;
  padding: 58px 16px 16px;
  overflow: hidden;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: perspective(1000px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg))
    translateY(var(--sy, 26px)) scale(var(--ss, 0.97));
  transition:
    opacity 0.35s,
    transform 0.6s var(--ease),
    visibility 0s 0.35s;
}
.story .screen.on {
  --sy: 0px;
  --ss: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0.1s;
}
.story .lock {
  padding-top: 74px;
}
/* A step that has not appeared yet is out of the tab order too, so a control inside it (the
   Approve button) cannot be reached before its terms are on screen. */
.story .screen [data-at] {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.97);
  transition:
    opacity 0.35s,
    transform 0.55s var(--spring),
    visibility 0s 0.35s;
}
.story .screen [data-at].in {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.35s,
    transform 0.55s var(--spring),
    visibility 0s;
}
.story .bar i {
  width: 0;
  transition: width 0.7s var(--ease);
}
.story .in .bar i,
.story .bar.live i {
  width: var(--w, 100%);
}
.story .bar.live i {
  transition: none;
}
/* the pile of brand emails */
.story .pile {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.mail {
  position: absolute;
  left: 0;
  top: 0;
  width: 250px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: auto;
  cursor: grab;
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-select: none;
}
.story .mail {
  transition: box-shadow 0.3s;
}
.mail:hover {
  box-shadow: var(--shadow);
}
.mail.held {
  cursor: grabbing;
  z-index: 3;
}
.mail.gone {
  pointer-events: none;
}
.mail header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.mail header b {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mail header b::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4f8bff;
}
.mail time {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
}
.mail strong {
  font-size: 13px;
  line-height: 1.3;
}
.mail span {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* tally */
.story .tally {
  display: flex;
  grid-area: tally;
  align-self: center;
  justify-self: end;
  width: min(100%, 300px);
  padding: 18px;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateX(24px);
  transition:
    opacity 0.5s,
    transform 0.7s var(--ease);
  position: relative;
  z-index: 6;
}
.story .tally.on {
  opacity: 1;
  transform: none;
}
.tally h2 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.tally dl {
  margin: 0;
}
.trow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
.trow dt,
.trow dd {
  margin: 0;
}
.trow dd {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
.story .trow.lit,
.story .trow.lit dd {
  color: var(--ink);
}
.story .trow.you.lit dd {
  color: var(--peach);
}
.trow.bump dd {
  animation: bump 0.45s var(--spring);
}
@keyframes bump {
  50% {
    transform: scale(1.3);
  }
}
/* dial */
.story .dial {
  display: block;
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  z-index: 8;
}
.dial .pill,
.tick {
  pointer-events: auto;
}
.dial .wrap {
  display: flex;
  align-items: center;
  /* Room for the first tick's label, which is centred under the start of the line. */
  gap: 30px;
}
.dial-line {
  position: relative;
  flex: 1 1 auto;
  height: 56px;
}
.dial-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 16px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}
.story .dial-fill {
  position: absolute;
  left: 0;
  top: 16px;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: background-color 0.45s;
}
.story .dial-dot {
  position: absolute;
  top: 17px;
  left: 0;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 16px var(--dot);
  transition: background-color 0.45s;
}
.tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  background: none;
  border: 0;
  padding: 26px 6px 4px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  white-space: nowrap;
}
.tick::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  width: 2px;
  height: 10px;
  margin-left: -1px;
  background: var(--ink-3);
  border-radius: 2px;
}
.tick.on {
  color: var(--ink);
}
.tick.on::before {
  background: var(--accent);
}
.t0 {
  left: 0;
}
.t1 {
  left: 7%;
}
.t2 {
  left: 20%;
}
.t3 {
  left: 33%;
}
.t4 {
  left: 47%;
}
.t5 {
  left: 58%;
}
.t6 {
  left: 71%;
}
.t7 {
  left: 82%;
}
@media (max-width: 1080px) {
  .story .tally {
    display: none;
  }
  .story .scenes {
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas:
      ". phone"
      "clock phone"
      "beats phone"
      ". phone";
  }
}
@media (max-width: 760px) {
  .story .scenes {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas:
      "clock"
      "beats"
      "phone";
    padding-bottom: 48px;
  }
  /* Phones: the time and what you are doing share one line, so the simulated phone gets the room. */
  .story .clockblock {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }
  .story .you {
    min-height: 0;
  }
  .story .clockblock .mono {
    display: none;
  }
  .clock {
    font-size: 2.4rem;
  }
  .you {
    font-size: 15px;
  }
  .story .beat {
    gap: 8px;
    margin-top: 6px;
  }
  .story .beat h1,
  .story .beat h2 {
    font-size: 1.45rem;
  }
  .story .beat p {
    font-size: 13.5px;
    line-height: 1.45;
  }
  /* Every beat shares one cell here, so the longest one shrinks the phone for all of them.
     The last beat is the longest: it keeps its heading and buttons and drops its sentence. */
  .story .beat-done p {
    display: none;
  }
  .story .beat .pill {
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
  }
  .story .phone-frame,
  .story .screen {
    align-self: start;
    margin-top: 12px;
  }
  .story .screen {
    margin-top: 21px;
  }
  .mail {
    width: 200px;
    zoom: 0.85;
  }
  .story .orb {
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
  }
  .tick {
    font-size: 0;
    padding-bottom: 0;
  }
  .dial .pill,
  .story .needs-story.scrollhint {
    display: none;
  }
  .story .dial {
    bottom: max(4px, env(safe-area-inset-bottom, 0px));
  }
  .dial-line {
    height: 34px;
  }
}
@media (max-width: 360px) {
  .story .beat .pill {
    padding: 0 12px;
    font-size: 13px;
  }
}
@media (max-width: 760px) and (max-height: 700px) {
  .story .beat p {
    display: none;
  }
}
