/*
 * Escaleco landing page (index.html), on top of site.css.
 *
 * The drawings of the app are HTML and CSS built from the app's real screens
 * (lib/screens/home/, statistics_screen.dart, shift_detail_screen.dart); their
 * type colours are the app's own (new_shift_screen.dart). Every drawing is
 * aria-hidden, and the text beside it says the same thing in words.
 *
 * Motion, in three layers, all at the end of this file:
 *   1. On arrival: the hero plays once, then keeps a few slow loops.
 *   2. While scrolling: sections assemble as they enter the screen
 *      (scroll-driven animations; Chrome, Edge and Safari 26+).
 *   3. Resting state: without either, every element sits finished in place.
 */

/* ─── Landing tokens ─────────────────────────────────────────────────── */

@property --n {
  syntax: "<integer>";
  inherits: true;
  initial-value: 0;
}

:root {
  --c-day: #1677ff;
  --c-night: #5b5ce6;
  --c-morning: #12b886;
  --c-afternoon: #ff922b;
  --c-cinderela: #8b5cf6;
  --c-oncall: #eb5757;
  --c-custom: #0ea5e9;
  --c-proc: #22c55e;
  --c-holiday: #e5484d;

  --glass: rgba(255, 255, 255, 0.8);
  --grid-line: rgba(16, 24, 40, 0.06);
  --panel-bg: #f1f2f4;
  --vcard-bg: #ffffff;
  --dot-grid: rgba(16, 24, 40, 0.07);
  --seg-on: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --glass: rgba(26, 30, 36, 0.78);
    --grid-line: rgba(255, 255, 255, 0.045);
    --panel-bg: #12161b;
    --vcard-bg: #1a1e24;
    --dot-grid: rgba(255, 255, 255, 0.05);
    --seg-on: #0e1114;
  }
}

.c-day { --c: var(--c-day); }
.c-night { --c: var(--c-night); }
.c-morning { --c: var(--c-morning); }
.c-afternoon { --c: var(--c-afternoon); }
.c-cinderela { --c: var(--c-cinderela); }
.c-oncall { --c: var(--c-oncall); }
.c-custom { --c: var(--c-custom); }
.c-proc { --c: var(--c-proc); }

/* ─── Page frame ─────────────────────────────────────────────────────── */

body.landing main {
  padding: 0;
}

.section-head {
  max-width: 48rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.038em;
}

.section-lede {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.5;
}

/* Grid lists lay out their own items; the prose spacing rule would push
   every item after the first out of line. */
.trust-row > li + li,
.pain-grid > li + li,
.fix-list > li + li,
.parsed > li + li,
.places li + li,
.type-grid > li + li,
.pay li + li,
.results > li + li,
.bento > li + li,
.numbers > li + li,
.checklist > li + li,
.ticker li + li,
.w-next p + p {
  margin-top: 0;
}

/* ─── Hero ───────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.aurora {
  position: absolute;
  border-radius: 50%;
}

.a1 {
  top: -18%;
  right: -8%;
  width: min(62rem, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(22, 119, 255, 0.22), rgba(22, 119, 255, 0.08) 55%, transparent);
}

.a2 {
  top: 28%;
  right: 22%;
  width: min(36rem, 60vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(123, 108, 255, 0.18), transparent);
}

.a3 {
  bottom: -30%;
  left: -12%;
  width: min(44rem, 80vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 194, 75, 0.14), transparent);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(60% 70% at 72% 42%, #000 15%, transparent 75%);
  mask-image: radial-gradient(60% 70% at 72% 42%, #000 15%, transparent 75%);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 6vw, 3.5rem);
  align-items: center;
}

@media (min-width: 64rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    min-height: min(calc(100svh - var(--header-h) - 5rem), 50rem);
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  padding: 0.4rem 0.9rem 0.4rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.875rem;
  font-weight: 600;
}

.status-dot {
  position: relative;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #22a35a;
  box-shadow: 0 0 0 4px rgba(34, 163, 90, 0.18);
}

.hero h1 {
  font-size: clamp(2.75rem, 1rem + 5.2vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-wrap: balance;
}

.hero h1 .line {
  display: block;
}

.hero h1 .line-in {
  display: inline-block;
}

.hero h1 .line + .line {
  margin-top: 0.06em;
}

.grad {
  padding-bottom: 0.08em;
  background: linear-gradient(95deg, var(--brand) 5%, #6a5cff 45%, var(--brand) 85%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.scribble-word {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.scribble {
  position: absolute;
  left: -3%;
  bottom: -0.1em;
  width: 106%;
  height: 0.3em;
  overflow: visible;
}

.scribble path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}

.hero .lede {
  max-width: 35rem;
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.35rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9375rem;
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-row .icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--success);
}

/* ─── Hero stage: the phone and the cards around it ──────────────────── */

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1.5rem 0 1rem;
  perspective: 1600px;
}

.phone {
  position: relative;
  width: clamp(16.5rem, 24vw, 22.5rem);
  padding: 0.55rem;
  border-radius: 3.1rem;
  background: #111316;
  box-shadow:
    0 50px 90px -40px rgba(16, 24, 40, 0.55),
    0 30px 60px -30px rgba(22, 119, 255, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  container-type: inline-size;
}

@media (min-width: 64rem) {
  .phone {
    transform: rotateY(-11deg) rotateX(4deg) rotateZ(0.5deg);
  }
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 18.6;
  overflow: clip;
  border-radius: 2.6rem;
  background: var(--bg);
  font-size: 3.55cqi;
  line-height: 1.3;
}

/* Zero-specificity container, so any class rule below still wins. */
:where(.phone-screen) p {
  margin: 0;
}

/* Dynamic Island */
.phone-screen::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0.75em;
  left: 50%;
  width: 30%;
  height: 2.3em;
  border-radius: 999px;
  background: #0b0c0e;
  transform: translateX(-50%);
}

.ph-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.8em;
  padding: 0.9em 2.2em 0;
  font-size: 1.05em;
  font-weight: 650;
}

.ph-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.ph-signal,
.ph-wifi,
.ph-battery {
  display: block;
}

