/* landing.css — pezillo.com/ marketing landing (2026-10-01).
   Reuses app/css/theme.css's color variables + font so this page looks like
   a natural front door to the app rather than a different product — linked
   directly in index.html's <head>, not duplicated here. */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background-color: var(--color-bg-top);
  background-image: var(--bg-texture-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--color-text-primary);
  font-family: 'LT Colored Pencil', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 40px 20px 32px;
}

.landing {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.landing__icon {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  margin-bottom: 20px;
}

.landing__title {
  font-size: 34px;
  font-weight: bold;
  margin: 0 0 6px;
  color: var(--color-text-primary);
}

.landing__tagline {
  font-size: 17px;
  color: var(--color-text-secondary);
  margin: 0 0 32px;
  line-height: 1.5;
}

.landing__section {
  width: 100%;
  background-color: transparent;
  border: none;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  text-align: left;
}

.landing__section h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin: 0 0 10px;
}

.landing__section p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0 0 8px;
}

.landing__section p:last-child {
  margin-bottom: 0;
}

.landing__install {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.landing__install-btn {
  width: 100%;
  padding: 16px 24px;
  border-radius: 999px;
  border: none;
  background-color: var(--color-aqua);
  color: var(--color-bg-top);
  font-family: inherit;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
}

.landing__install-btn:active {
  opacity: 0.85;
}

.landing__use-in-browser {
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: underline;
}

.landing__status-note {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-text-muted);
  background-color: transparent;
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 14px;
  text-align: left;
}

.landing__privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.landing__privacy-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--color-gold);
}

/* ---- iOS instructions modal ---- */

.ios-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.ios-modal[hidden] {
  display: none;
}

.ios-modal__card {
  width: 100%;
  max-width: 400px;
  background-color: var(--color-bg-top);
  border: none;
  border-radius: 20px;
  padding: 22px;
  text-align: left;
}

.ios-modal__title {
  font-size: 19px;
  font-weight: bold;
  margin: 0 0 14px;
  color: var(--color-text-primary);
}

