/* ============================================================
   Little Bean · Experiment B — shared base for all 5 directions
   What-if exploration. Borrows energy of Stripe / Framer / Jeton.
   Builds on brand-kit/tokens.css. Each direction adds its own <style>.
   NOTE: deliberately breaks marketing-brief §13 (gradients, motion,
   parallax, sticky/pinned). See the mono caption on each direction.
   ============================================================ */

@import url("brand-kit/tokens.css");

:root {
  /* ---- Extended palette (stays recognizably Little Bean) ----
     Derived from moss/terra/cream via oklch; same family, new range. */
  --lbx-moss-bright:  oklch(0.62 0.085 145);   /* lifted moss for glow */
  --lbx-moss-glow:    oklch(0.72 0.12 150);     /* mesh highlight */
  --lbx-terra-bright: oklch(0.70 0.13 45);      /* lifted terra for glow */
  --lbx-amber:        oklch(0.80 0.10 75);      /* warm 3rd mesh stop */
  --lbx-sky:          oklch(0.78 0.045 200);    /* cool whisper, very low chroma */

  /* dark-mode (Jeton) warm near-blacks */
  --lbx-ink-900: #14160F;   /* deepest warm black */
  --lbx-ink-850: #1B1E16;
  --lbx-ink-800: #232619;
  --lbx-ink-700: #2E3220;
  --lbx-cream-dim: #E9E4D7;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--lb-cream);
  color: var(--lb-ink);
  font-family: var(--lb-font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--lb-moss-300); color: var(--lb-moss-900); }
:where(a, button):focus-visible { outline: 2px solid var(--lb-moss-700); outline-offset: 3px; border-radius: var(--lb-r-sm); }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 56px; }
.wrap--wide { max-width: 1340px; }
.eyebrow {
  font-family: var(--lb-font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 22px;
}

/* ---------- Buttons (shared skeleton; themed per direction) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: var(--lb-r-pill);
  font-family: var(--lb-font-sans); font-weight: 600; font-size: 16px;
  letter-spacing: -0.01em; border: 1px solid transparent; cursor: pointer;
  white-space: nowrap; transition: transform .18s var(--lb-ease), background .25s var(--lb-ease), box-shadow .25s var(--lb-ease), border-color .25s var(--lb-ease);
}
.btn svg { width: 19px; height: 19px; }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Store badges (shared) ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 13px;
  height: 60px; padding: 0 24px; border-radius: var(--lb-r-md);
  background: var(--lb-moss-900); color: var(--lb-cream);
  border: 1px solid var(--lb-moss-900);
  transition: transform .18s var(--lb-ease), background .25s var(--lb-ease), box-shadow .25s var(--lb-ease);
}
.badge:hover { transform: translateY(-2px); }
.badge svg { width: 27px; height: 27px; flex: 0 0 27px; fill: currentColor; }
.badge .b-txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.badge .b-txt .b-small { font-size: 11px; letter-spacing: 0.04em; opacity: .72; }
.badge .b-txt .b-big { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Phone screens (real, face-free; bezels baked in) ---------- */
.phone { width: 100%; height: auto; display: block; }
.phone-shadow { filter: drop-shadow(var(--lb-shadow-4)); }

/* ---------- Placeholder pattern (brief §12) for any missing asset ---------- */
.ph {
  background: repeating-linear-gradient(135deg,
    var(--lb-moss-100) 0 12px, var(--lb-paper) 12px 24px);
  border: 1px dashed var(--lb-line-2); border-radius: var(--lb-r-md);
  display: grid; place-items: center; text-align: center;
  font-family: var(--lb-font-mono); font-size: 13px; color: var(--lb-mute);
  letter-spacing: 0.04em; padding: 20px;
}

/* ---------- Reveal-on-scroll (IntersectionObserver toggles .in) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--lb-ease), transform .7s var(--lb-ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  * { animation: none !important; }
}

/* ---------- Honesty caption: which §13 rules this direction breaks ---------- */
.breaks {
  position: fixed; left: 18px; bottom: 18px; z-index: 80;
  max-width: 340px; padding: 13px 16px;
  background: color-mix(in srgb, var(--lb-ink) 88%, transparent);
  color: var(--lb-cream); border: 1px solid color-mix(in srgb, var(--lb-cream) 22%, transparent);
  border-radius: var(--lb-r-md); backdrop-filter: blur(8px);
  font-family: var(--lb-font-mono); font-size: 11px; line-height: 1.5; letter-spacing: 0.02em;
  box-shadow: var(--lb-shadow-3);
}
.breaks b { display: block; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; opacity: .6; margin-bottom: 5px; font-size: 10px; }
.breaks .x { color: var(--lbx-terra-bright); }

/* ---------- Shared nav skeleton ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; height: 76px;
  display: flex; align-items: center;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.nav-links a { opacity: .75; transition: opacity .2s var(--lb-ease); }
.nav-links a:hover { opacity: 1; }

/* ---------- Both-parents log line (shared structure) ---------- */
.who { display: inline-flex; align-items: center; gap: 10px; font-family: var(--lb-font-mono); font-size: 12px; letter-spacing: 0.04em; }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--lb-font-sans); font-weight: 600; font-size: 12px; }

/* ---------- Footer (shared) ---------- */
.foot { padding: 40px 0 120px; font-family: var(--lb-font-mono); font-size: 12px; letter-spacing: 0.04em; }
.foot .row { display: flex; flex-wrap: wrap; gap: 18px 28px; justify-content: space-between; align-items: center; }
.foot .links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Nav: mobile collapse (every page, including the home) ---------- */
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav .btn-row .btn--ghost { display: none; }
  .nav .btn-row .btn--primary { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--lb-line-2); border-radius: 12px; background: transparent; cursor: pointer; }
  .nav-toggle svg { width: 22px; height: 22px; stroke: var(--lb-moss-900); }
}
/* ---------- Mobile nav sheet ---------- */
.mnav { position: fixed; inset: 0; z-index: 200; background: color-mix(in srgb, var(--lb-cream) 96%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); display: none; flex-direction: column; padding: 90px 32px 40px; }
.mnav.open { display: flex; }
.mnav a { font-family: var(--lb-font-display); font-size: 38px; color: var(--lb-moss-900); padding: 12px 0; border-bottom: 1px solid var(--lb-line); text-decoration: none; }
.mnav a.btn { border-bottom: none; color: var(--lb-cream); font-family: var(--lb-font-sans); font-size: 16px; font-weight: 600; padding: 14px 24px; }
.mnav .btn { margin-top: 28px; align-self: flex-start; }
.mnav-close { position: absolute; top: 22px; right: 28px; width: 44px; height: 44px; border: 1px solid var(--lb-line-2); border-radius: 12px; background: transparent; cursor: pointer; display: grid; place-items: center; }
.mnav-close svg { width: 22px; height: 22px; stroke: var(--lb-moss-900); }
