/* ───────────────────────────────────────────────────────────────────────────
   Cocoon — landing page styles. Builds on tokens.css.
   "The Letter That Hatches": one warm Sorbet day, with a single Twilight passage.
   ─────────────────────────────────────────────────────────────────────────── */

/* paper grain over the whole page — a whisper, not a texture.
   A plain low-opacity overlay (no blend mode) so it never pegs the compositor. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ── helpers ──────────────────────────────────────────────────────────── */
.wrap { width: min(100% - 2.6rem, var(--maxw)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.6rem, 760px); }
.center { text-align: center; }
.center .lead, .center > p { margin-inline: auto; }
.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
  background: var(--surface); color: var(--ink); padding: 0.6rem 1rem; border-radius: var(--r-chip);
  z-index: 10000; box-shadow: var(--sh-2);
}

.hand { font-family: var(--font-hand); font-size: 1.5rem; color: var(--ink-hand); line-height: 1.3; }
.night .hand { color: var(--lilac-night); }
.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: lowercase; color: var(--ink-soft);
  margin-bottom: 0.9rem;
}
.lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 52ch; line-height: var(--lh-snug); }
em { font-style: normal; color: var(--accent-ink); font-weight: 700; }

.section { position: relative; padding-block: var(--space-section); }
.section__head { max-width: 56ch; margin-bottom: 3rem; }
.section__head.center { margin-inline: auto; }
h2 { font-size: var(--fs-h1); margin-bottom: 0.7rem; }
h3 { font-size: var(--fs-h3); margin-bottom: 0.35rem; }
.section p + .lead, .section p { margin-bottom: 1.1rem; }
.section p:last-of-type { margin-bottom: 0; }

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  padding: 0.85em 1.5em; border-radius: var(--r-chip);
  background: var(--surface); color: var(--ink); box-shadow: var(--sh-1);
  transition: transform var(--t-fast) var(--spring), box-shadow var(--t-fast) var(--settle);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active { transform: scale(0.96); }