.ios-modal__steps {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.ios-modal__steps li {
  margin-bottom: 8px;
}

.ios-modal__close {
  width: 100%;
  padding: 13px 20px;
  border-radius: 999px;
  border: none;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

/* ---- Hero scene: chalk line-drawing, loops forever (see index.html <svg class="scene">) ---- */
.scene {
  width: 100%;
  max-width: 440px;
  height: auto;
  margin-bottom: 4px;
  overflow: visible;
}

.scene__lines {
  stroke: var(--color-text-primary);
  stroke-width: 2.2;
}

.scene .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: scene-draw 1.4s ease-out forwards;
}

.scene .draw--late {
  animation-delay: 0.9s;
}

@keyframes scene-draw {
  to { stroke-dashoffset: 0; }
}

/* One 7s loop drives the fish's whole trip: swim right to the wall, boop the
   phone (which answers "+2"), turn around, swim back to the left edge, turn
   again, repeat. Percentages are the shared timeline; swim speed is ~69px/s. */
.fish-x {
  animation: fish-swim 7s linear infinite;
}

.fish-flip {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: fish-flip 7s ease-in-out infinite;
}

.fish-y {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: fish-bob 1s ease-in-out infinite alternate;
}

.fish-nose {
  transform-box: fill-box;
  transform-origin: 22% 60%;
  animation: fish-boop 7s ease-in-out infinite;
}

@keyframes fish-swim {
  0%   { transform: translate(0, 0); }
  31%  { transform: translate(150px, 0); }
  53%  { transform: translate(150px, 0); }
  84%  { transform: translate(0, 0); }
  100% { transform: translate(0, 0); }
}

@keyframes fish-flip {
  0%, 49% { transform: scaleX(1); }
  53%, 84% { transform: scaleX(-1); }
  88%, 100% { transform: scaleX(1); }
}

@keyframes fish-bob {
  from { transform: translateY(-2.5px) rotate(-2deg); }
  to   { transform: translateY(2.5px) rotate(2deg); }
}

@keyframes fish-boop {
  0%, 30% { transform: translate(0, 0) rotate(0deg); }
  33%     { transform: translate(0, -2px) rotate(-18deg); }
  36%     { transform: translate(8px, -4px) rotate(-18deg); }
  40%, 46% { transform: translate(0, -2px) rotate(-18deg); }
  49%, 100% { transform: translate(0, 0) rotate(0deg); }
}

.phone {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: rotate(2deg);
  animation: phone-react 7s ease-in-out infinite;
}

.phone__screen {
  fill: var(--color-text-primary);
  fill-opacity: 0;
  stroke-width: 1.4;
  animation: phone-screen 7s ease-in-out infinite;
}

@keyframes phone-react {
  0%, 35% { transform: rotate(2deg); }
  37%     { transform: rotate(-4deg); }
  40%     { transform: rotate(5deg); }
  43%     { transform: rotate(-1deg); }
  46%, 100% { transform: rotate(2deg); }
}

@keyframes phone-screen {
  0%, 35% { fill-opacity: 0; }
  39%, 60% { fill-opacity: 0.35; }
  70%, 100% { fill-opacity: 0; }
}

.plus {
  font-family: 'LT Colored Pencil', sans-serif;
  font-size: 19px;
  font-weight: bold;
  fill: var(--color-text-primary);
  opacity: 0;
  animation: plus-pop 7s ease-out infinite;
}

@keyframes plus-pop {
  0%, 36% { opacity: 0; transform: translateY(6px); }
  40%     { opacity: 1; transform: translateY(0); }
  60%     { opacity: 1; transform: translateY(-16px); }
  70%, 100% { opacity: 0; transform: translateY(-22px); }
}

/* colour-only armed states (pause = yellow, finish = red; text never changes) */
.mk-btn.swg { padding: 0; }
.mk-btn.swg > .sw { padding: 11px 8px; justify-self: stretch; text-align: center; border-radius: 999px; }
.mk-btn.swg > .sw.warn { background: var(--color-warning-yellow); color: var(--color-bg-top); }
.mk-btn.swg > .sw.danger { background: var(--color-danger-red); color: var(--color-bg-top); }
.sw.abs { position: absolute; inset: 0; }

/* paste-format scene */
.mk-code { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,0.05); font-family: ui-monospace, Menlo, monospace; font-size: 12px; text-align: left; }
.mk-code div { opacity: 0; }
.sc.is-active .mk-code div { animation: sw-show 0.4s ease-out var(--d) forwards; }
.mk-code u { text-decoration: none; color: var(--color-gold); font-weight: bold; }
.mk-units { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; opacity: 0; font-size: 9.5px; color: var(--color-text-secondary); }
.sc.is-active .mk-units { animation: sw-show 0.5s ease-out var(--d) forwards; }
.mk-units u { text-decoration: none; color: var(--color-gold); font-weight: bold; }
.mk-units span { background: rgba(255,255,255,0.06); border-radius: 999px; padding: 3px 8px; }

/* rest scene */
.mk-rows--t div { display: flex; justify-content: space-between; align-items: center; padding: 6px 2px; }
.mk-rows--t .rest { color: var(--color-text-muted); }
.mk-dash { opacity: 0; }
.sc.is-active .mk-dash { animation: sw-show 0.4s ease-out 1.6s forwards; }

