/* lumihistorias.com.br: the app's own night mode (src/constants/theme.ts), Baloo 2 and Nunito. */

:root {
  --noite: #141235;
  --noite-2: #1c1950;
  --indigo: #231f5c;
  --indigo-2: #3a3482;
  --linha: #2f2a6e;
  /* Outline of form fields: 3:1 against the night background (WCAG 1.4.11). */
  --campo: #5d57b0;
  /* Day bands (the app's day scheme): cream paper, ink text. */
  --dia: #fff7ec;
  --dia-2: #f6eadb;
  --dia-linha: #eadfce;
  --tinta-texto: #4a4680;
  --dia-acento: #a8442a;
  --menta-escura: #2f7d6a;
  --rodape: #0f0d2b;
  --lua: #f6c95b;
  --lua-claro: #ffe8a3;
  --menta: #5bbfa6;
  --creme: #fff7ec;
  --tinta: #1d1a47;
  --texto: #ece7f6;
  --texto-2: #a9aedb;
  --acento: #f4a086;
  --tinta-2: #4a4680;
  --breu: #07061a;
  --ok: #86d9c3;

  --display: 'Baloo 2', ui-rounded, system-ui, sans-serif;
  --body: 'Nunito', ui-rounded, system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 12vw, 160px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--indigo-2) var(--noite);
  scrollbar-width: thin;
}

body {
  margin: 0;
  background-color: var(--noite);
  /* Still sky for browsers without WebGL; the Three.js sky draws over it. */
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 247, 236, 0.7), transparent 60%),
    radial-gradient(1px 1px at 72% 12%, rgba(255, 247, 236, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 34%, rgba(255, 247, 236, 0.8), transparent 60%),
    radial-gradient(1px 1px at 86% 44%, rgba(255, 247, 236, 0.5), transparent 60%),
    radial-gradient(1px 1px at 22% 64%, rgba(255, 247, 236, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 64% 78%, rgba(255, 247, 236, 0.6), transparent 60%);
  background-attachment: fixed;
  color: var(--texto);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  caret-color: var(--lua);
  overflow-x: hidden;
}

::selection {
  background: var(--lua);
  color: var(--tinta);
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--noite);
}
::-webkit-scrollbar-thumb {
  background: var(--indigo-2);
  border-radius: 10px;
  border: 2px solid var(--noite);
}

:focus-visible {
  outline: 3px solid var(--lua);
  outline-offset: 3px;
  border-radius: 12px;
}

a {
  color: var(--lua);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

h3 {
  font-size: 1.18rem;
  font-weight: 700;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.ic {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  background: var(--lua);
  color: var(--tinta);
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
}
.skip:focus {
  top: 16px;
}

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.topbar,
main,
.footer {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  width: min(760px, 100%);
}

.section-lede {
  color: var(--texto-2);
  max-width: 62ch;
  margin-top: 16px;
  font-size: 1rem;
}

.quiet {
  color: var(--texto-2);
}

.center {
  text-align: center;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--gutter);
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.topbar.is-scrolled {
  background-color: rgba(20, 18, 53, 0.92);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
}

.brand img {
  width: 104px;
  height: auto;
}

.topnav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.topnav a {
  color: var(--texto-2);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  transition: color 0.2s;
}
.topnav a:hover {
  color: var(--creme);
}

.topcta {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--tinta);
  background: var(--lua);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 999px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.topcta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.7);
}

/* ---------- Hero: the live sky ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter) clamp(40px, 7vh, 88px);
}

.hero-sky {
  position: absolute;
  inset: 0;
}

/* The painted sky from the app. On wide screens it sits under the live stars (behind the WebGL canvas) and
   fades into the night of the page; phones show it inside their band of sky. */