.btn--blush { background: var(--blush); color: var(--cocoa); box-shadow: 0 8px 20px rgba(251,177,203,0.42); }
.btn--blush:hover { background: #ffc9d6; }

/* ── chips ────────────────────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 0.3em;
  font-family: var(--font-body); font-weight: 700; font-size: 0.82rem;
  padding: 0.32em 0.85em; border-radius: var(--r-chip);
  background: var(--mint); color: var(--cocoa); white-space: nowrap;
}
.chip--sky { background: var(--sky); }
.chip--peach { background: var(--peach); }
.chip--blush { background: var(--blush); }
.chip--lilac { background: var(--lilac); }
.chip--mint { background: var(--mint); }
.chip--amber { background: var(--amber); }

/* ═══════════════════════════ NAV ═══════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem clamp(1rem, 4vw, 2.4rem);
  transition: background var(--t-med) var(--settle), box-shadow var(--t-med) var(--settle), padding var(--t-med) var(--settle);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 4px 24px rgba(93,74,85,0.06);
}
.nav__logo img { height: 40px; width: auto; }
.nav__right { display: flex; align-items: center; gap: 1rem; }
.nav__soon { font-family: var(--font-hand); font-size: 1.2rem; color: var(--ink-soft); }
.nav__cta { padding: 0.6em 1.2em; font-size: 0.95rem; }

@media (max-width: 620px) {
  .nav__soon { display: none; }
  .nav__logo img { height: 34px; }
}

/* ═══════════════════════════ HERO ═══════════════════════════ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 6.5rem 1.4rem 5rem; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, color-mix(in srgb, var(--sky) 55%, var(--cream)) 0%, transparent 55%),
    radial-gradient(90% 70% at 85% 30%, color-mix(in srgb, var(--lilac) 50%, transparent) 0%, transparent 60%),
    radial-gradient(80% 70% at 12% 70%, color-mix(in srgb, var(--blush) 45%, transparent) 0%, transparent 55%),
    var(--cream);
}
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: relative; z-index: 1;
  width: min(100% - 2.6rem, var(--maxw));
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; text-align: left; max-width: 32rem; }
.hero__eyebrow { color: var(--ink-soft); margin-bottom: 0.9rem; }
.hero__title { font-size: var(--fs-hero); font-weight: 800; margin-bottom: 0.45rem; }
.hero__hand { font-size: clamp(1.2rem, 2.5vw, 1.65rem); color: var(--accent-ink); margin-bottom: 1.1rem; max-width: 26ch; }
.hero__sub { font-size: var(--fs-lead); color: var(--ink-2); max-width: 40ch; line-height: var(--lh-snug); margin-bottom: 1.7rem; }
.hero__sub strong { color: var(--ink); }
.hero__copy .waitlist { justify-content: flex-start; }
.hero__copy .waitlist__fine { text-align: left; }

.hero__device { position: relative; display: flex; justify-content: center; align-items: center; }
.device--hero { width: min(290px, 78vw); }
.hero__charm { position: absolute; left: -6%; bottom: 0; width: clamp(72px, 11vw, 116px); height: auto; filter: drop-shadow(0 10px 18px rgba(232,161,188,0.4)); animation: floaty 5s ease-in-out infinite; z-index: 3; }

@media (max-width: 860px) {
  .hero { min-height: auto; padding: 6rem 1.4rem 3.5rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 2.2rem; justify-items: center; }
  .hero__copy { align-items: center; text-align: center; max-width: 34rem; }
  .hero__copy .waitlist { justify-content: center; }
  .hero__copy .waitlist__fine { text-align: center; }
  .hero__device { order: 2; }
  .device--hero { width: min(232px, 62vw); }
  .hero__charm { left: auto; right: -2%; bottom: 3%; }
  .scroll-cue { display: none; }
}

.scroll-cue {
  position: absolute; bottom: 1.7rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  font-size: 1.25rem; color: var(--ink-soft);
}
.scroll-cue__arrow {
  width: 12px; height: 12px; border-right: 3px solid var(--accent-ink);
  border-bottom: 3px solid var(--accent-ink); transform: rotate(45deg);
  border-radius: 2px; animation: bob 1.8s ease-in-out infinite;
}

/* ── waitlist form ─── */
/* honeypot: kept off-screen (not display:none, so bots still fill it) and out of
   the tab order; the collector silently drops any submission that fills it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.waitlist {
  display: flex; gap: 0.6rem; width: min(100%, 460px); position: relative; flex-wrap: wrap;
  justify-content: center;
}
.waitlist__input {
  flex: 1 1 220px; min-width: 0;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 0.95em 1.3em; border-radius: var(--r-chip);
  background: var(--surface); box-shadow: inset 0 0 0 2px var(--blush), var(--sh-1);
  transition: box-shadow var(--t-med) var(--settle);
}
.waitlist__input::placeholder { color: var(--ink-2); }
.waitlist__input:focus { outline: none; box-shadow: inset 0 0 0 2.5px var(--blush-deep), var(--sh-2); }
.waitlist__btn { flex: 0 0 auto; }
.waitlist__done {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--mint); color: var(--cocoa); border-radius: var(--r-chip);
  font-family: var(--font-display); font-weight: 700; box-shadow: var(--sh-2);
  animation: bloomIn var(--t-slow) var(--spring) both;
}
/* The confirmation only appears AFTER a successful submit. Until then the `hidden`
   attribute must truly hide it — the author `display:flex` above otherwise wins over
   the UA `[hidden]{display:none}` rule and the green panel covers the email input. */
.waitlist__done[hidden] { display: none; }
.waitlist--big { width: min(100%, 540px); margin: 1.8rem auto 0.8rem; }
.waitlist--big .waitlist__input { padding: 1.1em 1.4em; font-size: 1.08rem; }
.waitlist__fine { font-size: 0.86rem; color: var(--ink-soft); margin-top: 0.9rem; }

/* ═══════════════════════════ ACHE ═══════════════════════════ */
.ache { text-align: center; background: linear-gradient(180deg, var(--cream) 0%, color-mix(in srgb, var(--lilac) 22%, var(--cream)) 100%); }
.ache .lead { margin: 0 auto 3rem; }
.ache__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-bottom: 3rem; }
.ache-card {
  background: var(--surface); border-radius: var(--r-card); padding: 2rem 1.5rem;
  box-shadow: var(--sh-1); color: var(--ink-soft); transition: opacity var(--t-slow) var(--settle);
}
/* the cold rooms recede on the "turn" — by opacity only; the brand has no gray (tokens §never gray) */
.ache.is-turned .ache-card { opacity: 0.6; }
.ache-card__art { width: 88px; height: 88px; margin: 0 auto 1rem; color: var(--fawn); }
.ache-card__art svg { width: 100%; height: 100%; }
.ache-card figcaption { font-size: 0.95rem; line-height: 1.5; }
.ache-card figcaption strong { display: block; font-family: var(--font-display); color: var(--ink); margin-bottom: 0.3rem; font-size: 1.05rem; }
.ache__turn {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-family: var(--font-display); font-weight: 600;
  color: var(--ink); max-width: 24ch; margin: 0 auto 1.4rem; line-height: 1.35;
}
.ache__turn em { font-weight: 700; }

@media (max-width: 720px) {
  .ache__cards { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

/* ═══════════════════════════ ONE WORLD ═══════════════════════════ */
.one-world { background: color-mix(in srgb, var(--lilac) 22%, var(--cream)); }
.loop {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 0.8rem;
  margin: 0 auto 3.4rem; padding: 1.3rem 1.6rem; max-width: fit-content;
  background: var(--surface); border-radius: var(--r-sheet); box-shadow: var(--sh-1); position: relative;
}
.loop__node {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink);
  padding: 0.4em 0.95em; border-radius: var(--r-chip);
  background: linear-gradient(135deg, var(--blush), var(--peach));
}
.loop__node:nth-child(3) { background: linear-gradient(135deg, var(--sky), var(--lilac)); }
.loop__node:nth-child(5) { background: linear-gradient(135deg, var(--lilac), var(--blush)); }
.loop__node:nth-child(7) { background: linear-gradient(135deg, var(--mint), var(--sky)); }
.loop__node:nth-child(9) { background: linear-gradient(135deg, var(--butter), var(--peach)); }
.loop__node:nth-child(11){ background: linear-gradient(135deg, var(--peach), var(--blush)); }
.loop__arrow { color: var(--ink-2); font-size: 1.2rem; }
.loop__loopback { color: var(--accent-ink); font-size: 1.4rem; margin-left: 0.3rem; }

.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-bottom: 2.6rem; }
.door {
  position: relative; background: var(--surface); border-radius: var(--r-card);
  padding: 1.8rem 1.6rem; box-shadow: var(--sh-1); overflow: hidden;
  transition: transform var(--t-med) var(--spring), box-shadow var(--t-med) var(--settle);
}
.door::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--tint); }
.door:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.door__icon { font-size: 1.9rem; display: block; margin-bottom: 0.6rem; }
.door p { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.5; margin: 0; }

