/* cosmicperiod.com
   Colour comes from ios/Cosmic/Design/CosmicStyle.swift (dark appearance). Type follows CosmicType.swift:
   Plus Jakarta Sans for headlines, the system face for everything that is read. Night first: the app's
   default appearance is the brand. Compatible with style-src 'self': no inline styles anywhere. */

@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/plus-jakarta-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/plus-jakarta-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/plus-jakarta-sans-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --ink: #0E0B1A;        /* nightInk */
  --panel: #1B152B;      /* nightPanel */
  --panel-2: #241C38;
  --text: #FFFFFF;
  --text-2: #CFC6DF;
  --text-3: #AEA3C2;
  --pink: #FF91B8;       /* buttonPink */
  --pink-2: #FFB3C9;
  --period: #FF4C8F;
  --lilac: #C2A6FF;      /* artLilac */
  --mint: #80DEC7;
  --gold: #FFDB8F;       /* moon phase 3 */
  --hair: rgba(255, 255, 255, .1);
  --hair-2: rgba(255, 255, 255, .18);

  --r: 24px;
  --shadow: 0 30px 70px -36px rgba(0, 0, 0, .85), 0 10px 28px -18px rgba(0, 0, 0, .6);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; background: var(--ink); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.menu-open { overflow: hidden; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
/* The app's star formula, fixed behind everything. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: url("/assets/img/stars.svg") center top / 1600px 1600px; pointer-events: none; }
[hidden] { display: none !important; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--pink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: 12px; background: var(--text); color: var(--ink); }
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(3rem, 7vw, 6.4rem); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-weight: 800; font-size: clamp(2.3rem, 5.2vw, 4.5rem); line-height: 1.04; letter-spacing: -.03em; }
h3 { font-weight: 700; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.015em; }
h2 em { font-style: normal; color: var(--lilac); }
/* Jakarta's space is narrow at display sizes once tracked in. */
h1, h2, h3, dt, summary, .btn, .brand, .float b { word-spacing: .09em; }
p { margin: 0; text-wrap: pretty; }
.pn { margin-left: -.09em; } /* Jakarta's period side bearing, pulled in at display sizes */

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px; font: 700 1rem/1 var(--display); letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap; cursor: pointer; background: linear-gradient(135deg, var(--pink-2), var(--pink)); box-shadow: 0 14px 30px -14px rgba(255, 145, 184, .55); transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .2s; }
@media (hover: hover) { .btn:hover { box-shadow: 0 16px 36px -12px rgba(255, 145, 184, .75); } }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-small { min-height: 44px; padding: 0 20px; font-size: .92rem; }
.btn-wide { width: 100%; margin-top: 16px; }
.btn .short { display: none; }
.ar { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ar-back { transform: scaleX(-1); }

/* ── Nav: a floating glass pill ── */
.nav { position: fixed; z-index: 100; top: max(12px, env(safe-area-inset-top)); left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 24px; width: min(calc(100% - 24px), 1040px); padding: 7px 7px 7px 16px; border-radius: 999px; background: rgba(22, 17, 36, .88); border: 1px solid var(--hair); -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px); box-shadow: 0 14px 40px -22px rgba(0, 0, 0, .9); }
/* Touch screens: page text must not run behind the clock. Everything above the nav fades to ink. */
@media (pointer: coarse) { .nav::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 100vw; height: 200px; translate: -50% 0; background: linear-gradient(to top, transparent, var(--ink) 10px); pointer-events: none; } }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 800 1.02rem/1 var(--display); letter-spacing: -.02em; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; gap: 2px; margin-inline: auto; }
.nav-links a { padding: 10px 12px; border-radius: 999px; font-size: .93rem; color: var(--text-2); text-decoration: none; transition: color .2s, background .2s; }
@media (hover: hover) { .nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .07); } }
.nav > .btn { margin-left: auto; }
.nav-links + .btn { margin-left: 0; }
.nav-toggle, .menu-close { display: none; position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--text); cursor: pointer; flex: none; }
.nav-toggle i, .menu-close i { position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.nav-toggle i:first-child { top: 18px; }
.nav-toggle i:last-child { top: 24px; }
.menu-close { display: block; position: absolute; top: max(19px, calc(env(safe-area-inset-top) + 7px)); right: 19px; }
.menu-close i { top: 21px; }
.menu-close i:first-child { rotate: 45deg; }
.menu-close i:last-child { rotate: -45deg; }

/* The menu: a full-screen sheet on the native <dialog>. */
.menu { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: calc(max(19px, env(safe-area-inset-top)) + 76px) 28px calc(28px + env(safe-area-inset-bottom)); border: 0; background: rgba(14, 11, 26, .94); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); color: var(--text); }
.menu[open] { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow-y: auto; }
.menu nav { display: grid; gap: 2px; }
.menu nav a { padding: 10px 0; font: 800 2.1rem/1.15 var(--display); letter-spacing: -.03em; color: var(--text); text-decoration: none; }
.menu .btn { width: 100%; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] nav a, .menu[open] .btn { animation: menu-in .5s var(--ease) both; }
  .menu[open] nav a:nth-child(2) { animation-delay: 40ms; }
  .menu[open] nav a:nth-child(3) { animation-delay: 80ms; }
  .menu[open] nav a:nth-child(4) { animation-delay: 120ms; }
  .menu[open] nav a:nth-child(5) { animation-delay: 160ms; }
  .menu[open] nav a:nth-child(6) { animation-delay: 200ms; }
  .menu[open] nav a:nth-child(7) { animation-delay: 240ms; }
  .menu[open] .btn { animation-delay: 280ms; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(18px); } }
}