.sky-art {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100svh;
  z-index: -1;
  background: linear-gradient(rgba(20, 18, 53, 0.2), rgba(20, 18, 53, 0.55) 60%, var(--noite)),
    url('/assets/sky.webp') center 35% / cover no-repeat;
  pointer-events: none;
}
@media (max-width: 900px) {
  .sky-art {
    display: none;
  }
  .hero-sky {
    background: linear-gradient(rgba(20, 18, 53, 0.25), rgba(20, 18, 53, 0.85)), url('/assets/sky.webp') center 30% / cover no-repeat;
  }
}

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

.story-star {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--lua-claro);
  cursor: pointer;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.story-star svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  filter: drop-shadow(0 0 6px rgba(246, 201, 91, 0.9));
  transition: transform 0.4s var(--ease-out);
}
.story-star:hover svg,
.story-star:focus-visible svg,
.story-star[aria-pressed='true'] svg {
  transform: scale(1.6) rotate(45deg);
}
.story-star[aria-pressed='true'] {
  color: var(--creme);
}

.star-card {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 184px;
  padding: 10px 10px 14px;
  border-radius: 24px;
  background: var(--creme);
  color: var(--tinta);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 26px)) scale(0.96);
  transform-origin: 50% 100%;
  transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out);
  box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.85);
}
.star-card.is-on {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 26px)) scale(1);
}
.star-card.is-below {
  transform-origin: 50% 0;
  transform: translate(-50%, 26px) scale(0.96);
}
.star-card.is-below.is-on {
  transform: translate(-50%, 26px) scale(1);
}
.star-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
}
.star-card-title {
  margin-top: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.15;
}
.star-card-meta {
  margin-top: 4px;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--tinta-2);
}

/* Without JavaScript the stars have nowhere to sit and nothing to play: the shelf below carries the stories. */
html:not(.js) .story-stars,
html:not(.js) .sky-hint,
html:not(.js) .shelf-play,
html:not(.js) .beta {
  display: none;
}

/* The turma resting on the moon, lower right of the sky on wide screens (phones keep only the stars). */
.hero-art {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(104px, 14vh, 150px);
  width: min(36vw, 480px);
  margin: 0;
  pointer-events: none;
}
.hero-art img {
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}

.hero-eyebrow {
  margin-bottom: 16px;
  color: var(--ok);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy {
  position: relative;
  max-width: 640px;
  pointer-events: auto;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.8rem);
  line-height: 0.98;
  color: var(--creme);
}
.hero h1 span {
  display: block;
}
.hero h1 span + span {
  color: var(--lua);
}

.hero-lede {
  margin-top: 22px;
  color: var(--texto);
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  max-width: 52ch;
}

.hero-soon {
  margin-top: 14px;
  color: var(--texto-2);
  font-size: 0.95rem;
}

.sky-hint {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(40px, 7vh, 88px);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 300px;
  color: var(--texto-2);
  font-size: 0.98rem;
  line-height: 1.4;
}
.sky-hint .ic {
  width: 20px;
  height: 20px;
  fill: var(--lua);
  stroke: none;
}

/* ---------- Waitlist form ---------- */

.waitlist {
  position: relative;
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 520px;
}

.waitlist input[type='email'] {
  flex: 1 1 240px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid var(--campo);
  background: rgba(255, 247, 236, 0.07);
  color: var(--creme);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.waitlist input[type='email']::placeholder {
  color: var(--texto-2);
}
.waitlist input[type='email']:focus {
  outline: none;
  border-color: var(--lua);
  background: rgba(255, 247, 236, 0.11);
}
.waitlist input[aria-invalid='true'] {
  border-color: var(--acento);
}

.waitlist button {
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--lua);
  color: var(--tinta);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.04rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, opacity 0.2s;
}
.waitlist button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.75);
}
.waitlist button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  padding: 0;
}

