/* ===========================================================================================
   Nanabee website, flat look (2026-11-06). One open page in the app's colour, no cards or
   outlines: large clean type, phones that carry the pictures, and the app's name huge and pale
   behind the hero. Every page uses it since 2026-11-06 (styles.css, the old look, is gone).
   =========================================================================================== */

:root {
  --font:
    -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  --display: var(--font);
  --bg: #fbfaf7;
  --hero-top: #f1efe9;
  --text: #16151f;
  --muted: #5f5d6e;
  --line: rgba(22, 21, 31, 0.1);
  --soft: rgba(22, 21, 31, 0.04);
  --accent: #6e61d4;
  --on-accent: #fff;
  --word: rgba(22, 21, 31, 0.05);
  color-scheme: light dark;
}

/* Sleep lives at night, whatever the setting, like the app's default. */
body.sleep-colors {
  --bg: #10122c;
  --hero-top: #23266a;
  --text: #f3f2fb;
  --muted: #a9a7c8;
  --line: rgba(255, 255, 255, 0.1);
  --soft: rgba(255, 255, 255, 0.05);
  --accent: #b3a9ff;
  --on-accent: #15173a;
  --word: rgba(179, 169, 255, 0.07);
  color-scheme: dark;
}

/* Names: the app's sage, in daylight. */
body.names-colors {
  --bg: #eef5ef;
  --hero-top: #d5e9da;
  --text: #13261c;
  --muted: #4d6355;
  --line: rgba(19, 38, 28, 0.12);
  --soft: rgba(19, 38, 28, 0.05);
  --accent: #3f8a5a;
  --word: rgba(63, 138, 90, 0.13);
  --screen: #e2efe5;
  color-scheme: light;
}

/* Moments: the app's peach, in daylight. */
body.moments-colors {
  --bg: #fff5ee;
  --hero-top: #ffdcc6;
  --text: #2b1a12;
  --muted: #6c5244;
  --line: rgba(43, 26, 18, 0.12);
  --soft: rgba(43, 26, 18, 0.05);
  --accent: #c8643a;
  --word: rgba(200, 100, 58, 0.13);
  --screen: #fff3ea;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Links to a heading (#pro, the guide contents) stop below the sticky header. */
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(42px, 6.4vw, 84px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 18px 0 22px;
}

h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  margin: 0 0 16px;
}

h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--accent);
}

img {
  max-width: 100%;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.eyebrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 14px;
}

.lead {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 34em;
}

.hint {
  color: var(--muted);
}

.note {
  font-size: 15px;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
}
.pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7bd88f;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

/* --- Header ---------------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s,
    background-color 0.3s;
}
.site-header.scrolled {
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom-color: var(--line);
}
/* At the top the header floats over the hero, which starts under it. */
.app-hero {
  margin-top: -68px;
  padding-top: 140px !important;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.site-header .home img {
  display: block;
  height: 30px;
  width: auto;
}
.site-header nav {
  display: flex;
  gap: 28px;
  margin: 0 auto;
}
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
}
.site-header nav a:hover,
.site-header nav a[aria-current='page'] {
  color: var(--text);
  border-bottom-color: currentColor;
}

/* --- Hero: the words on the left, two phones on the right, the app's name huge behind ---------- */

.app-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--hero-top), var(--bg));
  /* The phones fade out at the bottom instead of being cut by the hero's edge. */
  -webkit-mask-image: linear-gradient(#000 calc(100% - 120px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 120px), transparent);
  padding: 72px 0 0;
  min-height: calc(100svh - 68px);
  display: flex;
  flex-direction: column;
}
.app-hero .wrap.with-phones {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}
.app-hero .hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 16vh;
}
.app-hero .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}
.hero-phones {
  position: relative;
  align-self: stretch;
  min-height: 600px;
}
.hero-phones .device {
  --w: 250px;
  position: absolute;
}
.hero-phones .device:nth-child(1) {
  left: 2%;
  top: 14%;
  z-index: 1;
}
.hero-phones .device:nth-child(2) {
  right: 0;
  top: 4%;
}
.hero-word {
  position: absolute;
  left: 0;
  right: 0;
  /* The whole word shows, standing on the hero's bottom edge. */
  bottom: 0.2em;
  z-index: 0;
  text-align: center;
  font-weight: 700;
  /* --letters (set on the element) keeps a long name like "Moments" inside the page. */
  font-size: min(400px, calc(150vw / var(--letters, 5)));
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--word);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
/* The word sits outside the hero and stays fixed behind the whole page while the content scrolls
   over it; on the app pages the hero's colour moves to the page so the word shows through (the
   home page has its own colours, further down). */