@media (max-width: 860px) { .doors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .doors { grid-template-columns: 1fr; } .loop { gap: 0.4rem; padding: 1rem; } .loop__node { font-size: 0.92rem; } }
/* on the narrowest phones, hide the arrows so a wrapped row never orphans a "→" (aria-label still conveys order) */
@media (max-width: 480px) { .loop__arrow { display: none; } }

/* ═══════════════════════════ SPLIT SECTIONS ═══════════════════════════ */
.split__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--rev .split__media { order: -1; }
.split__text .lead { margin-bottom: 1.2rem; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin: 1.6rem 0; }
.feature-list li {
  position: relative; padding-left: 1.7rem; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.5;
}
.feature-list li::before {
  content: "🦋"; position: absolute; left: 0; top: 0.05em; font-size: 0.95rem;
}
.feature-list li strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1.05rem; margin-bottom: 0.15rem; }
.feature-list--center { text-align: left; max-width: 720px; margin-inline: auto; }

@media (max-width: 820px) {
  .split__grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .split--rev .split__media { order: 0; }
  .feature-list--center { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .feature-list--center { grid-template-columns: 1fr; } }

/* ── device frame placeholder ─── */
.split__media { display: flex; flex-direction: column; align-items: center; }
.device { position: relative; width: min(300px, 80vw); }
.device--paper { width: min(280px, 74vw); }
.device__frame {
  position: relative; aspect-ratio: 9 / 19; border-radius: 38px; overflow: hidden;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--blush) 40%, var(--cream)), color-mix(in srgb, var(--lilac) 40%, var(--cream)));
  box-shadow: var(--sh-3), inset 0 0 0 7px var(--surface), inset 0 0 0 9px rgba(93,74,85,0.08);
}
.device__shot { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); object-fit: cover; border-radius: 32px; z-index: 3; }
.device__placeholder {
  position: absolute; inset: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem; text-align: center; padding: 1.4rem; border-radius: 32px;
}
.device__ph-glyph { font-size: 2.6rem; }
.device__ph-label { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.device__ph-path { font-size: 0.72rem; color: var(--ink-soft); background: rgba(255,255,255,0.6); padding: 0.25em 0.6em; border-radius: 8px; word-break: break-all; }
.device__caption { margin-top: 1rem; }

.float-chips {
  position: absolute; right: -1.4rem; top: 16%; display: flex; flex-direction: column; gap: 0.6rem;
  align-items: flex-end; z-index: 5;
}
.float-chips .chip { box-shadow: var(--sh-2); animation: floaty 4s ease-in-out infinite; }
.float-chips .chip:nth-child(2) { animation-delay: 0.7s; }
.float-chips .chip:nth-child(3) { animation-delay: 1.4s; }

/* ── task demo ─── */
.task-demo { width: min(380px, 90vw); background: var(--surface); border-radius: var(--r-card); padding: 1.4rem; box-shadow: var(--sh-2); }
.task-row {
  display: flex; align-items: center; gap: 0.8rem; width: 100%; text-align: left;
  padding: 0.85rem 0.6rem; border-radius: var(--r-pill); font-family: var(--font-body); font-size: 1.02rem; color: var(--ink);
  transition: background var(--t-fast) var(--settle);
}
.task-row:hover { background: color-mix(in srgb, var(--blush) 24%, transparent); }
.task-row__box {
  width: 26px; height: 26px; border-radius: 9px; flex: 0 0 auto;
  box-shadow: inset 0 0 0 2.5px var(--blush-deep); background: var(--surface);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800;
  transition: background var(--t-med) var(--spring), transform var(--t-fast) var(--spring);
}
.task-row__box--seed { box-shadow: none; background: transparent; font-size: 1.1rem; }
.task-row__label { flex: 1; transition: color var(--t-med), opacity var(--t-med); }
.task-row__bud { opacity: 0.8; }
.task-row.is-done .task-row__box { background: var(--mint-deep); box-shadow: inset 0 0 0 2.5px var(--mint-deep); }
.task-row.is-done .task-row__box::after { content: "✓"; }
.task-row.is-done .task-row__label { color: var(--ink-faint); text-decoration: line-through; opacity: 0.7; }
.task-row--wilt { cursor: default; }
.task-row--wilt:hover { background: none; }
.task-demo__hint { text-align: center; margin-top: 0.6rem; font-size: 1.15rem; }

.habit-grid { width: min(380px, 90vw); margin-top: 1.4rem; background: var(--surface); border-radius: var(--r-card); padding: 1.2rem 1.4rem; box-shadow: var(--sh-1); }
.habit-grid__title { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.7rem; }
.habit-grid__bloom { color: var(--accent-ink); font-weight: 700; }
.habit-grid__cells { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.hcell { aspect-ratio: 1; border-radius: 6px; background: color-mix(in srgb, var(--mint) 40%, var(--cream)); }
.hcell.on { background: var(--mint-deep); }
.hcell.bloom { background: var(--blush); }
.hcell.rest { background: var(--lilac); }

/* ═══════════════════════════ FOCUS (Twilight) ═══════════════════════════ */
.focus {
  background:
    radial-gradient(120% 80% at 50% 120%, color-mix(in srgb, var(--lilac-deep) 30%, var(--plum)) 0%, transparent 60%),
    radial-gradient(80% 60% at 50% 0%, #38304a 0%, transparent 60%),
    var(--plum);
  color: var(--cream-night); text-align: center; overflow: hidden; isolation: isolate;
}
.focus h2 { color: var(--cream-night); }
.focus .lead { color: var(--fawn-night); margin-inline: auto; }
.focus .eyebrow { color: var(--lilac-night); }
.focus__stars { position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 25%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 70% 18%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 45% 35%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 85% 50%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 60% 75%, rgba(255,255,255,0.5), transparent);
  animation: twinkle 6s ease-in-out infinite;
}
.focus__clouds {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background:
    radial-gradient(60% 40% at 20% 30%, rgba(207,192,226,0.18), transparent 70%),
    radial-gradient(50% 36% at 80% 60%, rgba(231,185,198,0.16), transparent 70%);
  animation: drift 24s linear infinite;
}
.focus__inner { position: relative; z-index: 1; }

.cocoon-stage { margin: 2.6rem auto 2rem; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.cocoon-hold {
  position: relative; width: 260px; height: 260px; border-radius: 50%;
  display: grid; place-items: center; touch-action: none; -webkit-user-select: none; user-select: none;
}
.cocoon-hold__glow {
  position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,241,193,0.35) 0%, transparent 65%);
  opacity: 0.5; transition: opacity var(--t-med), transform var(--t-med); z-index: 0;
}
.cocoon-hold.is-holding .cocoon-hold__glow { opacity: 1; transform: scale(1.12); animation: glowPulse 1.4s ease-in-out infinite; }
.cocoon-hold__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); z-index: 1; }
.ring-track { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 7; }
.ring-fill {
  fill: none; stroke: var(--butter); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 628; stroke-dashoffset: 628; filter: drop-shadow(0 0 8px rgba(255,241,193,0.7));
}
.cocoon-hold__pod { position: relative; z-index: 2; transition: transform var(--t-med) var(--spring), opacity var(--t-med); }
.cocoon-hold.is-holding .cocoon-hold__pod { animation: podSpin 1.6s ease-in-out infinite; }
.cocoon-hold.is-tremble .cocoon-hold__pod { animation: tremble 0.4s linear 3; }
.cocoon-hold.is-hatched .cocoon-hold__pod { opacity: 0; transform: scale(0.6); }
.cocoon-hold__bfly {
  position: absolute; z-index: 3; opacity: 0; transform: scale(0.4); pointer-events: none;
}
.cocoon-hold.is-hatched .cocoon-hold__bfly { animation: hatchFly 2.4s var(--settle) forwards; }
.cocoon-status {
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--cream-night);
  min-height: 1.6em; transition: color var(--t-med);
}
.cocoon-status.is-nap { color: var(--lilac-night); }
.cocoon-status.is-win { color: var(--butter); }