/* Closed test: a checkbox, and the phone question only after it is ticked. */
.beta {
  flex-basis: 100%;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.beta-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--texto);
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
}
.beta input[type='checkbox'],
.beta input[type='radio'] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--lua);
  flex: none;
}
.beta-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 4px;
}
.beta-platforms[hidden] {
  display: none;
}
.beta-ask {
  color: var(--texto-2);
  font-size: 0.95rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--campo);
  border-radius: 999px;
  color: var(--creme);
  font-weight: 700;
  cursor: pointer;
}
.chip:has(input:checked) {
  border-color: var(--lua);
  background: rgba(246, 201, 91, 0.12);
}

.form-note {
  flex-basis: 100%;
  color: var(--texto-2);
  font-size: 0.92rem;
  line-height: 1.5;
}
.form-note[data-state='ok'] {
  color: var(--ok);
  font-weight: 700;
}
.form-note[data-state='error'] {
  color: var(--acento);
  font-weight: 700;
}

/* ---------- Shelf of covers ---------- */

.shelf {
  padding-top: var(--section);
}
.shelf-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0 24px;
}
.shelf-head .section-lede {
  grid-column: 1 / -1;
}
.shelf-nav {
  display: flex;
  gap: 10px;
}
.shelf-nav button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--campo);
  background: transparent;
  color: var(--creme);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
}
.shelf-nav button:hover {
  border-color: var(--lua);
  background: rgba(246, 201, 91, 0.1);
}
.shelf-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}
.shelf-nav [data-shelf-prev] .ic {
  transform: rotate(90deg);
}
.shelf-nav [data-shelf-next] .ic {
  transform: rotate(-90deg);
}
html:not(.js) .shelf-nav {
  display: none;
}

.shelf-row {
  list-style: none;
  margin: 36px 0 0;
  padding: 8px var(--gutter) 20px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.shelf-row::-webkit-scrollbar {
  display: none;
}
/* The row fades out at the edges that still have stories to scroll to. */
html.js .shelf-row {
  --fade-l: 72px;
  --fade-r: 72px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
}
html.js .shelf-row[data-at-start='true'] {
  --fade-l: 0px;
}
html.js .shelf-row[data-at-end='true'] {
  --fade-r: 0px;
}
/* Covers that are not fully in view rest in the dark, so the eye stays on the ones in front. */
html.js .shelf-item {
  opacity: 0.38;
  transform: scale(0.96);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
html.js .shelf-item[data-in-view='true'],
html.js .shelf-item:focus-within {
  opacity: 1;
  transform: none;
}

@media (min-width: 1160px) {
  .shelf-row {
    padding-inline: calc((100vw - 1160px) / 2 + var(--gutter));
    scroll-padding-inline: calc((100vw - 1160px) / 2 + var(--gutter));
  }
}

.shelf-item {
  scroll-snap-align: start;
  flex: none;
  width: 172px;
}

.shelf-item button {
  all: unset;
  display: block;
  cursor: pointer;
  border-radius: 22px;
}

.shelf-cover {
  display: block;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--indigo);
  box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.9);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.shelf-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shelf-cover .shelf-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lua);
  color: var(--tinta);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.7);
}
.shelf-play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.shelf-item button:hover .shelf-cover,
.shelf-item button:focus-visible .shelf-cover {
  transform: translateY(-4px);
  box-shadow: 0 28px 44px -22px rgba(0, 0, 0, 0.95);
}
.shelf-item[data-playing='true'] .shelf-cover {
  outline: 3px solid var(--lua);
  outline-offset: 3px;
}

.shelf-title {
  margin-top: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--creme);
}
.shelf-meta {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--texto-2);
}

/* ---------- Constellation ---------- */

.constellation {
  padding-top: var(--section);
}

.constellation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  min-height: 80vh;
}

.constellation-copy p {
  margin-top: 16px;
  font-size: 1.02rem;
  max-width: 46ch;
}

.night-count {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--lua);
  font-variant-numeric: tabular-nums;
}

.constellation-figure {
  margin: 0;
  position: relative;
  display: grid;
  justify-items: center;
}