body > .hero-word {
  position: fixed;
}
body:not(.home-colors):has(> .hero-word) {
  background:
    linear-gradient(180deg, var(--hero-top), var(--bg) 100svh) no-repeat,
    var(--bg);
}
body:not(.home-colors):has(> .hero-word) .app-hero {
  background: transparent;
}
body:has(> .hero-word) .landing,
body:has(> .hero-word) .site-footer {
  position: relative;
  z-index: 1;
}
.hero-bee {
  position: absolute;
  z-index: 2;
  right: 40%;
  top: 110px;
  width: 110px;
  height: auto;
  animation: buzz 3s ease-in-out infinite;
}
@keyframes buzz {
  25% {
    transform: translate(6px, -6px) rotate(3deg);
  }
  75% {
    transform: translate(-6px, -4px) rotate(-3deg);
  }
}

/* --- Phones drawn in CSS around a bare screen (540×1109) -------------------------------------- */

.device {
  /* --w: the screen's width. Everything else is a share of it, so a small phone keeps the same
     shape as a big one: the band for the camera above the screen, the bezel and the corners. */
  --island: calc(var(--w, 260px) * 0.1);
  --bezel: calc(var(--w, 260px) * 0.034);
  --corner: calc(var(--w, 260px) * 0.15);
  position: relative;
  width: var(--w, 260px);
  height: calc(var(--w, 260px) * 2.0537 + var(--island));
  min-height: 0;
  box-sizing: content-box;
  border: var(--bezel) solid #0b0b12;
  border-radius: var(--corner);
  background: #0b0b12;
  outline: 1.5px solid rgba(255, 255, 255, 0.14);
  outline-offset: 0;
  box-shadow:
    0 50px 90px -30px rgba(0, 0, 0, 0.55),
    0 20px 40px -20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.device::after {
  /* The camera island. */
  content: '';
  position: absolute;
  top: calc(var(--island) * 0.35);
  left: 50%;
  translate: -50% 0;
  width: 30%;
  height: calc(var(--island) * 0.85);
  border-radius: 999px;
  background: #0b0b12;
  z-index: 3;
}
.device .glass {
  height: 100%;
  border-radius: calc(var(--corner) - var(--bezel));
  overflow: hidden;
  padding-top: var(--island);
  background: var(--screen, #1b1c3c);
}
.device img,
.device video {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- Sections -------------------------------------------------------------------------------- */

.app-content > section {
  margin: 0 0 160px;
}
.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

/* --- Demo video ------------------------------------------------------------------------------ */

.demo {
  position: relative;
  margin-top: 40px !important;
}
.demo video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  background: #000;
}
.demo.tall video {
  width: auto;
  max-width: 100%;
  height: min(78svh, 640px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  object-fit: cover;
}
.sound {
  position: absolute;
  left: 18px;
  top: 18px;
  display: none;
  align-items: center;
  gap: 8px;
  font: 600 14px var(--font);
  color: #16151f;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
}
.demo.muted .sound {
  display: inline-flex;
}

/* --- Playable bits ---------------------------------------------------------------------------- */

.play {
  text-align: center;
}
.play .hint {
  max-width: 560px;
  margin: 0 auto;
}

/* --- The story (site.js): the feature panels become steps that scroll past one big phone in
   front; the next phone slides in with each step. The phone runs off the bottom of the screen. -- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
}
.story-steps {
  padding: 10vh 0 30vh;
}
.story .step,
.feature {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 92vh;
}
.story .step {
  opacity: 0.2;
  transition: opacity 0.5s;
}
.story .step.active {
  opacity: 1;
}
.story .step > img {
  display: none;
}
.feature > img,
.feature > video {
  /* Without JavaScript each panel shows its picture or its video. */
  max-width: 420px;
  border-radius: 28px;
}
.feature p {
  color: var(--muted);
  font-size: 18px;
  max-width: 32em;
}
.feature p strong,
.features strong {
  color: var(--text);
  font-weight: 600;
}
.features {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  max-width: 34em;
}
.features li {
  padding: 12px 0 12px 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
  position: relative;
}
.features li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 19px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  rotate: -45deg;
}
.sound-toggle {
  all: unset;
  cursor: pointer;
  margin-top: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-size: 15px;
  font-weight: 600;
}
.sound-toggle:hover {
  background: color-mix(in srgb, var(--text) 10%, transparent);
}
.sound-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.story-phone {
  /* --w: the phone's width; --enter (site.js): 0 to 1 while the story scrolls into view. */
  /* Small enough that the whole phone fits under the header, with a little room below. */
  --w: min(430px, 32vw, calc((97svh - 100px) / 2.22));
  position: sticky;
  top: 0;
  height: 100svh;
  /* Not clipped: the phone fits whole, and its shadow and glow fade out past the story's end. */
  overflow: visible;
  display: flex;
  justify-content: center;
  padding-top: calc(68px + 3svh);
}
.story-phone::before {
  /* A soft glow behind the phone. */
  content: '';
  position: absolute;
  inset: 6% 0 -10%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--accent) 22%, transparent),
    transparent
  );
  pointer-events: none;
}
.stack {
  position: relative;
  width: calc(var(--w) * 1.068);
  height: calc(var(--w) * 2.0537 + var(--w) * 0.1 + var(--w) * 0.068);
  flex: none;
  scale: calc(0.8 + 0.2 * var(--enter, 1));
  translate: 0 calc((1 - var(--enter, 1)) * 14%);
  transform-origin: 50% 0;
}
.stack .device {
  position: absolute;
  left: 0;
  top: 0;
}
/* The screens sit one under the other and scroll on to the active step's screen. */
.stack .strip {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: translate 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}
.stack .strip > * {
  flex: 0 0 100%;
  min-height: 0;
}
/* The sound button for the video, on the phone itself. */
.phone-sound {
  position: absolute;
  left: 50%;
  bottom: 22%;
  translate: -50% 0;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #16151f;
  font: 600 16px var(--font);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  white-space: nowrap;
}
.phone-sound[hidden] {
  display: none;
}
.phone-sound:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.stack .device .glass {
  border-radius: calc(var(--corner) - var(--bezel));
}
.stack .device video,
.stack .device img {
  object-fit: cover;
  object-position: top;
}
.story-dots {
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.story-dots button {
  all: unset;
  cursor: pointer;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--text);
  opacity: 0.25;
  transition:
    height 0.4s,
    opacity 0.4s;
}
.story-dots button[aria-current='true'] {
  height: 26px;
  opacity: 1;
}