.focus__copy { position: relative; z-index: 1; margin-top: 1rem; }
.focus .feature-list li { color: var(--fawn-night); }
.focus .feature-list li strong { color: var(--cream-night); }
.focus .feature-list li::before { content: "🤍"; }
.focus__hand { color: var(--lilac-night); margin-top: 1.4rem; }

.sound-toggle {
  position: absolute; bottom: 1.4rem; right: 1.4rem; z-index: 4;
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem;
  font-family: var(--font-display); font-weight: 600; color: var(--fawn-night);
  background: rgba(255,255,255,0.08); padding: 0.5em 0.9em; border-radius: var(--r-chip);
  transition: background var(--t-fast);
}
.sound-toggle:hover { background: rgba(255,255,255,0.16); }
.sound-toggle.is-on { color: var(--butter); background: rgba(255,241,193,0.16); }

/* ── global ambient-lofi toggle (fixed, opt-in, off by default) ─────────── */
.music-toggle {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 90;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
  padding: 0.55em 0.95em; border-radius: var(--r-chip); box-shadow: var(--sh-2);
  transition: transform var(--t-fast) var(--spring), background var(--t-med) var(--settle);
}
.music-toggle:hover { transform: translateY(-2px); }
.music-toggle.is-playing { background: var(--blush); color: var(--cocoa); }
.music-toggle__eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.music-toggle__eq i { width: 3px; height: 4px; background: currentColor; border-radius: 2px; opacity: 0.45; }
.music-toggle.is-playing .music-toggle__eq i { opacity: 0.9; animation: eq 0.9s ease-in-out infinite; }
.music-toggle.is-playing .music-toggle__eq i:nth-child(2) { animation-delay: 0.18s; }
.music-toggle.is-playing .music-toggle__eq i:nth-child(3) { animation-delay: 0.36s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 13px; } }
@media (max-width: 560px) { .music-toggle { left: 0.7rem; bottom: 0.7rem; padding: 0.5em 0.8em; font-size: 0.84rem; } }