.constellation-figure svg {
  width: min(420px, 100%);
  height: auto;
  overflow: visible;
}

.const-line {
  fill: none;
  stroke: var(--lua);
  stroke-width: 1.5;
  stroke-opacity: 0.6;
  stroke-linecap: round;
}

.const-stars use {
  fill: var(--lua-claro);
  filter: drop-shadow(0 0 6px rgba(246, 201, 91, 0.9));
}

.sticker {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--creme);
  color: var(--tinta);
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.8);
}
.sticker img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

/* ---------- Anatomy of a night ---------- */

.night {
  padding-top: var(--section);
}

.timeline {
  position: relative;
  margin-top: 56px;
  padding-bottom: 8px;
}

.track {
  position: relative;
  display: flex;
  height: 16px;
  border-radius: 999px;
  overflow: visible;
  background: var(--noite-2);
}
.seg {
  display: block;
  height: 100%;
  width: var(--w);
}
.seg-voice {
  background: var(--lua);
  border-radius: 999px 0 0 999px;
}
.seg-music {
  background: var(--menta);
  opacity: 0.75;
  border-radius: 0 999px 999px 0;
}

.playhead {
  position: absolute;
  top: 50%;
  left: var(--p, 100%);
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: var(--creme);
  border: 6px solid rgba(255, 247, 236, 0.18);
  background-clip: padding-box;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.6);
}

.beats {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  position: relative;
  height: 96px;
}
.beats li {
  position: absolute;
  left: var(--at);
  width: 220px;
  transform: translateX(-50%);
  text-align: center;
}
.beats li:first-child {
  transform: none;
  text-align: left;
}
.beats li:last-child {
  transform: translateX(-100%);
  text-align: right;
}
.beats strong {
  display: block;
  font-family: var(--display);
  font-size: 1.12rem;
  color: var(--creme);
  font-variant-numeric: tabular-nums;
}
.beats span {
  display: block;
  color: var(--texto-2);
  font-size: 0.98rem;
  line-height: 1.4;
}

.clock {
  position: absolute;
  right: 0;
  top: -54px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--lua);
  font-variant-numeric: tabular-nums;
}

.night-facts {
  list-style: none;
  padding: 0;
  margin: 64px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.night-facts li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--texto);
}
.night-facts .ic {
  color: var(--menta);
  margin-top: 3px;
}

/* ---------- Turma ---------- */

.turma {
  padding-top: var(--section);
}

.turma-list {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}

.turma-list li {
  text-align: center;
}
.turma-list li:nth-child(even) {
  margin-top: 48px;
}
.turma-list img {
  width: min(160px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: 0 0 0 4px var(--noite), 0 0 0 6px rgba(246, 201, 91, 0.45), 0 24px 40px -20px rgba(0, 0, 0, 0.9);
}
.turma-list h3 {
  margin-top: 18px;
  color: var(--creme);
}
.turma-list p {
  margin-top: 6px;
  color: var(--texto-2);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* ---------- Parents ---------- */

.parents {
  padding-top: var(--section);
}

.parents-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.parents-grid > div:first-child {
  position: sticky;
  top: 120px;
}

.controls {
  margin: 0;
}
.controls > div {
  padding: 22px 0;
  border-top: 1px solid var(--linha);
}
.controls > div:last-child {
  border-bottom: 1px solid var(--linha);
}
.controls dt {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--creme);
}
.controls dt .ic {
  color: var(--menta);
}
.controls dd {
  margin: 6px 0 0 34px;
  color: var(--texto-2);
}

/* ---------- Pricing ---------- */

.pricing {
  padding-top: var(--section);
  text-align: center;
}
.pricing .section-lede {
  margin-left: auto;
  margin-right: auto;
}

.plans {
  margin: 48px auto 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 720px;
}

.plan {
  position: relative;
  padding: 32px 24px 28px;
  border-radius: 28px;
  background: var(--noite-2);
  border: 1.5px solid var(--linha);
}
.plan h3 {
  font-size: 1.1rem;
  color: var(--texto-2);
  font-family: var(--body);
  font-weight: 800;
}
.plan .price {
  margin-top: 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  color: var(--creme);
  font-variant-numeric: tabular-nums;
}
.plan .per {
  color: var(--texto-2);
  font-size: 0.98rem;
}
.plan-best {
  background: var(--indigo);
  border-color: var(--lua);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.95);
}
/* ---------- FAQ ---------- */