/* --- Plain text blocks (history, Free and Pro) ------------------------------------------------- */

.info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.info h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  grid-column: 1;
}
.info p {
  grid-column: 2;
  color: var(--muted);
  font-size: 18px;
}
.info h2 + p {
  /* Each heading sits beside its paragraph. */
  grid-row: span 1;
}
.info .note {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--soft);
  font-size: 15px;
}

/* --- Questions -------------------------------------------------------------------------------- */

.questions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  grid-template-rows: auto auto 1fr;
  gap: 0 64px;
  align-items: start;
}
.questions > .eyebrow,
.questions > h2,
.questions > .more-questions {
  grid-column: 1;
}
.questions > .faq {
  grid-column: 2;
  grid-row: 1 / span 3;
}
.more-questions {
  color: var(--muted);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child {
  border-top: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 500;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  transition: rotate 0.25s;
}
.faq details[open] summary::after {
  rotate: 45deg;
}
.faq details p {
  color: var(--muted);
  padding-bottom: 8px;
  max-width: 40em;
}

/* --- The other apps ------------------------------------------------------------------------- */

.apps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.apps .app {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-radius: 28px;
  background: var(--soft);
  color: inherit;
  text-decoration: none;
  transition: background 0.25s;
}
.apps .app:hover {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}
.apps .art img {
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 20px;
}
.apps .app p {
  color: var(--muted);
  margin-bottom: 8px;
}
.apps .more {
  font-weight: 600;
}

/* --- Footer ---------------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  color: var(--muted);
  font-size: 15px;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.site-footer img {
  height: 28px;
  width: auto;
}
.site-footer .title {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 10px;
}
.site-footer a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin: 6px 0;
}
.site-footer a:hover {
  color: var(--text);
}
.site-footer .social {
  display: flex;
  gap: 14px;
}
.site-footer .social a {
  margin: 0;
}
.site-footer .social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.site-footer .copy {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 40px;
}

/* --- The bee lands on the wordmark on the first visit of a session ------------------------- */

.bee-landing {
  position: fixed;
  z-index: 50;
  width: 70px;
  pointer-events: none;
  animation: bee-in 1.6s cubic-bezier(0.3, 0.7, 0.3, 1) forwards;
}
@keyframes bee-in {
  0% {
    transform: translate(70vw, 40vh) rotate(-20deg) scale(1.6);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  60% {
    transform: translate(30vw, 6vh) rotate(10deg) scale(1.2);
  }
  100% {
    transform: translate(var(--land-x, 0), var(--land-y, 0)) rotate(0) scale(1);
    opacity: 0;
  }
}

/* --- Coming into view (site.js adds .in) ------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    translate: 0 32px;
    transition:
      opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
      translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
      scale 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--d, 0ms);
  }
  .js [data-reveal='scale'] {
    scale: 0.96;
  }
  .js [data-reveal].in {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
  .hero-phones .device {
    animation: hero-phone 7s ease-in-out infinite;
  }
  .hero-phones .device:nth-child(2) {
    animation-delay: -3.5s;
  }
}
@keyframes hero-phone {
  50% {
    translate: 0 -14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-bee,
  .hero-phones::before {
    animation: none;
  }
  .stack .strip,
  .story .step {
    transition: none;
  }
}

/* --- Narrow screens ------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .wrap {
    padding: 0 20px;
  }
  .app-hero {
    min-height: 0;
  }
  .app-hero .wrap.with-phones {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .app-hero .hero-text {
    padding-bottom: 0;
  }
  .hero-phones {
    min-height: 430px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  .hero-phones .device {
    --w: 180px;
  }
  .app-hero {
    padding-top: 84px !important;
  }
  .app-hero h1 {
    margin-bottom: 12px;
  }
  /* App pages: no band of its own for the bee, which floats in the gap above the left phone. */
  .app-hero:not(.home-hero) .hero-bee {
    display: none;
  }
  .app-hero:not(.home-hero) .hero-phones::before {
    content: '';
    position: absolute;
    z-index: 2;
    left: 12%;
    top: 0;
    width: 72px;
    aspect-ratio: 360 / 220;
    background: url(/img/bee.png) center / contain no-repeat;
    animation: buzz 3s ease-in-out infinite;
  }
  /* The fixed word starts behind the hero text and site.js moves it down to the bottom edge
     while the hero scrolls away. */
  body > .hero-word {
    font-size: calc(175vw / var(--letters, 5));
    letter-spacing: -0.07em;
    top: 0;
    bottom: auto;
    transform: translateY(var(--y, 165px));
    will-change: transform;
  }
  .hero-bee {
    width: 72px;
    right: 20px;
    top: 80px;
  }
  .app-content > section {
    margin-bottom: 110px;
  }
  .story {
    grid-template-columns: 1fr;
    gap: 0;
  }
  /* The whole phone, about 40% of the screen high, so the text below still gets most of it. */
  .story-phone {
    --w: calc(40svh / 2.22);
    order: -1;
    top: 68px;
    z-index: 2;
    height: auto;
    margin: 0 -20px;
    padding: 8px 0 18px;
    overflow: visible;
    --band: var(--bg);
    background: var(--band);
  }
  /* A short fade under the band, so the text goes under the phone without a hard edge but stays
     readable right up to it. */
  .story-phone::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 16px;
    background: linear-gradient(var(--band), transparent);
    pointer-events: none;
  }
  .story-phone::before {
    display: none;
  }
  /* A short shadow that ends inside the band, so the band's edge never cuts it. */
  .story-phone .device {
    box-shadow: 0 14px 22px -10px rgba(0, 0, 0, 0.35);
  }
  .stack {
    scale: none;
    translate: none;
  }
  .story-dots {
    right: 14px;
  }
  .story-steps {
    padding: 2vh 0 6vh;
  }
  .story {
    margin-bottom: 72px !important;
  }
  .phone-sound {
    bottom: 16%;
    padding: 9px 14px;
    font-size: 13px;
  }
  /* On phones the text is read as it scrolls up under the phone, so it is never dimmed. */
  .story .step {
    opacity: 1;
    min-height: 50svh;
    justify-content: flex-start;
    padding-top: 12px;
  }
  .info,
  .questions,
  .apps {
    grid-template-columns: 1fr;
  }
  .info p,
  .info h2,
  .questions > *,
  .questions > .faq {
    grid-column: 1;
    grid-row: auto;
  }
  .info p {
    margin-bottom: 36px;
  }
  .apps .app {
    padding: 22px;
  }
  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
  .site-footer .copy {
    padding: 0 20px;
  }
}

