/* 90North, the home page (Figma "8 Landing"). Loaded after main.css.
   Every section is one scene or one real object, never a bordered card. Animations live in
   main.js and only set their starting states once it runs, so the page reads fine without it. */

.home {
  --pad-y: clamp(88px, 9vw, 150px);
  --lede: #b3bccb;
  --paper-ink: #17171a;
  --paper-ink-2: #69696e;
}

/* ---------- shared section pieces ---------- */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 20px clamp(32px, 5vw, 80px);
  align-items: end;
}
.sec-title {
  font-size: clamp(2.8rem, 2.55rem + 4.95vw, 7.5rem);
  line-height: 0.88;
  max-width: 7.6em;
}
.sec-lede {
  color: var(--lede);
  font-size: clamp(1.05rem, 0.96rem + 0.4vw, 1.32rem);
  line-height: 1.55;
  max-width: 24em;
  padding-bottom: 0.3em;
}
/* the headline's words rise out of their own line (main.js wraps them) */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.wi {
  display: inline-block;
}

/* ---------- nav: links and the button on the home page ---------- */
.nav-home {
  gap: 24px;
}
.nav-links {
  display: flex;
  gap: clamp(20px, 2.4vw, 36px);
  margin-left: auto;
}
.nav-links a {
  position: relative;
  color: var(--lede);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--ice);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}
.nav-links a.is-active::after {
  transform: none;
}
.nav-cta {
  margin-left: auto;
  height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 15px;
}
.nav-home .nav-links + .nav-cta {
  margin-left: clamp(8px, 1.4vw, 20px);
}

/* ---------- hero ---------- */
.hero {
  --stage-w: clamp(380px, 39vw, 560px);
  --stage-top: clamp(92px, 15vh, 170px);
  --stage-right: max(var(--gutter), calc(50% - var(--maxw) / 2));
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 720px;
  max-height: 1180px;
  overflow: hidden;
  isolation: isolate;
}
.hero-sky,
.hero-glow,
.hero-stars,
.snow,
.hero-scrim,
.ridge,
.final-sky,
.final-stars,
.final-sun,
.final-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-sky {
  background: linear-gradient(
    180deg,
    #03050a 0%,
    #0a1422 42%,
    #132338 64%,
    #0d1826 78%,
    #07090d 100%
  );
}
.hero[data-sky='dawn'] .hero-sky {
  background: linear-gradient(
    180deg,
    #05070b 0%,
    #101826 24%,
    #3b2a33 40%,
    #9a4e36 50%,
    #ff8a5b 56%,
    #1a1614 66%,
    #07090d 100%
  );
}
.hero[data-sky='day'] .hero-sky {
  background: linear-gradient(
    180deg,
    #0b1626 0%,
    #18304a 34%,
    #2c4d6e 56%,
    #1d3048 70%,
    #07090d 100%
  );
}
.hero-glow {
  background:
    radial-gradient(
      ellipse 42% 50% at 70% 42%,
      rgba(43, 110, 158, 0.42),
      rgba(43, 110, 158, 0) 70%
    ),
    radial-gradient(circle at 72% 24%, rgba(143, 212, 255, 0.12), rgba(143, 212, 255, 0) 26%);
}
.hero[data-sky='dawn'] .hero-glow {
  background: radial-gradient(
    ellipse 55% 30% at 62% 56%,
    rgba(255, 107, 61, 0.38),
    rgba(255, 107, 61, 0) 70%
  );
}
.hero[data-sky='day'] .hero-glow {
  background: radial-gradient(
    circle at 76% 18%,
    rgba(230, 244, 255, 0.18),
    rgba(230, 244, 255, 0) 24%
  );
}
.hero[data-sky='day'] .hero-stars {
  display: none;
}
.ridge {
  will-change: transform;
}
.hero-sky,
.hero-stars,
.hero-glow {
  z-index: 0;
}
.hero .ridge-peak,
.hero .ridge-mid {
  z-index: 1;
}
.hero-stage {
  z-index: 2;
}
.hero .ridge-near,
.hero .ridge-fg {
  z-index: 3;
}
.snow,
.hero-scrim {
  z-index: 4;
  pointer-events: none;
}
.toast {
  z-index: 5;
}
.hero-copy {
  z-index: 6;
}
.fill-peak {
  fill: #16273b;
}
.stroke-peak {
  stroke: rgba(143, 211, 255, 0.22);
  stroke-width: 1.2px;
}
.fill-mid {
  fill: #0f1c2b;
}
.fill-near {
  fill: #0a131d;
}
.fill-fg {
  fill: #07090d;
}
[data-sky='dawn'] .fill-peak {
  fill: #2a2230;
}
[data-sky='dawn'] .stroke-peak {
  stroke: rgba(255, 155, 107, 0.38);
}
[data-sky='dawn'] .fill-mid {
  fill: #1a1820;
}
[data-sky='dawn'] .fill-near {
  fill: #101116;
}
[data-sky='day'] .fill-peak {
  fill: #1d3048;
}
[data-sky='day'] .stroke-peak {
  stroke: rgba(207, 234, 255, 0.26);
}
[data-sky='day'] .fill-mid {
  fill: #132337;
}
[data-sky='day'] .fill-near {
  fill: #0c1724;
}
.hero-scrim {
  background: linear-gradient(
    180deg,
    rgba(7, 9, 13, 0) 60%,
    rgba(7, 9, 13, 0.55) 84%,
    #07090d 100%
  );
}

