/* biome-ignore-all lint/style/noDescendingSpecificity: section blocks are ordered on purpose. */
/*
 * Landing page. The page is one evening: it starts at 6:58 PM in a lit living room and ends at
 * 8:30 PM in the dark. Without script, or with reduced motion, every section is a plain static
 * layout; `html.motion` (set by home.js) switches on the start states that GSAP animates.
 */

.home {
  --orange-text: #c24d12; /* large orange type: 4.6:1 on cream, 3.9:1 on the peach panel */
  --dusk: #2a2036;
  --deep-night: #0b0806;
  --night-line: #2e221a;
  --night-link: #f0a258;
  --night-text: #c9c0b2; /* about 10:1 on the night backgrounds */
}

/* The header floats above the smooth-scroll wrapper on this page. */
.home .site-header {
  position: fixed;
  left: 0;
  right: 0;
}
.home .site-header.on-dark {
  background: rgba(11, 8, 6, 0.78);
}
.home .site-header.on-dark .brand,
.home .site-header.on-dark .nav a:not(.btn) {
  color: var(--cream);
}

.btn-link {
  min-height: 54px;
  padding: 0 6px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Clock: the evening's time, driven by scroll. Only shown when the page animates. */
.clock {
  display: none;
}
.motion .clock {
  position: fixed;
  left: var(--gutter);
  bottom: 20px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px 7px 7px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 900;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35);
}
.clock svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--cream);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.clock-h,
.clock-m {
  transform-origin: 16px 16px;
}
.clock-m {
  stroke: var(--zip);
}
.clock-ampm {
  font-size: 0.75rem;
  opacity: 0.75;
}

/* Phone frame */
.phone {
  position: relative;
  padding: 9px;
  border-radius: 46px;
  background: #1b130e;
  box-shadow:
    0 1px 0 #4a3628 inset,
    0 40px 70px -30px rgba(58, 42, 32, 0.55),
    0 14px 26px -14px rgba(58, 42, 32, 0.35);
}
.phone img {
  width: 100%;
  border-radius: 38px;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  background: #241912;
}