@media (max-width: 760px) {
  .site-header nav {
    gap: 18px;
  }
  .site-header .home img {
    height: 24px;
  }
}

/* Five links (with Guides) still fit in one row on a 360 px phone. */
@media (max-width: 480px) {
  .site-header .wrap {
    gap: 14px;
  }
  .site-header nav {
    gap: 12px;
  }
  .site-header nav a {
    font-size: 14px;
  }
  .site-header .home img {
    height: 20px;
  }
}

/* The hero's label: the app icon with a short line beside it. */
.hero-label {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-label .eyebrow {
  margin: 0;
}

/* The band at the top for the camera stays solid, so the screen scrolling past does not show
   above the screen in front. */
.stack .device::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--island, 26px);
  z-index: 2;
  border-radius: calc(var(--corner) - var(--bezel)) calc(var(--corner) - var(--bezel)) 0 0;
  background: var(--screen, #1b1c3c);
}

/* ===========================================================================================
   Home page
   =========================================================================================== */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.actions .button {
  background: var(--accent);
  color: var(--on-accent);
}

/* In the hero: where the apps are coming, as a quiet line instead of a big pill. */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.soon::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7bd88f;
}

/* Home hero: the three apps as quick picks right under the headline. */
.picks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 18px;
}
.picks a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px 7px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.2s;
}
.picks a:hover {
  background: color-mix(in srgb, var(--text) 11%, transparent);
}
.picks img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