.faq {
  padding-top: var(--section);
}
.faq h2 {
  margin-bottom: 28px;
}
.faq details {
  border-top: 1px solid var(--linha);
}
.faq details:last-of-type {
  border-bottom: 1px solid var(--linha);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--creme);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .ic {
  color: var(--lua);
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary .ic {
  transform: rotate(180deg);
}
.faq details p {
  padding: 0 0 22px;
  color: var(--texto-2);
  max-width: 62ch;
}

/* ---------- Good night ---------- */

.goodnight {
  padding: var(--section) var(--gutter) 0;
  display: grid;
  justify-items: center;
  text-align: center;
}
.goodnight-art {
  width: min(1100px, 100%);
  border-radius: 36px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.goodnight-copy {
  margin-top: -64px;
  position: relative;
  width: min(620px, 100%);
  background: var(--noite);
  border: 1.5px solid var(--linha);
  border-radius: 32px;
  padding: 36px clamp(20px, 4vw, 44px) 32px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.goodnight-copy p {
  margin-top: 12px;
  color: var(--texto-2);
}
.goodnight .waitlist {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}
.goodnight .form-note,
.goodnight .beta {
  text-align: center;
}
.goodnight .beta-platforms {
  justify-content: center;
}

/* ---------- Who makes it ---------- */

.maker {
  padding-top: var(--section);
}
.maker-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  max-width: 980px;
}
.maker-art {
  width: clamp(120px, 18vw, 200px);
  border-radius: 50%;
  background: var(--indigo);
}
.maker-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--ok);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.maker-eyebrow .ic {
  width: 18px;
  height: 18px;
}
.maker blockquote {
  margin: 20px 0 0;
}
.maker blockquote p {
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
  line-height: 1.5;
  color: var(--creme);
}
.maker blockquote footer {
  margin-top: 12px;
  color: var(--texto-2);
  font-weight: 700;
}
.text-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 800;
}

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

.footer {
  margin-top: var(--section);
  padding: 56px 0 120px;
  border-top: 1px solid var(--linha);
  background: var(--rodape);
  color: var(--texto-2);
  font-size: 0.95rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr);
  gap: 40px 32px;
}
.footer-brand img {
  width: 112px;
}
.footer-brand > p {
  margin-top: 14px;
  max-width: 30ch;
}
.footer h2 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--creme);
  margin-bottom: 14px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-col a {
  color: var(--texto);
  font-weight: 700;
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--lua);
}
.footer-cta p {
  max-width: 28ch;
}
.footer-button {
  margin-top: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--lua);
  color: var(--tinta) !important;
  font-family: var(--display);
  font-weight: 800;
}
.stores,
.socials {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 16px 6px 12px;
  border: 1.5px solid var(--campo);
  border-radius: 14px;
  color: var(--creme);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.05;
}
.store small {
  display: block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--texto-2);
}
.store-ic {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.socials {
  margin-top: 16px;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--texto-2);
  font-size: 0.9rem;
}
.social .ic {
  width: 24px;
  height: 24px;
  color: var(--creme);
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--linha);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 0.86rem;
}
.footer-bottom a {
  color: var(--texto);
}

/* ---------- Preview player ---------- */

