/* Portada de mindtone.fm: una noche entera, de la hora de acostarse a la mañana. */

section { position: relative; }

/* ---------- 1. La luna ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 112px 0 96px;
}
.hero .moon-float { transition: transform 1.6s var(--ease); }
.hero .moon { --size: clamp(150px, 27vmin, 290px); margin-bottom: clamp(44px, 8vh, 84px); }
.hero h1 { max-width: 12.5em; margin-inline: auto; }
.hero .lede { margin-top: 24px; max-width: 31em; }
.ctas { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.soon { margin-top: 20px; font-size: 14px; color: var(--muted); }
.soon b { color: var(--soft); font-weight: 500; }

/* La luna sale despacio al abrir la página; después, respira. */
.ready .hero .rise { animation: rise 2.8s var(--ease) both; }
.ready .hero .fade { animation: fade-up 1.6s var(--ease) both; }
.ready .hero .fade.d1 { animation-delay: .7s; } .ready .hero .fade.d2 { animation-delay: .9s; }
.ready .hero .fade.d3 { animation-delay: 1.1s; } .ready .hero .fade.d4 { animation-delay: 1.4s; }
@keyframes rise { from { opacity: 0; transform: translateY(46px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; width: 1px; height: 46px; margin-left: -.5px;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .45));
  transform-origin: top; animation: cue 3.2s var(--ease) infinite 2.4s; opacity: 0;
}
@keyframes cue { 0% { opacity: 0; transform: scaleY(.2); } 35% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: translateY(18px) scaleY(.4); } }

/* ---------- 2. El Sleep Signal (en silencio) ---------- */
.signal {
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: end; text-align: center;
  padding: 34vh 0 10vh;
}
.signal-sky { position: absolute; left: 0; width: 100%; pointer-events: none; mix-blend-mode: screen; z-index: 0; }
.signal .wrap { position: relative; z-index: 1; }
.signal .lede { margin-top: 18px; max-width: 30em; }

/* BellProgressView: cinco campanas, cada punto se enciende con la suya */
.bells { position: relative; width: 168px; height: 14px; margin: 44px auto 0; display: flex; align-items: center; justify-content: space-between; }
.bells::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255, 255, 255, .14); }
.bells i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .24);
  transition: background .6s ease-out, box-shadow .6s ease-out, transform .6s ease-out; }
.bells i.lit { background: var(--sand); box-shadow: 0 0 6px rgba(230, 224, 213, .9); transform: scale(1.15); }

