/* ==========================================================================
   LANDING PAGE — the page at the site root that introduces the timer and
   hands people on to app/. It loads the timer's own tokens.css and app.css
   first, so buttons, type roles, the theme toggle and the phase colours are
   the timer's; this file only adds the page's layout and its moving parts.

   Sizes inside the hero phone are in cqi (1% of the screen's width), so the
   replica of the run screen keeps its proportions at any size.

   Corners use the timer's three radii (--radius-s/m/l in tokens.css), and
   the replica rounds the same parts the real run screen does.
   ========================================================================== */

.lp { overscroll-behavior-y: auto; }
html { scroll-behavior: smooth; }

.lp svg.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
}
/* :where keeps these resets from outranking the layout rules below. */
:where(.lp) h3 { margin: 0; }
:where(.lp) :where(ol, ul) { list-style: none; margin: 0; padding: 0; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: var(--space-4);
}
@media (min-width: 720px) {
  .wrap { padding-inline: var(--space-8); }
}

/* ---- Header: stays put, frosted, with a hairline once the page moves ---- */
.lp-top {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top);
  background: rgb(var(--bg-primary-rgb) / 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: border-color var(--motion-base) var(--ease-standard);
}
.lp-top.is-scrolled { border-bottom-color: var(--border-faint); }
.lp-top__in {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
}
.lp-top__ks { color: var(--text-muted); }
.lp-top .btn { min-height: 44px; padding-block: 0; }
/* Folded shut until the hero's buttons are off screen; landing.js opens it. */
.lp-top__get {
  max-width: 0;
  margin-left: calc(var(--space-3) * -1);
  padding-inline: 0;
  border-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition:
    max-width var(--motion-base) var(--ease-standard),
    margin var(--motion-base) var(--ease-standard),
    padding var(--motion-base) var(--ease-standard),
    opacity var(--motion-base) var(--ease-standard),
    visibility 0s linear var(--motion-base);
}
.lp-top__get .icon { width: 20px; height: 20px; }
.lp-top.is-past .lp-top__get {
  max-width: 12rem;
  margin-left: 0;
  padding-inline: var(--space-4);
  border-width: 1px;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
@media (max-width: 599px) {
  .lp-top__ks, .lp-top__open { display: none; }
}
@media (min-width: 720px) {
  .lp-top__in { padding-inline: var(--space-8); }
}

/* ---- Hero ---- */
.hero {
  display: grid;
  gap: var(--space-12);
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4) calc(var(--space-12) + var(--space-4));
}
.hero__title {
  font-size: clamp(2.75rem, 11vw, 5.25rem);
  color: var(--text-strong);
  text-wrap: balance;
}
.lede {
  max-width: 34rem;
  margin-top: var(--space-6);
  font-size: 1.125rem;
  color: var(--text-primary);
}
.get {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.get__btn {
  flex: 1 1 180px;
  max-width: 260px;
  justify-content: flex-start;
  gap: var(--space-3);
  min-height: 64px;
  padding-inline: var(--space-4);
  text-align: left;
}
.get__btn .icon { width: 26px; height: 26px; }
.get__btn span {
  display: grid;
  font-family: var(--font-display);
  font-weight: var(--display-wght);
  font-stretch: var(--display-stretch);
  font-variation-settings: "wdth" var(--display-wdth), "wght" var(--display-wght);
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.get__btn small {
  margin-bottom: 3px;
  font-family: var(--font-label);
  font-weight: 600;
  font-stretch: normal;
  font-variation-settings: normal;
  font-size: 0.75rem;
  letter-spacing: var(--tracking-label);
}
.hero__facts { margin-top: var(--space-4); }

.hero__demo {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: var(--space-4);
}
/* The light the phone throws: red in work, pale blue in rest, near nothing in
   the dark phases. Slower than the screen's own change, so it trails it. */
.glow {
  position: absolute;
  z-index: -1;
  top: 8%;
  left: 50%;
  width: min(120%, 460px);
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--phase-bg);
  filter: blur(72px);
  opacity: 0.4;
  transition: background-color 900ms var(--ease-standard), opacity 900ms var(--ease-standard);
  pointer-events: none;
}
.glow[data-phase="prepare"] { opacity: 0.15; }
.glow[data-phase="done"] { opacity: 0.16; }
[data-theme="light"] .glow { opacity: 0.5; }
[data-theme="light"] .glow[data-phase="prepare"],
[data-theme="light"] .glow[data-phase="done"] { opacity: 0; }
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: var(--space-8);
    padding-inline: var(--space-8);
    padding-block: calc(var(--space-12) + var(--space-4)) calc(var(--space-12) * 2);
  }
}