/* ---------- 6:58 PM: hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 120px 0 80px;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.4fr 0.6fr;
  }
}
.hero-time {
  font-weight: 800;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.hero-time span {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}
.hero-title {
  font-size: clamp(3rem, 6.6vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-bottom: 0.32em;
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title {
    visibility: hidden;
  }
}
.hero-title .line {
  display: block;
}
.hero-title .line-accent {
  color: var(--orange-text);
}
.lede {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 31rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 30px;
}
.hero-phone {
  position: relative;
  justify-self: center;
  width: min(330px, 72vw);
}
.waves {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160%;
  transform: translate(-50%, -50%);
  overflow: visible;
  pointer-events: none;
}
.waves circle {
  fill: none;
  stroke: var(--zip-deep);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: 200px 200px;
}

/* ---------- 7:00 PM: the TV scene ---------- */
.scene {
  position: relative;
}
.scene-stage {
  position: relative;
  min-height: 100svh;
  padding: 110px var(--gutter) 90px;
  display: grid;
  gap: 48px;
  align-items: center;
  background: radial-gradient(90% 70% at 70% 35%, #fff1db 0%, var(--bg-deep) 55%, #f6dcb8 100%);
  overflow: hidden;
}
.scene-dark {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 62% 50%, #2a1608 0%, var(--deep-night) 75%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
@media (min-width: 960px) {
  .scene-stage {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  }
}
.captions {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
.cap {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 15em;
}
.cap-time {
  display: block;
  width: max-content;
  margin-bottom: 14px;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.9rem;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.motion .captions {
  gap: 0;
}
.motion .cap {
  grid-area: 1 / 1;
  opacity: 0;
}
.motion .cap:first-child {
  opacity: 1;
}

.screens {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  justify-self: center;
  margin-bottom: 70px;
}
.tv {
  padding: 14px;
  border-radius: 30px;
  background: linear-gradient(160deg, #3b2a1f, #22170f);
  box-shadow:
    0 1px 0 #5a4232 inset,
    0 50px 80px -40px rgba(58, 42, 32, 0.7);
}
.tv-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: #0d0907;
}
.show {
  position: absolute;
  inset: 0;
  background: linear-gradient(#69cdf2, #b9ecfa 70%);
  transform-origin: 50% 50%;
}
.show-sun {
  position: absolute;
  right: 12%;
  top: 12%;
  width: 17%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffd35c;
  box-shadow: 0 0 0 10px rgba(255, 211, 92, 0.35);
}
.show-cloud {
  position: absolute;
  height: 9%;
  border-radius: 999px;
  background: #fff;
}
.show-cloud::before {
  content: "";
  position: absolute;
  left: 22%;
  bottom: 40%;
  width: 45%;
  height: 160%;
  border-radius: 50%;
  background: #fff;
}
.show-cloud.c1 {
  left: 10%;
  top: 22%;
  width: 22%;
}
.show-cloud.c2 {
  left: 48%;
  top: 34%;
  width: 15%;
}
.show-hill {
  position: absolute;
  border-radius: 50%;
}
.show-hill.h3 {
  left: -20%;
  right: 30%;
  bottom: -38%;
  height: 80%;
  background: #8ed16a;
}
.show-hill.h2 {
  left: 30%;
  right: -30%;
  bottom: -44%;
  height: 84%;
  background: #6cbf55;
}
.show-hill.h1 {
  left: -10%;
  right: -10%;
  bottom: -62%;
  height: 90%;
  background: #4fa646;
}
.show-ball {
  position: absolute;
  left: 30%;
  bottom: 18%;
  width: 11%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffb0c2, #ff5f86 60%, #e2466e);
}
.tv-flash {
  position: absolute;
  inset: 0;
  background: #fffaf0;
  opacity: 0;
}
.tv-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fffaf0;
  box-shadow: 0 0 18px 6px rgba(255, 243, 220, 0.8);
  opacity: 0;
}
.tv-glass {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 38%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.tv-stand {
  width: 34%;
  height: 22px;
  margin: 0 auto;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(#22170f, #3b2a1f);
}
.scene-phone {
  position: absolute;
  right: -5%;
  bottom: -26%;
  width: 34%;
  padding: 6px;
  border-radius: 30px;
}
.scene-phone img {
  border-radius: 25px;
}
.scene-phone .ph:not(.ph-sleep) {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(100% - 12px);
  opacity: 0;
}
.motion .scene-phone .ph-ring {
  opacity: 1;
}
.motion .scene-phone .ph-sleep {
  opacity: 0;
}
.tap {
  position: absolute;
  left: 50%;
  top: 73%;
  width: 34%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid var(--cream);
  opacity: 0;
  pointer-events: none;
}

/* ---------- 7:02 PM: what it will never do ---------- */
.never {
  padding: 130px 0 110px;
}
.never-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 36px;
}
.never-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 2px solid var(--ink);
}
.never-list li {
  display: grid;
  gap: 8px 40px;
  align-items: center;
  padding: 22px 0;
  border-top: 2px solid var(--ink);
}
@media (min-width: 900px) {
  .never-list li {
    grid-template-columns: 1fr 21rem;
  }
}
.nv {
  justify-self: start;
  font-size: clamp(1.7rem, 4.2vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
/* The strike is a background on the inline text, cloned onto every wrapped line, so it always
   crosses the words rather than falling between two lines. */
.nv-text {
  background-image: linear-gradient(var(--zip), var(--zip));
  background-repeat: no-repeat;
  background-position: 0 58%;
  background-size: 100% 0.11em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.motion .nv-text {
  background-size: 0% 0.11em;
}
.never-list small {
  font-size: 1rem;
  color: var(--ink-soft);
}

/* ---------- 7:05 to 8:05 PM: the evening ---------- */
.panel {
  padding: 110px 0;
}
.panel-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 8px 56px;
  align-items: center;
}
@media (min-width: 960px) {
  .panel-inner {
    grid-template-columns: 1fr 0.8fr;
  }
  .panel-copy {
    grid-column: 1;
  }
  .panel-inner > .char,
  .panel-inner > .panel-visual {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }
}
.panel h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  max-width: 13em;
}
.panel h3 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  margin-bottom: 0.3em;
}
.panel p {
  font-size: 1.15rem;
  max-width: 30rem;
}
.panel .panel-time {
  font-size: clamp(3.6rem, 8.4vw, 8rem);
  white-space: nowrap;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  margin: 0 0 0.12em;
  max-width: none;
}
.panel-time span {
  font-size: 0.34em;
  letter-spacing: 0;
  margin-left: 0.15em;
}
.panel-hint {
  font-weight: 800;
  color: var(--accent-text);
  display: none;
}
.panel-char {
  width: min(560px, 92vw);
}
.panel-phone {
  width: min(290px, 66vw);
}
.panel-intro {
  background: var(--bg);
}
.panel-zip {
  background: #ffe2c9;
}
.panel-zip .panel-time {
  color: var(--orange-text);
}
.panel-chomp {
  background: #e4f3cf;
}
.panel-chomp .panel-time {
  color: #4d7a22;
}
.panel-lumi {
  background: var(--dusk);
  color: var(--cream);
}
.panel-lumi p {
  color: #d8cde3;
}
.panel-lumi .panel-time {
  color: var(--lumi);
}
.panel-lumi .phone {
  background: #000;
  box-shadow: 0 40px 90px -30px rgba(217, 119, 6, 0.45);
}

/* Horizontal mode (desktop with motion): the track scrolls sideways while the section is pinned. */
.evening.is-horizontal {
  height: 100svh;
  overflow: hidden;
}
.evening.is-horizontal .evening-track {
  display: flex;
  width: max-content;
  height: 100%;
}
.evening.is-horizontal .panel {
  flex: none;
  width: 100vw;
  height: 100%;
  padding: 90px 0 40px;
  display: flex;
  align-items: center;
}
.evening.is-horizontal .panel-hint {
  display: block;
}

/* ---------- 8:10 PM: breathe ---------- */
.breathe {
  background: var(--deep-night);
  color: var(--night-text);
  padding: 140px 0;
  overflow: hidden;
}
.breathe-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 900px) {
  .breathe-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.orb-wrap {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(420px, 82vw);
  aspect-ratio: 1;
}
.orb,
.orb-glow {
  grid-area: 1 / 1;
  border-radius: 50%;
}
.orb {
  width: 62%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 42% 38%, #f0a23a 0%, var(--amber) 45%, #8f4307 100%);
}
.orb-glow {
  width: 100%;
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(217, 119, 6, 0.45) 0%,
    rgba(120, 53, 15, 0.25) 45%,
    transparent 70%
  );
}
.orb-word {
  position: absolute;
  bottom: -8px;
  margin: 0;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--night-text);
}
.breathe h2 {
  color: var(--cream);
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
}
.breathe p {
  font-size: 1.15rem;
  max-width: 30rem;
}
.breathe-count {
  display: none;
  font-weight: 800;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}
.motion .breathe-count {
  display: block;
}

/* ---------- 8:20 PM: pricing and questions, after dark ---------- */
.pricing,
.faq-section {
  background: var(--deep-night);
  color: var(--night-text);
}
.pricing {
  padding: 120px 0 110px;
}
.pricing h2,
.faq-section h2 {
  color: var(--cream);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  max-width: 14em;
  margin-bottom: 44px;
}
.pricing a,
.faq-section a {
  color: var(--night-link);
}
.plans {
  display: grid;
  gap: 20px;
}
@media (min-width: 760px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}
.plan {
  border: 2px solid #4a3828;
  border-radius: 30px;
  padding: 34px 30px 30px;
}
.plan-pro {
  border-color: var(--amber);
  background: #170f0a;
}
.plan-name {
  font-weight: 900;
  color: var(--cream);
  font-size: 1.2rem;
  margin: 0;
}
.price {
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--cream);
  margin: 6px 0 0;
}
.price small {
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--night-text);
}
.plan-sub {
  margin: 0;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  border-top: 1px solid var(--night-line);
}
.plan li {
  padding: 11px 0;
  border-bottom: 1px solid var(--night-line);
}
.fine {
  font-size: 0.9rem;
  margin-top: 26px;
  max-width: 46rem;
}
.faq-section {
  padding: 40px 0 140px;
}
.faq-grid {
  display: grid;
  gap: 10px 64px;
}
@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
}
.faq details {
  border-bottom: 1px solid var(--night-line);
}
.faq details:first-child {
  border-top: 1px solid var(--night-line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 22px 40px 22px 0;
  color: var(--cream);
  font-weight: 800;
  font-size: 1.15rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--night-link);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq details p {
  padding-bottom: 8px;
  max-width: 38rem;
}

/* ---------- 8:30 PM: good night ---------- */
.goodnight {
  position: relative;
  background: #050403;
  color: var(--night-text);
  text-align: center;
  padding: clamp(64px, 9svh, 120px) 0 40px;
  overflow: hidden;
}
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff3dc 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 64%, #fff3dc 50%, transparent 51%),
    radial-gradient(2px 2px at 41% 15%, #fbe194 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 40%, #fff3dc 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 67% 12%, #fff3dc 50%, transparent 51%),
    radial-gradient(1px 1px at 76% 58%, #fff3dc 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 30%, #fbe194 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 78%, #fff3dc 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 93% 82%, #fff3dc 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 88%, #fff3dc 50%, transparent 51%);
  opacity: 0.8;
  will-change: opacity;
}
/* A few larger stars with a soft halo. The halo is part of each gradient: a blur filter over
   the whole sky costs frames on high-refresh screens. */
.stars::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      9px 9px at 18% 36%,
      rgba(251, 225, 148, 1) 0 18%,
      rgba(251, 225, 148, 0.28) 32%,
      transparent 70%
    ),
    radial-gradient(
      9px 9px at 82% 18%,
      rgba(255, 243, 220, 1) 0 18%,
      rgba(255, 243, 220, 0.28) 32%,
      transparent 70%
    ),
    radial-gradient(
      9px 9px at 62% 76%,
      rgba(255, 243, 220, 1) 0 18%,
      rgba(255, 243, 220, 0.28) 32%,
      transparent 70%
    ),
    radial-gradient(
      9px 9px at 6% 52%,
      rgba(255, 243, 220, 1) 0 18%,
      rgba(255, 243, 220, 0.28) 32%,
      transparent 70%
    ),
    radial-gradient(
      9px 9px at 47% 6%,
      rgba(251, 225, 148, 1) 0 18%,
      rgba(251, 225, 148, 0.28) 32%,
      transparent 70%
    ),
    radial-gradient(
      9px 9px at 95% 62%,
      rgba(251, 225, 148, 1) 0 18%,
      rgba(251, 225, 148, 0.28) 32%,
      transparent 70%
    ),
    radial-gradient(
      9px 9px at 24% 8%,
      rgba(255, 243, 220, 1) 0 18%,
      rgba(255, 243, 220, 0.28) 32%,
      transparent 70%
    ),
    radial-gradient(
      9px 9px at 72% 44%,
      rgba(255, 243, 220, 1) 0 18%,
      rgba(255, 243, 220, 0.28) 32%,
      transparent 70%
    );
}
.goodnight::after {
  content: "";
  position: absolute;
  left: 50%;
  top: clamp(40px, 6svh, 90px);
  width: 420px;
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(217, 119, 6, 0.16), transparent);
  pointer-events: none;
}
.goodnight-inner {
  z-index: 1;
  position: relative;
}
.gn-lumi {
  width: clamp(110px, 16svh, 200px);
  margin: 0 auto;
  filter: brightness(0.85) sepia(0.2);
}
.gn-time {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.goodnight h2 {
  color: var(--cream);
  font-size: clamp(3.6rem, min(13vw, 16svh), 10rem);
  letter-spacing: -0.055em;
  margin-bottom: 0.15em;
}
.goodnight p {
  font-size: 1.15rem;
  margin: 0 auto 30px;
}
.home .site-footer {
  background: #050403;
  color: var(--night-text);
}
.home .site-footer .brand {
  color: var(--cream);
}
@media (max-width: 959px) {
  .panel-inner > .char,
  .panel-inner > .panel-visual {
    margin: 28px auto 0;
  }
}

/* Rive characters. The poster image sits where the artboard draws the character, so the swap to
   the live canvas does not jump. */
.char {
  position: relative;
  aspect-ratio: 1;
}
.char img {
  position: absolute;
  left: 21%;
  bottom: 5%;
  width: 58%;
  transition: opacity 0.5s ease;
}
.char canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.char.is-live canvas {
  opacity: 1;
}
.char.is-live img {
  opacity: 0;
}
.char.is-live {
  cursor: pointer;
}
.panel-visual {
  position: relative;
  width: min(300px, 66vw);
}
.panel-visual .panel-phone {
  width: 100%;
}
.panel-visual .char {
  position: absolute;
  width: 82%;
  left: -52%;
  bottom: -10%;
  filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.18));
}
@media (max-width: 959px) {
  .panel-visual {
    margin: 28px auto 0;
    left: 14%;
  }
  .panel-visual .char {
    width: 64%;
    left: -40%;
  }
}