/* training bar */
.mk-bar { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; border-radius: 10px; background: rgba(255,255,255,0.06); }
.mk-bar.swg { display: grid; }
.mk-bar.swg > .sw { display: flex; flex-direction: column; gap: 4px; justify-self: stretch; }
.mk-bar__t { display: flex; justify-content: space-between; font-weight: bold; font-size: 11px; }
.mk-bar__track { height: 5px; border-radius: 3px; background: var(--color-pencil-line-faint); overflow: hidden; }
.mk-bar__track i { display: block; height: 100%; width: 20%; background: var(--color-text-primary); }
.sc.is-active .mk-bar__track i:not([style]) { animation: bar-fill 6s ease-out 0.3s forwards; }
@keyframes bar-fill { to { width: 60%; } }
.mk-bar__n { color: var(--color-text-muted); font-size: 9.5px; }
.mk-bar .rip { top: 50%; }
.mk-bar .rip.r { left: 83%; }
.mk-bar .rip.l { left: 17%; }
.mk-panel { position: absolute; z-index: 3; left: 0; right: 0; top: calc(100% + 4px); display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border-radius: 10px; background: color-mix(in srgb, var(--color-bg-top) 80%, white); font-size: 10.5px; }
.mk-panel div { padding: 3px 0; }

/* back-gesture confirmation */
.mk-back { position: absolute; left: -6px; top: 46%; font-size: 40px; line-height: 1; color: var(--color-text-secondary); opacity: 0; }
.sc.is-active .mk-back { animation: back-swipe 0.9s ease-out 0.7s both; }
@keyframes back-swipe { 0% { opacity: 0; transform: translateX(-14px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(34px); } }
.mk-dialog { position: absolute; left: 4px; right: 4px; top: 70px; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--color-bg-top) 80%, white); display: flex; flex-direction: column; gap: 6px; text-align: center; }
.mk-dialog__t { font-weight: bold; font-size: 11px; }
.mk-dialog__m { font-size: 8.5px; color: var(--color-text-secondary); line-height: 1.35; }
.mk-dialog__b { position: relative; font-weight: bold; font-size: 10px; border-radius: 999px; padding: 6px; background: rgba(255,255,255,0.08); }
.mk-dialog__b .sw.on { background: var(--color-text-primary); color: var(--color-bg-top); border-radius: 999px; padding: 6px; align-self: stretch; justify-self: stretch; }
.mk-dialog__b.swg { padding: 0; }
.mk-dialog__b.swg > .sw { padding: 6px; justify-self: stretch; }
.mk-dialog__b2 { font-size: 9.5px; color: var(--color-text-muted); }
.mk-dialog .rip.d { top: 62%; }

/* session detail */
.mk-bars--laps { height: 80px; margin-top: 6px; }
.mk-trcard { background: rgba(255,255,255,0.06); display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: 10.5px; }

/* install scene */
.plat { font-weight: bold; letter-spacing: 0.08em; margin-bottom: 8px; font-size: 13px; color: var(--color-text-secondary); }
.fsw { display: grid; width: 100%; height: 100%; }
.fsw > .sw { justify-self: stretch; align-self: stretch; position: relative; display: flex; flex-direction: column; gap: 8px; }
.mk-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--color-bg-top) 78%, white); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mk-sheet img { width: 34px; border-radius: 8px; }
.mk-btn--install.sm { margin-top: 2px; padding: 5px 16px; position: relative; }
.mk-safbar { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; justify-items: center; padding: 6px 0; background: rgba(255,255,255,0.08); border-radius: 10px; }
.mk-safbar .shr-w { position: relative; display: block; }
.shr { width: 20px; height: 20px; }
.mk-sheet--ios { gap: 4px; align-items: stretch; }
.mk-sheet__row { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 10px; background: rgba(255,255,255,0.08); font-weight: bold; }
.mk-sheet__row .plus { font-size: 16px; width: 16px; text-align: center; }
.mk-sheet__row img { width: 22px; border-radius: 6px; }
.mk-sheet__row.dim span { display: block; height: 12px; }
.fs.and .home__app, .fs.ios .home__app { animation: none; }
.sc.is-active .fs .home__app { animation: tut-pop 0.6s ease-out 0.1s both; }
.fs .home { padding-top: 40px; }

