/* Moonlit Lullaby: styles shared by the home page and the features page. */
  :root {
    --bg: #2e2232; --night-2: #3a2b3f; --text: #fcf9f3; --soft: #cdbfcb;
    --accent: #e3c994; --card: #fcf9f3; --glass: rgba(252, 249, 243, .055); --glass-line: rgba(252, 249, 243, .1);
    --ease: cubic-bezier(.2, .8, .2, 1);
  }
  body { background: radial-gradient(120% 80% at 70% 0%, #4a3550 0%, var(--bg) 55%) fixed, var(--bg); }
  main, header, footer { position: relative; z-index: 1; }

  /* ---------- Sky: two star layers that twinkle and drift at different speeds as you scroll ---------- */
  .sky { position: fixed; inset: -10% 0; pointer-events: none; z-index: 0; overflow: hidden; }
  .sky i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #f6e7c4;
    box-shadow: 0 0 8px 1px rgba(246, 231, 196, .5); opacity: .3; animation: twinkle var(--d) ease-in-out var(--delay) infinite; }
  @keyframes twinkle { 50% { opacity: 1; transform: scale(1.35); } }
  /* Shooting star: the streak moves along its own length (rotate, then slide along x), so the bright
     head always leads and the fading tail always trails behind it. */
  .shooting { position: fixed; top: 9%; left: -12%; width: 190px; height: 2px; z-index: 0; pointer-events: none; opacity: 0;
    transform-origin: 100% 50%; border-radius: 999px;
    background: linear-gradient(90deg, rgba(246, 231, 196, 0), rgba(246, 231, 196, .25) 45%, rgba(255, 246, 222, .95));
    animation: shoot 17s cubic-bezier(.3, 0, .6, 1) 4s infinite; }
  .shooting::after { content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
    background: #fff8e6; box-shadow: 0 0 10px 3px rgba(255, 240, 200, .85), 0 0 22px 6px rgba(227, 201, 148, .35); }
  @keyframes shoot {
    0%, 84% { opacity: 0; transform: rotate(14deg) translateX(0) scaleX(.4); }
    86% { opacity: 1; transform: rotate(14deg) translateX(8vw) scaleX(1); }
    94% { opacity: 0; transform: rotate(14deg) translateX(62vw) scaleX(.7); }
    100% { opacity: 0; transform: rotate(14deg) translateX(62vw) scaleX(.7); }
  }

  header { z-index: 2; }
  header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; }
  header .brand span { color: var(--text); }
  header nav { display: flex; gap: 1.3rem; align-items: center; font-size: .92rem; }
  header nav a { color: var(--soft); text-decoration: none; transition: color .3s; }
  header nav a:hover { color: var(--accent); }
  /* Solid gold, so the hanging-star threads behind the header never show through it. */
  header nav a.jump { position: relative; z-index: 3; color: #2e2232; background: var(--accent); font-weight: 600; padding: .55rem 1.05rem; border-radius: 999px;
    box-shadow: 0 8px 18px -10px rgba(227, 201, 148, .7); transition: background .3s, transform .3s var(--ease); }
  header nav a.jump:hover { color: #2e2232; background: #edd6a6; transform: translateY(-1px); }

  /* ---------- Hero ---------- */
  .hero { overflow-x: clip; }
  .hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(1rem, 4vw, 3rem); min-height: min(86vh, 52rem); padding-bottom: 2rem; }
  .eyebrow { display: inline-flex; align-items: center; gap: .35rem; font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
  .eyebrow canvas { width: 34px; height: 34px; }
  .hero h1 { font-size: clamp(3rem, 7.4vw, 5.6rem); margin: .8rem 0 1.1rem; font-weight: 500; }
  .hero h1 em { font-style: italic; color: var(--accent); }
  .hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.4em); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(.15s + var(--n) * .12s); }
  @keyframes rise { to { opacity: 1; transform: none; } }
  .hero .lede, .hero [data-stores], .eyebrow { opacity: 0; animation: rise 1.2s var(--ease) forwards; }
  .eyebrow { animation-delay: .05s; } .hero .lede { animation-delay: .75s; } .hero [data-stores] { animation-delay: .95s; }
  .hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--soft); max-width: 31rem; margin-bottom: 2rem; }
  .hero .store { animation: float 7s ease-in-out infinite; }
  .hero .store:nth-child(2) { animation-delay: -3.5s; }

  /* The stage: back clouds, hanging stars, mum on the moon, front clouds. Each layer moves on its own,
     and the whole scene leans a little towards the pointer (translate, so it adds to the animations). */
  .stage { position: relative; aspect-ratio: 1; cursor: pointer; --px: 0; --py: 0; }
  .stage > * { position: absolute; translate: calc(var(--px) * var(--depth, 0) * 1px) calc(var(--py) * var(--depth, 0) * 1px); transition: translate .9s var(--ease); }
  .stage .glow { inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(227, 201, 148, .26), rgba(227, 201, 148, .06) 45%, transparent 68%); animation: glow 9s ease-in-out infinite; --depth: 4; }
  .stage .moon { left: 8%; top: 4%; width: 80%; transform-origin: 50% 55%; animation: cradle 9s ease-in-out infinite; --depth: 10; z-index: 3; }
  .stage .cloud { animation: drift var(--dur, 22s) ease-in-out var(--dl, 0s) infinite alternate; }
  .stage .cloud img { width: 100%; animation: bob var(--bob, 7s) ease-in-out infinite; }
  .stage .c1 { left: -2%; top: 55%; width: 34%; --depth: 22; --dur: 19s; z-index: 4; }
  .stage .c2 { left: 2%; top: 8%; width: 24%; --depth: 6; --dur: 26s; --dl: -8s; z-index: 1; opacity: .85; }
  .stage .c3 { right: -4%; top: 30%; width: 26%; --depth: 8; --dur: 23s; --dl: -4s; z-index: 2; }
  .stage .c4 { right: 8%; top: 63%; width: 28%; --depth: 20; --dur: 21s; --dl: -12s; z-index: 4; --bob: 9s; }
  .stage .c5 { left: 40%; top: -2%; width: 18%; --depth: 5; --dur: 28s; --dl: -15s; z-index: 1; opacity: .75; }
  /* Threads hang from the very top of the page; script sets top and height so they start at the page edge. */
  .stage .threads { right: 6%; top: -40%; width: 46%; height: 96%; z-index: 2; --depth: 0; overflow: visible; translate: none; }
  .threads g { transform-box: view-box; animation: swing var(--d) ease-in-out var(--dl) infinite alternate; }
  .threads .st { animation: twinkle var(--t) ease-in-out var(--dl) infinite; transform-box: fill-box; transform-origin: center; }
  .stage .sparkle { width: 5px; height: 5px; border-radius: 50%; background: #fff3d6; box-shadow: 0 0 10px 2px rgba(255, 236, 190, .7); opacity: 0; animation: sparkle 4.5s ease-in-out infinite; z-index: 5; }
  .stage canvas { inset: 10% 10% 30%; width: 80%; height: 60%; pointer-events: none; z-index: 6; }
  .stage .hint { left: 50%; bottom: -1%; transform: translateX(-50%); font-size: .8rem; color: var(--soft); white-space: nowrap; z-index: 6; animation: breatheText 4s ease-in-out infinite; }
  @keyframes cradle { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-12px); } }
  @keyframes drift { from { transform: translateX(-16px); } to { transform: translateX(22px); } }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
  @keyframes glow { 50% { transform: scale(1.1); opacity: .7; } }
  @keyframes swing { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
  @keyframes sparkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.3); } }
  @keyframes breatheText { 50% { opacity: .55; } }

  /* ---------- Shared section bits ---------- */
  section { position: relative; }
  section > .wrap { position: relative; z-index: 1; }
  .section-title { text-align: center; font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 500; }
  .section-sub { text-align: center; color: var(--soft); max-width: 36rem; margin: .8rem auto 0; }
  .drifter { position: absolute; pointer-events: none; opacity: .5; z-index: 0; animation: cross var(--dur) linear var(--dl) infinite; }
  @keyframes cross { from { transform: translateX(-30vw); } to { transform: translateX(110vw); } }
  [data-reveal] { transition-delay: var(--stagger, 0s); }

  /* ---------- Week by week ---------- */
  .weeks { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem); overflow: hidden; }
  .wk { margin-top: 2.5rem; position: relative; z-index: 1; }
  /* One track with a pill that glides to the chosen type, as in the app (owner, 30 Nov 2026). */
  .wk-cats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); width: min(100%, 400px); margin: 0 auto 1.1rem; padding: 4px; border: 1px solid var(--glass-line); background: var(--glass); border-radius: 999px; }
  .wk-cats::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 999px; background: var(--accent); box-shadow: 0 2px 8px rgba(43,34,54,.25); transition: transform .42s cubic-bezier(.3,1.12,.45,1); }
  .wk-cats:has([data-wk-cat="fruits"][aria-pressed="true"])::before { transform: translateX(100%); }
  .wk-cats:has([data-wk-cat="vegetables"][aria-pressed="true"])::before { transform: translateX(200%); }
  .wk-cats button { position: relative; z-index: 1; border: 0; background: transparent; color: var(--soft); font: 600 .9rem/1 var(--sans); padding: .7rem .6rem; border-radius: 999px; cursor: pointer; transition: color .3s; }
  .wk-cats button[aria-pressed="true"] { color: #2e2232; }
  @media (prefers-reduced-motion: reduce) { .wk-cats::before { transition: none; } }
  .wk-nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .6rem; align-items: center; }
  .wk-nav > button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass); color: var(--text); font-size: 1.2rem; cursor: pointer; transition: background .3s, transform .3s var(--ease); }
  .wk-nav > button:hover { background: rgba(227, 201, 148, .18); transform: scale(1.06); }
  .wk-strip { display: flex; justify-content: safe center; gap: .6rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .6rem .4rem .8rem; scrollbar-width: none; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .wk-strip::-webkit-scrollbar { display: none; }
  .wk-strip button small { font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
  .wk-strip button span { font: 600 1.2rem/1 var(--serif); }
  .wk-strip button { flex: none; scroll-snap-align: center; width: 66px; height: 58px; border-radius: 20px; display: grid; place-content: center; gap: 1px; border: 1px solid var(--glass-line); background: transparent; color: var(--soft); font: 600 .95rem/1 var(--sans); cursor: pointer; transition: background .4s, color .4s, transform .4s var(--ease); }
  .wk-strip button[aria-selected="true"] { background: var(--accent); color: #2e2232; transform: scale(1.12); box-shadow: 0 0 0 6px rgba(227, 201, 148, .15), 0 0 24px rgba(227, 201, 148, .45); }
  .wk-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1rem, 4vw, 3rem); align-items: center; margin-top: 1.5rem;
    background: var(--glass); border: 1px solid var(--glass-line); border-radius: 36px; padding: clamp(1.25rem, 4vw, 2.75rem); }
  .wk-art { position: relative; aspect-ratio: 1; max-width: 340px; width: 100%; margin: 0 auto; display: grid; place-items: center; }
  .wk-art::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(252, 249, 243, .14), rgba(252, 249, 243, .03) 60%, transparent 70%); }
  .wk-art::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(227, 201, 148, .35); animation: orbit 60s linear infinite; }
  .wk-art img { position: relative; width: 72%; height: auto; animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .35)); }
  .wk-card.swap .wk-art img { animation: pop .8s var(--ease), bob 6s ease-in-out .8s infinite; }
  .wk-card.swap .wk-info > * { animation: fadeUp .7s var(--ease) both; }
  .wk-card.swap .wk-info > :nth-child(2) { animation-delay: .05s; } .wk-card.swap .wk-info > :nth-child(3) { animation-delay: .1s; }
  .wk-card.swap .wk-info > :nth-child(4) { animation-delay: .15s; } .wk-card.swap .wk-info > :nth-child(5) { animation-delay: .2s; }
  @keyframes orbit { to { transform: rotate(360deg); } }
  @keyframes pop { from { transform: scale(.7) translateY(14px); opacity: 0; } }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
  .wk-info { display: grid; gap: .55rem; }
  .wk-tri { font: 600 .76rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
  .wk-head { display: flex; align-items: center; gap: .3rem; }
  .wk-head canvas { width: 44px; height: 44px; margin-left: -8px; }
  .wk-head h3 { font: 500 clamp(2.4rem, 5vw, 3.4rem)/1 var(--serif); }
  .wk-about { color: var(--soft); font-size: .95rem; }
  .wk-about b { display: block; font: 600 1.9rem/1.15 var(--serif); color: var(--accent); }
  .wk-about i { display: block; font-size: .85rem; margin-top: .15rem; }
  .wk-stats { display: flex; flex-wrap: wrap; gap: .6rem; margin: .3rem 0; }
  .wk-stats div { background: rgba(252, 249, 243, .07); border-radius: 16px; padding: .6rem .9rem; min-width: 8rem; }
  .wk-stats dt { font: 600 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
  .wk-stats dd { margin: .3rem 0 0; font: 600 1.3rem/1 var(--serif); }
  .wk-stats small { display: block; font: 400 .78rem/1.3 var(--sans); color: var(--soft); margin-top: .2rem; }
  .wk-hl { border-left: 2px solid var(--accent); padding-left: .9rem; color: var(--soft); font-size: .96rem; }
  .wk-hl b { display: block; color: var(--text); font: 600 1.2rem/1.25 var(--serif); }
  .wk-more { margin-top: .4rem; padding: 1rem 1.1rem 1.1rem; border-radius: 22px; background: linear-gradient(135deg, rgba(227, 201, 148, .16), rgba(240, 227, 230, .07)); border: 1px solid rgba(227, 201, 148, .3); display: grid; gap: .7rem; justify-items: start; }
  .wk-more-title { font: 600 1.2rem/1.25 var(--serif); color: var(--text); }
  .wk-more ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
  .wk-more li { font-size: .82rem; padding: .35rem .7rem; border-radius: 999px; background: rgba(252, 249, 243, .08); color: var(--soft); display: inline-flex; align-items: center; gap: .35rem; }
  .wk-more li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(227, 201, 148, .7); }
  .wk-cta { padding: .75rem 1.15rem; font-size: .95rem; }
  .wk-cta span { transition: transform .4s var(--ease); }
  .wk-cta:hover span { transform: translateX(4px); }
  .wk-card.swap .wk-info > :nth-child(6) { animation-delay: .25s; }
  .wk-fine { font-size: .76rem; color: var(--soft); opacity: .85; }
  .wk-range { width: 100%; margin-top: 1.2rem; accent-color: var(--accent); }

  /* ---------- Feature constellation ---------- */
  .features { padding: clamp(3rem, 8vw, 5rem) 0; }
  .trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.5rem); margin-top: 3rem; }
  .trio article { text-align: center; padding: 1.5rem 1rem 2rem; border-radius: 28px; background: linear-gradient(180deg, rgba(252, 249, 243, .06), rgba(252, 249, 243, .015)); border: 1px solid var(--glass-line); transition: transform .6s var(--ease), border-color .6s, opacity 1.1s ease; }
  .trio article:hover { transform: translateY(-6px); border-color: rgba(227, 201, 148, .4); }
  .trio img { height: 150px; width: auto; margin: 0 auto 1.2rem; animation: bob 7s ease-in-out infinite; }
  .trio article:nth-child(2) img { animation-delay: -2.3s; }
  .trio article:nth-child(3) img { animation-delay: -4.6s; }
  .trio h3 { font-size: 1.85rem; font-weight: 500; color: var(--accent); margin-bottom: .55rem; }
  .trio p { color: var(--soft); font-size: .98rem; }

  /* ---------- Breathe ---------- */
  .breathe { padding: 1rem 0 clamp(3rem, 8vw, 5rem); }
  .breathe .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 36px; padding: clamp(1.5rem, 4vw, 3rem); --breath: .55; }
  .pond { position: relative; aspect-ratio: 1; max-width: 380px; width: 100%; margin: 0 auto; display: grid; place-items: center; }
  .pond .halo { position: absolute; inset: 18%; border-radius: 50%; border: 1.5px solid rgba(227, 201, 148, .35); transform: scale(calc(.75 + var(--breath) * .45)); opacity: calc(.25 + var(--breath) * .6); }
  .pond .halo:nth-child(2) { inset: 8%; transform: scale(calc(.8 + var(--breath) * .3)); opacity: calc(.15 + var(--breath) * .35); border-color: rgba(240, 227, 230, .3); }
  .pond .halo:nth-child(3) { inset: 26%; background: radial-gradient(circle, rgba(240, 200, 220, calc(.06 + var(--breath) * .18)), transparent 70%); border: 0; transform: scale(calc(.85 + var(--breath) * .55)); opacity: 1; }
  .pond canvas { position: relative; width: 100%; height: 100%; }
  .pond .count { position: absolute; bottom: 9%; left: 0; right: 0; text-align: center; font: 500 1.6rem/1 var(--serif); color: var(--accent); }
  .breathe h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; margin-bottom: .8rem; }
  .breathe p { color: var(--soft); margin-bottom: 1.4rem; }
  .breathe [data-breathe-label] { display: block; font: italic 500 2rem/1.2 var(--serif); color: var(--accent); min-height: 2.5rem; margin-bottom: 1.2rem; transform: scale(calc(.94 + var(--breath) * .1)); transform-origin: left center; }
  .rhythms { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.4rem 0 1.2rem; }
  .rhythms button { border: 1px solid var(--glass-line); background: var(--glass); color: var(--soft); font: 600 .85rem/1 var(--sans); padding: .6rem .9rem; border-radius: 999px; cursor: pointer; transition: background .4s, color .4s; }
  .rhythms button[aria-pressed="true"] { background: rgba(227, 201, 148, .2); color: var(--accent); border-color: rgba(227, 201, 148, .5); }
  .btn { display: inline-flex; align-items: center; gap: .5rem; font: 600 1rem/1 var(--sans); padding: .95rem 1.4rem; border-radius: 999px; border: 0; cursor: pointer; background: var(--accent); color: #2e2232; transition: transform .4s var(--ease); }
  .btn:hover { transform: translateY(-2px); }

  /* ---------- Promise ---------- */
  .promise { padding: 0 0 clamp(3rem, 8vw, 5rem); }
  .promise ul { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .promise li { position: relative; padding: 1.3rem 1.4rem; border-radius: 22px; border: 1px dashed rgba(227, 201, 148, .35); color: var(--soft); overflow: hidden; }
  .promise li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(227, 201, 148, .1) 50%, transparent 65%); transform: translateX(-100%); animation: shimmer 7s ease-in-out infinite; animation-delay: var(--stagger, 0s); }
  @keyframes shimmer { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
  .promise li b { display: block; font: 600 1.35rem/1.2 var(--serif); color: var(--text); margin-bottom: .3rem; }

  /* ---------- Download ---------- */
  .get { padding: clamp(3rem, 8vw, 5rem) 0; text-align: center; overflow: hidden; }
  .get h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 500; }
  .get p.sub { color: var(--soft); margin: .8rem auto 2rem; max-width: 32rem; }
  .get [data-stores] { justify-content: center; }
  .get .store { animation: float 6s ease-in-out infinite; }
  .get .store:nth-child(2) { animation-delay: -3s; }
  .get .store-note { text-align: center; }
  .get-sprout { width: 120px; height: 120px; margin: 0 auto .6rem; }

  .site-foot { color: var(--soft); border-top: 1px solid var(--glass-line); }
  .site-foot .brand span, .site-foot nav a { color: var(--text); }

  @media (max-width: 52rem) {
    header nav a:not(.jump) { display: none; }
    .hero .wrap { grid-template-columns: 1fr; text-align: center; min-height: 0; padding-top: 1rem; }
    .hero .stage { order: -1; max-width: 23rem; margin: 0 auto; width: 100%; }
    .hero .lede { margin-inline: auto; }
    .hero [data-stores] { justify-content: center; }
    .trio, .promise ul { grid-template-columns: 1fr; }
    .breathe .wrap { grid-template-columns: 1fr; text-align: center; }
    .breathe [data-breathe-label] { transform-origin: center; }
    .rhythms { justify-content: center; }
    .wk-card { grid-template-columns: 1fr; text-align: center; }
    .wk-head { justify-content: center; }
    .wk-hl { border-left: 0; padding-left: 0; }
    .wk-more { justify-items: center; }
    .wk-more ul { justify-content: center; }
    .wk-stats { justify-content: center; }
    .wk-art { max-width: 15rem; }
  }
  /* Reduced motion: everything rests. */
  .calm .hero h1 .w, .calm .hero .lede, .calm .hero [data-stores], .calm .eyebrow { opacity: 1; transform: none; animation: none; }
  .calm .stage > *, .calm .stage *, .calm .shooting, .calm .drifter, .calm .promise li::after { animation: none !important; }
  .calm .drifter, .calm .shooting { display: none; }