/* App pages, right after the hero: three reasons in a row and what is free, before the story. */
.glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 40px;
  padding: 36px 0 0;
  border-top: 1px solid var(--line);
}
.glance h3 {
  margin: 0 0 6px;
  font-size: 19px;
}
.glance p {
  margin: 0;
  color: var(--muted);
}
.glance .glance-price {
  grid-column: 1 / -1;
  padding-top: 18px;
  font-size: 15px;
}
.glance .glance-price strong,
.glance .glance-price a {
  color: var(--text);
}

/* Free and Pro side by side, each a short list, so the two are easy to compare. */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.plans h2 {
  grid-column: 1 / -1;
  margin-bottom: 16px;
}
.plans h3 {
  margin: 0 0 4px;
  font-size: 24px;
}
.plans .plan-price {
  margin: 0 0 16px;
  color: var(--muted);
}
.plans > div + div h3 {
  color: var(--accent);
}

/* Guides: the short answer and the contents come before the cover photo. */
.guide-toc {
  margin: 28px 0 36px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.guide-toc p {
  margin: 0 0 8px;
  font-weight: 600;
}
.guide-toc ol {
  margin: 0;
  padding-left: 22px;
}
.guide-toc li {
  margin: 4px 0;
}
.guide-toc a {
  color: var(--text);
}

/* Three phones, one per app, fanned out. */
.hero-phones.three .device {
  --w: 210px;
}
.hero-phones.three .device:nth-child(1) {
  left: 0;
  top: 18%;
  right: auto;
  rotate: -6deg;
  z-index: 1;
}
.hero-phones.three .device:nth-child(2) {
  left: 50%;
  translate: -50% 0;
  top: 4%;
  right: auto;
  z-index: 2;
}
.hero-phones.three .device:nth-child(3) {
  right: 0;
  left: auto;
  top: 18%;
  rotate: 6deg;
  z-index: 1;
}

.promises {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  padding: 28px 0 0;
  margin: 0 0 120px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.promises li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center .lead {
  margin: 0 auto;
}
.app-content > .section-head {
  margin-bottom: 0;
}

.promo {
  position: relative;
}
.promo video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #000;
  object-fit: cover;
}
.promo.tall video {
  width: auto;
  max-width: 100%;
  height: min(78svh, 640px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
}
.promo.muted .sound {
  display: inline-flex;
}

.feature h2 .app-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  vertical-align: -8px;
  margin-right: 6px;
}
.feature .button {
  margin-top: 20px;
  background: var(--accent);
  color: #fff;
}
.feature .features li:not(:has(strong)) {
  color: var(--text);
}

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.values > div {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.values .icon {
  font-size: 26px;
}
.values h3 {
  margin-top: 14px;
}
.values p {
  color: var(--muted);
  font-size: 16px;
}

.cta {
  position: relative;
  text-align: center;
  padding: 72px 24px 24px;
}
.cta .bee {
  width: 120px;
  height: auto;
  animation: buzz 3s ease-in-out infinite;
}
.cta h2 {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.035em;
  margin-top: 12px;
}
.cta .lead {
  margin: 0 auto;
}

@media (max-width: 900px) {
  .hero-phones.three .device {
    --w: 132px;
  }
  .values {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .promises {
    margin-bottom: 80px;
  }
}
@media (max-width: 560px) {
  .values {
    grid-template-columns: 1fr;
  }
  .glance {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 28px;
  }
  .glance .glance-price {
    padding-top: 6px;
  }
  .plans {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .picks a {
    font-size: 15px;
    padding-right: 14px;
  }
  .picks img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
}

/* ===========================================================================================
   Text pages (privacy, terms, 404): plain text on the page, easy to read
   =========================================================================================== */

body.text-page main {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
body.text-page main h1 {
  font-size: clamp(38px, 5vw, 60px);
  margin: 0 0 10px;
}
body.text-page .updated {
  color: var(--muted);
  font-size: 15px;
}
body.text-page main h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 48px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
body.text-page main h3 {
  font-size: 19px;
  margin-top: 28px;
}
body.text-page main p,
body.text-page main li {
  color: var(--muted);
}
body.text-page main strong {
  color: var(--text);
  font-weight: 600;
}
body.text-page main li {
  margin-bottom: 6px;
}
body.text-page .note {
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--soft);
}
.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.table-wrap table,
body.text-page main > table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
body.text-page th,
body.text-page td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
body.text-page th {
  color: var(--text);
  font-weight: 600;
  background: var(--soft);
}
body.text-page tr:last-child td {
  border-bottom: 0;
}
.not-found-bee {
  display: block;
  width: 150px;
  height: auto;
  margin: 24px 0 8px;
  animation: buzz 3s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .not-found-bee,
  .cta .bee {
    animation: none;
  }
}

/* The home hero's headline is longer, and its label icon is already the bee. */
.home-hero h1 {
  font-size: clamp(40px, 5.2vw, 72px);
}
.home-hero .hero-bee {
  display: none;
}

/* ===========================================================================================
   Testers page (only for the people who get the link; Serbian and English on one page)
   =========================================================================================== */

[data-lang='en'] .sr,
[data-lang='sr'] .en {
  display: none !important;
}
body.testers .wrap {
  max-width: 880px;
}
body.testers .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
body.testers .brand img {
  display: block;
  height: 30px;
  width: auto;
}
body.testers .lang {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
}
body.testers .lang button {
  all: unset;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
body.testers .lang button[aria-pressed='true'] {
  background: var(--text);
  color: var(--bg);
}
body.testers .lang button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
body.testers .hero {
  padding: 48px 0 56px;
}
body.testers .hero .bee {
  width: 110px;
  height: auto;
  animation: buzz 3s ease-in-out infinite;
}
body.testers .hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  margin-top: 12px;
}
body.testers .lead strong {
  color: var(--text);
}
body.testers .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
body.testers .chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 15px;
}
body.testers section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
body.testers section > p {
  color: var(--muted);
}
body.testers .steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 24px 0 0;
}
body.testers .steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 52px;
  color: var(--muted);
}
body.testers .steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
}
body.testers .steps strong,
body.testers .note strong {
  color: var(--text);
}
body.testers code {
  font-size: 0.92em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--soft);
}
body.testers .apps {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}
body.testers .app {
  display: block;
  padding: 24px;
  border-radius: 24px;
  background: var(--soft);
}
body.testers .app h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
body.testers .app h3 img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
body.testers .app .what {
  color: var(--muted);
  font-size: 15px;
}
body.testers .app ul {
  padding-left: 18px;
  margin: 0;
  font-size: 15px;
}
body.testers .app li {
  margin-bottom: 8px;
}
body.testers .note {
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--soft);
  color: var(--muted);
}
body.testers .note p:last-child {
  margin: 0;
}
body.testers footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
@media (max-width: 760px) {
  body.testers .apps {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================================================
   Home page colours: soft blobs in the three apps' colours drift behind the hero, and while the
   three apps scroll past (site.js sets data-step on the story) the page takes each app's colour.
   =========================================================================================== */

body.home-colors {
  --bg: #fbf8f4;
  --hero-top: #fbf8f4;
  --word: rgba(110, 97, 212, 0.16);
  --accent: #6e61d4;
}
.home-hero {
  isolation: isolate;
  background: var(--bg);
  /* The colours fade into the page at the bottom instead of stopping at an edge. */
  -webkit-mask-image: linear-gradient(#000 calc(100% - 140px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 140px), transparent);
}
.home-hero::before,
.home-hero::after,
.home-hero .wrap::before {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.75;
  pointer-events: none;
}
/* Sleep's lavender, top left. */
.home-hero::before {
  width: 46vw;
  height: 46vw;
  left: -12vw;
  top: -14vw;
  background: #cfc7ff;
}
/* Moments' peach, right. */
.home-hero::after {
  width: 40vw;
  height: 40vw;
  right: -10vw;
  top: 6vw;
  background: #ffcdb2;
}
/* Names' sage, low in the middle. */
.home-hero .wrap::before {
  width: 38vw;
  height: 38vw;
  left: 30%;
  bottom: 4vw; /* inside the hero, so its soft edge does not meet the hero's bottom edge */
  background: #bfe3c9;
}
@media (prefers-reduced-motion: no-preference) {
  .home-hero::before {
    animation: blob-a 18s ease-in-out infinite alternate;
  }
  .home-hero::after {
    animation: blob-b 22s ease-in-out infinite alternate;
  }
  .home-hero .wrap::before {
    animation: blob-c 20s ease-in-out infinite alternate;
  }
}
@keyframes blob-a {
  to {
    translate: 10vw 6vw;
    scale: 1.15;
  }
}
@keyframes blob-b {
  to {
    translate: -8vw 10vw;
    scale: 0.9;
  }
}
@keyframes blob-c {
  to {
    translate: -12vw -8vw;
    scale: 1.1;
  }
}
.home-hero .wrap.with-phones {
  position: relative;
}

/* The page takes a colour per section (data-tint, set as --tint by site.js) and fades between
   them: each app its own colour, the promise peach, the questions sage. The film stays on cream,
   since it moves through all three apps' colours itself. */
/* On :root, where site.js sets --tint to one of them. */
:root {
  --tint-cream: #fbf8f4;
  --tint-names: #e2f0e5;
  --tint-sleep: #e7e3fc;
  --tint-moments: #ffe9db;
}
body.home-colors {
  background: var(--tint, var(--bg));
  transition: background-color 1.2s ease;
}
.home-colors .story-phone {
  --screen: #e2efe5;
}
.home-colors .story[data-step='1'] .story-phone {
  --screen: #1b1c3c;
}
.home-colors .story[data-step='2'] .story-phone {
  --screen: #fff3ea;
}
/* Soft colour drifting behind the whole page, so no part of it looks empty. */
body.home-colors::before {
  content: '';
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(28vmax 28vmax at 18% 28%, rgba(176, 164, 255, 0.5), transparent 70%),
    radial-gradient(26vmax 26vmax at 82% 62%, rgba(255, 184, 150, 0.5), transparent 70%),
    radial-gradient(24vmax 24vmax at 50% 92%, rgba(150, 214, 170, 0.45), transparent 70%);
  filter: blur(40px);
}
@media (prefers-reduced-motion: no-preference) {
  body.home-colors::before {
    animation: page-blobs 30s ease-in-out infinite alternate;
  }
}
@keyframes page-blobs {
  50% {
    translate: 6vmax -4vmax;
    rotate: 8deg;
  }
  to {
    translate: -5vmax 5vmax;
    rotate: -6deg;
  }
}
.home-colors .home-hero {
  background: transparent;
}
@media (max-width: 900px) {
  .home-colors .story-phone {
    /* On phones the band behind the phone is see-through, blurred, so the page's colour shows. */
    --band: var(--tint, var(--bg));
    transition: background-color 1.2s ease;
  }
  .home-hero::before,
  .home-hero::after,
  .home-hero .wrap::before {
    filter: blur(50px);
  }
  .home-hero::before {
    width: 80vw;
    height: 80vw;
  }
  .home-hero::after {
    width: 70vw;
    height: 70vw;
    top: 40%;
  }
  .home-hero .wrap::before {
    width: 70vw;
    height: 70vw;
    left: 10%;
  }
}

/* ===========================================================================================
   Guides (2026-11-08): articles for parents in /guides, read like the text pages, with the
   app's screens as pictures and one quiet block that leads to the app
   =========================================================================================== */

.guide-path {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--muted);
}
.guide-path a {
  color: inherit;
}
.guide-meta {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 32px;
}
body.text-page main .answer {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text);
}
body.text-page main ol li,
body.text-page main ul li {
  padding-left: 4px;
}

.guide-figure {
  margin: 32px auto;
  text-align: center;
}
.guide-figure > img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
}
.guide-figure figcaption {
  font-size: 15px;
  color: var(--muted);
  max-width: 34em;
  margin: 8px auto 0;
}