/* ═══════════════════════════ MEADOW ═══════════════════════════ */
.meadow {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--plum) 0%, color-mix(in srgb, var(--sky) 30%, var(--cream)) 18%, color-mix(in srgb, var(--mint) 34%, var(--cream)) 100%);
  padding-top: calc(var(--space-section) + 2rem);
}
.meadow__scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.meadow__hill {
  position: absolute; left: -5%; right: -5%; bottom: 0; height: 34%;
  background: linear-gradient(180deg, var(--mint-deep), color-mix(in srgb, var(--mint-deep) 70%, var(--cream)));
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
}
.meadow__flowers { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; }
.meadow__flowers .mf { position: absolute; bottom: 4%; width: 42px; transform-origin: bottom center; animation: sway 4s ease-in-out infinite; }
.meadow__butterflies { position: absolute; inset: 0; }
.meadow .wrap { position: relative; z-index: 1; }

.cards-3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; margin-bottom: 2.4rem; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin: 2rem 0; }
.soft-card { background: var(--surface); border-radius: var(--r-card); padding: 1.6rem 1.5rem; box-shadow: var(--sh-1); }
.soft-card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; margin: 0; }
.soft-card strong { color: var(--ink); }

@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards-3, .cards-2 { grid-template-columns: 1fr; } }

/* ═══════════════════════════ REFLECT / PAPERS ═══════════════════════════ */
#reflect-papers { background: linear-gradient(180deg, color-mix(in srgb, var(--mint) 20%, var(--cream)) 0%, color-mix(in srgb, var(--peach) 32%, var(--cream)) 100%); }
.paper-spread { position: relative; padding: 1.5rem; }
.paper-spread__date { text-align: center; margin-bottom: 0.6rem; font-size: 1.7rem; }
.washi { position: absolute; width: 96px; height: 30px; z-index: 6; border-radius: 3px; opacity: 0.9; }
.washi--a { top: 6%; left: 4%; background: repeating-linear-gradient(45deg, var(--blush), var(--blush) 8px, var(--peach) 8px, var(--peach) 16px); transform: rotate(-14deg); }
.washi--b { bottom: 18%; right: 2%; background: repeating-linear-gradient(45deg, var(--sky), var(--sky) 8px, var(--lilac) 8px, var(--lilac) 16px); transform: rotate(10deg); }
.chrysalis-letter {
  position: absolute; right: -0.5rem; bottom: 1rem; z-index: 7;
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  background: var(--surface); padding: 0.8rem 1rem; border-radius: var(--r-pill); box-shadow: var(--sh-2);
  animation: floaty 5s ease-in-out infinite;
}
.chrysalis-letter__env { font-size: 1.8rem; }
.chrysalis-letter__seal { font-family: var(--font-hand); font-size: 1.05rem; color: var(--accent-ink); }

/* ═══════════════════════════ NOOKS ═══════════════════════════ */
.nooks { background: color-mix(in srgb, var(--peach) 22%, var(--cream)); }
.shelves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2.4rem; }
.nook {
  background: var(--surface); border-radius: var(--r-card); padding: 1.6rem; box-shadow: var(--sh-1);
  transition: transform var(--t-med) var(--spring);
}
.nook:hover { transform: translateY(-5px) rotate(-0.4deg); }
.nook__shelf {
  height: 116px; border-radius: var(--r-pill); margin-bottom: 1.2rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 40%, var(--cream)), color-mix(in srgb, var(--tint) 18%, var(--cream)));
  display: flex; align-items: flex-end; justify-content: center; gap: 5px; padding: 0 1rem 0.7rem;
  box-shadow: inset 0 -8px 0 rgba(93,74,85,0.06);
}
.spine { width: 15px; height: 64px; border-radius: 4px 4px 2px 2px; background: var(--c); box-shadow: inset -3px 0 0 rgba(0,0,0,0.05); }
.spine--tall { height: 84px; }
.nook__shelf--covers, .nook__shelf--posters { gap: 10px; align-items: center; padding-bottom: 0; }
.cover { width: 54px; height: 54px; border-radius: 10px; background: var(--c); display: grid; place-items: center; font-size: 1.5rem; color: rgba(93,74,85,0.5); box-shadow: var(--sh-1); }
.poster { width: 46px; height: 66px; border-radius: 8px; background: var(--c); display: grid; place-items: center; font-size: 1.4rem; box-shadow: var(--sh-1); }
.nook p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; margin: 0; }