.hero-copy {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 84px;
  padding-bottom: 48px;
}
.hero-copy > * {
  max-width: 620px;
}
.hero-title {
  font-size: min(17vw, clamp(3.4rem, 3.05rem + 4.4vw, 7.2rem));
  line-height: 0.88;
  max-width: 5.6em;
  text-wrap: wrap;
}
.hero-ask {
  display: inline-block;
  color: var(--ice);
}
.hero-lede {
  margin-top: clamp(20px, 2.2vw, 28px);
  max-width: 27em;
  font-size: clamp(1.06rem, 0.98rem + 0.36vw, 1.32rem);
  text-wrap: pretty;
}
.hero-badges {
  margin-top: clamp(22px, 2.4vw, 30px);
}
.hero-copy .soon {
  margin-top: clamp(20px, 2.2vw, 26px);
}
/* the price is small print under the store buttons; the receipt further down tells the rest. The
   lede's color, not --muted, so it stays readable over the lit peak on phones */
.hero-price {
  margin-top: 14px;
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--lede);
  text-wrap: pretty;
}
.hero-price b {
  font-weight: 600;
  color: var(--text);
}

/* the crew phone behind, Today in front, and a cheer landing on top */
.hero-stage {
  position: absolute;
  right: var(--stage-right);
  top: var(--stage-top);
  width: var(--stage-w);
  aspect-ratio: 560 / 720;
}
/* the front ridges sit a little lower on wide screens, so the phones show down to their rows */
.hero .ridge-near {
  top: 11%;
}
.hero .ridge-fg {
  top: 8%;
}
.hero-phone {
  position: absolute;
}
.hero-phone .device {
  box-shadow:
    0 0 0 1px #000,
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    0 40px 120px -20px rgba(0, 0, 0, 0.9),
    0 0 120px -10px rgba(43, 110, 158, 0.4);
}
.hero-phone-back {
  width: 52%;
  left: 0;
  top: 15%;
  transform: rotate(-7deg);
}
.hero-phone-front {
  width: 57%;
  right: 0;
  top: 0;
  transform: rotate(5deg);
}
/* its own layer above the ridges, placed from the stage's measurements */
.toast {
  position: absolute;
  left: calc(100% - var(--stage-right) - var(--stage-w) * 1.13);
  top: calc(var(--stage-top) + var(--stage-w) * 0.85);
  width: clamp(270px, 24vw, 344px);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(26, 31, 40, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 24px 48px -8px rgba(0, 0, 0, 0.5);
}
.toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  display: grid;
  place-items: center;
  padding: 7px;
  color: var(--text);
}
.toast-icon svg {
  width: 100%;
  height: auto;
}
.toast-text {
  display: grid;
  line-height: 1.35;
  min-width: 0;
  font-size: 14px;
}
.toast-text b {
  font-size: 15px;
  font-weight: 600;
}
.toast-text span {
  color: var(--muted);
}
.toast-time {
  align-self: start;
  font-size: 12px;
  color: var(--muted);
}
.toast-text,
.toast-time {
  transition:
    opacity 0.35s,
    transform 0.5s var(--ease);
}
.toast.is-swapping .toast-text,
.toast.is-swapping .toast-time {
  opacity: 0;
  transform: translateY(-8px);
}

/* The hero's first moment is plain CSS: it runs before any script arrives, and without it. */
@media (prefers-reduced-motion: no-preference) {
  .hero-title,
  .hero-lede,
  .hero-badges,
  .hero-price,
  .hero-copy .soon {
    animation: hero-rise 1.1s var(--ease) backwards;
  }
  /* the headline rises without fading in: text that starts at opacity 0 counts as painted only at
     its next repaint, which held the page's Largest Contentful Paint back by about 0.6 s */
  .hero-title {
    animation-name: hero-title-rise;
    animation-delay: 0.1s;
  }
  .hero-lede {
    animation-delay: 0.32s;
  }
  .hero-badges,
  .hero-copy .soon {
    animation-delay: 0.42s;
  }
  .hero-price {
    animation-delay: 0.52s;
  }
  .hero-ask {
    animation: hero-ask 0.9s cubic-bezier(0.2, 1.3, 0.4, 1) 0.7s backwards;
  }
  .hero-phone-front {
    animation: phone-front 1.7s var(--ease) 0.15s backwards;
  }
  .hero-phone-back {
    animation: phone-back 1.7s var(--ease) 0.3s backwards;
  }
  .toast {
    animation: toast-in 0.8s cubic-bezier(0.2, 1.4, 0.4, 1) 1.5s backwards;
  }
  .hero .ridge-peak {
    animation: ridge-rise 2.2s var(--ease) backwards;
  }
  .hero .ridge-mid {
    animation: ridge-rise 2.2s var(--ease) 0.05s backwards;
  }
  .hero .ridge-near {
    animation: ridge-rise-near 2.2s var(--ease) 0.1s backwards;
  }
  .hero .ridge-fg {
    animation: ridge-rise-near 2.2s var(--ease) 0.15s backwards;
  }
}
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}
@keyframes hero-title-rise {
  from {
    transform: translateY(28px);
  }
}
@keyframes hero-ask {
  from {
    opacity: 0;
    transform: translateY(0.25em) scale(0.92);
  }
}
@keyframes phone-front {
  from {
    opacity: 0;
    transform: translateY(38%) rotate(0deg);
  }
}
@keyframes phone-back {
  from {
    opacity: 0;
    transform: translateY(44%) rotate(0deg);
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.94);
  }
}
@keyframes ridge-rise {
  from {
    transform: translateY(9%);
  }
}
@keyframes ridge-rise-near {
  from {
    transform: translateY(16%);
  }
}

