/* ============================================================================
   quietly raising · APPS page restyle  (AP1, 2026-10-16)
   ----------------------------------------------------------------------------
   The scrollcraft page (page.css, scrollcraft.css) is copied from ../site
   unchanged. This file is the whole "restyle it a bit", loaded last:
     1. the paper and cream warmed toward the Home palette (cream #F6F0E1)
     2. Bloom's hand-lettered words follow the shared hand font (var(--hand)
        from shared/world.css), so Apps and Home always letter alike
     3. the menu bar sits on a painted moss-hill band, with a hill edge and its
        flowers hanging just below it (assets/moss-base.webp + moss-edge.webp,
        Kie gpt-image-2 with style-test/h-master.png as reference, see PROMPTS.md)
     4. the shared menu (.wnav) above the page's own bar, and resets for the two
        places shared/world.css's .kicker / .btn reached into this page
   Layout, copy, animation timing, the flowers and the monster are untouched.
   ========================================================================== */

:root {
  --b-paper: #F6F0E1;              /* Bloom's journal paper, was #FBF3E0 */
  --s-bg: #FBF4E4;                 /* Spark's cream, was #FFF8EC */
  --apps-hand: var(--hand, "Chewy", "Segoe Print", cursive);
  --moss: #2F4A2A;
  /* the painted band is the bar, or taller where a phone's notch pushes the menu down */
  --bar-paint: max(var(--bar-h), calc(env(safe-area-inset-top, 0px) + 58px));
  /* the hill edge: moss-edge.webp is 3072x178; its lower edge runs between rows 113 and 170 */
  --edge-s: 0.584;
}
@media (max-width: 760px) { :root { --edge-s: 0.52; --edge-x: 0px; } }   /* phone: no seam on screen */

/* ---- 4 · what shared/world.css reached into (apps/_lab/leaks.mjs) ------ */
.kicker { font-weight: 400; }                       /* world.css .kicker is 700 */
.btn { min-height: auto; justify-content: normal; } /* world.css .btn is 48px tall, centred */

/* ---- 2 · the hand-lettered words follow Home's hand font ---------------- */
:root { --sc-font-display: var(--apps-hand); }
[data-brand="bloom"] .display, [data-brand] [data-brand="bloom"] .display,
[data-brand="bloom"] .btn, [data-brand] [data-brand="bloom"] .btn,
.mark--bloom, .flora__label, .note__h, .weeks strong, .bloom__hint, .gm-node text,
.offer__card--bloom .offer__tag, .plant-note, .cursor-hint span, .scroll-cue__t, .getbar__b--bloom {
  font-family: var(--apps-hand) !important;
}
:root.is-spark .cursor-hint span { font-family: "Nunito", sans-serif !important; } /* Spark's half keeps Spark's type */

/* ---- 1 · the flower stills carry Bloom's old paper inside their feathered
   mask, so a matching soft pool sits under them: no disc on the new paper --- */
.flora::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(closest-side, #FBF3E0 64%, rgba(251, 243, 224, 0) 100%);
}

/* ---- 3 · the painted moss band and its hill edge ------------------------ */
.bar, :root.is-spark .bar {
  background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  color: #FFFDF6; text-shadow: 0 1px 2px rgba(18, 30, 14, 0.55);
}
.bar::before, .bar::after { content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: -1; pointer-events: none; }
.bar::before { height: var(--bar-paint); background: var(--moss) url("assets/moss-base.webp") center top / cover no-repeat; }
.bar::after {
  top: calc(var(--bar-paint) - 113px * var(--edge-s) + 2px);
  height: calc(178px * var(--edge-s));
  background: url("assets/moss-edge.webp") var(--edge-x, center) top / auto 100% repeat-x;   /* desktop: the mirror seam sits under the menu */
  filter: drop-shadow(0 3px 4px rgba(30, 44, 22, 0.16));
}
.bar__mid { display: none; }                         /* the shared menu sits in the middle now */
.bar__nav { grid-column: -2 / -1; }                  /* so Watch + Get the apps keep the right-hand column */
.mark--bloom, .mark--spark, .bar__nav, :root.is-spark .bar__mid, :root.is-spark .bar__nav { color: #FFFDF6; }
.bar__cta { border-color: rgba(255, 253, 246, 0.85); }
:root.is-spark .bar__cta { background: #FFFDF6; color: var(--s-ink); border-color: #FFFDF6; text-shadow: none; }
/* apps.js hides whichever of the bar's own items the shared menu would overlap */
.bar .is-crowded { visibility: hidden; }

.wnav { z-index: 62; }                               /* above the page's bar (z 60) */
/* scrollcraft.css styles body and bare elements (button { font: inherit }, :where(a),
   :focus-visible); the menu and gate inherit some of that. These resets are :where(),
   zero specificity, so anything shared/world.css itself sets on .wnav/.gate still wins
   and W5's restyles come through untouched (apps/_lab/wnav-check.mjs compares them
   with world.css alone). Known, accepted: keyboard focus rings inside the menu use
   scrollcraft's ring, not world.css's. */
:where(.wnav, .gate) { color: var(--ink); letter-spacing: normal; font-synthesis-weight: auto; text-rendering: auto; accent-color: auto; scrollbar-color: auto; caret-color: auto; }
:where(.gate) { font-family: var(--body); font-size: 17px; line-height: 1.55; }
:where(.wnav, .gate) a { text-underline-offset: auto; }

/* the footer disclosure every page carries */
.foot__ai { flex-basis: 100%; margin: 0; font-size: 0.8rem; opacity: 0.8; }

/* ---- 5 · the next-Bloom-update section (2026-11-21) ---------------------
   "upnote" is the small "coming soon, not on the App Store yet" line under a
   lede. "nextup" is three phones in a row (the watch pair's phone, in a
   three-column grid) holding short silent loops; one column on a phone. */
.upnote { max-width: 40ch; margin: 1rem 0 0; font-size: 1rem; line-height: 1.5; color: var(--b-soft); font-weight: 600; }
.nextup__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3.5vw, 3.5rem); justify-items: center; }
.nextup .watch__phone { width: min(250px, 100%); }
.nextup__v { cursor: pointer; }
@media (max-width: 860px) {
  .nextup__row { grid-template-columns: 1fr; gap: 2.4rem; }
  .nextup .watch__phone { width: min(230px, 60vw); }
}