.player {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 15;
  width: min(520px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 10px;
  border-radius: 24px;
  background: var(--indigo);
  border: 1.5px solid var(--indigo-2);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.9);
}
.player[hidden] {
  display: none;
}
.player img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
}
.player-text {
  flex: 1;
  min-width: 0;
}
.player-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--creme);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-bar {
  margin-top: 8px;
  height: 5px;
  border-radius: 5px;
  background: var(--linha);
  overflow: hidden;
}
.player-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lua);
  border-radius: 5px;
}
.player-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: var(--lua);
  color: var(--tinta);
  cursor: pointer;
}
.player-btn .ic {
  fill: currentColor;
  stroke: none;
}
.player-btn.ghost {
  background: transparent;
  color: var(--texto-2);
}
.player-btn.ghost .ic {
  fill: none;
  stroke: currentColor;
}

/* The page dims while the night timeline reaches silence, like the screen in the app. */
.dusk {
  position: fixed;
  inset: 0;
  z-index: 5;
  background: var(--breu);
  opacity: 0;
  pointer-events: none;
}

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .topnav {
    display: none;
  }
  .topcta {
    margin-left: auto;
  }
  .constellation-grid,
  .parents-grid {
    grid-template-columns: 1fr;
  }
  .parents-grid > div:first-child {
    position: static;
  }
  /* Phones and tablets: the sky becomes its own band above the copy, so nothing overlaps. */
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .hero-sky {
    position: relative;
    inset: auto;
    height: 200px;
    margin: 0 calc(var(--gutter) * -1) 8px;
  }
  .hero-art {
    display: none;
  }
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand,
  .footer-cta {
    grid-column: 1 / -1;
  }
  .sky-hint {
    left: var(--gutter);
    right: var(--gutter);
    bottom: 6px;
    max-width: none;
    font-size: 0.92rem;
  }
  /* While a preview plays, the dock never covers the hero button. */
  body.is-previewing .hero {
    padding-bottom: 112px;
  }
  .star-card {
    width: 156px;
  }
  .constellation-grid {
    min-height: 0;
  }
  .night-facts {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .turma-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .turma-list li:nth-child(even) {
    margin-top: 0;
  }
  .turma-list li:last-child {
    grid-column: 1 / -1;
    max-width: 260px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .hero {
    min-height: calc(100svh - 64px);
    padding-bottom: 32px;
  }
  .brand img {
    width: 86px;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .hero-sky {
    height: 220px;
  }
  .hero-lede {
    margin-top: 14px;
  }
  .waitlist {
    margin-top: 20px;
  }
  .hero-eyebrow {
    margin-bottom: 10px;
    font-size: 0.78rem;
  }
  .maker-grid {
    grid-template-columns: 1fr;
  }
  .topcta {
    padding: 8px 16px;
    font-size: 0.98rem;
  }
  .beats {
    height: auto;
    display: grid;
    gap: 14px;
  }
  .beats li,
  .beats li:first-child,
  .beats li:last-child {
    position: static;
    width: auto;
    transform: none;
    text-align: left;
  }
  .plans {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .goodnight-copy {
    margin-top: -32px;
  }
  .waitlist button {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Inner pages: nossa história, confirmar, sair ---------- */

.story-page {
  padding-top: clamp(32px, 6vw, 72px);
}
.story-head h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1;
  color: var(--creme);
}
.story-figure {
  margin: clamp(28px, 5vw, 56px) auto;
}
.story-figure img {
  width: min(960px, 100%);
  margin: 0 auto;
  border-radius: 32px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.prose p + p {
  margin-top: 18px;
}
.prose .lead {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--creme);
}
.prose p {
  color: var(--texto);
}
.signature {
  margin-top: 28px !important;
  color: var(--texto-2) !important;
}
.signature span {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--lua);
}
.manifesto {
  margin-top: var(--section);
  padding: clamp(56px, 8vw, 96px) 0;
  background: linear-gradient(rgba(35, 31, 92, 0), rgba(35, 31, 92, 0.6) 20%, rgba(35, 31, 92, 0.6) 80%, rgba(35, 31, 92, 0));
}
.manifesto h2 {
  color: var(--creme);
}
.manifesto-list {
  list-style: none;
  counter-reset: manifesto;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 36px;
}
.manifesto-list li {
  counter-increment: manifesto;
  position: relative;
  padding-left: 64px;
}
.manifesto-list li::before {
  content: counter(manifesto);
  position: absolute;
  left: 0;
  top: -4px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lua);
  color: var(--tinta);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
}
.manifesto-list h3 {
  color: var(--creme);
  font-size: 1.22rem;
}
.manifesto-list p {
  margin-top: 10px;
  color: var(--texto);
}
.maker-company {
  padding-top: var(--section);
}
.maker-company p {
  margin-top: 16px;
  color: var(--texto);
}
.story-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 28px;
}
.story-cta .footer-button {
  text-decoration: none;
  padding: 14px 26px;
  font-size: 1.1rem;
}
.story-cta .text-link {
  margin-top: 0;
}
.page .footer {
  padding-bottom: 48px;
}
.page .footer-bottom {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.status-card {
  width: min(560px, calc(100% - 32px));
  margin: clamp(48px, 10vh, 120px) auto;
  padding: 40px clamp(20px, 5vw, 44px);
  border-radius: 32px;
  background: var(--indigo);
  text-align: center;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.status-card img {
  width: 120px;
  margin: 0 auto 16px;
}
.status-card h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: var(--creme);
}
.status-card p {
  margin-top: 14px;
  color: var(--texto);
}
.status-card .footer-button {
  display: inline-block;
  margin-top: 24px;
  text-decoration: none;
}

@media (max-width: 640px) {
  .manifesto-list li {
    padding-left: 0;
    padding-top: 56px;
  }
}

/* ---------- Day bands: cream paper between the nights ---------- */

.day {
  position: relative;
  z-index: 1;
  margin: var(--section) clamp(0px, 1.6vw, 20px) 0;
  padding-bottom: var(--section);
  border-radius: clamp(32px, 5vw, 64px);
  background: var(--dia);
  color: var(--tinta);
  box-shadow: 0 -30px 80px -40px rgba(0, 0, 0, 0.6);
}
.day h2,
.day h3 {
  color: var(--tinta);
}
.day .section-lede,
.day p {
  color: var(--tinta-texto);
}
.day a {
  color: var(--dia-acento);
}
.day :focus-visible {
  outline-color: var(--dia-acento);
}
.day .turma-list h3 {
  color: var(--tinta);
}
.day .turma-list img {
  box-shadow: 0 0 0 4px var(--dia), 0 0 0 6px rgba(194, 80, 47, 0.35), 0 24px 40px -22px rgba(29, 26, 71, 0.55);
}
.day .controls > div {
  border-color: var(--dia-linha);
}
.day .controls dt {
  color: var(--tinta);
}
.day .controls dt .ic {
  color: var(--menta-escura);
}
.day .controls dd {
  color: var(--tinta-texto);
}
.day .maker-art {
  background: var(--dia-2);
}
.day .maker-eyebrow {
  color: var(--menta-escura);
}
.day .maker blockquote p {
  color: var(--tinta);
}
.day .maker blockquote footer {
  color: var(--tinta-texto);
}
.day .faq details {
  border-color: var(--dia-linha);
}
.day .faq summary {
  color: var(--tinta);
}
.day .faq summary .ic {
  color: var(--dia-acento);
}
.day .faq details p {
  color: var(--tinta-texto);
}
.day ::selection {
  background: var(--tinta);
  color: var(--dia);
}
.day > section:first-child {
  padding-top: clamp(64px, 8vw, 112px);
}
.day {
  padding-bottom: clamp(72px, 9vw, 128px);
}
.maker-art {
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  align-self: center;
}
@media (max-width: 640px) {
  /* Phones swipe the shelf; the arrows would only squeeze the heading. */
  .shelf-nav {
    display: none;
  }
}

/* ---------- Hero: a night-blue veil from the left, so the copy reads over the painted sky ---------- */

@media (min-width: 901px) {
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 18, 53, 0.92) 0%, rgba(20, 18, 53, 0.78) 32%, rgba(20, 18, 53, 0.35) 52%, rgba(20, 18, 53, 0) 66%);
    pointer-events: none;
  }
}