/* ---------- crew: the group chat ---------- */
.crew {
  padding-block: var(--pad-y);
  background:
    radial-gradient(
      ellipse 42% 26% at 82% 30%,
      rgba(43, 110, 158, 0.26),
      rgba(43, 110, 158, 0) 100%
    ),
    radial-gradient(
      ellipse 34% 20% at 80% 74%,
      rgba(143, 211, 255, 0.08),
      rgba(143, 211, 255, 0) 100%
    ),
    var(--bg);
}
.chat {
  --fs: clamp(1.1rem, 0.85rem + 1.35vw, 2.1rem);
  margin-top: clamp(56px, 6vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(14px, 1.7vw, 28px) clamp(20px, 3vw, 48px);
  align-items: start;
}
.chat > * {
  grid-column: 1 / -1;
}
.chat > .msg-sam,
.chat > .crew-details {
  grid-column: 1;
}
.chat > .msg-big {
  grid-column: 2;
  grid-row: span 2;
}
.msg {
  display: flex;
  align-items: flex-end;
  gap: clamp(10px, 1.1vw, 16px);
}
.msg-me,
.msg-right {
  justify-content: flex-end;
}
.msg-indent {
  padding-left: clamp(0px, 12vw, 180px);
}
.msg-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28em;
  min-width: 0;
  font-size: var(--fs);
}
.msg-me .msg-stack {
  align-items: flex-end;
}
.msg-name {
  margin: 0 0 0.1em 0.5em;
  font-size: clamp(13px, 1.1vw, 17px);
  font-weight: 500;
  color: var(--muted);
}
.bubble {
  max-width: 100%;
  padding: 0.42em 0.82em 0.46em;
  border-radius: 1.1em 1.1em 1.1em 0.32em;
  background: var(--surface-2);
  color: var(--text);
  line-height: 1.3;
}
.msg-me .bubble {
  background: var(--ice-deep);
  border-radius: 1.1em 1.1em 0.32em 1.1em;
}
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(36px, 4.1vw, 60px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 2px var(--ice);
  font-size: clamp(11px, 1.05vw, 16px);
  font-weight: 600;
}
.avatar-dim {
  box-shadow: inset 0 0 0 2px var(--dim);
}
.msg-system {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(13px, 1.1vw, 17px);
  color: var(--muted);
}
.msg-system::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ice);
}
.msg-big .avatar {
  width: clamp(52px, 5.8vw, 84px);
  font-size: clamp(14px, 1.4vw, 21px);
}
.bubble-big {
  font-size: clamp(4.4rem, 2.6rem + 6.4vw, 8rem);
  line-height: 1;
  padding: 0.3em 0.72em 0.38em;
  border-radius: 0.42em 0.42em 0.42em 0.14em;
}
.typing {
  position: absolute;
  left: 0;
  bottom: 0;
  display: none;
  gap: 0.22em;
  padding: 0.7em 0.9em;
  border-radius: 1.1em 1.1em 1.1em 0.32em;
  background: var(--surface-2);
}
.typing span {
  width: 0.36em;
  height: 0.36em;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1s ease-in-out infinite;
}
.typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.typing span:nth-child(3) {
  animation-delay: 0.3s;
}
.msg-big.is-typing .typing {
  display: inline-flex;
}
@keyframes typing {
  0%,
  60%,
  100% {
    transform: none;
    opacity: 0.45;
  }
  30% {
    transform: translateY(-0.2em);
    opacity: 1;
  }
}
.crew-details {
  max-width: 34em;
  margin-top: clamp(18px, 2.4vw, 40px);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- contract: the letter ---------- */
.contract {
  padding-block: var(--pad-y);
  overflow: clip;
  background:
    radial-gradient(
      ellipse 34% 42% at 70% 50%,
      rgba(143, 211, 255, 0.1),
      rgba(43, 110, 158, 0.06) 60%,
      rgba(43, 110, 158, 0) 100%
    ),
    var(--bg);
}
.contract-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}
.contract-copy .sec-lede {
  margin-top: clamp(20px, 2.4vw, 30px);
}
.letter {
  justify-self: end;
  width: min(100%, 560px);
  margin: 0;
}
.paper {
  position: relative;
  transform: rotate(3deg);
  padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px) clamp(24px, 3.4vw, 48px);
  border-radius: 4px;
  color: var(--paper-ink);
  background:
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0) 50%,
      rgba(0, 0, 0, 0.04)
    ),
    #edebe3;
  box-shadow:
    0 40px 70px -10px rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
  font-size: clamp(1rem, 0.82rem + 0.75vw, 1.5rem);
  line-height: 1.5;
}
.paper p + p {
  margin-top: 0.85em;
}
.paper b {
  font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 0.07em no-repeat;
  padding-bottom: 0.04em;
}
.sign {
  margin-top: 1.9em;
}
.signature {
  display: block;
  width: min(62%, 300px);
  height: auto;
  margin-bottom: 4px;
  overflow: visible;
}
.signature path {
  fill: none;
  stroke: var(--ice-deep);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.signed {
  padding-top: 10px;
  border-top: 1px solid rgba(105, 105, 110, 0.5);
  font-size: max(12px, 0.58em);
  color: var(--paper-ink-2);
}

/* ---------- weight: the app's barbell (step 05), poster size ---------- */
.weight {
  padding-block: var(--pad-y) clamp(72px, 7vw, 120px);
  overflow: clip;
  background:
    radial-gradient(
      ellipse 44% 30% at 50% 54%,
      rgba(143, 211, 255, 0.07),
      rgba(143, 211, 255, 0) 100%
    ),
    radial-gradient(
      ellipse 62% 26% at 50% 66%,
      rgba(255, 106, 61, 0.06),
      rgba(255, 106, 61, 0) 100%
    ),
    var(--bg);
}
.bar-stage {
  margin-top: clamp(48px, 6vw, 96px);
}
/* drawn at 1200 by 420 and scaled as one picture; the plates slide on from past its ends */
.barbell {
  width: 100%;
  height: auto;
  overflow: visible;
}
/* the weight on the bar; main.js moves .is-on (and slides the plates when it may) */
.bb-plate:not(.is-on) {
  opacity: 0;
}
.bb-floor {
  fill: #000;
  opacity: 0.8;
}
.bb-line {
  fill: none;
}
.bb-shaft {
  stroke: #6b7482;
  stroke-width: 14;
}
.bb-knurl {
  stroke: #07090d;
  stroke-opacity: 0.55;
  stroke-width: 14;
  stroke-dasharray: 1.4 2.6;
}
.bb-shine {
  stroke: #f2f5f8;
  stroke-opacity: 0.55;
  stroke-width: 3;
}
.bb-shade {
  stroke: #000;
  stroke-opacity: 0.3;
  stroke-width: 3.5;
}

/* the weights, each a stretch of the line under the bar; the one on the bar is lit */
.weights {
  margin-top: clamp(36px, 4.6vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px clamp(20px, 3vw, 44px);
}
.wt {
  --plate: var(--ice);
  position: relative;
  padding-top: clamp(20px, 2vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.wt-warm-up {
  --plate: #e9edf2;
}
.wt-standard {
  --plate: #6fcf97;
}
.wt-monk {
  --plate: var(--ember);
}
.wt::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--plate);
  box-shadow: 0 0 18px var(--plate);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.6s var(--ease);
}
.wt.is-on::before {
  transform: none;
}
/* its plates, small and side by side, as the app's row shows them: one to four */
.wt-plates {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
}
.wt-plates span {
  width: 6px;
  height: 100%;
  border-radius: 2px;
  background: var(--plate);
}
.wt-name {
  position: relative;
  display: inline-block;
  margin-top: 12px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 1.35rem + 1.2vw, 2.6rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--lede);
  transition: color 0.3s;
}
.wt.is-on .wt-name {
  color: var(--text);
}
/* the app's note beside Monk mode */
.wt-note {
  position: absolute;
  left: 100%;
  bottom: 55%;
  margin-left: 8px;
  font-size: clamp(17px, 1.4vw, 21px);
  white-space: nowrap;
  transform: rotate(-8deg);
  transform-origin: 0 100%;
}
.wt-rule {
  margin-top: 10px;
  max-width: 17em;
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.5;
}
/* with main.js running, pointing at a weight loads it */
@media (hover: hover) {
  .ready .wt {
    cursor: pointer;
  }
  .ready .wt:hover .wt-name {
    color: var(--text);
  }
}
.weight-foot {
  margin: clamp(40px, 5vw, 72px) auto 0;
  max-width: 44em;
  text-align: center;
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 17px);
}