/* ---- The phone ---- */
.phone {
  width: min(100%, 300px);
  padding: 9px;
  border: 1px solid var(--border-subtle);
  border-radius: 42px;
  background: var(--bg-secondary);
  box-shadow: 0 30px 60px -30px rgb(3 4 15 / 0.55);
}
.phone__screen {
  container-type: inline-size;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  aspect-ratio: 9 / 18.5;
  overflow: hidden;
  border-radius: 33px;
  background: var(--bg-primary);
  color: var(--text-strong);
  user-select: none;
  -webkit-user-select: none;
}

/* As on the real run screen, each part is a rounded panel set in from the
   edge: 2cqi is its --space-2 and 6cqi its --radius-l at a phone's width. */
.d-top {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 2cqi;
  padding: 4cqi 3cqi 2cqi;
}
.d-top__cell {
  display: grid;
  place-items: center;
  width: 16.4cqi;
  height: 16.4cqi;
  background: var(--bg-surface);
  border: 1px solid var(--border-faint);
  border-radius: 6cqi;
}
.d-top__cell .icon { width: 7cqi; height: 7cqi; }
.d-top__cell--close .icon { width: 8.2cqi; height: 8.2cqi; }
.d-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 1cqi;
  padding: 0 2cqi;
  min-width: 0;
}
.d-total b { font-size: 10.5cqi; }
.d-total span,
.d-tools,
.d-nav,
.d-eyebrow,
.d-next span,
.d-count span {
  font-family: var(--font-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.d-total span { font-size: 4cqi; color: var(--text-secondary); }

/* The same three moving parts as the timer's stage (app.css, .run__stage),
   on its keyframes: the fill, the countdown flash and the sweep. */
.d-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0 2cqi;
  border-radius: 6cqi;
  background: var(--phase-bg);
  color: var(--phase-fg);
  transition: filter var(--motion-base) var(--ease-standard);
}
.d-stage > :not(.d-sweep) { position: relative; z-index: 1; }
/* Paused, round markers and the finish summary: as in the timer. */
.phone__screen[data-state="paused"] .d-stage,
.phone__screen[data-state="paused"] .d-next { filter: saturate(0.4) brightness(0.76); }
.d-marks { display: flex; gap: 1cqi; padding: 3cqi 4cqi 0; }
.d-marks i {
  position: relative;
  flex: 1 1 0;
  height: 1.3cqi;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--phase-fg) 22%, transparent);
}
.d-marks i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--phase-fg);
  transform: scaleX(var(--fill, 0));
  transform-origin: left;
  transition: transform 100ms linear;
}
.d-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2cqi;
  margin-top: 4cqi;
}
.d-summary li {
  display: inline-flex;
  align-items: center;
  gap: 1.5cqi;
  padding: 2.2cqi 3cqi;
  border-radius: 999px;
  background: color-mix(in srgb, var(--phase-fg) 12%, transparent);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 3.6cqi;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: run-land 460ms cubic-bezier(0.2, 0.8, 0.2, 1) calc(320ms + var(--i, 0) * 90ms) backwards;
}
.d-summary .icon { width: 4.6cqi; height: 4.6cqi; }
.d-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--phase-spent);
  border-top: 0.5cqi solid color-mix(in srgb, var(--phase-fg) 30%, transparent);
  transform: translateY(calc((1 - var(--progress, 0)) * 100%));
  transition: transform 100ms linear;
}
.d-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 var(--flash-width, 1.3cqi) var(--phase-fg);
  opacity: 0;
  pointer-events: none;
}
.d-stage.is-tick::after { animation: run-flash 420ms ease-out; }
.d-stage.is-tick .d-clock { animation: run-kick 320ms var(--ease-standard); }
.d-stage.is-tick-last { --flash-width: 3cqi; --flash-from: 1; --kick: 1.06; }
.d-sweep {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform: translateY(-101%);
  pointer-events: none;
}
.d-sweep.is-on { animation: run-sweep 520ms cubic-bezier(0.7, 0, 0.2, 1); }
.d-phase.is-land { animation: run-land 460ms cubic-bezier(0.2, 0.8, 0.2, 1) 140ms backwards; }
.d-tools, .d-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3.5cqi 4cqi;
  font-size: 3.7cqi;
}
.d-tools span, .d-nav span { display: inline-flex; align-items: center; gap: 2.2cqi; }
.d-tools .icon, .d-nav .icon { width: 6.4cqi; height: 6.4cqi; }
.phone__screen[data-phase="done"] .d-nav > .icon { visibility: hidden; }