/* ---------- Shelf on cream: two seasons, bigger covers ---------- */

.day-shelf .shelf {
  padding-top: clamp(64px, 8vw, 112px);
}
.season {
  margin-top: clamp(40px, 5vw, 64px);
}
.season-tag {
  color: var(--dia-acento) !important;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.season h3 {
  margin-top: 6px;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}
.season-lede {
  margin-top: 8px;
  max-width: 60ch;
  font-size: 0.96rem;
}
.day .shelf-row {
  margin-top: 24px;
  gap: 22px;
}
.shelf-item {
  width: 236px;
}
.day .shelf-cover {
  box-shadow: 0 20px 36px -24px rgba(29, 26, 71, 0.55);
}
.day .shelf-item button:hover .shelf-cover,
.day .shelf-item button:focus-visible .shelf-cover {
  box-shadow: 0 28px 44px -24px rgba(29, 26, 71, 0.65);
}
.day .shelf-item[data-playing='true'] .shelf-cover {
  outline-color: var(--dia-acento);
}
.day .shelf-title {
  color: var(--tinta);
}
.day .shelf-meta {
  color: var(--tinta-texto);
}
.day .shelf-nav button {
  border-color: var(--dia-linha);
  color: var(--tinta);
  background: #fff;
}
.day .shelf-nav button:hover {
  border-color: var(--dia-acento);
  background: var(--dia-2);
}
html.js .day .shelf-item {
  opacity: 0.45;
}
html.js .day .shelf-item[data-in-view='true'],
html.js .day .shelf-item:focus-within {
  opacity: 1;
}
@media (max-width: 640px) {
  .shelf-item {
    width: 200px;
  }
}

/* ---------- Turma: the trio up front, the friends in a quieter grid ---------- */

.turma-list {
  grid-template-columns: repeat(3, minmax(0, 220px));
  justify-content: center;
  gap: clamp(24px, 5vw, 72px);
}
.turma-list li:nth-child(even) {
  margin-top: 0;
}
.turma-list img {
  width: min(180px, 100%);
}
.turma-list h3 {
  font-size: 1.3rem;
}
.friends-title {
  margin-top: clamp(56px, 7vw, 88px);
  text-align: center;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
}
.friends-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 32px 20px;
}
.friends-list li {
  text-align: center;
}
.friends-list img {
  width: 96px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: 0 0 0 3px var(--dia), 0 0 0 5px rgba(194, 80, 47, 0.25), 0 14px 24px -14px rgba(29, 26, 71, 0.5);
}
.friends-list h4 {
  margin: 12px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--tinta);
}
.friends-list p {
  margin-top: 4px;
  font-size: 0.86rem;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .turma-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .turma-list li:last-child {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }
  .turma-list p {
    font-size: 0.86rem;
  }
}
@media (max-width: 640px) {
  .turma-list {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .turma-list img {
    width: 140px;
  }
  .friends-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1160px) {
  /* Inside a band the row starts where the heading starts (the band is inset from the page edge). */
  .day .shelf-row {
    padding-inline: calc((100vw - 1160px) / 2 + var(--gutter) - clamp(0px, 1.6vw, 20px));
    scroll-padding-inline: calc((100vw - 1160px) / 2 + var(--gutter) - clamp(0px, 1.6vw, 20px));
  }
}
/* Friends wrap in centered rows, so the last row never leaves a hole on one side. */
.friends-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.friends-list li {
  width: 160px;
}
@media (max-width: 640px) {
  .friends-list li {
    width: calc(50% - 10px);
  }
}