/* interval-completed flash: mirrors the app's real overlay (blinks 100% <-> 35%, 950 ms) */
.mk-flash { position: absolute; inset: 0; border-radius: 21px; background: var(--color-aqua); color: var(--color-bg-top); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px; gap: 8px; animation: mk-blink 0.95s ease-in-out infinite alternate; }
@keyframes mk-blink { from { opacity: 1; } to { opacity: 0.35; } }
.mk-flash__l { font-weight: bold; font-size: 11px; letter-spacing: 0.08em; }
.mk-flash__n { font-weight: bold; font-size: 15px; }
.mk-flash__t { font-size: 9.5px; }
.mk-flash .rip { border-color: var(--color-bg-top); top: 75%; }
.mk-bar__track i.full { width: 90%; animation: bar-full 3.2s ease-out 0.3s forwards; }
.sc.is-active .mk-bar__track i.full { animation: bar-full 3.2s ease-out 0.3s forwards; }
@keyframes bar-full { from { width: 90%; } to { width: 100%; } }

/* press-and-hold ripple */
.sc.is-active .rip.hold { animation: rip-hold 1.3s ease-out var(--d) both; }
@keyframes rip-hold { 0% { opacity: 0; transform: scale(0.3); } 20% { opacity: 0.9; transform: scale(1); } 85% { opacity: 0.9; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1.1); } }

/* iOS install scene */
.mk-safbar .dim { width: 18px; height: 18px; border-radius: 5px; background: var(--color-pencil-line-faint); }
.mk-safbar { padding: 8px 0; }
.stp { position: absolute; top: -9px; right: -10px; min-width: 15px; height: 15px; border-radius: 50%; background: var(--color-gold); color: var(--color-bg-top); font-size: 9px; font-weight: bold; display: flex; align-items: center; justify-content: center; padding: 0 1px; }
.sc.is-active .stp { animation: tut-pop 0.9s ease-in-out infinite; }
.ios-dim { position: absolute; inset: -12px -8px -8px; background: rgba(0,0,0,0.45); }
.ios-sheet { position: absolute; left: -4px; right: -4px; bottom: -4px; padding: 10px 8px 12px; border-radius: 16px 16px 20px 20px; background: color-mix(in srgb, var(--color-bg-top) 70%, white); display: flex; flex-direction: column; gap: 6px; }
.ios-sheet__top { display: flex; align-items: center; gap: 8px; font-weight: bold; padding-bottom: 4px; }
.ios-sheet__top img { width: 26px; border-radius: 7px; }
.ios-sheet__row { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; background: rgba(255,255,255,0.08); font-size: 9.5px; font-weight: bold; }
.ios-sheet__row i { width: 14px; height: 14px; border-radius: 4px; background: var(--color-pencil-line-faint); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; flex: none; }
.ios-sheet__row i.sq { background: var(--color-text-primary); color: var(--color-bg-top); }
.ios-sheet__row .bar, .ios-add__hd .bar { height: 6px; flex: 1; border-radius: 3px; background: var(--color-pencil-line-faint); }
.ios-sheet__row.hl { background: rgba(255,255,255,0.2); }
.ios-sheet__row.hl .lbl { flex: 1; }
.ios-add { position: absolute; left: 0; right: 0; top: 52px; border-radius: 14px; background: color-mix(in srgb, var(--color-bg-top) 70%, white); overflow: visible; }
.ios-add__hd { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 9px 10px; }
.ios-add__hd .bar { flex: none; width: 34px; }
.ios-add__add { position: relative; font-weight: bold; font-size: 11px; background: var(--color-text-primary); color: var(--color-bg-top); border-radius: 999px; padding: 3px 12px; }
.ios-add__body { display: flex; align-items: center; gap: 10px; padding: 8px 10px 14px; }
.ios-add__body img { width: 40px; border-radius: 10px; }
.ios-add__name { flex: 1; background: rgba(255,255,255,0.1); border-radius: 7px; padding: 6px 8px; font-weight: bold; }