.silent {
  display: inline-flex; gap: 12px; align-items: flex-start; text-align: left;
  margin-top: 40px; padding: 14px 20px; max-width: 30em; border-radius: 20px;
  background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: 15px; line-height: 1.5; color: var(--soft);
}
.silent svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--sand); }
.silent b { color: #fff; font-weight: 600; }

/* ---------- 3. Cómo es una noche ---------- */
.section-head { text-align: center; margin-bottom: clamp(64px, 10vh, 110px); }
.section-head .lede { margin-top: 18px; }
.ritual { padding: 16vh 0 8vh; }
.steps { display: grid; gap: clamp(90px, 14vh, 150px); list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.step:nth-child(even) .art { order: 2; }
.step .art { display: grid; place-items: center; }
.step .art svg { width: 100%; height: auto; overflow: visible; }
.step .art.small svg { width: min(40%, 190px); }
.step .time { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sand); opacity: .85; }
.step h3 { font-size: clamp(26px, 2.8vw, 34px); font-weight: 400; letter-spacing: -.015em; }
.step p { margin-top: 14px; color: var(--soft); max-width: 27em; }
.step .quote { margin-top: 18px; font-size: 15px; color: var(--muted); }
@media (max-width: 899px) {
  .step { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .step:nth-child(even) .art { order: 0; }
  .step .art { max-width: 540px; width: 100%; margin-inline: auto; }
  .step p { margin-inline: auto; }
}

/* ---------- 4. La pantalla de la noche ---------- */
.night { padding: 16vh 0; }
.night .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.night .copy p { margin-top: 18px; color: var(--soft); max-width: 27em; }
.night .copy .note { margin-top: 26px; font-size: 14px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; text-align: left; }
.night .copy .note svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 899px) {
  .night .wrap { grid-template-columns: 1fr; text-align: center; }
  .night .copy { order: -1; }
  .night .copy p { margin-inline: auto; }
}

.phone {
  --w: 300px;
  position: relative; width: var(--w); aspect-ratio: 300 / 640; margin-inline: auto; border-radius: 54px; padding: 11px;
  background: linear-gradient(150deg, #34343b, #141418 40%, #0c0c0f);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), inset 0 0 0 1px rgba(255, 255, 255, .05),
              0 30px 70px -24px rgba(0, 0, 0, .55), 0 0 120px rgba(230, 224, 213, .04);
  cursor: default; user-select: none; -webkit-user-select: none;
}
.screen { position: relative; height: 100%; border-radius: 44px; overflow: hidden; background: var(--bg); isolation: isolate; }
.screen::before { /* el cielo de la app, en pequeño */
  content: ""; position: absolute; inset: 0; opacity: .9;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 78% 12%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1.2px 1.2px at 64% 30%, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1px 1px at 22% 58%, rgba(255,255,255,.25), transparent 60%),
    radial-gradient(1px 1px at 88% 66%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1.2px 1.2px at 40% 80%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(1px 1px at 8% 88%, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1px 1px at 52% 8%, rgba(255,255,255,.28), transparent 60%),
    radial-gradient(1px 1px at 92% 40%, rgba(255,255,255,.2), transparent 60%);
}
.island { position: absolute; z-index: 6; top: 11px; left: 50%; width: 92px; height: 27px; margin-left: -46px; border-radius: 20px; background: #000; }
.n-top, .n-moon, .n-now, .n-ctrl { position: absolute; left: 0; right: 0; transition: opacity 1.4s ease-in-out, filter 1.4s ease-in-out; }
.n-top { top: 52px; display: flex; justify-content: space-between; align-items: flex-start; padding: 0 16px; }
.n-top .mid { text-align: center; }
.n-top .night-n { font-size: 10px; font-weight: 600; letter-spacing: .24em; color: var(--muted); }
.n-top .lock { margin-top: 5px; font-size: 9.5px; color: var(--muted); display: flex; gap: 4px; align-items: center; justify-content: center; }
.n-top .lock svg { width: 8px; height: 8px; }
.gl { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; color: #fff;
  background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 .8px rgba(255, 255, 255, .22); }
.gl svg { width: 14px; height: 14px; }
.n-moon { top: 34%; }
.n-moon .moon { --size: 104px; }
.n-now { top: 70%; display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 11px; color: var(--soft); }
.n-now img { width: 22px; height: 22px; border-radius: 4px; }
.n-now svg { width: 12px; height: 12px; opacity: .7; }
.n-ctrl { top: 79%; display: flex; gap: 12px; align-items: center; justify-content: center; }
.n-ctrl .gl { width: 40px; height: 40px; }
.n-ctrl .gl.big { width: 52px; height: 52px; background: rgba(255, 255, 255, .13); }
.n-ctrl .gl svg { width: 16px; height: 16px; }
.n-ctrl .gl.big svg { width: 20px; height: 20px; }
.n-ctrl [data-pause] { cursor: pointer; }
.n-ctrl .i-play, .paused .n-ctrl .i-pause { display: none; }
.paused .n-ctrl .i-play { display: block; }
.paused .n-moon .moon img, .paused .n-moon .moon::before, .paused .n-moon .moon::after { animation-play-state: paused; }
/* Atenuada: el velo baja la luz de todo; solo quedan el cielo y la luna, que sigue respirando */
.phone.dim .n-top, .phone.dim .n-now, .phone.dim .n-ctrl { opacity: .05; }
.phone.dim .n-moon { filter: brightness(.36); }
.phone.dim .screen::before { opacity: .45; transition: opacity 1.4s; }
.phone-hint { margin-top: 22px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- 5. El ciclo de siete noches ---------- */
.cycle { padding: 16vh 0 10vh; text-align: center; }
.cycle-box { margin-top: clamp(48px, 8vh, 80px); }
.moons { position: relative; width: min(100%, 640px); margin: 0 auto; aspect-ratio: 640 / 170; }
.moons svg.path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.moons svg.path line { stroke: rgba(255, 255, 255, .16); stroke-width: 1.2; transition: stroke 1s; }
.moons svg.path line.lit { stroke: rgba(230, 224, 213, .55); }
.night-moon { position: absolute; width: 9%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.night-moon img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 1s ease-in-out, transform 1s var(--ease); }
.night-moon .off { opacity: .32; }
.night-moon .on { opacity: 0; transform: scale(.86); filter: drop-shadow(0 0 14px rgba(230, 224, 213, .35)); }
.night-moon.lit .on { opacity: 1; transform: none; }
.night-moon.lit .off { opacity: 0; }
.cycle-count { margin-top: 26px; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cycle .done-line { margin-top: 10px; font-size: clamp(22px, 2.4vw, 28px); opacity: 0; transform: translateY(8px); transition: opacity 1.2s, transform 1.2s var(--ease); }
.cycle .done-line + p { opacity: 0; transition: opacity 1.2s .3s; color: var(--muted); margin-top: 8px; }
.cycle.complete .done-line, .cycle.complete .done-line + p { opacity: 1; transform: none; }

/* La pregunta de la mañana */
.morning { margin: clamp(90px, 14vh, 150px) auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; text-align: left; }
.morning .copy p { margin-top: 18px; color: var(--soft); max-width: 27em; }
.ask { background: var(--card); border-radius: 32px; padding: 36px 28px 30px; text-align: center; box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 40px 100px -40px rgba(0, 0, 0, .8); }
.ask .moon { --size: 72px; margin-bottom: 28px; }
.ask .q { font-size: 23px; line-height: 1.3; margin-top: 2px; }
.ask .hint { margin-top: 10px; font-size: 14px; color: var(--muted); }
.chips { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip { height: 46px; border-radius: 999px; border: 0; cursor: pointer; font-size: 15px; font-weight: 500; color: #fff;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1.2px rgba(255, 255, 255, .55); transition: background .3s, box-shadow .3s, opacity .3s; }
.chip.wide { grid-column: 1 / -1; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: var(--soft); }
.chip:hover { background: rgba(255, 255, 255, .09); }
.chip[aria-pressed="true"] { background: var(--sand); color: #000; box-shadow: 0 0 8px rgba(230, 224, 213, .5); }
.ask .stay { margin-top: 18px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 899px) {
  .morning { grid-template-columns: 1fr; text-align: center; }
  .morning .copy p { margin-inline: auto; }
  .ask { max-width: 380px; margin-inline: auto; }
}

/* ---------- 6. La música ---------- */
.music { padding: 16vh 0 10vh; text-align: center; }
.music .lede { margin-top: 18px; }
.services { margin: 40px auto 0; display: grid; gap: 12px; width: min(100%, 360px); }
.service { height: 52px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 17px; font-weight: 600; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.2px rgba(255, 255, 255, .55); }
.service svg { width: 18px; height: 18px; opacity: .85; }
.music .fine { margin: 18px auto 0; max-width: 34em; font-size: 14px; color: var(--muted); }

/* ---------- 7. Mindtone Plus ---------- */
.plus { padding: 10vh 0; }
.plus-card { width: min(100%, 560px); margin: 0 auto; padding: 48px 36px 40px; border-radius: 34px; text-align: center; background: var(--card);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 50px 120px -50px rgba(0, 0, 0, .9); }
.plus-card .moon { --size: 84px; margin-bottom: 26px; }
.plus-card h2 { font-size: clamp(28px, 3.4vw, 38px); }
.plus-card h2 span { display: block; color: var(--soft); font-size: .78em; margin-top: 4px; }
.checks { list-style: none; padding: 0; margin: 30px auto 0; display: grid; gap: 14px; width: fit-content; text-align: left; }
.checks li { display: flex; gap: 12px; align-items: center; font-size: 17px; }
.checks svg { width: 20px; height: 20px; flex: none; color: rgba(255, 255, 255, .85); }
.plus-card .fine { margin-top: 28px; font-size: 13.5px; color: var(--muted); }

/* ---------- 8. Hasta esta noche ---------- */
.tonight { padding: 18vh 0 0; text-align: center; overflow: hidden; }
.tonight .clock { font-size: clamp(64px, 11vw, 132px); font-weight: 300; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.tonight h2 { margin-top: 22px; }
.tonight .lede { margin-top: 14px; }
.horizon { position: relative; height: clamp(260px, 38vw, 460px); margin-top: 70px; }
.horizon .moon { --size: clamp(110px, 15vw, 190px); position: absolute; left: 50%; margin-left: calc(var(--size) / -2); top: 18%;
  transition: transform 2.8s var(--ease), opacity 2.8s; transform: translateY(42%); opacity: .6; }
.horizon.in .moon { transform: none; opacity: 1; }
.horizon .planet { position: absolute; left: 50%; top: 52%; width: 260vw; height: 260vw; margin-left: -130vw; border-radius: 50%;
  background: linear-gradient(rgba(255, 255, 255, .04), rgba(255, 255, 255, 0) 200px), var(--bg);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .18), 0 -40px 140px rgba(230, 224, 213, .08); }
@media (min-width: 900px) { .horizon .planet { width: 200vw; height: 200vw; margin-left: -100vw; } }
.tonight .ctas { position: relative; z-index: 2; }

/* ---------- Piezas añadidas ---------- */
.btn.is-static { cursor: default; }
.btn.is-static:hover { background: rgba(255, 255, 255, .07); }
.btn.is-static:active { transform: none; }

.awake { margin: 34px 0 0; padding: 22px 24px; border-radius: 22px; max-width: 27em; background: var(--card);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05); }
.awake .awake-q { font-size: 19px; color: #fff; margin-bottom: 6px; }
.awake p:not(.awake-q) { font-size: 15px; color: var(--muted); }
@media (max-width: 899px) { .awake { margin-inline: auto; text-align: center; } }

.method { padding: 14vh 0; text-align: center; }
.method .art { width: min(100%, 620px); margin: 0 auto 52px; }
.method .art svg { width: 100%; height: auto; }
.method h2 { max-width: 15em; margin-inline: auto; }
.ideas { margin: 52px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; text-align: left; }
.idea { padding: 28px 28px 30px; border-radius: 24px; background: var(--card); box-shadow: 0 0 0 1px rgba(255, 255, 255, .05); }
.idea h3 { font-size: 19px; }
.idea p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.disclaimer { margin-top: 34px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .ideas { grid-template-columns: 1fr; text-align: center; } }

.service { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .035); color: var(--soft); font-weight: 500; }

/* En la portada el horizonte ya separa el pie: sin línea */
.home footer { border-top: 0; margin-top: 0; }

/* En el móvil, menos aire entre secciones: la página ya es larga */
@media (max-width: 760px) {
  .ritual, .night, .cycle, .method, .music { padding-top: 11vh; padding-bottom: 7vh; }
  .section-head { margin-bottom: 56px; }
  .steps { gap: 84px; }
  .morning { margin-top: 90px; }
  .tonight { padding-top: 12vh; }
  .signal { padding-top: 30vh; }
}

@media (max-width: 899px) {
  .night .copy .note { display: block; text-align: center; }
  .night .copy .note svg { display: inline-block; vertical-align: -1px; margin-right: 6px; }
}