.d-center {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 3cqi;
  text-align: center;
}
.d-eyebrow { min-height: 1.3em; margin-bottom: 1.5cqi; font-size: 4cqi; opacity: 0.8; }
.d-phase {
  --len: 7;
  max-width: 100%;
  font-size: min(15cqi, calc(165cqi / var(--len)));
  white-space: nowrap;
}
.d-clock {
  margin-top: 0.06em;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: var(--display-stretch);
  font-variation-settings: "wdth" var(--display-wdth), "wght" 800;
  font-variant-numeric: tabular-nums;
  font-size: 40cqi;
  letter-spacing: -0.02em;
  line-height: 0.86;
  white-space: nowrap;
}

.d-next {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 0.5cqi;
  margin: 2cqi 2cqi 0;
  padding: 2.5cqi 4cqi 3cqi;
  border-radius: 6cqi;
  background: var(--phase-bg);
  color: var(--phase-fg);
  transition: background-color var(--motion-base) var(--ease-standard), filter var(--motion-base) var(--ease-standard);
}
.d-next::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: currentColor;
  opacity: 0.09;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 100' preserveAspectRatio='none'%3E%3Cpath d='M10 -4L38 50L10 104' fill='none' stroke='black' stroke-width='16'/%3E%3C/svg%3E") 0 0 / 40px 100% repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 100' preserveAspectRatio='none'%3E%3Cpath d='M10 -4L38 50L10 104' fill='none' stroke='black' stroke-width='16'/%3E%3C/svg%3E") 0 0 / 40px 100% repeat-x;
  animation: d-chevrons 2.4s linear infinite paused;
}
.phone__screen[data-state="running"] .d-next::before { animation-play-state: running; }
@keyframes d-chevrons {
  to { -webkit-mask-position: 40px 0; mask-position: 40px 0; }
}
.d-next span { font-size: 3.7cqi; opacity: 0.75; }
.d-next b { font-size: 11cqi; white-space: nowrap; }

.d-bottom {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  align-items: center;
  padding: 3cqi 0 5cqi;
}
.d-count { display: flex; flex-direction: column; align-items: center; gap: 1.5cqi; }
.d-count span { font-size: 3.1cqi; letter-spacing: 0.1em; color: var(--text-muted); }
.d-count b { font-size: 17cqi; }
.d-count--rounds b { color: var(--count-rounds); }
.d-count--cycles b { color: var(--count-cycles); }
.d-play {
  display: grid;
  place-items: center;
  height: 25cqi;
  border-radius: 6cqi;
  background: var(--accent);
  color: var(--accent-fg);
}
.d-play .icon { width: 11.5cqi; height: 11.5cqi; }
.d-play__play,
.phone__screen[data-state="paused"] .d-play__pause { display: none; }
.phone__screen[data-state="paused"] .d-play__play { display: block; }

/* ---- What you'd hear, under the phone ---- */
.cue {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  padding: 0 var(--space-6) 0 var(--space-4);
  border: 1px solid var(--border-faint);
  border-radius: 999px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
}
.cue > .icon { width: 20px; height: 20px; }
.cue__bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.cue__bars i {
  width: 4px;
  height: 6px;
  border-radius: 2px;
  background: var(--text-muted);
  transform-origin: bottom;
}
.cue__bars i:nth-child(2) { height: 12px; }
.cue__bars i:nth-child(3) { height: 18px; }
.cue__bars.is-beep i { animation: beep 360ms var(--ease-standard); }
.cue__bars.is-beep i:nth-child(2) { animation-delay: 40ms; }
.cue__bars.is-beep i:nth-child(3) { animation-delay: 80ms; }
@keyframes beep {
  30% { background: var(--text-strong); transform: scaleY(1.25); }
}
.cue__say {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--text-strong);
  transition: opacity var(--motion-base) var(--ease-standard);
}
.cue__say.is-quiet { opacity: 0.35; }

/* ---- Bands ---- */
.band {
  padding-block: calc(var(--space-12) + var(--space-4));
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-hairline);
  scroll-margin-top: 28px; /* the sticky header covers the band's top padding */
}
.band--plain { background: var(--bg-primary); }