/* The app, in its own night colours, once in an article. */
.guide-cta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 22px;
  align-items: center;
  margin: 48px 0;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(160deg, #23266a, #10122c 70%);
  color: #f3f2fb;
}
.guide-cta img {
  grid-row: span 2;
  width: 76px;
  height: 76px;
  border-radius: 18px;
}
body.text-page main .guide-cta h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 26px;
  color: inherit;
}
body.text-page main .guide-cta p {
  margin: 0;
  color: #a9a7c8;
}
.guide-cta .actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.guide-cta .button {
  background: #b3a9ff;
  color: #15173a;
}
.guide-cta .pill {
  background: rgba(255, 255, 255, 0.1);
  color: #f3f2fb;
}

/* A list of guides: the index page and the app pages. No cards, a thin line between them. */
.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.guide-list li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.guide-list a {
  display: block;
  padding: 26px 0;
  color: inherit;
  text-decoration: none;
}
.guide-list .eyebrow {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.guide-list h3,
body.text-page main .guide-list h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  margin: 0 0 8px;
}
.guide-list a:hover h3 {
  color: var(--accent);
}
.guide-list p {
  margin: 0;
  color: var(--muted);
}
body.text-page main .guide-list li {
  padding-left: 0;
}
body.text-page main h2.topic {
  margin-top: 56px;
  border-top: 0;
  padding-top: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

/* On an app page, after Free and Pro. */
.guides {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 0 64px;
  align-items: start;
}
.guides h2 {
  font-size: clamp(24px, 2.4vw, 32px);
}
.guides p {
  color: var(--muted);
}

@media (max-width: 760px) {
  .guide-cta {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .guide-cta img {
    grid-row: auto;
    width: 60px;
    height: 60px;
  }
  .guides {
    grid-template-columns: 1fr;
  }
}

/* Guides with their cover photos, two in a row. */
.guide-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.guide-cards a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.guide-cards img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 16px;
  transition: transform 0.3s;
}
.guide-cards a:hover img {
  transform: scale(1.015);
}
.guide-cards .eyebrow {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.guide-cards h3,
body.text-page main .guide-cards h3 {
  font-size: clamp(20px, 2vw, 24px);
  color: var(--text);
  margin: 0 0 8px;
}
.guide-cards a:hover h3 {
  color: var(--accent);
}
.guide-cards p {
  margin: 0;
  color: var(--muted);
}
body.text-page main .guide-cards li {
  margin: 0;
  padding: 0;
}
/* The guides page is wider than a text page, so two covers fit side by side. */
body.text-page main.guides-index {
  max-width: 1080px;
}
.guides-index > .lead {
  margin-bottom: 8px;
}
/* The cover at the top of an article. */
.guide-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
  margin: 0 0 36px;
}
@media (max-width: 760px) {
  .guide-cards {
    grid-template-columns: 1fr;
  }
}

/* Two app screens in CSS phones inside an article, the second a little lower. */
.guide-phones {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 8px 0 40px;
}
.guide-phones .device {
  --w: 220px;
}
.guide-phones .device:nth-child(2) {
  margin-top: 48px;
}
@media (max-width: 760px) {
  .guide-phones {
    gap: 16px;
  }
  .guide-phones .device {
    --w: 136px;
  }
  .guide-phones .device:nth-child(2) {
    margin-top: 28px;
  }
}