/* The living room around the TV: floor, a lit floor lamp and a plant. They sit under the dark
   layer, so the room dims with the screen. */
.captions {
  z-index: 3;
}
.screens {
  z-index: 2;
}
.room {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16%;
  background: linear-gradient(#f3d3a8, #eecb9c);
  box-shadow: 0 -1px 0 #e6c08f;
}
.prop {
  position: absolute;
  bottom: 9%;
  height: auto;
}
.prop-lamp {
  right: max(10px, 2vw);
  height: 74%;
  width: auto;
}
.prop-plant {
  left: max(10px, 1.6vw);
  height: 20%;
  width: auto;
  bottom: 6%;
}
.lamp-glow {
  position: absolute;
  right: calc(max(10px, 2vw) - 170px);
  top: 4%;
  width: 520px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 214, 150, 0.75) 0%,
    rgba(255, 214, 150, 0.25) 40%,
    transparent 68%
  );
}
@media (max-width: 959px) {
  .prop-plant {
    display: none;
  }
  .prop-lamp {
    display: none;
  }
  .lamp-glow {
    width: 320px;
    left: -170px;
    top: 30%;
  }
  .floor {
    height: 12%;
  }
}

/* ---------- Review fixes ---------- */

/* Store buttons: the App Store links out; Android is shown but switched off. */
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: inherit;
  gap: 12px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px 0 16px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  font: 800 1.2rem/1 var(--font);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.store > span {
  display: grid;
  gap: 3px;
  text-align: left;
}
.store small {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.store-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex: none;
}
.store-apple {
  background: #15100b;
  color: #fff;
  box-shadow: 0 5px 0 #000;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.store-apple:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #000;
}
.store-apple:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #000;
}
.store-android {
  border-color: #cdbba3;
  color: #6f5f4d;
  cursor: not-allowed;
  user-select: none;
}
.stores-night {
  justify-content: center;
}
.stores-night .store-apple {
  background: var(--cream);
  color: #15100b;
  box-shadow: 0 5px 0 #b9a689;
}
.stores-night .store-apple:hover {
  box-shadow: 0 7px 0 #b9a689;
}
.stores-night .store-apple:active {
  box-shadow: 0 2px 0 #b9a689;
}
.stores-night .store-android {
  border-color: #5a4632;
  color: #a8957c;
}