/* ---- Easing in on scroll ----
   landing.js marks what should ease in (.reveal) and when it has come into
   view (.is-in); --reveal-i staggers neighbours. Nothing is hidden unless the
   page's first script switched reveals on. */
.reveal-on .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms var(--ease-standard) calc(var(--reveal-i, 0) * 90ms),
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--reveal-i, 0) * 90ms);
}
.reveal-on .reveal.is-in { opacity: 1; transform: none; }
.band__title {
  max-width: 18ch;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  color: var(--text-strong);
  text-wrap: balance;
}

/* ---- How it works ---- */
.steps3 {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-12);
}
@media (min-width: 820px) {
  .steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
}
.how__num { margin-top: var(--space-6); color: var(--text-muted); }
.how__title { margin-top: var(--space-2); font-size: 1.9rem; color: var(--text-strong); }
.how__text { margin-top: var(--space-3); color: var(--text-primary); }

/* Each step has a small looping picture. All three run on a 6s loop. */
.vg {
  display: grid;
  align-content: center;
  gap: var(--space-4);
  height: 232px;
  padding: var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-l);
  overflow: hidden;
}

/* 01 — the workout assembling itself into a timeline */
.vg-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.vg-rows span {
  display: grid;
  gap: 4px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-s);
}
.vg-rows em, .beeps b, .vg-note {
  font-family: var(--font-label);
  font-style: normal;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
}
.vg-rows b {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: var(--display-stretch);
  font-variation-settings: "wdth" var(--display-wdth), "wght" 700;
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-strong);
}
.strip { display: flex; gap: 2px; height: 28px; border-radius: var(--radius-s); overflow: hidden; }
.strip i {
  flex: var(--w) 0 0;
  background: var(--phase-bg);
  transform-origin: left;
  animation: strip-in 6s var(--ease-standard) infinite backwards;
  animation-delay: calc(var(--i) * 90ms);
}
.strip i[data-phase="prepare"] { background: var(--color-gray-500); }
@keyframes strip-in {
  0% { transform: scaleX(0); opacity: 1; }
  5%, 70% { transform: scaleX(1); opacity: 1; }
  76%, 100% { transform: scaleX(1); opacity: 0; }
}
.vg-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--text-muted);
}
.vg-total b { font-size: 2rem; color: var(--text-strong); }

/* 02 — the countdown beeps climbing into the change, then the voice */
.beeps {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.6fr;
  align-items: end;
  gap: var(--space-2);
  height: 112px;
}
.beeps span { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.beeps i {
  width: 100%;
  height: calc(30px + var(--i) * 18px);
  border-radius: var(--radius-s);
  background: var(--text-strong);
  opacity: 0.16;
  animation: beep-on 6s linear infinite;
  animation-delay: calc(var(--i) * 1s);
}
.beeps__go i { height: 90px; background: var(--phase-rest-bg); }
@keyframes beep-on {
  0%, 2% { opacity: 0.16; }
  3%, 9% { opacity: 1; }
  16%, 100% { opacity: 0.16; }
}
.beeps__go i { animation-name: beep-hold; }
@keyframes beep-hold {
  0%, 2% { opacity: 0.16; }
  3%, 40% { opacity: 1; }
  48%, 100% { opacity: 0.16; }
}
.vg-say {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text-strong);
  animation: say-on 6s var(--ease-standard) infinite;
}
.vg-say .icon { width: 20px; height: 20px; color: var(--text-secondary); }
@keyframes say-on {
  0%, 50% { opacity: 0; transform: translateY(4px); }
  56%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}