/* ── Hero: copy left, iPhone right ──
   Everything in the visual scales from --h, so the phone, the orb behind it and the garden in front stay registered.
   The same poster is drawn twice: behind the phone, then masked to the flowers in front of it. The garden covers
   the bottom of the screen, where the Today capture stops above the chart. */
.hero { --h: clamp(720px, 100svh, 980px); position: relative; isolation: isolate; overflow: clip; background: var(--ink); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; z-index: 3; height: 12%; pointer-events: none; background: linear-gradient(to top, var(--ink), transparent); }
.hero-stage { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(16px, 3vw, 48px); width: min(100%, calc(var(--max) + var(--gutter) * 2)); height: var(--h); margin: 0 auto; padding-inline: var(--gutter); }
.hero-copy { position: relative; z-index: 4; align-self: center; padding-top: 72px; }
.hero-copy h1 { font-size: clamp(3rem, 5.7vw, 5.5rem); }
.hero-copy h1 .u { background: linear-gradient(100deg, var(--pink-2) 0%, #E7C4FF 48%, var(--lilac) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 27em; margin-top: 22px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: #E9E2F4; }
.hero .waitlist { margin: 30px 0 0; }
.hero-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; color: var(--text); font-size: .98rem; text-decoration: none; }
@media (hover: hover) { .hero-link:hover { text-decoration: underline; } }
.hero-visual { position: relative; }
.hero-art { position: absolute; bottom: 0; left: 50%; z-index: 0; width: calc(var(--h) * 2.222); max-width: none; height: calc(var(--h) * 1.25); translate: -50% 0; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 24%, #000 40%); mask-image: linear-gradient(90deg, transparent 24%, #000 40%); }
.hero-garden { z-index: 2; -webkit-mask-image: linear-gradient(to bottom, transparent 68%, #000 75%), linear-gradient(90deg, transparent 24%, #000 40%); mask-image: linear-gradient(to bottom, transparent 68%, #000 75%), linear-gradient(90deg, transparent 24%, #000 40%); -webkit-mask-composite: source-in; mask-composite: intersect; }
.hero-phone { position: absolute; z-index: 1; top: calc(var(--h) * .16); left: 50%; width: calc(var(--h) * .39); aspect-ratio: 640 / 1391; translate: -50% 0; }
.float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 20px; background: rgba(30, 23, 48, .9); border: 1px solid var(--hair-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 24px 50px -22px rgba(0, 0, 0, .9); white-space: nowrap; }
.float b { display: block; font: 700 .95rem/1.2 var(--display); letter-spacing: -.012em; color: var(--text); }
.float small { display: block; font-size: .78rem; line-height: 1.3; color: var(--text-2); }
.f-moon, .f-lock, .f-flow { width: max-content; }
.f-moon { right: calc(50% + var(--h) * .175); top: calc(var(--h) * .3); }
.f-moon img { width: 42px; height: 42px; }
.f-lock { left: calc(50% + var(--h) * .185); top: calc(var(--h) * .235); }
.f-lock svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: rgba(128, 222, 199, .16); fill: none; stroke: var(--mint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.f-flow { left: calc(50% + var(--h) * .165); top: calc(var(--h) * .465); flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
.f-drops { display: flex; gap: 8px; }
.f-drops .drop { width: 26px; height: 26px; }
.f-note { right: calc(50% + var(--h) * .17); top: calc(var(--h) * .53); display: block; width: 158px; padding: 14px 15px 18px; border: 0; border-radius: 6px 6px 22px 6px; rotate: -5deg; white-space: normal; background: linear-gradient(160deg, #FFC7DC, #FF9BC2); box-shadow: 0 26px 46px -20px rgba(255, 110, 170, .55); }
.f-note small { color: #6E2147; font-weight: 600; }
.f-note b { margin-top: 6px; color: #3A0F28; font-size: 1rem; line-height: 1.25; }
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease) both; }
  .hero-copy .rise:nth-child(2) { animation-delay: 60ms; }
  .hero-copy .rise:nth-child(3) { animation-delay: 120ms; }
  .hero-copy .rise:nth-child(4) { animation-delay: 180ms; }
  .hero-copy .rise:nth-child(5) { animation-delay: 240ms; }
  .hero-visual.rise { animation: fade 1.1s var(--ease) both; }
  .f-moon { animation: drift 7s ease-in-out infinite; }
  .f-lock { animation: drift 8.5s ease-in-out -2s infinite; }
  .f-flow { animation: drift 9s ease-in-out -4s infinite; }
  .f-note { animation: drift 7.5s ease-in-out -1s infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes drift { 50% { transform: translateY(-9px); } }
@keyframes pulse { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }

/* ── Waitlist ── */
.waitlist { max-width: 520px; margin-inline: auto; }
.field { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(27, 21, 43, .78); border: 1px solid var(--hair-2); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: border-color .2s; }
.field:focus-within { border-color: var(--lilac); box-shadow: 0 0 0 2px var(--lilac); }
.field input { flex: 1; min-width: 0; min-height: 56px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font: 400 1.06rem var(--body); }
.field input::placeholder { color: var(--text-3); opacity: 1; }
.field input:focus { outline: 0; }
.field input[aria-invalid="true"] { color: var(--pink-2); }
.field .btn { flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 12px; font-size: .87rem; line-height: 1.45; color: #E4DDF0; }
.form-note a { color: inherit; }
.form-note.error { color: var(--pink-2); font-weight: 600; }
.form-note.ok { color: var(--mint); font-weight: 600; font-size: 1rem; }
.busy .btn-label { animation: breathe 1.2s ease-in-out infinite; }
.waitlist.done .field { display: none; }
@keyframes breathe { 50% { opacity: .55; } }

/* ── Shared layout ── */
.section { position: relative; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: clamp(64px, 7vw, 112px) var(--gutter) 0; }
.head { margin-bottom: clamp(36px, 5vw, 64px); }
.fine { margin-top: 28px; max-width: 54em; font-size: .94rem; color: var(--text-2); }
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(26px); }
.aura { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.aura-rose { left: 0; top: 4%; width: 720px; max-width: 100%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(255, 145, 184, .13), rgba(194, 166, 255, .06) 55%, transparent); }

.card { position: relative; isolation: isolate; overflow: clip; border-radius: var(--r); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), var(--shadow); }
/* Night jewel tones from the app's palette, one per card, so the page isn't one flat aubergine. */
.tint-iris { background: radial-gradient(70% 62% at 62% 100%, rgba(150, 120, 255, .5), transparent), linear-gradient(165deg, #2F2466, #171030 72%); }
.tint-rose { background: radial-gradient(70% 62% at 62% 100%, rgba(255, 120, 175, .46), transparent), linear-gradient(165deg, #54193F, #1D1022 74%); }
.tint-amber { background: radial-gradient(70% 62% at 62% 100%, rgba(255, 190, 110, .36), transparent), linear-gradient(165deg, #4A2C1B, #1D1220 76%); }
.tint-teal { background: radial-gradient(70% 62% at 62% 100%, rgba(110, 225, 200, .36), transparent), linear-gradient(165deg, #123F47, #10172A 76%); }
.card-text { position: relative; z-index: 1; padding: 28px 28px 0; }
.card-text p, .plate p { margin-top: 8px; color: var(--text-2); }

/* A phone slot: newer captures replace the files under assets/img/app/ with no markup change. */
.phone { position: relative; flex: none; margin: 0; padding: 9px; border-radius: 50px; background: linear-gradient(145deg, #8A8399 0%, #2C2738 16%, #15121D 62%, #5E5770 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 44px 90px -38px rgba(0, 0, 0, .95); }
.phone img { width: 100%; border-radius: 41px; background: #06050C; }
.hero-phone { padding: 8px; border-radius: 46px; }
.hero-phone img { height: 100%; border-radius: 38px; object-fit: contain; object-position: top; }
.hero-phone::before { content: ""; position: absolute; inset: -14% -34%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 196, 225, .34), transparent); pointer-events: none; }
.island { position: absolute; z-index: 1; top: 20px; left: 50%; translate: -50% 0; width: 30%; height: 22px; border-radius: 99px; background: #000; }
/* Cut by the bottom of its card, so a phone never reads as long and thin. */
.bleed { align-self: end; justify-self: center; width: min(100%, 340px); min-height: 0; aspect-ratio: 1 / 1.34; overflow: clip; padding-bottom: 0; border-radius: 50px 50px 0 0; margin-inline: auto; }

/* ── Check-in: a playable phone, with the other questions floating around it ── */
.checkin { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: clamp(64px, 7vw, 112px) var(--gutter) 0; }
@media (min-width: 1041px) { .checkin { align-items: start; padding-top: 48px; } .checkin-copy { padding-top: 96px; } }
.checkin-copy h2 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); }
.checkin-copy p { margin-top: 20px; max-width: 26em; font-size: 1.15rem; color: var(--text-2); }
.checkin-copy .checkin-try { margin-top: 14px; font-size: 1rem; font-weight: 600; color: var(--pink-2); }
.checkin-stage { position: relative; display: none; }
.js .checkin-stage { display: block; }
.js .checkin-fallback { display: none; }
.checkin-fallback { max-width: 300px; justify-self: center; }
.demo { position: relative; z-index: 1; width: min(100%, 350px); margin-inline: auto; padding: 9px; border-radius: 50px; background: linear-gradient(145deg, #8A8399 0%, #2C2738 16%, #15121D 62%, #5E5770 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 44px 90px -38px rgba(0, 0, 0, .95), 0 0 120px -30px rgba(255, 145, 184, .45); }
.demo-screen { position: relative; display: flex; flex-direction: column; height: 500px; overflow: clip; padding: 62px 18px 20px; border-radius: 41px; background: linear-gradient(175deg, #2A1B42, #15101F 62%); text-align: center; }
.demo-art { position: absolute; inset: 0 0 auto; width: 100%; height: 170px; object-fit: cover; object-position: 80% 35%; opacity: .5; -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.demo-head { position: relative; display: grid; justify-items: center; gap: 10px; font: 700 .95rem/1 var(--display); }
.demo-dots { display: flex; gap: 5px; margin: 0; padding: 0; list-style: none; }
.demo-dots li { width: 22px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); transition: background .25s; }
.demo-dots .on { background: var(--pink); }
.demo-step { position: relative; margin-block: auto; }
.demo-skip, .demo-again { position: relative; align-self: center; }
.demo-step h3 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.025em; outline: 0; }
.demo-step:not([hidden]) { animation: settle .35s var(--ease); }
@media (prefers-reduced-motion: reduce) { .demo-step:not([hidden]) { animation: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(12px); } }
.tiles { display: grid; gap: 8px; margin-top: 22px; }
.tiles-5 { grid-template-columns: repeat(5, 1fr); }
.tiles-4 { grid-template-columns: repeat(4, 1fr); }
.tiles-2 { grid-template-columns: repeat(2, 1fr); }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 84px; padding: 8px 1px; border: 1px solid var(--hair); border-radius: 16px; background: rgba(255, 255, 255, .04); color: var(--text); font: 500 .72rem/1.2 var(--body); cursor: pointer; transition: background .15s, border-color .15s, transform .15s var(--ease); }
@media (hover: hover) { .tile:hover { background: rgba(255, 255, 255, .09); } }
.tile:active { transform: scale(.96); }
.tile-text { min-height: 56px; font-size: .95rem; }
.tile-text[aria-pressed="true"] { background: rgba(194, 166, 255, .22); border-color: var(--lilac); box-shadow: 0 0 22px -6px rgba(194, 166, 255, .7); font-weight: 600; }
.tile-num { min-height: 58px; font: 800 1.25rem/1 var(--display); }
.drop { width: 26px; height: 26px; }
.drop-none { fill: none; stroke: var(--mint); stroke-width: 1.6; }
.drop-spotting { fill: #FFBD70; }
.drop-light { fill: #FF94BA; }
.drop-medium { fill: var(--pink); }
.drop-heavy { fill: #D63A80; }
.demo-skip, .demo-again { display: inline-block; min-height: 44px; margin-top: 12px; padding: 0 18px; border: 0; background: none; color: var(--text-2); font: 500 .95rem var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.demo-done p { margin-top: 14px; color: var(--text-2); }
.q-cards { margin: 0; padding: 0; list-style: none; }
.q-cards li { position: absolute; z-index: 2; width: 188px; padding: 12px 14px; border-radius: 18px; background: rgba(30, 23, 48, .92); border: 1px solid var(--hair-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 24px 50px -22px rgba(0, 0, 0, .9); }
.q-cards b { display: block; font: 700 .95rem/1.25 var(--display); }
.q-cards span { display: block; margin-top: 4px; font-size: .8rem; line-height: 1.3; color: var(--text-2); }
.q-a { left: 0; top: 2%; rotate: -2deg; }
.q-b { right: 0; top: 8%; rotate: 2deg; }
.q-c { left: 0; top: 74%; rotate: 1.500deg; }
.q-d { right: 0; top: 70%; rotate: -1.500deg; }
.q-e { left: 0; top: 34%; rotate: -1deg; }
@media (prefers-reduced-motion: no-preference) {
  .q-a { animation: drift 8s ease-in-out infinite; }
  .q-b { animation: drift 9s ease-in-out -2s infinite; }
  .q-c { animation: drift 7.500s ease-in-out -3s infinite; }
  .q-d { animation: drift 8.500s ease-in-out -1s infinite; }
  .q-e { animation: drift 9.500s ease-in-out -4s infinite; }
}

/* ── Bento ── */
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bento-grid > .card { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.b-calendar, .b-care, .b-report { grid-column: span 7; }
.b-today, .b-notes, .b-insights { grid-column: span 5; }
.b-calendar, .b-care, .b-report { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); padding-right: clamp(20px, 3.4vw, 48px); }
.b-care .card-text { grid-column: 1; }
.b-care .food { grid-column: 1; }
.b-care .phone { grid-column: 2; grid-row: 1 / span 2; margin-top: 36px; }
.b-calendar .phone, .b-report .phone { margin-top: 36px; }
.b-calendar .phone, .b-report .phone { grid-column: 2; }
.card-art { position: absolute; left: -6%; bottom: -4%; width: 56%; opacity: .9; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent); mask-image: radial-gradient(closest-side, #000 62%, transparent); }
.food { display: grid; gap: 10px; align-self: end; padding: 24px 28px 28px; }
.food img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 16px; }
.charm { position: absolute; z-index: 2; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .45)); }
.charm-a { width: 92px; left: 5%; top: 70%; rotate: -10deg; }
.charm-b { width: 84px; right: 5%; top: 62%; rotate: 8deg; }
.charm-c { width: 64px; right: 8%; top: 82%; rotate: 12deg; }
.report-ways { display: grid; gap: 8px; margin: 18px 0 28px; padding: 0; list-style: none; font: 600 .98rem/1.3 var(--display); }
.report-ways li { display: flex; align-items: center; gap: 10px; }
.report-ways li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--lilac)); }
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0 0; padding: 0; list-style: none; }
.minis li { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--hair); }
.minis img { width: 64px; height: 64px; }
@media (min-width: 641px) { .minis li { flex-direction: row; align-items: flex-start; gap: 18px; } .minis img { flex: none; width: 56px; height: 56px; } }
.minis h3 { font-size: 1.08rem; }
.minis p { margin-top: 6px; font-size: .95rem; color: var(--text-2); }

/* ── Period tracking, over the Moon film ──
   The film holds still (sticky) while the glass panels scroll across it. */
.tracker { position: relative; isolation: isolate; display: grid; }
.tracker-film, .tracker-inner { grid-area: 1 / 1; min-width: 0; }
.tracker-film { position: sticky; top: 0; z-index: -1; align-self: start; height: 100vh; height: 100svh; overflow: clip; background: var(--ink); }
.tracker-film img, .tracker-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: translateX(26%) scale(1.56); transform-origin: 50% 30%; }
.tracker-film video { opacity: 0; transition: opacity .6s; }
.tracker-film video.ready { opacity: 1; }
.tracker-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--ink) 0%, rgba(14, 11, 26, .5) 22%, rgba(14, 11, 26, .34) 52%, rgba(14, 11, 26, .72) 86%, var(--ink) 100%); }
.tracker-inner { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: clamp(56px, 6vw, 80px) var(--gutter) clamp(72px, 9vw, 128px); }
.tracker-head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 56px); }
.tracker-head p { margin-top: 18px; max-width: 34em; font-size: clamp(1.06rem, 1.4vw, 1.2rem); color: #EFE9F7; text-shadow: 0 1px 14px rgba(14, 11, 26, .8); }
.tracker-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.glass { border-radius: var(--r); background: rgba(20, 15, 34, .94); border: 1px solid var(--hair-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), var(--shadow); }
.wave { grid-column: span 8; margin: 0; padding: clamp(18px, 2.4vw, 30px); }
.wave-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.wave-top h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 800; letter-spacing: -.02em; }
.wave-tag { margin-top: 4px; font-size: .86rem; color: var(--text-2); }
.wave-read { flex: none; text-align: right; }
.wave-read b { display: block; font: 800 clamp(1.25rem, 2vw, 1.6rem)/1.15 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wave-read span { font-size: .86rem; color: var(--lilac); font-weight: 600; }
.wave-plot { position: relative; height: clamp(190px, 25vw, 300px); margin-top: 18px; }
.wave-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.w-line { fill: none; stroke-width: 2.500; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.w-fill { transition: opacity .25s; }
[data-focus="e2"] [data-h]:not([data-h="e2"]), [data-focus="p4"] [data-h]:not([data-h="p4"]), [data-focus="lh"] [data-h]:not([data-h="lh"]), [data-focus="fsh"] [data-h]:not([data-h="fsh"]), [data-focus="t"] [data-h]:not([data-h="t"]) { opacity: .16; }
.w-peak { position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 9px)); font: 700 .74rem/1 var(--display); color: var(--text); text-shadow: 0 0 3px var(--ink), 0 0 6px var(--ink), 0 0 10px var(--ink); pointer-events: none; transition: opacity .25s; }
[data-focus="e2"] .w-peak:not(.pk-e2), [data-focus="p4"] .w-peak:not(.pk-p4), [data-focus="lh"] .w-peak:not(.pk-lh), [data-focus="fsh"] .w-peak:not(.pk-fsh), [data-focus="t"] .w-peak:not(.pk-t) { opacity: .16; }
.w-mark { position: absolute; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, rgba(255, 255, 255, .7), rgba(255, 255, 255, .16)); pointer-events: none; }
.w-dot { position: absolute; width: 11px; height: 11px; margin: -5.500px 0 0 -5.500px; border-radius: 50%; border: 2px solid #fff; background: var(--k); box-shadow: 0 0 12px var(--k); pointer-events: none; }
.k-e2 { --k: #FF7342; } .k-p4 { --k: #A375FF; } .k-lh { --k: #FF47A6; } .k-fsh { --k: #63DBE8; } .k-t { --k: #FFBD66; }
.wave-plot { cursor: ew-resize; touch-action: pan-y; }
.w-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.wave-plot:has(.w-range:focus-visible) { outline: 3px solid var(--lilac); outline-offset: 4px; border-radius: 8px; }
.w-phases { display: grid; grid-template-columns: 5fr 7fr 3fr 13fr; margin: 0; padding: 8px 0 0; list-style: none; border-top: 1px solid var(--hair-2); font: 600 .78rem/1.2 var(--display); letter-spacing: .01em; color: var(--text-2); text-align: center; }
.w-phases .short { display: none; }
.w-legend { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.w-key { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-height: 48px; padding: 7px 10px; border: 1px solid var(--hair); border-radius: 14px; background: rgba(255, 255, 255, .04); color: var(--text); text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
@media (hover: hover) { .w-key:hover { background: rgba(255, 255, 255, .09); } }
.w-key[aria-pressed="true"] { border-color: var(--k, var(--lilac)); background: rgba(255, 255, 255, .12); }
.w-key i { width: 18px; height: 3px; border-radius: 3px; background: var(--k); box-shadow: 0 0 8px var(--k); }
.w-key b { font: 700 .86rem/1 var(--display); }
.w-key span { width: 100%; font-size: .72rem; line-height: 1.2; color: var(--text-2); }
html:not(.js) .w-dot, html:not(.js) .w-mark, html:not(.js) .w-range, html:not(.js) .wave-read, html:not(.js) .wave-hint { display: none; }
.wave-note { min-height: 3em; margin-top: 14px; font-size: .95rem; line-height: 1.45; color: #EFE9F7; }
.wave-cap { margin-top: 6px; font-size: .84rem; color: var(--text-2); }
.wave-hint { margin-top: 12px; font-size: .84rem; color: var(--text-3); }
@media (prefers-reduced-motion: no-preference) {
  .js .wave .w-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .wave.drawn .w-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease), opacity .25s; }
  .js .wave .w-fill { opacity: 0; }
  .js .wave.drawn .w-fill { opacity: 1; transition: opacity 1.2s .6s; }
  .js .wave.drawn[data-focus] .w-fill, .js .wave.drawn[data-focus] .w-line { transition: opacity .25s; }
}
.tk { padding: 22px; }
.tk h3 { font-size: 1.1rem; }
.tk-sub { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: .86rem; color: var(--text-2); }
.tk-foot { margin-top: auto; padding-top: 14px; font-size: .88rem; line-height: 1.4; color: var(--text-2); }
.tk-cal { grid-column: span 4; display: flex; flex-direction: column; }
.tag-pd { width: 18px; height: 8px; border-radius: 8px; background: var(--period); }
.mini-cal { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto repeat(5, minmax(0, 1fr)); gap: 6px 0; margin: 16px 0 0; padding: 0; list-style: none; font: 600 .92rem/1 var(--display); text-align: center; font-variant-numeric: tabular-nums; }
.mini-cal li { display: grid; place-items: center; min-height: clamp(34px, 3.2vw, 44px); }
.mini-cal .d { height: 22px; font-size: .72rem; color: var(--text-3); }
.mini-cal .pd { align-self: center; height: clamp(34px, 3.2vw, 44px); min-height: 0; background: linear-gradient(90deg, #FF4C8F, #FF7DAE); color: #2A0A1C; font-weight: 800; }
.mini-cal .pd-s { border-radius: 99px 0 0 99px; }
.mini-cal .pd-e { border-radius: 0 99px 99px 0; }
.tk-flow { grid-column: span 4; }
.tk-pain { grid-column: span 4; }
.tk-feel { grid-column: span 5; }
.tk-energy { grid-column: span 3; }
@media (min-width: 1041px) { .wave { grid-row: 1 / span 2; } }
.t-drops { display: flex; justify-content: space-between; gap: 2px; margin: 16px 0 0; padding: 0; list-style: none; font-size: .72rem; color: var(--text-2); }
.t-drops li { display: grid; justify-items: center; gap: 7px; }
.t-pain { display: grid; grid-template-columns: repeat(11, 1fr); gap: 2px; margin: 14px 0 0; padding: 0; list-style: none; font: 600 .72rem/1 var(--display); color: var(--text-2); text-align: center; }
.t-pain li { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; }
.t-pain .on { background: var(--lilac); color: var(--ink); font-weight: 800; }
.t-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; font-size: .84rem; }
.t-chips li { padding: 6px 11px; border: 1px solid var(--hair); border-radius: 999px; color: var(--text-2); }
.t-chips .on { border-color: transparent; background: rgba(255, 145, 184, .24); color: var(--text); font-weight: 600; }
.t-big { margin-top: 12px; font: 800 2.2rem/1 var(--display); letter-spacing: -.03em; }
.t-big span { font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--text-2); }
.t-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 14px 0 0; padding: 0; list-style: none; }
.t-bars li { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .12); }
.t-bars .on { background: linear-gradient(90deg, var(--mint), #A9EEDC); }

/* ── Sky: the app's three tabs, all on show, then the bodygraph ── */
.head-lede { margin-top: 18px; max-width: 34em; font-size: 1.15rem; color: var(--text-2); }
.phases { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(6px, 1.6vw, 24px); max-width: 760px; margin: 0 auto clamp(32px, 4vw, 56px); padding: 0; list-style: none; }
.phases img { width: 100%; }
.sky-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sky-card .bleed, .join-phone { aspect-ratio: 1 / 1.31; }
.sky-card { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.bodygraph-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: 16px; padding: clamp(28px, 4vw, 56px) clamp(24px, 6vw, 88px); }
.bodygraph-copy h3 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-weight: 800; letter-spacing: -.025em; }
.bodygraph-copy > p:not(.gate-note) { margin-top: 12px; max-width: 30em; font-size: 1.1rem; color: #E6DFF2; }
.trio { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.trio li, .gate-note { padding: 11px 15px; border-radius: 16px; background: rgba(14, 11, 26, .5); border: 1px solid var(--hair-2); }
.trio small, .gate-note small { display: block; font-size: .78rem; color: var(--text-2); }
.trio b, .gate-note b { display: block; margin-top: 2px; font: 700 1rem/1.25 var(--display); word-spacing: .09em; }
.gate-note { display: inline-block; margin-top: 8px; }
.bodygraph { justify-self: center; width: min(100%, 360px); border-radius: 26px; box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .95), 0 0 90px -20px rgba(194, 166, 255, .6); }

/* ── Nova ── */
.nova-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-bottom: clamp(24px, 3vw, 40px); padding-inline: clamp(24px, 6vw, 88px); }
.nova-phone { margin-top: 48px; }
.nova-card .nova-copy { padding-block: 40px; }
.nova-lede { margin-top: 18px; max-width: 30em; font-size: 1.15rem; color: var(--text-2); }
.rail-wrap { margin-inline: calc(50% - 50vw); }
.rail, .rail-nav { padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.rail { display: flex; gap: 14px; margin: 0; padding-block: 4px 8px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.ritual { flex: 0 0 min(76vw, 300px); scroll-snap-align: start; overflow: clip; padding-bottom: 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--hair); transition: transform .3s var(--ease), border-color .3s; }
@media (hover: hover) { .ritual:hover { transform: translateY(-4px); border-color: var(--hair-2); } }
.ritual img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ritual h3 { margin: 16px 20px 0; font-size: 1.14rem; }
.ritual p { margin: 4px 20px 0; font-size: .95rem; color: var(--text-2); }
.rail-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.round { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--hair-2); border-radius: 50%; background: rgba(255, 255, 255, .05); color: var(--text); cursor: pointer; transition: background .2s; }
@media (hover: hover) { .round:hover { background: rgba(255, 255, 255, .12); } }

/* ── People ── */
.card-photo { min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; }
.card-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate { position: relative; padding: 96px 28px 28px; background: linear-gradient(to top, rgba(14, 11, 26, .96) 0%, rgba(14, 11, 26, .86) 58%, transparent); }
.people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.people-friends { min-height: 640px; }
.people-friends > img { object-position: 50% 58%; }
.wishes { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.wishes li { padding: 6px 12px; border-radius: 999px; background: rgba(194, 166, 255, .18); font-size: .87rem; color: var(--text); }
.people-chat { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 640px; }

/* ── Privacy ── */
.privacy-top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.notes-art { position: sticky; top: 96px; aspect-ratio: 1000 / 926; }
.notes-stack { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent), linear-gradient(transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent), linear-gradient(transparent, #000 3%, #000 97%, transparent); -webkit-mask-composite: source-in; mask-composite: intersect; }
.charm-n { position: absolute; z-index: 1; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .5)); }
.n-a { width: 17%; left: 0; top: 54%; rotate: -10deg; }
.n-b { width: 16%; right: 2%; top: 12%; rotate: 8deg; }
.n-c { width: 12%; right: 0; top: 74%; rotate: 12deg; }
.facts { margin: clamp(28px, 4vw, 44px) 0 0; }
.facts div { padding: 20px 0; border-top: 1px solid var(--hair); }
.facts dt { font: 700 1.18rem/1.25 var(--display); letter-spacing: -.015em; }
.facts dd { margin: 6px 0 0; color: var(--text-2); }
.facts a { color: var(--pink-2); }

/* ── FAQ ── */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: 96px; }
.faq-list details { border-top: 1px solid var(--hair); }
.faq-list details:last-child { border-bottom: 1px solid var(--hair); }
.faq-list summary { position: relative; display: block; padding: 20px 44px 20px 0; min-height: 48px; font: 700 1.12rem/1.3 var(--display); letter-spacing: -.012em; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--lilac); border-bottom: 2px solid var(--lilac); transform: rotate(-45deg); transition: transform .25s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(-2px) rotate(45deg); }
.faq-list details p { padding: 0 44px 22px 0; color: var(--text-2); }

/* ── Join: the hero's composition again, over the twilight lake ── */
.join { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 64px); align-items: center; width: min(calc(100% - var(--gutter) * 2), 1280px); margin: clamp(84px, 11vw, 168px) auto 0; padding: 0 clamp(24px, 6vw, 88px); overflow: clip; border-radius: calc(var(--r) + 8px); border: 1px solid var(--hair-2); box-shadow: var(--shadow); background: var(--ink); }
.join-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.join-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(14, 11, 26, .9) 0%, rgba(14, 11, 26, .74) 52%, rgba(14, 11, 26, .24) 100%); }
.join-inner { padding-block: 64px; }
.join .waitlist { margin: 0; }
.join-icon { width: 64px; height: 64px; margin-bottom: 20px; border-radius: 16px; box-shadow: 0 0 60px -6px rgba(255, 145, 184, .5); }
.join-inner > p { margin: 14px 0 26px; font-size: 1.15rem; color: #F0EBF8; }
.join-phone { margin-top: 48px; }

/* ── Footer ── */
.footer { margin-top: clamp(64px, 8vw, 110px); padding: clamp(48px, 6vw, 80px) var(--gutter) calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; max-width: var(--max); margin: 0 auto; }
.footer-id { max-width: 330px; }
.footer-id p { margin: 12px 0 20px; color: var(--text-2); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(130px, auto)); gap: 32px 56px; }
.footer-cols h2 { margin-bottom: 8px; font: 700 .94rem/1.2 var(--display); letter-spacing: -.01em; color: var(--text); }
.footer-cols a { display: flex; align-items: center; min-height: 40px; color: var(--text-2); font-size: .97rem; text-decoration: none; }
@media (hover: hover) { .footer-cols a:hover { color: var(--text); text-decoration: underline; } }
.footer-legal { max-width: var(--max); margin: clamp(32px, 4vw, 48px) auto 0; padding-top: 22px; border-top: 1px solid var(--hair); font-size: .86rem; color: var(--text-3); }

/* ── Legal, support and 404 pages ── */
.page { max-width: calc(780px + var(--gutter) * 2); margin: 0 auto; padding: 120px var(--gutter) 88px; }
.page h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.legal h2 { margin-top: 48px; font-size: 1.7rem; font-weight: 800; letter-spacing: -.022em; scroll-margin-top: 96px; }
.legal h3 { margin-top: 24px; font-size: 1.14rem; }
.legal p, .legal ul { margin-top: 12px; color: var(--text-2); }
.legal ul { padding-left: 1.2em; display: grid; gap: 8px; }
.legal li::marker { color: var(--lilac); }
.legal strong { color: var(--text); }
.legal code { font: inherit; color: var(--text); }
.legal .lede-legal { margin-top: 18px; font-size: 1.14rem; color: var(--text); }
.legal .meta { margin-top: 10px; font-size: .92rem; color: var(--text-3); }
.summary, .toc { margin-top: 28px; padding: 22px 24px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--hair); }
.summary h2 { margin-top: 0; font-size: 1.2rem; }
.toc p { margin: 0; font: 700 .94rem/1.2 var(--display); color: var(--text); }
.toc ol { columns: 2 220px; column-gap: 28px; margin: 12px 0 0; padding-left: 1.3em; color: var(--text-3); }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { color: var(--text-2); }
.table-wrap { margin-top: 14px; overflow-x: auto; border: 1px solid var(--hair); border-radius: 16px; }
.table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .95rem; }
.table-wrap th, .table-wrap td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); color: var(--text-2); }
.table-wrap th { color: var(--text); background: var(--panel); font-weight: 700; }
.table-wrap tr:last-child td { border-bottom: 0; }
.actions { margin-top: 28px; }
.page-404 { display: grid; align-content: center; min-height: 72vh; text-align: center; }
.page-404 p { margin-top: 14px; color: var(--text-2); }
.page-404 img { width: 120px; margin: 0 auto 22px; }

/* Too narrow for the outer cards beside the phone. */
@media (max-width: 1400px) { .f-lock, .f-flow { display: none; } }
@media (min-width: 861px) and (max-width: 1100px) { .f-note { display: none; } }
@media (max-width: 1320px) { .q-cards li { position: static; width: auto; rotate: none; animation: none; } .q-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; } .q-e { grid-column: span 2; } }

/* ── Tablet ── */
@media (max-width: 1040px) {
  .bento-grid > .card { grid-column: span 12; }
  .wave, .tk-cal { grid-column: span 12; }
  .tk-flow, .tk-pain, .tk-feel, .tk-energy { grid-column: span 6; }
  .minis { grid-template-columns: repeat(2, 1fr); }
  .sky-grid { grid-template-columns: 1fr; }
  .sky-card .phone { width: min(calc(100% - 44px), 340px); }
  .people-grid { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .people-friends { min-height: 560px; }
  .people-chat { min-height: 0; }
  .checkin { grid-template-columns: 1fr; }
  .privacy-top { grid-template-columns: 1fr; }
  .notes-art { position: relative; top: 0; max-width: 560px; margin-inline: auto; width: 100%; }
}

/* ── Phone ── */
@media (max-width: 860px) {
  /* Stacked: copy, then the phone rising from the garden. */
  .hero { --h: 640px; }
  .hero-stage { grid-template-columns: minmax(0, 1fr); height: auto; }
  .hero-copy { padding-top: calc(max(12px, env(safe-area-inset-top)) + 84px); }
  .hero-visual { height: calc(var(--h) * .95); margin-top: 28px; }
  .hero-art { -webkit-mask-image: linear-gradient(to bottom, transparent 8%, #000 30%); mask-image: linear-gradient(to bottom, transparent 8%, #000 30%); }
  .hero-garden { -webkit-mask-image: linear-gradient(to bottom, transparent 68%, #000 75%); mask-image: linear-gradient(to bottom, transparent 68%, #000 75%); }
  .hero-phone { top: 56px; width: calc(var(--h) * .4); }
  .f-moon, .f-note { left: 0; right: auto; }
  .f-moon { top: 176px; }
  .f-note { top: 356px; width: 138px; }
  .f-lock, .f-flow { display: flex; }
  .f-lock { left: auto; right: 0; top: 96px; }
  .f-flow { left: auto; right: 0; top: 326px; }
  .nova-card { grid-template-columns: 1fr; padding-top: 28px; }
  .nova-card .nova-copy { padding-block: 8px 0; }
  .nova-phone { margin-top: 8px; }
  .join { grid-template-columns: 1fr; }
  .join-inner { padding-block: 48px 0; }
  .join-phone { width: min(100%, 300px); margin-top: 28px; }
  .join-phone.bleed, .join-phone { aspect-ratio: 1 / .78; }
  .join-shade { background: linear-gradient(to bottom, rgba(14, 11, 26, .92) 0%, rgba(14, 11, 26, .7) 60%, rgba(14, 11, 26, .3) 100%); }
  .nav { gap: 8px; justify-content: space-between; padding-left: 12px; }
  .nav-links { display: none; }
  .js .nav-toggle { display: block; }
  html:not(.js) .nav { justify-content: space-between; }
  .nav-links + .btn { margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .btn .long { display: none; }
  .nav > .btn { min-height: 38px; padding: 0 13px; font-size: .84rem; } /* the waitlist stays one tap away all the way down */
  .btn .short { display: inline; }
  .brand { font-size: .9rem; gap: 8px; }
  .hero-copy h1 { font-size: clamp(2.9rem, 13.5vw, 3.6rem); }
  .lede { margin-top: 14px; }
  .field { flex-direction: column; padding: 6px; border-radius: 28px; }
  .field input { min-height: 52px; padding: 0 16px; border-radius: 22px; background: rgba(255, 255, 255, .08); }
  .field .btn { width: 100%; min-height: 52px; }
  .float b { font-size: .84rem; }
  .f-moon, .f-lock, .f-flow { display: none; }
  .f-note { width: 118px; padding: 10px 11px 13px; }
  .f-note b { font-size: .86rem; }
  .tk-flow, .tk-pain, .tk-feel, .tk-energy { grid-column: span 12; }
  .w-phases .long { display: none; }
  .w-phases .short { display: inline; }
  .w-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-key:last-child { grid-column: span 2; }
  .wave-plot { height: 210px; }
  .tracker-inner { padding-top: 104px; }
  .tracker-shade { background: linear-gradient(to bottom, var(--ink) 0%, rgba(14, 11, 26, .2) 9%, rgba(14, 11, 26, .3) 40%, rgba(14, 11, 26, .75) 80%, var(--ink) 100%); }
  .tracker-head { padding: 18px 18px 20px; border-radius: var(--r); background: rgba(20, 15, 34, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); border: 1px solid var(--hair-2); }
  .tracker-film img { opacity: .5; } /* the Moon sits faint behind the heading card */
  .wave-note { min-height: 4.4em; }
  /* Lifts the Moon into the gap above the heading card; translate is a share of the film's height. */
  .tracker-film img, .tracker-film video { transform: translateY(-14%) scale(1.55); transform-origin: 50% 30%; object-position: 50% 30%; }

  .demo-screen { height: 500px; padding-inline: 14px; }
  .tiles-5 { gap: 6px; }
  .tile { border-radius: 14px; }
  .drop { width: 22px; height: 22px; }
  .bodygraph-card { grid-template-columns: 1fr; }
  .sky-card .phone { width: min(calc(100% - 44px), 300px); }
  /* The three Sky tabs swipe sideways; the next card peeks in. */
  .sky-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .sky-grid::-webkit-scrollbar { display: none; }
  .sky-card { flex: 0 0 84%; scroll-snap-align: start; }

  .b-calendar, .b-care, .b-report { display: flex !important; padding-right: 0; }
  .bento-grid > .card .phone { margin-top: 0; width: min(calc(100% - 44px), 300px); }
  .food, .card-art { display: none; }
  .charm-a { width: 64px; left: 2%; top: 74%; }
  .charm-b { width: 60px; right: 2%; top: 66%; }
  .charm-c { width: 44px; right: 4%; top: 86%; }
  .minis { grid-template-columns: 1fr; gap: 10px; }
  .minis li { flex-direction: row; align-items: center; padding: 16px; }
  .minis img { flex: none; width: 56px; height: 56px; }

  .people-chat .phone { width: min(calc(100% - 44px), 300px); }
  .card-photo { min-height: 460px; }
  .people-friends { min-height: 560px; }
  .plate { padding: 80px 20px 22px; }
  .card-text { padding: 22px 22px 0; }

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; width: 100%; }
}


/* ── Reduced motion: stills, nothing drifts ── */
@media (prefers-reduced-motion: reduce) {
  .reveal, .ritual, .btn, .tile, .faq-list summary::after { transition: none; }
  .tracker-film video { display: none; }
}