/* ---------- a day: the sky from 5 am to 3 am ---------- */
.day {
  padding-block: var(--pad-y) clamp(80px, 8vw, 130px);
  overflow: clip;
  background: var(--bg);
}
.day-track {
  --time-h: clamp(64px, 6vw, 96px);
  --band-off: 70px;
  --band-h: clamp(300px, 26vw, 380px);
  --wrap-w: min(calc(100vw - 2 * var(--gutter)), var(--maxw));
  --wrap-l: calc(50% - var(--wrap-w) / 2);
  position: relative;
  margin-top: clamp(56px, 6vw, 96px);
}
.day-sky {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--time-h) + var(--band-off));
  height: var(--band-h);
  pointer-events: none;
}
.day-band {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.35)),
    radial-gradient(
      calc(var(--wrap-w) * 0.16) 70% at calc(var(--wrap-l) + var(--wrap-w) * 0.285) 88%,
      rgba(255, 210, 168, 0.85),
      rgba(255, 155, 107, 0.45) 22%,
      rgba(255, 106, 61, 0) 100%
    ),
    linear-gradient(
        90deg,
        #1b2233 0%,
        #6b3b36 10%,
        #d9794d 23%,
        #4f7fa8 33%,
        #3f6f98 48%,
        #b3583a 61%,
        #4a2c34 69%,
        #141d2e 77%,
        #05070c 90%,
        #03050a 100%
      )
      center / var(--wrap-w) 100% no-repeat,
    linear-gradient(90deg, #1b2233 50%, #03050a 50%);
}
.day-stars {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--wrap-l) + var(--wrap-w) * 0.66);
  right: 0;
  width: auto;
  height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%);
  mask-image: linear-gradient(90deg, transparent, #000 30%);
}
.day-ridges {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 100%;
}
.day-ridge-far {
  fill: #0f1620;
  fill-opacity: 0.75;
}
.day-ridge-near {
  fill: var(--bg);
}
.day-now {
  position: absolute;
  z-index: 2;
  top: -26px;
  bottom: 18%;
  left: 0;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(
    180deg,
    rgba(143, 211, 255, 0.95),
    rgba(143, 211, 255, 0.6) 70%,
    rgba(143, 211, 255, 0)
  );
  box-shadow: 0 0 14px rgba(143, 211, 255, 0.7);
  opacity: 0;
}
.day-clock {
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-bottom: 8px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(7, 9, 13, 0.72);
  border: 1px solid rgba(143, 211, 255, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.beats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr);
  grid-template-rows: var(--time-h) auto auto;
  column-gap: clamp(16px, 2vw, 32px);
}
.beat {
  grid-row: span 3;
  display: grid;
  grid-template-rows: subgrid;
  justify-items: center;
  text-align: center;
}
.beat-time {
  align-self: end;
  padding-bottom: 14px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 1.7rem + 2vw, 3.75rem);
  line-height: 1;
  text-transform: uppercase;
}
.beat-phone {
  width: min(230px, 86%);
  margin: 0;
  align-self: start;
}
.beat-cap {
  margin-top: clamp(24px, 3vw, 44px);
  max-width: 17em;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.5;
}
.beat-end {
  justify-items: stretch;
  text-align: right;
}
.beat-end .beat-time {
  color: var(--ice);
}
.beat-end .beat-cap {
  justify-self: end;
}
.beat-night {
  position: relative;
  height: calc(var(--band-off) + var(--band-h));
}
/* midnight is a dashed line; the day really ends at the ice line */
.beat-night::before,
.beat-night::after {
  content: '';
  position: absolute;
  top: calc(var(--band-off) + 18px);
  bottom: 70px;
}
.beat-night::before {
  left: 0;
  border-left: 1.5px dashed rgba(255, 255, 255, 0.5);
}
.beat-night::after {
  right: 22%;
  width: 2px;
  background: var(--ice);
  box-shadow: 0 0 12px rgba(143, 211, 255, 0.6);
}
.midnight {
  position: absolute;
  top: calc(var(--band-off) + 20px);
  left: 14px;
  max-width: 9em;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  color: rgba(255, 255, 255, 0.88);
}
.moon {
  position: absolute;
  top: calc(var(--band-off) + 30px);
  right: 2%;
  width: clamp(40px, 4vw, 58px);
  fill: #e9edf2;
  filter: drop-shadow(0 0 24px rgba(230, 242, 255, 0.45));
}