@media (prefers-reduced-motion: reduce) {
  .scene .draw { animation: none; stroke-dashoffset: 0; }
  .fish-x { animation: none; transform: translate(150px, 0); }
  .fish-flip, .fish-y, .fish-nose, .phone, .phone__screen { animation: none; }
  .plus { animation: none; opacity: 1; transform: translateY(-14px); }
}

/* =====================================================================
   Tutorial player (landing-tutorial.js). Scenes are plain DOM animated with
   CSS keyed on `.is-active`; every time offset comes from inline vars
   (--d / --in / --out) so each scene's choreography lives in its markup.
   ===================================================================== */
.landing__section--tutorial { padding: 16px 16px 14px; }

.player { position: relative; }

.player__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 10 / 11;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
}

.player__poster {
  position: absolute;
  left: 0; right: 0; top: 0;
  aspect-ratio: 10 / 11;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 16px;
  background: transparent;
}
.player__poster[hidden] { display: none; }
.player__poster-fish { width: 120px; opacity: 0.9; }

.player__watch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  background: var(--color-aqua);
  color: var(--color-bg-top);
  font-family: inherit;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}
.player__watch svg { width: 18px; height: 18px; }

.player__subs {
  min-height: 118px;
  padding: 14px 4px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 23px;
  line-height: 1.32;
  color: var(--color-text-primary);
  opacity: 0;
  transition: opacity 200ms ease;
}
.player__subs.is-on { opacity: 1; }

.player__bar { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.player__btn {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 0;
}
.player__btn svg { width: 18px; height: 18px; }
.player__btn .i-play, .player__btn.is-playing .i-pause { display: block; }
.player__btn .i-pause, .player__btn.is-playing .i-play { display: none; }
.player__btn:not(.is-playing) .i-pause { display: none; }

.player__progress { flex: 1; display: flex; gap: 3px; margin-left: 4px; }
.seg {
  flex: 1; height: 6px; padding: 0;
  border: 0; border-radius: 3px;
  background: var(--color-pencil-line-faint);
  cursor: pointer;
}
.seg.is-done { background: var(--color-text-muted); }
.seg.is-current { background: var(--color-text-primary); }

.player.is-paused .sc * { animation-play-state: paused !important; }

/* ---- scenes ---- */
.sc { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 350ms ease; color: var(--color-text-primary); }
.sc.is-active { opacity: 1; }
.sc .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px; }
.sc .rel { overflow: visible; }

/* time-on-the-scene-clock helpers */
.sw { opacity: 0; }
.swg { display: inline-grid; }
.swg > .sw { grid-area: 1 / 1; justify-self: center; align-self: center; }
.sc.is-active .sw { animation: sw-show 0.01s var(--in) forwards, sw-hide 0.01s var(--out) forwards; }
@keyframes sw-show { to { opacity: 1; } }
@keyframes sw-hide { to { opacity: 0; } }

.rip {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  left: 50%; top: 50%; border-radius: 50%;
  border: 2px solid var(--color-text-primary); opacity: 0; pointer-events: none;
}
.sc.is-active .rip { animation: rip 0.7s ease-out var(--d) both; }
@keyframes rip { 0% { opacity: 0; transform: scale(0.3); } 15% { opacity: 0.9; } 100% { opacity: 0; transform: scale(1.5); } }

.sc.is-active .pop { animation: tut-pop 0.5s ease-out var(--d) both; }
@keyframes tut-pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* ---- phone mock ---- */
.ph {
  position: relative; width: 156px; height: 296px; flex: none;
  border: 2.5px solid var(--color-text-primary); border-radius: 24px;
  background: var(--color-bg-top); padding: 12px 8px 8px;
}
.ph__notch { position: absolute; top: 5px; left: 50%; width: 30px; height: 4px; margin-left: -15px; border-radius: 3px; background: var(--color-pencil-line-soft); }
.ph__screen { position: relative; height: 100%; display: flex; flex-direction: column; gap: 8px; font-size: 10.5px; overflow: hidden; }