/* 03 — the phone locks, then wakes at the right second */
.lockscreen {
  position: relative;
  display: grid;
  place-items: center;
  height: 128px;
  border-radius: var(--radius-m);
  background: var(--phase-work-bg);
  color: var(--phase-work-fg);
  overflow: hidden;
}
.lockscreen__clock {
  grid-area: 1 / 1;
  font-size: 5.25rem;
  font-weight: 800;
  font-variation-settings: "wdth" var(--display-wdth), "wght" 800;
}
.lockscreen__clock--a { animation: lock-a 6s linear infinite; }
.lockscreen__clock--b { animation: lock-b 6s linear infinite; }
.lockscreen__off {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000;
  color: var(--color-gray-400);
  animation: lock-off 6s var(--ease-standard) infinite;
}
.lockscreen__off .icon { width: 30px; height: 30px; }
@keyframes lock-a { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes lock-b { 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes lock-off {
  0%, 26% { opacity: 0; }
  31%, 64% { opacity: 1; }
  69%, 100% { opacity: 0; }
}
.vg-note { display: grid; color: var(--text-secondary); }
.vg-note span { grid-area: 1 / 1; }
.vg-note__a { animation: note-a 6s linear infinite; }
.vg-note__off { animation: note-off 6s linear infinite; }
.vg-note__b { animation: note-b 6s linear infinite; }
@keyframes note-a { 0%, 27% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes note-off { 0%, 28% { opacity: 0; } 31%, 65% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes note-b { 0%, 66% { opacity: 0; } 69%, 100% { opacity: 1; } }

/* ---- Features ---- */
.feats {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-12);
}
@media (min-width: 600px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .feats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feats li {
  display: grid;
  gap: var(--space-2);
  align-content: start;
  justify-items: start;
  padding: var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-l);
}
.feats .icon {
  box-sizing: content-box;
  width: 24px;
  height: 24px;
  padding: 11px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-m);
  color: var(--text-strong);
}
.feats h3 { margin-top: var(--space-3); font-size: 1rem; color: var(--text-strong); }
.feats p { color: var(--text-primary); }
.linkish {
  color: var(--text-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Install ---- */
.install__lede { max-width: 38rem; margin-top: var(--space-4); font-size: 1.125rem; }
.tabs {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-top: var(--space-8);
  border: 1px solid var(--border-subtle);
  border-radius: calc(var(--radius-m) + 4px);
}
.tabs button {
  min-width: 132px;
  min-height: 44px;
  border-radius: var(--radius-m);
  transition: background var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard);
  padding: 0 var(--space-6);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-secondary);
}
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-fg); }

.install[data-platform="ios"] [data-for="android"],
.install[data-platform="android"] [data-for="ios"],
.install[data-platform="ios"] [data-only="android"],
.install[data-platform="android"] [data-only="ios"] { display: none; }

.install__body {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-8);
}
@media (min-width: 820px) {
  .install__body { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: var(--space-12); }
}

.isteps { counter-reset: step; display: grid; gap: var(--space-2); }
.isteps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 2px var(--space-3);
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-1);
  border: 1px solid transparent;
  border-radius: var(--radius-l);
  opacity: 0.55;
  transition: opacity var(--motion-base) var(--ease-standard), background var(--motion-base), border-color var(--motion-base);
  cursor: pointer;
}
.isteps li::before {
  content: "0" counter(step);
  grid-row: span 2;
  padding-left: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tracking-mono);
  line-height: 1.9;
  color: var(--text-muted);
}
.isteps b {
  font-family: var(--font-display);
  font-weight: var(--display-wght);
  font-stretch: var(--display-stretch);
  font-variation-settings: "wdth" var(--display-wdth), "wght" var(--display-wght);
  font-size: 1.5rem;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--text-strong);
}
.isteps span { grid-column: 2; color: var(--text-primary); }
.install[data-step="1"] .isteps li[data-step="1"],
.install[data-step="2"] .isteps li[data-step="2"],
.install[data-step="3"] .isteps li[data-step="3"] {
  opacity: 1;
  background: var(--bg-surface);
  border-color: var(--border-subtle);
}
.install__now { margin-top: var(--space-6); }
/* The code is always black on white, whatever the theme: phone cameras read
   a light-on-dark code far less reliably. */
.qr {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: 30rem;
  margin-top: var(--space-6);
  padding: var(--space-3) var(--space-6) var(--space-3) var(--space-3);
  background: var(--bg-surface);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-l);
}
.qr__code {
  flex: none;
  width: 116px;
  height: 116px;
  border-radius: var(--radius-m);
  background: #fff;
  fill: #000;
}
.qr p { color: var(--text-primary); }
.qr b { display: block; margin-bottom: var(--space-1); color: var(--text-strong); }
.install__alt { margin-top: var(--space-6); color: var(--text-secondary); }
.install__alt a { color: var(--text-strong); text-underline-offset: 3px; }

/* The small phone acting out the lit step. */
.mini {
  justify-self: center;
  width: 240px;
  padding: 7px;
  border: 1px solid var(--border-subtle);
  border-radius: 34px;
  background: var(--bg-primary);
}
.mini__screen {
  position: relative;
  aspect-ratio: 9 / 16.5;
  overflow: hidden;
  border-radius: 27px;
  background: var(--bg-surface);
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-primary);
}
.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--motion-base) var(--ease-standard);
}
.install[data-step="1"] .scene--page,
.install[data-step="2"] .scene--page,
.install[data-step="3"] .scene--home { opacity: 1; }