/* ---------- privacy: your list, and what the crew gets ---------- */
.privacy {
  padding-block: var(--pad-y);
  background:
    radial-gradient(
      ellipse 34% 40% at 74% 62%,
      rgba(43, 110, 158, 0.2),
      rgba(43, 110, 158, 0) 100%
    ),
    var(--bg);
}
.redact {
  margin-top: clamp(56px, 6.5vw, 100px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    'mine crew'
    'more crew';
  gap: clamp(40px, 5vw, 64px) clamp(32px, 6vw, 110px);
}
.redact-mine {
  grid-area: mine;
}
.redact-crew {
  grid-area: crew;
}
.redact-more {
  grid-area: more;
  align-self: end;
  max-width: 30em;
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
}
.redact-more p + p {
  margin-top: 16px;
}
.redact-cap {
  margin-bottom: clamp(16px, 1.8vw, 24px);
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 500;
  color: var(--muted);
}
.rules {
  display: grid;
  gap: clamp(10px, 1.3vw, 20px);
}
.rule {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: clamp(1.5rem, 1.08rem + 1.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
}
.rule:not(.is-done) {
  color: var(--lede);
}
.tick {
  flex: none;
  width: 1em;
  height: 1em;
}
.tick circle {
  fill: none;
  stroke: var(--muted);
  stroke-width: 3;
}
.tick path {
  fill: none;
  stroke: none;
}
.is-done .tick circle {
  fill: var(--ice);
  stroke: var(--ice);
}
.is-done .tick path {
  stroke: var(--on-accent);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rules-hidden .rule {
  display: block;
}
.bar {
  --wipe: 1;
  position: relative;
  display: inline-block;
  color: var(--dim);
}
.bar::after {
  content: '';
  position: absolute;
  inset: 10% -3% 6%;
  border-radius: 6px;
  background: #2a3240;
  transform: rotate(var(--tilt, 0deg)) scaleX(var(--wipe));
  transform-origin: left center;
}
.rules-hidden .rule:nth-child(1) .bar {
  --tilt: -0.5deg;
}
.rules-hidden .rule:nth-child(2) .bar {
  --tilt: 0.4deg;
}
.rules-hidden .rule:nth-child(3) .bar {
  --tilt: -0.3deg;
}
.rules-hidden .rule:nth-child(4) .bar {
  --tilt: 0.5deg;
}
.count {
  margin-top: clamp(28px, 3vw, 48px);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(5rem, 3rem + 7vw, 9.4rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--ice);
}
.count-n {
  display: inline-block;
}
.count-cap {
  margin-top: 12px;
  max-width: 26em;
  color: var(--lede);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
}

/* ---------- climb: every day is a bar ---------- */
.climb {
  padding-block: var(--pad-y);
  overflow: clip;
  background:
    radial-gradient(
      ellipse 34% 34% at 90% 42%,
      rgba(255, 106, 61, 0.16),
      rgba(255, 106, 61, 0) 100%
    ),
    linear-gradient(180deg, var(--bg), #110e14);
}
.climb-chart {
  position: relative;
  margin: clamp(64px, 7.5vw, 120px) 0 0;
}
.climb-stats {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: flex;
  gap: clamp(28px, 4vw, 64px);
  margin: 0;
}
.climb-stats div {
  display: flex;
  flex-direction: column-reverse;
}
.climb-stats dd {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 2.4rem + 3.4vw, 6rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.climb-stats dt {
  margin-top: 6px;
  font-size: clamp(14px, 1.15vw, 17px);
  color: var(--muted);
}
.climb-stats .stat-streak dd {
  color: var(--ember);
}
.climb-plot {
  position: relative;
  height: clamp(300px, 42vw, 620px);
}
.climb-plot::after {
  content: '';
  position: absolute;
  left: calc(var(--gutter) * -1);
  right: calc(var(--gutter) * -1);
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.climb-bars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.climb-bars .day-miss,
.climb-bars .day-sick {
  fill: none;
  stroke: var(--muted);
  stroke-opacity: 0.85;
  stroke-width: 1.2;
}
.climb-bars .day-sick {
  stroke-dasharray: 3 3;
}
.flag {
  position: absolute;
  z-index: 1;
  display: none;
  align-items: flex-end;
  gap: 10px;
  transform: translateX(calc(-100% + var(--flag-w) - 2px));
  --flag-w: clamp(16px, 1.6vw, 24px);
  white-space: nowrap;
}
.flag.is-placed {
  display: flex;
}
.flag-icon {
  order: 2;
  flex: none;
  width: var(--flag-w);
  height: auto;
  margin-bottom: -1px;
}
.flag-icon rect {
  fill: #c9d1dc;
}
.flag-icon path {
  fill: var(--text);
}
.flag-summit .flag-icon path {
  fill: var(--ember);
}
.flag-label {
  display: grid;
  text-align: right;
  line-height: 1.3;
  padding-bottom: 0.9em;
}
.flag-label b {
  font-size: clamp(13px, 1.2vw, 18px);
  font-weight: 600;
}
.flag-label > span {
  font-size: clamp(11px, 1vw, 15px);
  color: var(--muted);
}
.climb-axis {
  position: relative;
  height: 22px;
  margin-top: 16px;
  font-size: clamp(12px, 1vw, 15px);
  color: var(--muted);
}
.climb-axis span {
  position: absolute;
  top: 0;
  white-space: nowrap;
}
.at-1 {
  left: 0;
}
.at-15 {
  left: 15.56%;
}
.at-47 {
  left: 51.11%;
}
.climb-legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- price: the receipt ---------- */
.price {
  padding-block: var(--pad-y);
  overflow: clip;
  background:
    radial-gradient(
      ellipse 36% 42% at 72% 52%,
      rgba(255, 106, 61, 0.16),
      rgba(255, 106, 61, 0) 100%
    ),
    linear-gradient(180deg, #110e14, #161218);
}
.price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.price-lede {
  margin-top: clamp(20px, 2.4vw, 28px);
  max-width: 22em;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  line-height: 1.5;
}
.price-body {
  margin-top: 16px;
  max-width: 30em;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
}
.printer {
  position: relative;
  width: min(100%, 440px);
  justify-self: center;
}
.printer-body {
  position: relative;
  z-index: 2;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(180deg, #262b34 0%, #0c0e12 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px #000,
    0 20px 40px -14px rgba(0, 0, 0, 0.9);
}
.printer-slot {
  position: absolute;
  left: 26px;
  right: 26px;
  top: 50%;
  height: 8px;
  margin-top: -4px;
  border-radius: 4px;
  background: #000;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.9);
}
.printer-led {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px var(--ember);
}
.printer.is-printing .printer-led {
  animation: led 0.24s steps(2) infinite;
}
@keyframes led {
  50% {
    opacity: 0.35;
  }
}
.receipt-clip {
  position: relative;
  z-index: 1;
  margin: -29px 30px 0;
  padding: 0 0 36px;
  overflow: hidden;
  transform: rotate(-1.6deg);
  transform-origin: 50% 0;
}
.receipt {
  --zig: 12px;
  position: relative;
  padding: 50px 28px 36px;
  color: var(--paper-ink);
  background: linear-gradient(180deg, #d8d4cb 0%, #edebe3 7%, #f2efe8 60%, #e6e2d9 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--zig)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom /
      calc(var(--zig) * 2) var(--zig) repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--zig)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom /
      calc(var(--zig) * 2) var(--zig) repeat-x;
  filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.4));
}
.receipt hr {
  border: 0;
  height: 1.5px;
  margin: 16px 0 12px;
  background-image: linear-gradient(90deg, #b6b1a6 50%, transparent 50%);
  background-size: 8px 1.5px;
}
.r-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(30px, 2.6vw, 38px);
  line-height: 0.95;
  text-transform: uppercase;
}
.r-dates {
  font-size: 14px;
  color: var(--paper-ink-2);
  margin-top: 6px;
}
.r-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  padding: 5px 0;
}
.r-line b {
  font-weight: 600;
}
.r-total {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 6px;
  font-weight: 600;
  font-size: 17px;
}
.r-total b {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(56px, 5vw, 72px);
  line-height: 0.85;
  letter-spacing: -0.01em;
}
.r-foot {
  text-align: right;
  font-size: 12px;
  color: var(--paper-ink-2);
  margin-top: 8px;
}
.price-marker {
  position: absolute;
  right: 2%;
  bottom: -18px;
  font-size: clamp(19px, 1.7vw, 25px);
  width: min(9.4em, 100%);
  white-space: normal;
  text-align: right;
  transform: rotate(-6deg);
  transform-origin: 100% 50%;
}

/* ---------- questions ---------- */
.faq {
  padding-block: clamp(72px, 7vw, 120px) var(--pad-y);
  background: linear-gradient(180deg, #161218, var(--bg) 22%);
}
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: start;
}
.faq-head {
  position: sticky;
  top: 110px;
}
.faq-head p {
  margin-top: 20px;
  color: var(--muted);
  max-width: 26em;
  line-height: 1.6;
}
.q-list {
  display: grid;
  gap: 4px;
}
.q {
  border-radius: 18px;
  transition: background-color 0.3s;
}
.q:hover,
.q[open] {
  background: rgba(255, 255, 255, 0.035);
}
.q summary {
  list-style: none;
  position: relative;
  cursor: pointer;
  padding: 20px 64px 20px 22px;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  font-weight: 600;
  line-height: 1.35;
}
.q summary::-webkit-details-marker {
  display: none;
}
.q summary::before,
.q summary::after {
  content: '';
  position: absolute;
  right: 26px;
  top: 50%;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: var(--muted);
  transition:
    transform 0.45s var(--ease),
    background-color 0.3s;
}
.q summary::after {
  transform: rotate(90deg);
}
.q[open] summary::after {
  transform: rotate(0deg);
}
.q[open] summary::before,
.q[open] summary::after {
  background: var(--ice);
}
.q-a {
  overflow: hidden;
}
.q-a p {
  padding: 0 22px 22px;
  color: #a7b0bf;
  line-height: 1.6;
  max-width: 62ch;
}

/* ---------- get it: sunrise ---------- */
.final {
  position: relative;
  min-height: min(100vh, 1100px);
  min-height: min(100svh, 1100px);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
}
.final-sky {
  background: linear-gradient(
    180deg,
    #07090d 0%,
    #101826 22%,
    #3b2a33 38%,
    #9a4e36 48%,
    #ff8a5b 55%,
    #1a1614 64%,
    #07090d 100%
  );
}
.final-sun {
  background: radial-gradient(
    ellipse 34% 22% at 66% 56%,
    rgba(255, 150, 90, 0.55),
    rgba(255, 107, 61, 0.16) 55%,
    transparent 75%
  );
}
.final-scrim {
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.55), rgba(7, 9, 13, 0) 55%),
    linear-gradient(
      180deg,
      #07090d 0%,
      rgba(7, 9, 13, 0) 18%,
      rgba(7, 9, 13, 0) 46%,
      rgba(7, 9, 13, 0.85) 74%,
      #07090d 100%
    );
}
.final-copy {
  position: relative;
  z-index: 5;
  padding-top: 30vh;
  padding-bottom: clamp(64px, 9vh, 120px);
}
.final-title {
  max-width: 8em;
  font-size: min(17vw, clamp(3.4rem, 2.8rem + 5.6vw, 8rem));
}
.final-lede {
  margin-top: 22px;
  max-width: 28em;
  color: #d2d8e2;
}
.countdown {
  margin-top: 28px;
}
.cd-tiles {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.cd-tile {
  display: grid;
  justify-items: center;
  min-width: 92px;
  padding: 12px 14px 10px;
  border-radius: 16px;
  background: rgba(12, 15, 21, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.cd-num {
  display: block;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.cd-unit {
  font-size: 13px;
  color: var(--muted);
}
.cd-until {
  margin-left: 6px;
  font-weight: 500;
  font-size: clamp(15px, 1.2vw, 17px);
  color: #d2d8e2;
}
.final-get {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 36px;
  margin-top: 32px;
}
.final-get .soon {
  margin: 0;
}
.final-qr {
  display: flex;
  align-items: center;
  gap: 14px;
}
.final-qr p {
  font-size: 13px;
  color: var(--muted);
  max-width: 15ch;
}

/* ---------- small laptops: the cheer tucks closer to the phones, clear of the copy ---------- */
@media (max-width: 1279px) {
  .toast {
    left: calc(100% - var(--stage-right) - var(--stage-w) * 0.9);
  }
}

/* ---------- tablets ---------- */
@media (max-width: 1023px) {
  .nav-links {
    gap: 20px;
  }
  .hero {
    --stage-w: clamp(340px, 42vw, 440px);
  }
  .contract-grid,
  .price-grid {
    gap: 48px;
  }
  /* two by two, so Monk mode's note has room beside its title */
  .weights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq-head {
    position: static;
  }
  .final-qr {
    display: none;
  }
}

/* ---------- phones and small tablets ---------- */
@media (max-width: 899px) {
  .nav-links {
    display: none;
  }
  .nav-home .nav-links + .nav-cta {
    margin-left: auto;
  }
  .sec-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .sec-lede {
    max-width: 30em;
  }

  /* hero: the copy, then the phones rising out of the ridges */
  .hero {
    height: auto;
    min-height: 0;
    max-height: none;
    display: flex;
    flex-direction: column;
  }
  .hero-copy {
    order: 1;
    height: auto;
    padding-top: 108px;
    padding-bottom: 0;
  }
  .hero-stage {
    order: 2;
    position: relative;
    right: auto;
    top: auto;
    align-self: center;
    width: min(88vw, 420px);
    margin: 44px 0 -30%;
  }
  /* on a tall screen the front ridges start halfway down, so they sit lower to show the phones */
  .hero .ridge-near {
    top: 27%;
  }
  .hero .ridge-fg {
    top: 21%;
  }
  .toast {
    top: auto;
    bottom: clamp(56px, 17vw, 110px);
    left: calc(50% - min(86vw, 344px) / 2);
    width: min(86vw, 344px);
  }

  .chat > .msg-sam,
  .chat > .crew-details,
  .chat > .msg-big {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .chat {
    grid-template-columns: minmax(0, 1fr);
  }
  .msg-indent {
    padding-left: 0;
  }

  .contract-grid,
  .price-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .letter {
    justify-self: center;
    margin-top: 12px;
  }
  .paper {
    transform: rotate(1.5deg);
  }

  /* a day becomes a sky you scroll down through */
  .day-track {
    --band-off: 0px;
    margin-top: 48px;
    padding: 110px 0 90px;
  }
  .day-sky {
    top: 0;
    bottom: 0;
    height: auto;
  }
  .day-band {
    background:
      radial-gradient(
        ellipse 80% 7% at 50% 21%,
        rgba(255, 176, 122, 0.55),
        rgba(255, 106, 61, 0) 100%
      ),
      linear-gradient(
        180deg,
        var(--bg) 0%,
        #1b2233 6%,
        #6b3b36 13%,
        #d9794d 21%,
        #4f7fa8 32%,
        #3f6f98 46%,
        #b3583a 60%,
        #4a2c34 68%,
        #141d2e 76%,
        #05070c 90%,
        var(--bg) 100%
      );
  }
  .day-stars {
    top: 70%;
    left: 0;
    height: auto;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 80%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 25%, #000 80%, transparent);
  }
  .day-ridges,
  .day-now {
    display: none;
  }
  .beats {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    row-gap: clamp(64px, 12vw, 96px);
  }
  .beat {
    grid-row: auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    grid-template-areas:
      'time phone'
      'cap phone';
    grid-template-rows: auto 1fr;
    column-gap: 20px;
    justify-items: start;
    align-items: start;
    text-align: left;
  }
  .beat:nth-child(2) {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    grid-template-areas:
      'phone time'
      'phone cap';
  }
  .beat-time {
    grid-area: time;
    align-self: end;
    padding-bottom: 0;
    font-size: clamp(2.8rem, 1.6rem + 5vw, 3.6rem);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  }
  .beat-phone {
    grid-area: phone;
    width: min(100%, 220px);
    justify-self: center;
  }
  .beat-cap {
    grid-area: cap;
    margin-top: 12px;
    color: #eef2f7;
  }
  .beat-end {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'night'
      'time'
      'cap';
    grid-template-rows: auto auto auto;
  }
  .beat-end .beat-cap {
    justify-self: start;
  }
  .beat-night {
    grid-area: night;
    width: 100%;
    height: auto;
    padding: 18px 0 30px;
    border-top: 1.5px dashed rgba(255, 255, 255, 0.5);
  }
  .beat-night::before,
  .beat-night::after {
    display: none;
  }
  .midnight {
    position: static;
    max-width: none;
  }
  .moon {
    top: 18px;
    right: 0;
  }
  .beat-end .beat-time {
    width: 100%;
    margin-top: 10px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--ice);
    box-shadow: 0 12px 12px -12px rgba(143, 211, 255, 0.7);
  }

  .redact {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'mine'
      'crew'
      'more';
  }
  .climb-stats {
    position: static;
    margin-bottom: 36px;
  }
  .climb-plot {
    height: clamp(260px, 72vw, 420px);
  }
  .at-15,
  .at-47,
  .flag-date {
    display: none;
  }
  .climb-legend {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
  }

  .printer {
    margin-top: 12px;
  }
  .price-marker {
    right: 4px;
    bottom: -24px;
  }

  .final-copy {
    padding-top: 18vh;
  }
}

/* ---------- phones ---------- */
@media (max-width: 759px) {
  .nav-cta {
    height: 40px;
    padding: 0 15px;
    font-size: 14px;
    border-radius: 12px;
  }

  /* the bar runs edge to edge, so its plates get bigger; all four of Monk mode's stay on the
     screen */
  .bar-stage {
    margin-inline: calc(var(--gutter) * -1);
  }
  .weights {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .wt {
    padding: 18px 0 20px 20px;
    border-top-color: rgba(255, 255, 255, 0.07);
  }
  .wt::before {
    top: 18px;
    bottom: 20px;
    right: auto;
    width: 3px;
    height: auto;
    transform: scaleY(0);
    transform-origin: 50% 0;
  }
  .wt-name {
    margin-top: 8px;
  }
  .wt-rule {
    margin-top: 6px;
  }
  .weight-foot {
    text-align: left;
  }

  .receipt-clip {
    margin-inline: 22px;
  }
  .receipt {
    padding-inline: 20px;
  }
  .r-line {
    font-size: 14px;
  }
  .q summary {
    padding: 18px 56px 18px 18px;
  }
  .q summary::before,
  .q summary::after {
    right: 22px;
  }
  .q-a p {
    padding: 0 18px 20px;
  }
  .cd-tile {
    min-width: 76px;
    padding: 10px 10px 8px;
  }
}

@media (max-width: 380px) {
  /* both store badges stay on one row on the narrowest phones */
  .badges {
    gap: 10px;
  }
  .badge {
    height: 42px;
  }
  .cd-until {
    flex-basis: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typing span {
    animation: none;
  }
}