.mk-title { font-weight: bold; letter-spacing: 0.06em; text-align: center; font-size: 12px; margin-top: 4px; }
.mk-card { border-radius: 12px; padding: 8px; position: relative; }
.mk-btn { position: relative; border-radius: 999px; padding: 7px 8px; text-align: center; font-weight: bold; }
.mk-btn--install { background: var(--color-aqua); color: var(--color-bg-top); margin-top: 22px; }
.mk-btn--ghost { color: var(--color-text-secondary); background: rgba(255,255,255,0.05); }
.mk-link { text-align: center; text-decoration: underline; color: var(--color-text-muted); font-size: 9.5px; margin-top: 2px; }
.mk-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.mk-field span { color: var(--color-text-muted); font-size: 9.5px; }
.mk-pill { display: block; background: rgba(255,255,255,0.07); border-radius: 999px; padding: 4px 10px; font-weight: bold; }
.sc.is-active .mk-pill { animation: glow 0.9s ease-out var(--d) both; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 40% { box-shadow: 0 0 0 4px var(--color-pencil-line-soft); } }
.mk-toast { position: absolute; left: 8px; right: 8px; bottom: 10px; text-align: center; background: var(--color-text-primary); color: var(--color-bg-top); border-radius: 10px; padding: 6px; font-weight: bold; font-size: 9.5px; opacity: 0; }
.sc.is-active .mk-toast { animation: sw-show 0.4s ease-out var(--d) forwards; }