/* Footer links get full-size tap targets. */
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* The clock hides over the footer, and moves under the header on narrower screens. */
.motion .clock {
  transition: opacity 0.3s ease;
}
.motion .clock.is-hidden {
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 1099px) {
  .motion .clock {
    top: 15px;
    z-index: 25;
    bottom: auto;
    left: auto;
    right: var(--gutter);
    padding: 4px 13px 4px 4px;
    box-shadow: 0 0 0 1px rgba(255, 243, 220, 0.18);
    font-size: 0.85rem;
  }
  .clock svg {
    width: 24px;
    height: 24px;
  }
}

/* The evening's first panel is short, so Clean up arrives sooner. */
.evening.is-horizontal .panel-intro {
  width: 62vw;
}
.evening.is-horizontal .panel-intro .panel-inner {
  grid-template-columns: 1fr;
  max-width: none;
  margin: 0;
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.evening.is-horizontal .panel-intro h2 {
  max-width: 16em;
}

/* Without motion the scene shows its end state: the TV is off and the call is on the phone. */
html:not(.motion) .show {
  visibility: hidden;
}

@media (max-width: 959px) {
  .hero {
    padding: 96px 0 56px;
    min-height: 0;
  }
  .hero-grid {
    gap: 36px;
  }
  .hero-actions {
    margin-top: 22px;
  }
  .hero-phone {
    width: min(280px, 70vw);
  }
  .scene-stage {
    align-content: center;
    gap: 36px;
    padding-bottom: 150px;
  }
  .screens {
    width: 74%;
    justify-self: start;
    margin-bottom: 0;
  }
  .scene-phone {
    width: 58%;
    right: -28%;
    bottom: -62%;
    padding: 5px;
    border-radius: 26px;
  }
  .scene-phone img {
    border-radius: 21px;
  }
  .scene-phone .ph:not(.ph-sleep) {
    top: 5px;
    left: 5px;
    width: calc(100% - 10px);
  }
}

/* On narrower screens the clock takes the header's right-hand slot. From 820px the header button
   still fits, to the left of it. */
@media (max-width: 819px) {
  .motion .site-header .btn {
    display: none;
  }
}
@media (min-width: 820px) and (max-width: 1099px) {
  .motion .site-header .nav {
    padding-right: 136px;
  }
}
@media (min-width: 600px) and (max-width: 959px) {
  .screens {
    width: 66%;
    max-width: 520px;
  }
  .scene-phone {
    width: 40%;
    right: -14%;
    bottom: -34%;
  }
}

/* Headings never end on a single stranded word. */
h1,
h2,
h3,
.nv,
.cap {
  text-wrap: balance;
}

/* Portrait tablets have room for the lamp beside the TV, so the room is not left bare. */
@media (min-width: 600px) and (max-width: 959px) {
  .prop-lamp {
    display: block;
    height: 46%;
  }
  .lamp-glow {
    left: auto;
    right: -120px;
    top: 22%;
    width: 420px;
  }
}

/* ---------- Research: what the design follows ---------- */
.research {
  padding: 20px 0 120px;
}
.research h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 16em;
  margin-bottom: 18px;
}
.research-lede {
  font-size: 1.15rem;
  max-width: 40rem;
  color: var(--ink-soft);
  margin: 0 0 44px;
}
.findings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 36px;
  counter-reset: finding;
}
@media (min-width: 900px) {
  .findings {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}
.finding {
  counter-increment: finding;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}
.finding::before {
  content: "0" counter(finding);
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}
.finding-what {
  font-weight: 900;
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  line-height: 1.22;
  margin: 0 0 16px;
  text-wrap: pretty;
}
.finding-so {
  margin: 0 0 18px;
  font-size: 1.05rem;
}
.finding-src {
  margin: auto 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.finding-src a,
.sources a {
  color: var(--accent-text);
  font-weight: 800;
}
/* The citation mark gets a full-size tap area without stretching its line. */
.finding-src a {
  display: inline-block;
  padding: 12px 8px;
  margin: -12px -2px;
  text-decoration: none;
}
.sources {
  margin: 48px 0 0;
  padding: 22px 0 0 1.4em;
  border-top: 1px solid rgba(58, 42, 32, 0.2);
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: grid;
  gap: 8px;
}
.sources a {
  font-weight: 700;
  text-underline-offset: 3px;
}