.ph-signal {
  width: 1.1em;
  height: 0.75em;
  background: linear-gradient(to right, currentColor 0 20%, transparent 20% 27%, currentColor 27% 47%, transparent 47% 54%, currentColor 54% 74%, transparent 74% 80%, currentColor 80%);
  -webkit-mask-image: linear-gradient(to top right, #000 50%, transparent 50%);
  mask-image: linear-gradient(to top right, #000 50%, transparent 50%);
}

.ph-wifi {
  width: 1em;
  height: 0.75em;
  border-radius: 1em 1em 0 0;
  background: currentColor;
  -webkit-mask-image: radial-gradient(circle at 50% 100%, #000 45%, transparent 46%);
  mask-image: radial-gradient(circle at 50% 100%, #000 45%, transparent 46%);
  -webkit-mask-size: 100% 200%;
  mask-size: 100% 200%;
}

.ph-battery {
  width: 1.8em;
  height: 0.85em;
  border: 1.5px solid currentColor;
  border-radius: 0.3em;
  opacity: 0.9;
  background: linear-gradient(to right, currentColor 72%, transparent 72%) no-repeat 1.5px 50% / calc(100% - 3px) calc(100% - 3px);
}

.ph-notice {
  position: absolute;
  z-index: 5;
  top: 3.3em;
  left: 0.7em;
  right: 0.7em;
  padding: 0.95em 1.1em;
  border: 1px solid var(--border);
  border-radius: 1.7em;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1.2em 2.4em -1.2em rgba(16, 24, 40, 0.4);
  font-size: 0.98em;
}

.ph-notice-app {
  display: flex;
  align-items: center;
  gap: 0.45em;
  color: var(--muted);
  font-size: 0.82em;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ph-notice-app img {
  width: 1.5em;
  height: 1.5em;
  border-radius: 0.4em;
}

.ph-notice-app span {
  margin-left: auto;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.ph-notice-title {
  margin-top: 0.35em;
  font-weight: 700;
}

.ph-notice-body {
  color: var(--text);
}

.ph-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5em 1.5em 0;
}

.ph-month {
  color: var(--muted);
  font-size: 1.3em;
}

.ph-month strong {
  margin-right: 0.15em;
  color: var(--text);
  font-size: 1.45em;
  letter-spacing: -0.03em;
}

.ph-today {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.4em 0.85em;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
}

.ph-today::before {
  content: "";
  width: 0.75em;
  height: 0.75em;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor 32%, transparent 36%);
}

.ph-chips {
  display: flex;
  gap: 0.45em;
  margin-top: 0.9em;
  padding: 0 1.5em;
  overflow: clip;
  -webkit-mask-image: linear-gradient(to right, #000 80%, transparent);
  mask-image: linear-gradient(to right, #000 80%, transparent);
}

.ph-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.4em;
  padding: 0.45em 0.85em;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  white-space: nowrap;
}

.ph-chip.on {
  border-color: transparent;
  background: #111;
  color: #fff;
}

.ph-chip i {
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--c);
}

.ph-week,
.ph-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 0.9em;
  text-align: center;
}

.ph-week {
  margin-top: 1.1em;
  color: var(--muted);
  font-size: 0.92em;
}

.ph-week .we {
  color: var(--c-holiday);
}

.ph-days span {
  position: relative;
  isolation: isolate;
  height: 2.55em;
  padding-top: 0.28em;
  font-size: 1.22em;
}

.ph-days .out {
  color: var(--muted);
  opacity: 0.45;
}

.ph-days .today {
  color: #fff;
  font-weight: 700;
}

.ph-days .today::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0.08em;
  left: 50%;
  width: 1.7em;
  height: 1.62em;
  border-radius: 0.5em;
  background: #111;
  transform: translateX(-50%);
}

.ph-days .holiday::after {
  content: "";
  position: absolute;
  top: 0.3em;
  right: 18%;
  width: 0.3em;
  height: 0.3em;
  border-radius: 50%;
  background: var(--c-holiday);
}

.ph-days i {
  position: absolute;
  left: 50%;
  bottom: 0.32em;
  width: 0.34em;
  height: 0.34em;
  margin-left: -0.17em;
  border-radius: 50%;
  background: var(--c);
}

.ph-days i:first-of-type:not(:only-of-type) {
  margin-left: -0.44em;
}

.ph-days i:nth-of-type(2) {
  margin-left: 0.1em;
}

.ph-agenda {
  position: relative;
  flex: 1;
  margin-top: 0.4em;
  padding: 1.35em 1.5em 0;
  border-top: 1px solid var(--border);
}

.ph-agenda::before {
  content: "";
  position: absolute;
  top: -0.2em;
  left: 50%;
  width: 3.2em;
  height: 0.38em;
  border-radius: 999px;
  background: var(--border-strong);
  transform: translateX(-50%);
}

.ph-day {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.ph-day p {
  flex: 1;
  min-width: 0;
}

.ph-day strong {
  display: block;
  font-size: 1.1em;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ph-day p span {
  color: var(--muted);
}

.ph-mic {
  display: grid;
  place-items: center;
  width: 2.6em;
  height: 2.2em;
  border-radius: 999px;
  background: var(--brand-softer);
  color: var(--brand);
}

.ph-mic svg {
  width: 1.2em;
  height: 1.2em;
}

.ph-new {
  padding: 0.5em 0.9em;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.ph-row {
  position: relative;
  margin-top: 0.85em;
  padding: 0.15em 0 0.15em 1.05em;
}

.ph-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 0.3em;
  border-radius: 0.2em;
  background: var(--c);
}

.r-custom { --c: var(--c-custom); }
.r-night { --c: var(--c-night); }

.ph-row p:first-child {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1.12em;
}

.ph-meta {
  color: var(--muted);
}

.ph-badge {
  display: inline-block;
  padding: 0.12em 0.6em;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
}

.b-notes {
  color: var(--link);
  background: var(--brand-soft);
  border-color: var(--brand-softer);
}

.b-paid {
  color: var(--success);
  background: var(--success-soft);
  border-color: transparent;
}

.ph-tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3em;
  padding: 0.7em 0.8em 1.7em;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.ph-tabbar span {
  display: grid;
  justify-items: center;
  gap: 0.2em;
  padding: 0.45em 0;
  border-radius: 1.2em;
  color: var(--muted);
  font-size: 0.86em;
  font-weight: 600;
}

.ph-tabbar span.on {
  background: var(--bg-soft);
  color: var(--text);
}

.ph-tabbar svg {
  width: 1.9em;
  height: 1.9em;
}

/* Cards floating around the phone */
.fc {
  position: absolute;
  z-index: 2;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem;
  line-height: 1.35;
}

:where(.fc) p {
  margin: 0;
}

.fc-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fc-eyebrow img {
  border-radius: 0.3rem;
}

.fc-value {
  margin-top: 0.2rem;
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.fc-title {
  font-weight: 700;
  font-size: 0.9375rem;
}

.fc-sub {
  color: var(--muted);
}

.fc-up {
  display: inline-block;
  white-space: nowrap;
  margin-top: 0.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-weight: 650;
}

.fc-earn {
  top: 24%;
  left: 0;
}

.fc-trade {
  top: 58%;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 13.5rem;
}

.fc-widget {
  bottom: 7%;
  left: 3%;
  min-width: 10.5rem;
  border-radius: 22px;
}

.fc-icon {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.8rem;
}

.fc-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.i-trade {
  background: var(--trade-soft);
  color: var(--trade);
}

@media (min-width: 64rem) {
  .fc-earn {
    left: -13%;
  }

  .fc-trade {
    right: -4%;
  }

  .fc-widget {
    left: -6%;
  }
}

/* Wide screens have room beside the phone for the cards to stand clear. */
@media (min-width: 100rem) {
  .fc-trade {
    right: -9%;
  }
}

/* On phones there is no room beside the phone, so two of the cards tuck
   under its lower edge and the third stays out. */
@media (max-width: 39.99rem) {
  .hero-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.6rem;
    padding-bottom: 0;
  }

  .phone-float {
    grid-column: 1 / -1;
  }

  .fc {
    position: relative;
    padding: 0.7rem 0.8rem;
    font-size: 0.75rem;
  }

  .fc-value {
    font-size: 1.15rem;
  }

  .fc-up {
    font-size: 0.6875rem;
  }

  .fc-earn {
    top: auto;
    left: auto;
    margin-top: -5rem;
    justify-self: end;
  }

  .fc-trade {
    top: auto;
    right: auto;
    align-self: start;
    justify-self: start;
    max-width: none;
    margin-top: -2.5rem;
  }

  .fc-widget {
    display: none;
  }
}

/* ─── Ticker: who it is for ──────────────────────────────────────────── */

.ticker {
  padding: 1.6rem 0 1.8rem;
  border-block: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  overflow: clip;
}

.ticker-lead {
  margin: 0 0 1rem;
  padding: 0 var(--gutter);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ticker-track-wrap {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
}

.ticker ul {
  display: flex;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticker li {
  display: flex;
  align-items: center;
  color: var(--text);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ticker li::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin: 0 1.6rem;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.6;
}

/* ─── The six pains ──────────────────────────────────────────────────── */

.pains {
  position: relative;
  isolation: isolate;
  padding: var(--space-section) 0;
  overflow: clip;
  background: #0b0d11;
  color: #f3f5f8;
}

.pains-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 42% at 12% 0%, rgba(255, 77, 77, 0.16), transparent 70%),
    radial-gradient(40% 36% at 92% 100%, rgba(255, 140, 60, 0.12), transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 64px 64px;
}

.pains .eyebrow {
  color: #ff9b9b;
}

.pains .eyebrow::before {
  background: #ff6b6b;
}

.pains h2 {
  color: #fff;
}

.pains .section-lede {
  color: #a9b1bc;
}

.pains a:focus-visible {
  outline-color: #ff9b9b;
}

.pain-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 44rem) {
  .pain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 68rem) {
  .pain-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.pain {
  position: relative;
  padding: 1.1rem 1.1rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, #14171d, #0f1216);
  transition: translate 0.35s var(--ease-out), border-color 0.35s ease;
}

.pain:hover {
  translate: 0 -4px;
  border-color: rgba(255, 107, 107, 0.4);
}

.pain-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 10rem;
  margin-bottom: 1.2rem;
  padding: 0.9rem 1rem;
  overflow: clip;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: #0c0f13;
  font-size: 0.8125rem;
  line-height: 1.35;
}

:where(.pain-art) p {
  margin: 0;
}

/* Equal heights where cards sit side by side; on phones each drawing takes
   the height it needs. */
@media (max-width: 43.99rem) {
  .pain-art {
    height: auto;
    min-height: 7.5rem;
  }
}

.pain-tag {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: #ff9b9b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pain-tag span {
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.04em;
}

.pain h3 {
  margin: 0.55rem 0 0.4rem;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.28;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.pain > p:last-child {
  margin: 0;
  color: #a9b1bc;
  font-size: 0.97rem;
  line-height: 1.5;
}

/* 01 · a group chat */
.art-chat {
  justify-content: flex-end;
  gap: 0.25rem;
  padding-top: 0.65rem;
  padding-bottom: 0.75rem;
}

.chat-head {
  margin-bottom: auto;
  color: #7d8793;
  font-size: 0.72rem;
  font-weight: 600;
}

.bubble {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  max-width: 88%;
  padding: 0.28rem 0.65rem;
  border-radius: 12px 12px 12px 4px;
  background: #1d222a;
  color: #dfe4ea;
  font-size: 0.78rem;
  line-height: 1.35;
}

.bubble svg {
  width: 0.95rem;
  height: 0.95rem;
  color: #8fa0b3;
}

.b-me {
  align-self: flex-end;
  border-radius: 12px 12px 4px 12px;
  background: #1c3354;
  color: #dbe8ff;
}

.typing {
  display: inline-flex;
  gap: 0.2rem;
  align-self: flex-start;
  padding: 0.35rem 0.6rem;
  border-radius: 12px;
  background: #1d222a;
}

.typing i {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #8591a0;
}

/* 02 · hours nobody counted */
.art-hours {
  align-items: center;
  text-align: center;
}

.hours-label,
.hours-note {
  color: #8591a0;
  font-size: 0.75rem;
}

.hours-slot {
  height: 1.15em;
  margin: 0.3rem 0;
  overflow: clip;
  color: #fff;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.hours-reel {
  display: block;
  transform: translateY(-75%);
}

.hours-reel b {
  display: block;
  height: 1.15em;
}

.hours-reel b:last-child {
  color: #ff8f8f;
}

/* 03 · a sticky note */
.art-note {
  align-items: center;
}

.art-note::before {
  content: "";
  position: absolute;
  width: 72%;
  height: 76%;
  border-radius: 4px 4px 18px 4px;
  background: #ffd84d;
  box-shadow: 0 16px 24px -12px rgba(0, 0, 0, 0.6);
  transform: rotate(-3deg);
}

.note-line {
  position: relative;
  width: 62%;
  color: #3b3000;
  font-family: "Segoe Print", "Bradley Hand", "Marker Felt", "Comic Sans MS", cursive;
  font-size: 0.8rem;
  line-height: 1.7;
  transform: rotate(-3deg);
}

.note-line.l-3::after {
  content: "";
  position: absolute;
  left: 0;
  right: 8%;
  top: 55%;
  height: 2px;
  border-radius: 2px;
  background: #b3261e;
  transform-origin: 0 50%;
}

/* 04 · a spreadsheet that does not add up */
.art-sheet {
  justify-content: center;
  gap: 0;
  padding: 0.7rem 0.9rem;
}

.sheet-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #c9d1da;
}

.sheet-row span {
  padding: 0.28rem 0.5rem;
}

.sheet-row span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  text-align: right;
}

.sh-head {
  color: #7d8793;
  font-weight: 600;
}

.sh-total {
  border-bottom: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
}

.sheet-err {
  color: #ff6b6b;
  font-weight: 700;
}

/* 05 · memory as a calendar */
.art-memory {
  align-items: center;
}

.memo-cal {
  display: grid;
  grid-template-columns: repeat(7, 1.9rem);
  gap: 0.3rem;
}

.memo-cal span {
  height: 1.9rem;
  border-radius: 0.5rem;
  background: #161a20;
}

.memo-hit {
  position: relative;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
}

.memo-hit::after {
  content: "";
  position: absolute;
  inset: -0.25rem;
  border: 2px solid #ff6b6b;
  border-radius: 50%;
}

.memo-q {
  position: absolute;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #2a1717;
  color: #ffb3b3;
  font-size: 0.72rem;
  font-weight: 650;
}

.q1 {
  top: 1.1rem;
  left: 20%;
}

.q2 {
  bottom: 1.1rem;
  right: 12%;
}

/* 06 · an empty new phone */
.art-empty {
  align-items: center;
  text-align: center;
}

.empty-pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.6rem;
  border-radius: 1rem;
  background: #161a20;
  color: #8591a0;
}

.empty-pin svg {
  width: 1.5rem;
  height: 1.5rem;
}

.empty-pin::after {
  content: "?";
  position: absolute;
  top: -0.45rem;
  right: -0.45rem;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #ff6b6b;
  color: #0b0d11;
  font-size: 0.75rem;
  font-weight: 800;
}

.empty-title {
  color: #fff;
  font-weight: 700;
}

.empty-sub {
  color: #8591a0;
}

.pain-turn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: fit-content;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding: 0.8rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.pain-turn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ─── The six fixes ──────────────────────────────────────────────────── */

.fixes {
  padding: var(--space-section) 0 0;
}

.fix {
  --tag: #0055cc;
  --tint: rgba(22, 119, 255, 0.16);
  --tint-2: rgba(22, 119, 255, 0.06);
  --tint-soft: #e8f1fe;
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  align-items: center;
  margin-top: clamp(3.5rem, 9vw, 8rem);
}

.f2 {
  --tag: #4338ca;
  --tint: rgba(91, 92, 230, 0.18);
  --tint-2: rgba(91, 92, 230, 0.07);
  --tint-soft: #eceefe;
}

.f3 {
  --tag: #0b7a5a;
  --tint: rgba(18, 184, 134, 0.18);
  --tint-2: rgba(18, 184, 134, 0.07);
  --tint-soft: #e3f6ef;
}

.f4 {
  --tag: #9a5b00;
  --tint: rgba(245, 158, 11, 0.2);
  --tint-2: rgba(245, 158, 11, 0.08);
  --tint-soft: #fdf1dc;
}

.f5 {
  --tag: #6d3fd8;
  --tint: rgba(139, 92, 246, 0.18);
  --tint-2: rgba(139, 92, 246, 0.07);
  --tint-soft: #f0eafe;
}

.f6 {
  --tag: #03679b;
  --tint: rgba(14, 165, 233, 0.18);
  --tint-2: rgba(14, 165, 233, 0.07);
  --tint-soft: #e2f3fc;
}

@media (prefers-color-scheme: dark) {
  .fix { --tag: #86b6f9; --tint: rgba(61, 139, 255, 0.2); --tint-2: rgba(61, 139, 255, 0.07); --tint-soft: #13233d; }
  .f2 { --tag: #a9aaff; --tint: rgba(124, 125, 255, 0.2); --tint-2: rgba(124, 125, 255, 0.07); --tint-soft: #1c1d42; }
  .f3 { --tag: #5fe0b7; --tint: rgba(18, 184, 134, 0.2); --tint-2: rgba(18, 184, 134, 0.07); --tint-soft: #0f2c24; }
  .f4 { --tag: #ffc46b; --tint: rgba(245, 158, 11, 0.2); --tint-2: rgba(245, 158, 11, 0.07); --tint-soft: #33240b; }
  .f5 { --tag: #c4b1ff; --tint: rgba(139, 92, 246, 0.22); --tint-2: rgba(139, 92, 246, 0.07); --tint-soft: #26193f; }
  .f6 { --tag: #7dd3fc; --tint: rgba(14, 165, 233, 0.2); --tint-2: rgba(14, 165, 233, 0.07); --tint-soft: #0d2a3a; }
}

@media (min-width: 64rem) {
  .fix {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 6vw, 6rem);
  }

  .fix:nth-of-type(even) {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .fix:nth-of-type(even) .fix-copy {
    order: 2;
  }
}

.fix-tag {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: var(--tag);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fix-tag span {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.75rem;
  background: var(--tint-soft);
  letter-spacing: 0;
}

.fix-pain {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.fix-before {
  display: inline-block;
  margin-right: 0.2rem;
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 0.12em;
}

.fix-pain s {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 58% / 100% 1.5px;
}

.fix h3 {
  margin: 0.7rem 0 0;
  font-size: clamp(1.65rem, 1.1rem + 1.9vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.032em;
  font-weight: 750;
  text-wrap: balance;
}

.fix-text {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.55;
}

.fix-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.fix-list li {
  position: relative;
  padding-left: 2.1rem;
}

.fix-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--tint-soft);
}

.fix-list li::after {
  content: "";
  position: absolute;
  left: 0.44rem;
  top: 0.5rem;
  width: 0.52rem;
  height: 0.3rem;
  border-left: 2px solid var(--tag);
  border-bottom: 2px solid var(--tag);
  transform: rotate(-45deg);
}

/* The panel that holds each drawing */
.fix-visual {
  position: relative;
  min-width: 0;
}

.panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  padding: clamp(1rem, 3vw, 2.25rem);
  overflow: clip;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(110% 85% at 0% 0%, var(--tint), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, var(--tint-2), transparent 65%),
    var(--panel-bg);
  font-size: 0.875rem;
  line-height: 1.4;
}

.panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(var(--dot-grid) 1px, transparent 1.3px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(80% 70% at 60% 40%, #000, transparent 80%);
  mask-image: radial-gradient(80% 70% at 60% 40%, #000, transparent 80%);
}

.panel > * {
  grid-column: 1 / -1;
  min-width: 0;
}

:where(.panel) p {
  margin: 0;
}

.vcard {
  position: relative;
  z-index: 1;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--vcard-bg);
  box-shadow: var(--shadow-md);
}

.vcard + .vcard {
  margin-top: 0.75rem;
}

.vlabel {
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vchip {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: start;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--vcard-bg);
  box-shadow: var(--shadow-sm);
  font-size: 0.8125rem;
}

.vchip b {
  font-weight: 750;
}

.vchip small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
}

.tile svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* 01 · voice and repetition */
.voice-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.voice-mic {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}

.voice-mic svg {
  width: 1.3rem;
  height: 1.3rem;
}

.wave {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.2rem;
  height: 2rem;
}

.wave i {
  flex: 1;
  max-width: 0.35rem;
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
  opacity: 0.75;
  transform: scaleY(0.35);
}

.wave i:nth-child(3n) { transform: scaleY(0.7); }
.wave i:nth-child(4n + 1) { transform: scaleY(0.5); }
.wave i:nth-child(5n) { transform: scaleY(0.9); }

.voice-quote {
  margin-top: 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.voice .vlabel {
  margin-top: 0.9rem;
}

.parsed {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.parsed li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  font-size: 0.8125rem;
}

.parsed i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--c);
}

.month-title {
  color: var(--muted);
}

.month-title strong {
  margin-right: 0.2rem;
  color: var(--text);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.mini-week,
.mini-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.mini-week {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.mini-days span {
  position: relative;
  display: grid;
  place-items: center;
  height: 1.9rem;
  font-size: 0.8125rem;
}

.mini-days .out {
  color: var(--muted);
  opacity: 0.45;
}

.mini-days .hit {
  color: #fff;
  font-weight: 700;
}

.mini-days .hit::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--c-night);
}

.mini-days {
  isolation: isolate;
}

.repeat-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.repeat-row b {
  display: grid;
  place-items: center;
  min-width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.5rem;
  color: var(--text);
}

.weekday-pick {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.55rem;
}

.weekday-pick span {
  flex: 1;
  padding: 0.3rem 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
}

.weekday-pick .on {
  border-color: transparent;
  background: var(--action);
  color: var(--action-text);
}

.v1-chip b {
  padding: 0.1rem 0.45rem;
  border-radius: 0.4rem;
  background: var(--brand-soft);
  color: var(--link);
}

@media (min-width: 40rem) {
  .v1 .voice { grid-column: 1 / 9; grid-row: 1; }
  .v1 .month { grid-column: 5 / 13; grid-row: 2; margin-top: -1.25rem; }
  .v1 .v1-chip { grid-column: 1 / 6; grid-row: 2; align-self: end; margin-bottom: 1.25rem; }
}

@media (max-width: 39.99rem) {
  .v1-chip {
    margin-top: 0.75rem;
  }
}

/* 02 · hours and places */
.seg {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  text-align: center;
}

.seg span {
  padding: 0.35rem 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seg .seg-ano {
  color: var(--seg-on);
}

.seg-thumb {
  position: absolute;
  z-index: -1;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 0.25rem;
  width: calc((100% - 0.5rem) / 4);
  border-radius: 999px;
  background: #111;
  transform: translateX(200%);
}

.stat-swap {
  display: grid;
  margin-top: 1rem;
}

.sv {
  grid-area: 1 / 1;
}

.sv-mes {
  opacity: 0;
}

.sv-big {
  margin-top: 0.3rem;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.sv-sub {
  color: var(--muted);
}

.places ul {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.places li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
}

.places li:first-child {
  border-top: 0;
}

.pl-name {
  flex: 1;
  min-width: 0;
}

.pl-name strong,
.pl-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pl-name small {
  color: var(--muted);
  font-size: 0.78rem;
}

.places b {
  white-space: nowrap;
}

.pd-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  color: var(--muted);
}

.pd-row b {
  color: var(--text);
}

.pd-best b {
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--tint-soft);
  color: var(--tag);
}

@media (min-width: 40rem) {
  .v2 .stats { grid-column: 1 / 8; grid-row: 1; }
  .v2 .places { grid-column: 5 / 13; grid-row: 2; margin-top: -1rem; }
  .v2 .place-detail { grid-column: 1 / 7; grid-row: 3; margin-top: -0.75rem; }
}

/* 03 · types and colours */
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 30rem) {
  .type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.type-grid li {
  position: relative;
  padding: 0.6rem 0.65rem 0.6rem 0.9rem;
  overflow: clip;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.type-grid i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.28rem;
  background: var(--c);
}

.type-grid strong,
.type-grid small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.type-grid small {
  color: var(--muted);
  font-size: 0.72rem;
}

.nt-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.nt-name i {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--c);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.swatches i {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
}

.s1 { background: #1677ff; }
.s2 { background: #0ea5e9; }
.s3 { background: #12b886; box-shadow: 0 0 0 2px var(--vcard-bg), 0 0 0 4px #12b886; }
.s4 { background: #ff922b; }
.s5 { background: #eb5757; }
.s6 { background: #5b5ce6; }
.s7 { background: #8b5cf6; }
.s8 { background: #f06595; }
.s9 { background: #14b8a6; }

.nt-field {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.nt-field b {
  color: var(--text);
  white-space: nowrap;
}

.filter-row {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-size: 0.8125rem;
}

.filter-row .ph-chip {
  box-shadow: var(--shadow-sm);
}

@media (min-width: 40rem) {
  .v3 .types { grid-column: 1 / 9; grid-row: 1; }
  .v3 .newtype { grid-column: 6 / 13; grid-row: 2; margin-top: -1.5rem; }
  .v3 .filter-row { grid-column: 1 / -1; grid-row: 3; }
}

/* 04 · earnings and payments */
.earn-title {
  margin-top: 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.earn-sub {
  margin-top: 0.3rem;
  color: var(--muted);
}

.earn-value {
  font-size: clamp(2rem, 1.4rem + 1.8vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.count::before {
  counter-reset: n var(--n);
  content: counter(n);
}

.count-hero,
.count-earn {
  --n: 16;
}

.count-places {
  --n: 27;
}

.count-leads {
  --n: 7;
}

.earn-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.earn-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 650;
}

.earn-up {
  background: var(--success-soft);
  color: var(--success);
}

.earn-up svg {
  width: 0.9rem;
  height: 0.9rem;
}

.earn-rate {
  background: var(--bg-soft);
}

.pay ul {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.pay li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
}

.pay li:first-child {
  border-top: 0;
}

.pay li > i {
  flex: none;
  width: 0.28rem;
  height: 2rem;
  border-radius: 0.2rem;
  background: var(--c);
}

.pay li > span:not(.ph-badge) {
  flex: 1;
  min-width: 0;
}

.pay strong,
.pay small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay small {
  color: var(--muted);
  font-size: 0.78rem;
}

.pay-all {
  margin-top: 0.6rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--action);
  color: var(--action-text);
  font-weight: 650;
  text-align: center;
}

@media (min-width: 40rem) {
  .v4 .earn { grid-column: 1 / 8; grid-row: 1; }
  .v4 .pay { grid-column: 5 / 13; grid-row: 2; margin-top: -1.25rem; }
}

/* 05 · lock screen, trades, holidays, vacation */
.lock {
  position: relative;
  z-index: 1;
  padding: 1.4rem 1rem 1.1rem;
  border-radius: 26px;
  background:
    radial-gradient(120% 70% at 20% 0%, #3b5bdb, transparent 70%),
    radial-gradient(90% 60% at 100% 100%, #7048e8, transparent 70%),
    #0b1640;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.lock-date {
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.85;
}

.lock-time {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.lock-widget {
  width: fit-content;
  margin: 0.8rem auto 0;
  padding: 0.5rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-align: left;
}

.lw-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.lw-when {
  font-weight: 700;
}

.lw-name {
  font-size: 0.8125rem;
  opacity: 0.85;
}

.lock-notes {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
  text-align: left;
}

.lnote {
  padding: 0.65rem 0.8rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: #171717;
  font-size: 0.8125rem;
}

.ln2 {
  opacity: 0.72;
  transform: scale(0.97);
}

.ln-app {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #5e5e5e;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ln-app img {
  border-radius: 0.3rem;
}

.ln-app span {
  margin-left: auto;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.ln-title {
  margin-top: 0.2rem;
  font-weight: 700;
}

.side-chips {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.side-chips .vchip {
  width: 100%;
  border-radius: 16px;
}

.side-chips .vchip > span:not(.vchip-icon) {
  flex: 1;
}

.vchip-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.7rem;
}

.vchip-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.i-holiday {
  background: rgba(229, 72, 77, 0.12);
  color: #c2372f;
}

.i-vacation {
  background: var(--brand-soft);
  color: var(--link);
}

.switch {
  position: relative;
  flex: none;
  width: 2.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #34c759;
}

.switch::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  transform: translateX(1rem);
}

@media (prefers-color-scheme: dark) {
  .i-holiday {
    color: #ff8a8a;
  }
}

@media (min-width: 40rem) {
  .v5 .lock { grid-column: 1 / 8; grid-row: 1; }
  .v5 .side-chips { grid-column: 8 / 13; grid-row: 1; align-self: center; margin: 0 0 0 -1.25rem; }
}

/* 06 · places, routes and a new phone */
.search-field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9375rem;
}

.search-field svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--muted);
}

.typed {
  white-space: nowrap;
}

.caret {
  width: 2px;
  height: 1.1rem;
  margin-left: -0.35rem;
  background: var(--brand);
}

.results {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.results li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.2rem;
  border-top: 1px solid var(--border);
}

.results li:first-child {
  border-top: 0;
}

.results li > span:last-child {
  min-width: 0;
}

.results strong,
.results small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.results small {
  color: var(--muted);
  font-size: 0.78rem;
}

.rs1 .tile {
  background: var(--tint-soft);
  color: var(--tag);
}

.apps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.apps span {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 650;
}

.sync {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dev {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.8rem;
  background: var(--tint-soft);
  color: var(--tag);
}

.dev svg {
  width: 1.3rem;
  height: 1.3rem;
}

.sync-line {
  position: relative;
  flex: 0 1 4rem;
  height: 2px;
  overflow: clip;
  border-radius: 2px;
  background: var(--border-strong);
}

.sync-line i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--tag), transparent);
  transform: translateX(0);
}

.sync-text {
  margin-left: 0.3rem;
}

.sync-text small {
  display: block;
  color: var(--muted);
}

@media (min-width: 40rem) {
  .v6 .search { grid-column: 1 / 9; grid-row: 1; }
  .v6 .route { grid-column: 6 / 13; grid-row: 2; margin-top: -1rem; }
  .v6 .sync { grid-column: 1 / 8; grid-row: 3; margin-top: -0.5rem; }
}

/* ─── Bento: the smaller things ──────────────────────────────────────── */

.extras-section {
  padding: var(--space-section) 0 0;
}

.bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 23rem) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bc-widgets,
  .bc-timeline,
  .bc-styles,
  .bc-period {
    grid-column: span 2;
  }
}

@media (min-width: 23rem) and (max-width: 39.99rem) {
  .bc-import,
  .bc-backup,
  .bc-theme,
  .bc-sessions {
    padding: 1.1rem;
  }

  .bc-import p,
  .bc-backup p,
  .bc-theme p,
  .bc-sessions p {
    font-size: 0.875rem;
  }
}

@media (min-width: 40rem) {
  .bc-styles,
  .bc-period {
    grid-column: span 1;
  }
}

@media (min-width: 68rem) {
  .bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .bc-widgets {
    grid-row: span 2;
  }
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow: clip;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  transition: translate 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.bento-card:hover {
  translate: 0 -3px;
  box-shadow: var(--shadow-md);
}

.bento-card h3 {
  margin: auto 0 0;
  padding-top: 1rem;
  font-size: 1.125rem;
}

.bento-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.bc-art {
  position: relative;
  font-size: 0.8125rem;
  line-height: 1.35;
}

:where(.bc-art) p {
  margin: 0;
}

.bc-icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  background: var(--brand-soft);
  color: var(--brand);
}

.bc-icon .icon {
  width: 1.4rem;
  height: 1.4rem;
}

/* Widgets */
.bc-widgets {
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(22, 119, 255, 0.14), transparent 70%),
    var(--surface);
}

.art-widgets {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.w-small,
.w-medium,
.w-inline {
  border-radius: 20px;
  background: var(--vcard-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.w-small {
  width: 8.5rem;
  aspect-ratio: 1;
  padding: 0.85rem;
}

.w-medium {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.85rem;
}

.w-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.w-label img {
  border-radius: 0.25rem;
}

.w-time {
  margin-top: 0.35rem;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.w-small .w-time {
  font-size: 1.9rem;
}

.w-name {
  color: var(--muted);
}

.w-next p:not(.w-label) {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.3rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.w-next i {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--c);
}

.w-cal {
  grid-column: 1 / -1;
  padding: 0.85rem 0.9rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--vcard-bg);
  box-shadow: var(--shadow-md);
}

.w-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 0.4rem;
  font-size: 0.75rem;
  text-align: center;
}

.w-cal-days span {
  position: relative;
  isolation: isolate;
  height: 1.6rem;
  padding-top: 0.12rem;
}

.w-cal-days .o {
  color: var(--muted);
  opacity: 0.45;
}

.w-cal-days .t {
  color: #fff;
  font-weight: 700;
}

.w-cal-days .t::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: 1.45rem;
  height: 1.2rem;
  border-radius: 0.4rem;
  background: #111;
  transform: translateX(-50%);
}

.w-cal-days i {
  position: absolute;
  left: 50%;
  bottom: 0.1rem;
  width: 0.28rem;
  height: 0.28rem;
  margin-left: -0.14rem;
  border-radius: 50%;
  background: var(--c);
}

.w-cal-days i:first-of-type:not(:only-of-type) {
  margin-left: -0.36rem;
}

.w-cal-days i:nth-of-type(2) {
  margin-left: 0.08rem;
}

.w-inline {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 650;
}

.w-inline img {
  border-radius: 0.25rem;
}

@media (max-width: 30rem) {
  .art-widgets {
    grid-template-columns: minmax(0, 1fr);
  }

  .w-small {
    display: none;
  }
}

/* The day hour by hour */
.art-timeline {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
}

.tl-hours {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.72rem;
}

.tl-track {
  position: relative;
  height: 2.6rem;
  margin-top: 0.5rem;
  border-radius: 10px;
  background:
    repeating-linear-gradient(to right, var(--border) 0 1px, transparent 1px 20%),
    var(--surface);
}

.tl-block {
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 650;
  white-space: nowrap;
}

.b-a {
  left: 13%;
  width: 40%;
  background: var(--c-custom);
}

.b-b {
  left: 86%;
  right: 0;
  background: var(--c-night);
}

.tl-now {
  position: absolute;
  top: -0.3rem;
  bottom: -0.3rem;
  left: 80%;
  width: 2px;
  background: var(--c-holiday);
}

.tl-now::before {
  content: "";
  position: absolute;
  top: -0.2rem;
  left: -0.25rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--c-holiday);
}

/* Calendar styles */
.art-styles {
  display: flex;
  gap: 0.6rem;
}

.st {
  position: relative;
  display: grid;
  place-items: start center;
  width: 3.4rem;
  height: 3.6rem;
  padding-top: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  font-size: 1.05rem;
  font-weight: 650;
}

.st-dots i {
  position: absolute;
  bottom: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
}

.st-dots i:first-of-type { left: calc(50% - 0.5rem); background: var(--c-custom); }
.st-dots i:last-of-type { left: calc(50% + 0.1rem); background: var(--c-night); }

.st-ring::after {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: 50%;
  width: 2.2rem;
  height: 2.2rem;
  margin-left: -1.1rem;
  border-radius: 50%;
  background: conic-gradient(var(--c-custom) 0 45%, transparent 45% 50%, var(--c-night) 50% 95%, transparent 95%);
  -webkit-mask-image: radial-gradient(closest-side, transparent 78%, #000 80%);
  mask-image: radial-gradient(closest-side, transparent 78%, #000 80%);
}

.st-stack i {
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  height: 0.35rem;
  border-radius: 0.2rem;
}

.st-stack i:first-of-type { bottom: 0.95rem; background: var(--c-custom); }
.st-stack i:last-of-type { bottom: 0.45rem; background: var(--c-night); }

/* Vacation as a band */
.pd-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.pd-band {
  margin-top: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--c-custom);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  transform-origin: 0 50%;
}

/* Numbers */
.numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1rem;
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

@media (min-width: 60rem) {
  .numbers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.num-value {
  margin: 0;
  font-size: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.num-label {
  max-width: 16rem;
  margin: 0.5rem 0 0;
  color: var(--muted);
}

/* ─── Privacy band ───────────────────────────────────────────────────── */

.privacy-section {
  padding: var(--space-section) 0 0;
}

.band {
  display: grid;
  gap: 1.5rem 3rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 90% at 0% 0%, var(--wash-a), transparent 70%),
    var(--surface);
}

@media (min-width: 52rem) {
  .band {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
  }
}

.band h2 {
  margin: 1rem 0 0.5rem;
  font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.5rem);
  letter-spacing: -0.03em;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.checklist li:last-child {
  border-bottom: 0;
}

.checklist .icon {
  color: var(--success);
}

/* ─── FAQ ────────────────────────────────────────────────────────────── */

.faq-section {
  padding: var(--space-section) 0 0;
}

.faq-layout {
  display: grid;
  gap: 1.5rem 4rem;
}

@media (min-width: 64rem) {
  .faq-layout {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: start;
  }

  .faq-intro {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.faq-intro h2 {
  margin: 0;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.faq-more {
  margin-top: 1rem;
  color: var(--muted);
}

.faq-layout .faq {
  margin-top: 0;
}

/* ─── Closing ────────────────────────────────────────────────────────── */

.closing-section {
  position: relative;
  isolation: isolate;
  margin-top: var(--space-section);
  padding: clamp(4.5rem, 11vw, 8.5rem) 0;
  overflow: clip;
  background: linear-gradient(135deg, #0a3fb0 0%, #0f5fe0 48%, #4a4bd6 100%);
  color: #fff;
  text-align: center;
}

.closing-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 60% at 15% 20%, rgba(255, 255, 255, 0.16), transparent 70%),
    radial-gradient(35% 50% at 85% 85%, rgba(255, 194, 75, 0.2), transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(90% 90% at 50% 50%, #000 40%, transparent 100%);
  mask-image: radial-gradient(90% 90% at 50% 50%, #000 40%, transparent 100%);
}

.closing {
  display: grid;
  justify-items: center;
}

.closing-mark {
  position: relative;
  display: grid;
  place-items: center;
}

.closing-mark img {
  position: relative;
  z-index: 1;
  width: 6rem;
  height: 6rem;
  border-radius: 1.45rem;
  box-shadow: 0 24px 50px -14px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.closing-mark::before,
.closing-mark::after {
  content: "";
  position: absolute;
  inset: -1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2.2rem;
  opacity: 0;
}

.closing h2 {
  margin: 2rem 0 0;
  color: #fff;
  font-size: clamp(2.4rem, 1.3rem + 4vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.closing p {
  max-width: 34rem;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
}

.closing .button {
  margin-top: 2rem;
}

.button-invert {
  background: #fff;
  color: #0b1220;
}

.closing a:focus-visible {
  outline-color: #fff;
}

@media (prefers-color-scheme: dark) {
  .closing-section {
    background: linear-gradient(135deg, #082a78 0%, #0b47b5 48%, #3a33b0 100%);
  }
}

.landing .site-footer {
  border-top: 0;
}

/* ─── Dark mode details ──────────────────────────────────────────────── */

@media (prefers-color-scheme: dark) {
  .phone {
    background: #23272e;
    box-shadow:
      0 50px 90px -40px rgba(0, 0, 0, 0.8),
      0 30px 60px -30px rgba(61, 139, 255, 0.3),
      inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .phone-screen::before {
    background: #000;
  }

  .ph-chip.on,
  .ph-new {
    background: #e9eef3;
    color: #0e1114;
  }

  .ph-days .today {
    color: #0e1114;
  }

  .ph-days .today::before,
  .w-cal-days .t::before {
    background: #e9eef3;
  }

  .w-cal-days .t {
    color: #0e1114;
  }

  .seg-thumb {
    background: #e9eef3;
  }

  .pains {
    background: #07080b;
    border-block: 1px solid #1a1d23;
  }

  .lnote {
    background: rgba(30, 34, 41, 0.9);
    color: #e9eef3;
  }

  .ln-app {
    color: #a5afba;
  }
}

@media (forced-colors: active) {
  .grad {
    background: none;
    color: CanvasText;
  }

  .scribble path {
    stroke: CanvasText;
  }
}

/* ─── Motion 1: on arrival (time-based) ──────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .aurora {
    animation: drift 22s ease-in-out infinite alternate;
  }

  .a2 {
    animation-duration: 18s;
    animation-direction: alternate-reverse;
  }

  .a3 {
    animation-duration: 26s;
  }

  .status-pill {
    animation: rise 0.7s var(--ease-out) both;
  }

  .status-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #22a35a;
    animation: ping 2s ease-out infinite;
  }

  .hero h1 .line-in {
    animation: title-in 1s var(--ease-out) 0.1s both;
  }

  .hero h1 .line + .line .line-in {
    animation:
      title-in 1s var(--ease-out) 0.22s both,
      shimmer 9s linear 1.4s infinite;
  }

  .scribble path {
    animation: draw 0.9s var(--ease-out) 0.95s both;
  }

  .hero .lede {
    animation: rise 0.8s var(--ease-out) 0.38s both;
  }

  .cta-row {
    animation: rise 0.8s var(--ease-out) 0.5s both;
  }

  .trust-row {
    animation: rise 0.8s var(--ease-out) 0.6s both;
  }

  .phone-float {
    animation: bob 7s ease-in-out 1.6s infinite alternate;
  }

  .phone {
    animation: phone-in 1.2s var(--ease-out) 0.25s both;
  }

  /* The month fills week by week, then the agenda slides in. */
  .ph-days i {
    animation: dot-in 0.45s var(--ease-spring) both;
    animation-delay: 1.05s;
  }

  .ph-days span:nth-child(n + 8) i { animation-delay: 1.15s; }
  .ph-days span:nth-child(n + 15) i { animation-delay: 1.25s; }
  .ph-days span:nth-child(n + 22) i { animation-delay: 1.35s; }
  .ph-days span:nth-child(n + 29) i { animation-delay: 1.45s; }

  .ph-row {
    animation: slide-up 0.6s var(--ease-out) 1.55s both;
  }

  .ph-row + .ph-row {
    animation-delay: 1.7s;
  }

  .ph-badge {
    animation: pop 0.5s var(--ease-spring) 2.1s both;
  }

  /* The reminder drops in, stays, leaves, and comes back. */
  .ph-notice {
    animation: notice 11s var(--ease-out) 2.4s infinite both;
  }

  .fc {
    animation:
      card-in 0.8s var(--ease-spring) both,
      float-card 6s ease-in-out infinite alternate;
  }

  .fc-earn { animation-delay: 1.8s, 2.6s; }
  .fc-trade { animation-delay: 2.05s, 3.1s; }
  .fc-widget { animation-delay: 2.3s, 2.9s; }

  .count-hero {
    animation: count 1.6s var(--ease-out) 2s both;
  }

  .ticker-track {
    animation: ticker 48s linear infinite;
  }

  .ticker:hover .ticker-track {
    animation-play-state: paused;
  }

  /* The pains keep moving a little: chat typing, a reel of guesses. */
  .typing i {
    animation: typing 1.2s ease-in-out infinite;
  }

  .typing i:nth-child(2) { animation-delay: 0.15s; }
  .typing i:nth-child(3) { animation-delay: 0.3s; }

  .hours-reel {
    animation: reel 4.8s var(--ease-out) infinite;
  }

  .sheet-err {
    animation: blink 1.4s steps(1, end) infinite;
  }

  .memo-q {
    animation: wobble 3.2s ease-in-out infinite alternate;
  }

  .q2 {
    animation-delay: -1.6s;
  }

  .empty-pin::after {
    animation: pulse 1.8s ease-in-out infinite;
  }

  .pain-turn svg {
    animation: nudge 1.6s ease-in-out infinite;
  }

  /* Ambient loops inside the fixes. */
  .wave i {
    animation: wave 1.1s ease-in-out infinite alternate;
  }

  .wave i:nth-child(2n) { animation-delay: -0.3s; }
  .wave i:nth-child(3n) { animation-delay: -0.55s; }
  .wave i:nth-child(5n) { animation-delay: -0.8s; }

  .voice-mic::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--brand);
    animation: ring 1.8s ease-out infinite;
  }

  .caret {
    animation: blink 1s steps(1, end) infinite;
  }

  .sync-line i {
    animation: travel 1.8s ease-in-out infinite;
  }

  .tl-now {
    animation: now 12s ease-in-out infinite alternate;
  }

  .closing-mark::before {
    animation: halo 3.6s ease-out infinite;
  }

  .closing-mark::after {
    animation: halo 3.6s ease-out 1.8s infinite;
  }

  .closing-mark img {
    animation: bob 5s ease-in-out infinite alternate;
  }

  .closing-bg {
    animation: pan 30s linear infinite;
  }

  .faq details::details-content {
    transition: height 0.35s var(--ease-out), content-visibility 0.35s allow-discrete;
    height: 0;
    overflow: clip;
  }

  .faq details[open]::details-content {
    height: auto;
  }

  :root {
    interpolate-size: allow-keywords;
  }
}

/* ─── Motion 2: while scrolling (scroll-driven) ──────────────────────── */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* The header is clear over the hero and frosts as the page moves. */
    .landing .site-header {
      animation: header-frost linear both;
      animation-timeline: scroll(root);
      animation-range: 0 5rem;
    }

    /* The hero gives way: the cards lift faster than the phone. */
    .hero {
      view-timeline: --hero block;
    }

    .phone-float {
      animation:
        bob 7s ease-in-out 1.6s infinite alternate,
        lift-sm linear both;
      animation-timeline: auto, --hero;
      animation-range: normal, exit 0% exit 100%;
    }

    .fc {
      animation:
        card-in 0.8s var(--ease-spring) both,
        float-card 6s ease-in-out infinite alternate,
        lift-lg linear both;
      animation-timeline: auto, auto, --hero;
      animation-range: normal, normal, exit 0% exit 100%;
    }

    .fc-earn { animation-delay: 1.8s, 2.6s, 0s; }
    .fc-trade { animation-delay: 2.05s, 3.1s, 0s; }
    .fc-widget { animation-delay: 2.3s, 2.9s, 0s; }

    /* Headings and copy rise into place. */
    .section-head > *,
    .fix-copy > *,
    .band,
    .faq-intro > *,
    .faq details,
    .numbers li,
    .closing > * {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }

    /* The pains fly in from scattered angles, then settle into the grid. */
    .pain {
      animation: chaos-a linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }

    .p2 { animation-name: chaos-b; }
    .p3 { animation-name: chaos-c; }
    .p4 { animation-name: chaos-d; }
    .p5 { animation-name: chaos-e; }
    .p6 { animation-name: chaos-f; }

    .pain-turn {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }

    /* Each fix: the old pain is struck through, then its drawing builds
       step by step while it comes into view. */
    .fix-pain s {
      animation: strike linear both;
      animation-timeline: view();
      animation-range: entry 100% cover 45%;
    }

    .fix-visual {
      view-timeline: --vis block;
    }

    .panel {
      animation: panel-in linear both;
      animation-timeline: --vis;
      animation-range: entry 0% entry 60%;
    }


    .panel .vcard,
    .panel .vchip,
    .panel .filter-row,
    .panel .lock {
      animation: card-rise linear both;
      animation-timeline: --vis;
      animation-range: var(--r, entry 20% entry 60%);
    }

    .panel > :nth-child(1) { --r: entry 15% entry 55%; }
    .panel > :nth-child(2) { --r: entry 35% entry 75%; }
    .panel > :nth-child(3) { --r: entry 55% entry 95%; }

    /* 01 */
    .voice-quote {
      animation: type-in linear both;
      animation-timeline: --vis;
      animation-range: entry 40% entry 80%;
    }

    .parsed li {
      animation: pop linear both;
      animation-timeline: --vis;
      animation-range: var(--r);
    }

    .pc1 { --r: entry 70% entry 85%; }
    .pc2 { --r: entry 78% entry 93%; }
    .pc3 { --r: entry 86% entry 100%; }
    .pc4 { --r: entry 94% contain 8%; }

    .mini-days .hit::before {
      animation: pop linear both;
      animation-timeline: --vis;
      animation-range: var(--r);
    }

    .mini-days .hit {
      animation: hit-text linear both;
      animation-timeline: --vis;
      animation-range: var(--r);
    }

    .h1 { --r: entry 85% entry 95%; }
    .h2 { --r: entry 90% entry 100%; }
    .h3 { --r: entry 95% contain 5%; }
    .h4 { --r: entry 100% contain 10%; }
    .h5 { --r: contain 5% contain 15%; }

    /* 02 */
    .seg-thumb {
      animation: seg-slide linear both;
      animation-timeline: --vis;
      animation-range: entry 80% contain 20%;
    }

    .seg-mes {
      animation: seg-label-off linear both;
      animation-timeline: --vis;
      animation-range: entry 80% contain 20%;
    }

    .seg .seg-ano {
      animation: seg-label-on linear both;
      animation-timeline: --vis;
      animation-range: entry 80% contain 20%;
    }

    .sv-mes {
      animation: swap-out linear both;
      animation-timeline: --vis;
      animation-range: entry 90% contain 20%;
    }

    .sv-ano {
      animation: swap-in linear both;
      animation-timeline: --vis;
      animation-range: entry 90% contain 20%;
    }

    .places li {
      animation: slide-in linear both;
      animation-timeline: --vis;
      animation-range: var(--r);
    }

    .pl1 { --r: entry 50% entry 70%; }
    .pl2 { --r: entry 58% entry 78%; }
    .pl3 { --r: entry 66% entry 86%; }

    .pd-best b {
      animation: pop linear both;
      animation-timeline: --vis;
      animation-range: entry 95% contain 15%;
    }

    /* 03 */
    .type-grid li {
      animation: pop linear both;
      animation-timeline: --vis;
      animation-range: var(--r);
    }

    .t1 { --r: entry 25% entry 45%; }
    .t2 { --r: entry 30% entry 50%; }
    .t3 { --r: entry 35% entry 55%; }
    .t4 { --r: entry 40% entry 60%; }
    .t5 { --r: entry 45% entry 65%; }
    .t6 { --r: entry 50% entry 70%; }

    .s3 {
      animation: ring-in linear both;
      animation-timeline: --vis;
      animation-range: entry 75% entry 95%;
    }

    .nt-field {
      animation: reveal linear both;
      animation-timeline: --vis;
      animation-range: var(--r);
    }

    .nf1 { --r: entry 80% entry 100%; }
    .nf2 { --r: entry 88% contain 8%; }

    .filter-row .ph-chip {
      animation: pop linear both;
      animation-timeline: --vis;
      animation-range: var(--r);
    }

    .fr1 { --r: entry 90% contain 10%; }
    .fr2 { --r: entry 95% contain 15%; }
    .fr3 { --r: entry 100% contain 20%; }

    /* 04 */
    .count-earn {
      animation: count linear both;
      animation-timeline: --vis;
      animation-range: entry 30% entry 90%;
    }

    .pay-all {
      animation: press linear both;
      animation-timeline: --vis;
      animation-range: entry 75% entry 95%;
    }

    .pay .b-paid {
      animation: stamp linear both;
      animation-timeline: --vis;
      animation-range: var(--r);
    }

    .py1 { --r: entry 85% entry 95%; }
    .py2 { --r: entry 90% entry 100%; }
    .py3 { --r: entry 95% contain 5%; }
    .py4 { --r: entry 100% contain 12%; }

    /* 05 */
    .lnote {
      animation: drop linear both;
      animation-timeline: --vis;
      animation-range: var(--r);
    }

    .ln2 { --r: entry 50% entry 75%; }
    .ln1 { --r: entry 75% contain 5%; }

    .ln2 {
      animation-name: drop-back;
    }

    .side-chips .vchip {
      animation: slide-in linear both;
      animation-timeline: --vis;
      animation-range: var(--r);
    }

    .sc1 { --r: entry 60% entry 85%; }
    .sc2 { --r: entry 70% entry 95%; }
    .sc3 { --r: entry 80% contain 5%; }

    .switch {
      animation: switch-bg linear both;
      animation-timeline: --vis;
      animation-range: entry 100% contain 20%;
    }

    .switch::after {
      animation: switch-knob linear both;
      animation-timeline: --vis;
      animation-range: entry 100% contain 20%;
    }

    /* 06 */
    .typed {
      animation: type-in steps(14, end) both;
      animation-timeline: --vis;
      animation-range: entry 35% entry 75%;
    }

    .results li {
      animation: slide-in linear both;
      animation-timeline: --vis;
      animation-range: var(--r);
    }

    .rs1 { --r: entry 70% entry 85%; }
    .rs2 { --r: entry 76% entry 91%; }
    .rs3 { --r: entry 82% entry 97%; }

    .apps span {
      animation: pop linear both;
      animation-timeline: --vis;
      animation-range: var(--r);
    }

    .ap1 { --r: entry 90% contain 5%; }
    .ap2 { --r: entry 95% contain 10%; }
    .ap3 { --r: entry 100% contain 15%; }
    .ap4 { --r: contain 5% contain 20%; }

    .dev {
      animation: pop linear both;
      animation-timeline: --vis;
      animation-range: contain 0% contain 20%;
    }

    .d-b {
      animation-range: contain 10% contain 30%;
    }

    /* Bento and numbers */
    .bento-card {
      animation: card-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }

    .pd-band {
      animation: band-grow linear both;
      animation-timeline: view();
      animation-range: entry 40% cover 45%;
    }

    .count-places,
    .count-leads {
      animation: count linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 40%;
    }

    .closing-mark img {
      animation:
        bob 5s ease-in-out infinite alternate,
        mark-in linear both;
      animation-timeline: auto, view();
      animation-range: normal, entry 0% cover 40%;
    }
  }
}

/* ─── Keyframes ──────────────────────────────────────────────────────── */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
}

@keyframes title-in {
  from {
    opacity: 0;
    transform: translateY(0.4em);
    filter: blur(12px);
  }
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 100;
  }
}

@keyframes drift {
  to {
    transform: translate3d(6%, 5%, 0) scale(1.12);
  }
}

@keyframes ping {
  from {
    opacity: 0.55;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(2.8);
  }
}

@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(3.5rem) rotateX(22deg) rotateY(-4deg) scale(0.94);
  }
}

@keyframes bob {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-12px);
  }
}

@keyframes dot-in {
  from {
    opacity: 0;
    transform: scale(0);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(1.2em);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}

@keyframes notice {
  0% {
    opacity: 0;
    transform: translateY(-130%) scale(0.96);
  }

  5%,
  45% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  52%,
  100% {
    opacity: 0;
    transform: translateY(-130%) scale(0.96);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    scale: 0.7;
  }
}

@keyframes float-card {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-10px);
  }
}

@keyframes count {
  from {
    --n: 0;
  }
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes typing {
  0%,
  60%,
  100% {
    opacity: 0.4;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes reel {
  0%,
  18% {
    transform: translateY(0);
  }

  25%,
  43% {
    transform: translateY(-25%);
  }

  50%,
  68% {
    transform: translateY(-50%);
  }

  75%,
  100% {
    transform: translateY(-75%);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes wobble {
  from {
    transform: translateY(0) rotate(-2deg);
  }

  to {
    transform: translateY(-5px) rotate(2deg);
  }
}

@keyframes pulse {
  50% {
    transform: scale(1.18);
  }
}

@keyframes nudge {
  50% {
    transform: translateY(3px);
  }
}

@keyframes wave {
  from {
    transform: scaleY(0.25);
  }

  to {
    transform: scaleY(1);
  }
}

@keyframes ring {
  from {
    opacity: 0.6;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes travel {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

@keyframes now {
  from {
    left: 62%;
  }

  to {
    left: 84%;
  }
}

@keyframes halo {
  from {
    opacity: 0.7;
    transform: scale(0.85);
  }

  to {
    opacity: 0;
    transform: scale(1.5);
  }
}

@keyframes pan {
  to {
    background-position: 0 0, 0 0, 64px 64px, 64px 64px;
  }
}

@keyframes header-frost {
  from {
    border-bottom-color: transparent;
    background-color: transparent;
    -webkit-backdrop-filter: saturate(100%) blur(0);
    backdrop-filter: saturate(100%) blur(0);
  }
}

@keyframes lift-sm {
  to {
    translate: 0 -4rem;
  }
}

@keyframes lift-lg {
  to {
    translate: 0 -10rem;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(2.5rem);
  }
}

@keyframes chaos-a {
  from {
    opacity: 0;
    transform: translate(-2.5rem, 4rem) rotate(-7deg) scale(0.94);
  }
}

@keyframes chaos-b {
  from {
    opacity: 0;
    transform: translate(0, 5rem) rotate(5deg) scale(0.94);
  }
}

@keyframes chaos-c {
  from {
    opacity: 0;
    transform: translate(2.5rem, 4rem) rotate(9deg) scale(0.94);
  }
}

@keyframes chaos-d {
  from {
    opacity: 0;
    transform: translate(-2rem, 4.5rem) rotate(6deg) scale(0.94);
  }
}

@keyframes chaos-e {
  from {
    opacity: 0;
    transform: translate(1rem, 5rem) rotate(-6deg) scale(0.94);
  }
}

@keyframes chaos-f {
  from {
    opacity: 0;
    transform: translate(2.5rem, 4rem) rotate(-9deg) scale(0.94);
  }
}

@keyframes strike {
  from {
    background-size: 0% 1.5px;
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(3rem) scale(0.95);
  }
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(2rem) scale(0.97);
  }
}

@keyframes type-in {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes hit-text {
  from {
    color: var(--text);
    font-weight: 400;
  }
}

@keyframes seg-slide {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(200%);
  }
}

@keyframes seg-label-off {
  from {
    color: var(--seg-on);
  }

  to {
    color: var(--text);
  }
}

@keyframes seg-label-on {
  from {
    color: var(--text);
  }
}

@keyframes swap-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-0.75rem);
  }
}

@keyframes swap-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(1.5rem);
  }
}

@keyframes ring-in {
  from {
    box-shadow: 0 0 0 2px var(--vcard-bg), 0 0 0 2px #12b886;
  }
}

@keyframes press {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.95);
    filter: brightness(1.3);
  }
}

@keyframes stamp {
  from {
    opacity: 0;
    transform: scale(1.8) rotate(-8deg);
  }
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-1.5rem) scale(0.95);
  }
}

@keyframes drop-back {
  from {
    opacity: 0;
    transform: translateY(-1.5rem) scale(0.92);
  }
}

@keyframes switch-bg {
  from {
    background-color: #c7c7cc;
  }
}

@keyframes switch-knob {
  from {
    transform: translateX(0);
  }
}

@keyframes band-grow {
  from {
    transform: scaleX(0.15);
    opacity: 0.4;
  }
}

@keyframes mark-in {
  from {
    opacity: 0;
    scale: 0.6;
    rotate: -12deg;
  }
}