.home { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px 4px; }
.home i { display: block; aspect-ratio: 1; border-radius: 9px; background: var(--color-pencil-line-faint); }
.home__app { position: absolute; left: 4px; top: 70px; width: calc(25% - 6px); text-align: center; font-size: 8px; }
.home__app img { width: 100%; border-radius: 9px; display: block; }
.sc.is-active .home__app { animation: tut-pop 0.6s ease-out 2.7s both; }
.mk-plan { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mk-plan__t { font-weight: bold; font-size: 12px; }
.mk-plan__s { color: var(--color-text-muted); font-size: 9.5px; }
.mk-use { position: relative; border: 1px solid var(--color-pencil-line-soft); border-radius: 999px; padding: 4px 10px; font-weight: bold; min-width: 52px; text-align: center; }
.mk-use .on { color: var(--color-text-primary); }
.mk-rows { display: flex; flex-direction: column; gap: 5px; opacity: 0; }
.mk-rows div { border-bottom: 1px solid var(--color-pencil-line-faint); padding: 3px 2px; }
.sc.is-active .mk-rows { animation: sw-show 0.5s ease-out var(--d) forwards; }

.mk-start { align-self: center; font-size: 17px; font-weight: bold; position: relative; letter-spacing: 0.05em; padding: 2px 8px; }
.mk-counter { text-align: center; padding: 14px 8px 8px; }
.mk-num { font-size: 52px; font-weight: bold; line-height: 1; }
.mk-label { letter-spacing: 0.2em; color: var(--color-text-secondary); margin-top: 4px; font-size: 10px; }
.mk-time { display: flex; justify-content: space-around; align-items: center; margin-top: 4px; }
.mk-clock, .mk-lap { font-size: 20px; font-weight: bold; font-variant-numeric: tabular-nums; }
.mk-lap .res { transform: scale(1.4); }
.mk-zones { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; text-align: center; font-size: 18px; color: var(--color-text-muted); border-radius: 12px; }
.mk-zones span:nth-child(2) { align-self: stretch; }
.mk-counter .rip.r { left: 83%; }
.mk-counter .rip.l { left: 17%; }
.mk-ctl { margin-top: auto; margin-bottom: 8px; }
.mk-btn.big { padding: 11px 8px; font-size: 13px; }
.mk-two { display: flex; flex-direction: column; gap: 6px; width: 132px; }
.mk-btn.fin { color: var(--color-text-primary); }
.mk-btn.big, .mk-two .mk-btn { background: rgba(255,255,255,0.06); }

.mk-row { display: grid; grid-template-columns: 0.9fr 1fr 0.8fr 0.8fr; gap: 2px; text-align: center; padding: 5px 0; border-bottom: 1px solid var(--color-pencil-line-faint); }
.mk-row.head { color: var(--color-text-muted); font-size: 9px; }
.mk-row:not(.head) { opacity: 0; }
.sc.is-active .mk-row:not(.head) { animation: sw-show 0.4s ease-out var(--d) forwards; }
.mk-link2 { text-align: center; text-decoration: underline; color: var(--color-text-muted); font-size: 9.5px; margin-top: 4px; }
.mk-bars { margin-top: auto; height: 62px; display: flex; align-items: flex-end; gap: 8px; padding: 0 12px 6px; border-bottom: 1.5px solid var(--color-pencil-line-soft); }
.mk-bars i { flex: 1; height: 0; background: var(--color-text-primary); border-radius: 3px 3px 0 0; opacity: 0.85; }
.sc.is-active .mk-bars i { animation: bar-up 0.5s ease-out var(--d) forwards; }
@keyframes bar-up { to { height: var(--h); } }

/* scene 1 / 11 */
.s1-fish { width: 140px; animation: none; }
.sc.is-active .s1-fish { animation: fish-float 2.4s ease-in-out infinite alternate; }
@keyframes fish-float { from { transform: translateY(-4px) rotate(-2deg); } to { transform: translateY(4px) rotate(2deg); } }
.s1-title { font-size: 34px; font-weight: bold; margin: 10px 0 6px; }
.s1-tag { font-size: 13px; color: var(--color-text-secondary); max-width: 250px; line-height: 1.4; }
.s11-shield { width: 74px; height: 74px; color: var(--color-gold); margin-bottom: 6px; }
.sc.is-active .s11-shield { animation: tut-pop 0.7s ease-out 0.3s both; }

/* scene 3 */
.s3 { width: 100%; max-width: 300px; }
.s3-stand { stroke-width: 2.4; }
.s3-cone { stroke-dasharray: 5 6; opacity: 0.55; }
.sc.is-active .s3-stand { stroke-width: 2.4; }
.s3-cone { animation: cone 1.2s linear infinite; }
@keyframes cone { to { stroke-dashoffset: -22; } }

/* scene 7: the raised hand beside the phone */
.hand { position: absolute; right: 4px; bottom: 44px; width: 70px; color: var(--color-text-primary); opacity: 0; transform: translate(0, 60px); }
.sc.is-active .hand { animation: hand-up 6.2s ease-in-out 0.4s both; }
@keyframes hand-up { 0% { opacity: 0; transform: translate(0, 60px) rotate(8deg); } 22% { opacity: 1; transform: translate(0, 0) rotate(0); } 70% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(0, 40px); } }

@media (prefers-reduced-motion: reduce) {
  .sc.is-active .rip, .sc.is-active .pop { animation: none; }
}

/* donations: text like the tagline, button like the install button */
.landing__section.landing__donate { padding: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.landing__section.landing__donate p { font-size: 17px; color: var(--color-text-secondary); line-height: 1.5; margin: 0; }
.landing__donate-btn {
  box-sizing: border-box; display: block; width: 100%; text-align: center;
  padding: 16px 24px; border-radius: 999px; border: none;
  background-color: var(--color-aqua); color: var(--color-bg-top);
  font-family: inherit; font-size: 17px; font-weight: bold; text-decoration: none; cursor: pointer;
}
.landing__donate-btn:active { opacity: 0.85; }