@media (max-width: 820px) { .shelves { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ═══════════════════════════ WIDGETS ═══════════════════════════ */
.widgets { background: color-mix(in srgb, var(--sky) 20%, var(--cream)); }
.homescreen { display: flex; justify-content: center; margin-bottom: 2.6rem; }
.homescreen__shot {
  position: relative; width: min(560px, 92vw);
  border-radius: var(--r-sheet); padding: 1.4rem;
  background: linear-gradient(150deg, color-mix(in srgb, var(--lilac) 50%, var(--cream)), color-mix(in srgb, var(--blush) 40%, var(--cream)));
  box-shadow: var(--sh-3); overflow: hidden;
}
.homescreen__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; }
.widget-mock { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; z-index: 1; }
/* Real Cotton widget cards — warm gradient + rose-gold hairline + roseGold #B76E79
   accents, mirroring app/android/.../res (drawable/widget_bg + values/colors). */
.wmock {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #FDEFF1, #FFF6EC);
  border: 1px solid rgba(183, 110, 121, 0.22); border-radius: 22px;
  padding: 0.85rem 0.95rem; box-shadow: var(--sh-1);
  display: flex; flex-direction: column; gap: 0.3rem;
}
.wmock--tasks, .wmock--mood { grid-column: 1 / -1; }
/* countdown — emoji, title, one big soft number, a butterfly in the corner */
.wmock--count { align-items: center; justify-content: center; text-align: center; gap: 0.12rem; min-height: 116px; }
.wmock__bfly { position: absolute; top: 9px; right: 9px; animation: floaty 4.5s ease-in-out infinite; }
.wmock__emoji { font-size: 1.7rem; line-height: 1; }
.wmock__title { font-size: 0.78rem; color: var(--fawn); }
.wmock__big { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; line-height: 1.05; color: #B76E79; }
/* mochi & streak — rendered Mochi on a soft glow + a bloom streak */
.wmock--mochi { align-items: center; justify-content: center; text-align: center; gap: 0.1rem; min-height: 116px; }
.wmock__glow { position: absolute; top: 38%; left: 50%; width: 92px; height: 92px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 241, 193, 0.7), transparent 68%); }
.wmock--mochi svg { position: relative; z-index: 1; }
.wmock__name { font-family: var(--font-display); font-weight: 700; font-size: 0.84rem; color: var(--cocoa); }
.wmock__streak { font-size: 0.76rem; color: var(--fawn); }
/* today tasks — header + count chip + open circles (the real widget uses ◯, not checkboxes) */
.wmock--tasks { gap: 0.45rem; }
.wtasks__head { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; color: var(--cocoa); }
.wtasks__chip { font-size: 0.68rem; font-weight: 700; color: #B76E79; background: #F6E1DC; padding: 0.12em 0.7em; border-radius: 999px; }
.wtask { display: flex; align-items: center; gap: 0.55rem; font-size: 0.82rem; color: var(--cocoa); }
.wtask__o { width: 13px; height: 13px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 0 0 2px #B76E79; }
/* mood — the five real check-in moods */
.wmock--mood small { color: var(--cocoa); font-weight: 700; font-size: 0.78rem; }
.moods { font-size: 1.4rem; letter-spacing: 0.16em; margin-top: 0.2rem; }
.homescreen__ph-note { position: absolute; bottom: 0.5rem; left: 0; right: 0; text-align: center; font-size: 0.7rem; color: var(--ink-soft); z-index: 2; }
.homescreen__ph-note code { background: rgba(255,255,255,0.6); padding: 0.1em 0.4em; border-radius: 6px; }

.chip-row { list-style: none; display: grid; grid-template-columns: repeat(2,1fr); gap: 0.9rem 1.6rem; max-width: 820px; margin: 0 auto 2.2rem; }
.chip-row li { color: var(--ink-soft); font-size: 0.95rem; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

@media (max-width: 620px) { .widget-mock { grid-template-columns: 1fr; } .homescreen__shot { aspect-ratio: auto; } .chip-row { grid-template-columns: 1fr; } }

/* ═══════════════════════════ MEADOW DEVICE (real shot over the CSS scene) ═══════════════════════════ */
.meadow__device { margin: 0 auto 2.8rem; }

/* ═══════════════════════════ NOOKS — two real screens, lightly fanned ═══════════════════════════ */
.nook-phones { display: flex; justify-content: center; align-items: flex-start; gap: 0.4rem; }
.device--nook { width: min(168px, 40vw); }
.nook-phones .device:first-child { transform: rotate(-3deg); z-index: 2; }
.nook-phones .device:last-child { transform: rotate(3deg); margin-top: 1.8rem; }
@media (max-width: 420px) { .device--nook { width: min(150px, 42vw); } .nook-phones { gap: 0.2rem; } }

/* ═══════════════════════════ PRIVACY ═══════════════════════════ */
.privacy { background: linear-gradient(180deg, color-mix(in srgb, var(--lilac) 28%, var(--cream)), color-mix(in srgb, var(--sky) 26%, var(--cream))); }
.privacy__lock { width: 110px; margin: 0 auto 1.4rem; filter: drop-shadow(0 12px 22px rgba(168,139,214,0.3)); }
.privacy h2 { font-size: clamp(2rem, 5.4vw, 3.4rem); }
.promise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 2.6rem 0 1.6rem; text-align: left; }
.promise { background: var(--surface); border-radius: var(--r-card); padding: 1.4rem 1.5rem; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 0.3rem; }
.promise > span:first-child { font-size: 1.7rem; }
.promise strong { font-family: var(--font-display); color: var(--ink); }
.promise > span:last-child { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.5; }

@media (max-width: 620px) { .promise-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════ KINDNESS ═══════════════════════════ */
.kindness { background: var(--cream); }
.kindness__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; margin-bottom: 1rem; }
.kindness__promises { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.gentle-chip {
  font-family: var(--font-display); font-weight: 700; font-size: 0.96rem; color: var(--cocoa);
  padding: 0.55em 1.1em; border-radius: var(--r-chip); background: var(--surface); box-shadow: var(--sh-1);
}
.gentle-chip:nth-child(3n) { background: var(--mint); }
.gentle-chip:nth-child(3n+1) { background: var(--blush); }
.gentle-chip:nth-child(3n+2) { background: var(--lilac); }
.napping { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.napping__blanket {
  position: relative; background: linear-gradient(160deg, var(--lilac), var(--blush));
  border-radius: 60px 60px 30px 30px; padding: 1.6rem 2rem 1rem; box-shadow: var(--sh-2);
}
.napping__z { position: absolute; font-family: var(--font-display); font-weight: 800; color: var(--accent-ink); font-size: 1.4rem; top: -0.4rem; right: 0.4rem; animation: floatZ 3s ease-in-out infinite; }
.napping__z--2 { font-size: 1rem; top: -1.4rem; right: 1.6rem; animation-delay: 0.6s; }

@media (max-width: 720px) { .kindness__row { grid-template-columns: 1fr; gap: 2rem; } }

/* ═══════════════════════════ TRIBUTE ═══════════════════════════ */
.tribute { background: linear-gradient(180deg, var(--cream) 0%, color-mix(in srgb, var(--butter) 22%, var(--cream)) 50%, color-mix(in srgb, var(--blush) 24%, var(--cream)) 100%); text-align: center; overflow: hidden; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; width: min(100% - 2.6rem, 980px); margin: 3rem auto 2.4rem; }
.person { background: var(--surface); border-radius: var(--r-sheet); padding: 1.8rem 1.6rem 2rem; box-shadow: var(--sh-2); position: relative; }
.person::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-sheet); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--deep) 60%, transparent); pointer-events: none; }
.person__frame {
  position: relative; width: 150px; aspect-ratio: 1; margin: 0 auto 1.2rem; border-radius: 50%;
  overflow: hidden; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--tint) 70%, white), var(--tint));
  display: grid; place-items: center; box-shadow: 0 10px 24px color-mix(in srgb, var(--deep) 36%, transparent);
}
.person__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.person__placeholder { font-size: 3.4rem; }
.person figcaption h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.person figcaption > p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; margin-bottom: 0.7rem; }
.person .hand { font-size: 1.4rem; }
.tribute__sign { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 1rem; }