.scene--page { display: grid; grid-template-rows: auto 1fr auto; }
.scene__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 10px 14px;
  background: var(--bg-surface-raised);
}
.scene__bar--top { grid-row: 1; padding-top: 18px; }
.scene__bar--bottom { grid-row: 3; padding-bottom: 16px; }
.scene__bar i { width: 16px; height: 16px; border-radius: 5px; background: var(--border-subtle); }
.scene__url { flex: 1; height: 22px; border-radius: 999px; background: var(--bg-surface); border: 1px solid var(--border-subtle); }
.scene__content {
  grid-row: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: var(--space-4);
}
.scene__content img { filter: var(--mark-filter); margin-bottom: 6px; }
.scene__content i { width: 70%; height: 8px; border-radius: 4px; background: var(--border-subtle); }
.scene__content i:nth-of-type(2) { width: 54%; }
.scene__content i:nth-of-type(3) { width: 40%; height: 20px; border-radius: 7px; background: var(--accent); }

.scene__tap { position: relative; display: grid; place-items: center; width: 28px; height: 28px; color: var(--text-strong); }
.scene__tap .icon { width: 20px; height: 20px; }
.scene__tap::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid var(--text-strong);
  border-radius: 50%;
  opacity: 0;
}
.install[data-step="1"] .scene__tap::after { animation: tap 1.3s var(--ease-standard) infinite; }
@keyframes tap {
  0% { opacity: 0.9; transform: scale(0.55); }
  70%, 100% { opacity: 0; transform: scale(1.25); }
}

.scene__sheet, .scene__menu {
  position: absolute;
  display: grid;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  opacity: 0;
  transition: transform var(--motion-base) var(--ease-standard), opacity var(--motion-base);
}
.scene__sheet { inset: auto 0 0; padding: 10px 10px 22px; border-radius: 18px 18px 0 0; transform: translateY(100%); }
.scene__menu { top: 46px; right: 10px; width: 70%; padding: 4px; border-radius: 12px; transform: translateY(-8px); }
.install[data-step="2"] .scene__sheet,
.install[data-step="2"] .scene__menu { opacity: 1; transform: none; }
.scene__sheet span, .scene__menu span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  color: var(--text-muted);
}
.scene__sheet .icon { width: 16px; height: 16px; }
.scene .is-pick { border-radius: var(--radius-s); background: var(--accent); color: var(--accent-fg); font-weight: 600; }

.homegrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-content: start;
  gap: 18px 12px;
  height: 100%;
  padding: 34px 16px;
  background: var(--bg-secondary);
}
.homegrid i { aspect-ratio: 1; background: var(--bg-surface-raised); border-radius: 22%; }
.homegrid__app { position: relative; display: grid; justify-items: center; }
.homegrid__app img { width: 100%; height: auto; border-radius: 22%; border: 1px solid var(--border-subtle); }
.homegrid__app em {
  position: absolute;
  top: calc(100% + 4px);
  font-style: normal;
  font-size: 0.5625rem;
  white-space: nowrap;
  color: var(--text-strong);
}
.install[data-step="3"] .homegrid__app { animation: pop 500ms var(--ease-standard) 150ms backwards; }
@keyframes pop {
  0% { opacity: 0; transform: scale(0.4); }
  70% { transform: scale(1.12); }
}

/* ---- Footer ---- */
.lp-foot {
  padding-block: var(--space-8) calc(var(--space-8) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-hairline);
}
.lp-foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.lp-foot__link { margin-left: auto; color: var(--text-strong); text-underline-offset: 4px; }

/* ---- Reduced motion: every picture holds a still that still explains it ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip i, .beeps i, .vg-say, .lockscreen__clock, .lockscreen__off, .vg-note span,
  .d-next::before, .d-stage.is-tick::after, .d-stage.is-tick .d-clock, .d-sweep.is-on, .d-phase.is-land,
  .d-summary li,
  .cue__bars.is-beep i,
  .install .scene__tap::after, .install .homegrid__app { animation: none !important; }
  .beeps i { opacity: 1; }
  .lockscreen__clock--a, .lockscreen__off, .vg-note__a, .vg-note__off { opacity: 0; }
  .install[data-step="1"] .scene__tap::after { opacity: 0.9; }
}