@media (max-width: 760px) { .people { grid-template-columns: 1fr; max-width: 380px; } }

/* ═══════════════════════════ FAQ ═══════════════════════════ */
.faq { background: color-mix(in srgb, var(--mint) 16%, var(--cream)); }
.faq__list { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 2rem; }
.faq-item { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--sh-1); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.2rem 1.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "🌸"; font-size: 1rem; transition: transform var(--t-med) var(--spring); }
.faq-item[open] summary::after { transform: rotate(180deg) scale(1.1); }
.faq-item > p { padding: 0 1.5rem 1.4rem; color: var(--ink-soft); line-height: 1.6; margin: 0; max-width: 62ch; }
.faq-item[open] > p { animation: bloomIn var(--t-med) var(--settle) both; }

/* ═══════════════════════════ CTA ═══════════════════════════ */
.cta {
  position: relative; text-align: center; overflow: hidden;
  background:
    radial-gradient(100% 80% at 50% 120%, color-mix(in srgb, var(--lilac-deep) 32%, var(--cream)) 0%, transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--blush) 30%, var(--cream)), color-mix(in srgb, var(--peach) 36%, var(--cream)));
}
.cta__petals { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2.2rem, 6vw, 4rem); }
.cta__night { font-size: 1.45rem; margin-top: 2rem; color: var(--accent-ink); }
.waitlist--big.is-sealing .waitlist__input, .waitlist--big.is-sealing .waitlist__btn { opacity: 0; transition: opacity var(--t-med); }

/* ═══════════════════════════ FOOTER ═══════════════════════════ */
.footer { position: relative; background: color-mix(in srgb, var(--peach) 18%, var(--cream)); padding: 3.4rem 0 2rem; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 0.9fr; gap: 2rem; align-items: start; }
.footer__brand img { height: 46px; width: auto; margin-bottom: 0.9rem; }
.footer__line { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.footer__sub { color: var(--ink-soft); }
.footer__promises { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.9rem; color: var(--ink-soft); }
.footer__promises strong { color: var(--ink); }
.footer__links { display: flex; flex-direction: column; gap: 0.6rem; font-weight: 700; color: var(--ink-2); }
.footer__links a:hover { color: var(--accent-ink); }
.footer__people { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.6rem; font-family: var(--font-hand); font-size: 1.2rem; color: var(--ink-soft); }
.footer__copy { text-align: center; margin-top: 2.6rem; color: var(--ink-soft); font-size: 0.88rem; display: flex; gap: 0.8rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.footer__copy .hand { font-size: 1.15rem; }
.footer__bfly { position: absolute; right: 6%; bottom: 12%; opacity: 0.8; animation: floaty 5s ease-in-out infinite; }

@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════ floating butterflies & petals ═══════════════════════════ */
.bfly-drift { position: absolute; will-change: transform; z-index: 1; }
.bfly-drift svg { width: 100%; height: auto; }
.bfly-drift .bf-l, .bfly-drift .bf-r { transform-origin: 60px 50px; }
.bfly-drift .bf-l { animation: flapL 0.32s ease-in-out infinite alternate; }
.bfly-drift .bf-r { animation: flapR 0.32s ease-in-out infinite alternate; }
/* the app-wide ambient drift: fixed to the viewport, faint, under the nav.
   Painted over section colour (z-index 2) but kept whisper-low so copy stays
   legible — exactly how the app overlays AmbientPetalBackdrop on its screens. */
.ambient-petals { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; contain: layout paint; }
/* one falling sakura petal — the app's #petal silk shape, tinted per-instance.
   Sway, spin and fade all ride on the petalFall keyframe (set per-petal in JS). */
.petal { position: absolute; top: -6%; width: 16px; opacity: 0; will-change: transform, opacity; }
.petal svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 1px 1px rgba(168, 139, 214, 0.10)); }

/* ═══════════════════════════ reveal-on-scroll ═══════════════════════════ */
/* Hidden ONLY when JS is present (html.js). No JS → content is fully visible. */
.js .reveal { opacity: 0; transform: translateY(22px) scale(0.97); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity var(--t-slow) var(--settle), transform var(--t-slow) var(--spring); }

/* ═══════════════════════════ keyframes ═══════════════════════════ */
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes glowPulse { 0%,100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.06); } }
@keyframes bob { 0%,100% { transform: rotate(45deg) translate(0,0); } 50% { transform: rotate(45deg) translate(3px,3px); } }
@keyframes bloomIn { from { opacity: 0; transform: scale(0.92) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes floatZ { 0% { opacity: 0; transform: translateY(4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-12px); } }
@keyframes twinkle { 0%,100% { opacity: 0.5; } 50% { opacity: 0.9; } }
@keyframes drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
@keyframes sway { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes podSpin { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes tremble { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes hatchFly {
  0% { opacity: 0; transform: scale(0.4) translateY(0); }
  18% { opacity: 1; transform: scale(1.1) translateY(-10px); }
  100% { opacity: 0; transform: scale(0.9) translateY(-260px) translateX(60px) rotate(12deg); }
}
@keyframes flapL { from { transform: rotateY(0deg); } to { transform: rotateY(55deg); } }
@keyframes flapR { from { transform: rotateY(0deg); } to { transform: rotateY(-55deg); } }
/* A petal falls a touch over one viewport while swaying side-to-side (a soft
   sine, like the app's procedural sway) and tumbling one full turn. Amplitude
   (--swayA), spin direction/amount (--spin) and peak opacity (--peak) are set
   per-petal so no two drift alike; --peak stays low for the faint ambient field
   and higher for the lush hero/CTA bursts. */
@keyframes petalFall {
  0%   { transform: translate3d(0, -6%, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: var(--peak, 0.8); }
  25%  { transform: translate3d(var(--swayA, 26px), 26vh, 0) rotate(calc(var(--spin, 360deg) * 0.25)); }
  50%  { transform: translate3d(calc(var(--swayA, 26px) * -1), 52vh, 0) rotate(calc(var(--spin, 360deg) * 0.5)); }
  75%  { transform: translate3d(var(--swayA, 26px), 78vh, 0) rotate(calc(var(--spin, 360deg) * 0.75)); }
  90%  { opacity: var(--peak, 0.8); }
  100% { transform: translate3d(0, 108vh, 0) rotate(var(--spin, 360deg)); opacity: 0; }
}

/* the breathing badge */
[data-breathe] img { animation: breathe 4.2s ease-in-out infinite; transform-origin: center 60%; }
.mochi-eye { transform-origin: center; }

/* ═══════════════════════════ reduce motion — a brand value ═══════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal, .js .reveal.in { opacity: 1; transform: none; }
  .hero__glow, .scroll-cue__arrow, .focus__stars, .focus__clouds, .float-chips .chip,
  .chrysalis-letter, .napping__z, .footer__bfly, [data-breathe] img, .bfly-drift .bf-l, .bfly-drift .bf-r { animation: none !important; }
  .petal, .bfly-drift { display: none !important; }
  html { scroll-behavior: auto; }
}

/* Note on OS dark mode: the page intentionally stays its warm Sorbet self in every
   scheme. Twilight is a *narrative* device used exactly once (the .night focus
   section), so the day → night → dawn arc — and the singular press-and-hold-at-night
   hatch — stay meaningful. We deliberately do NOT remap the whole page to plum on
   prefers-color-scheme: dark; a global dark repaint would dissolve that one dark moment. */

/* ═══════════════════════════ build-time placeholder hints ═══════════════════════════ */
/* The raw file-path captions inside the empty device/widget placeholders are an
   author aid (the asset table lives in the README) — never shown to real
   visitors. Drop the screenshot at that path and the <img> covers the
   placeholder; until then the glyph + soft label read as intentional, not unfinished. */
.device__ph-path, .homescreen__ph-note { display: none; }
