/* ── v2a.css: site v2, direction A: warm immersive calm ─────────────────────
   The i-got-you direction. Soft gradient atmospheres in sage + cream, generous
   space, big friendly type, gentle scroll-reveals (reveal.js), and a living
   WhatsApp chat mock that types itself (v2a.js). Pure CSS/JS, zero libraries.

   Contract with the rest of the repo:
   - Brand tokens unchanged: vanilla #FCFAF2, off-black #1A1717, cash-green
     #014751; Greed Condensed display, Instrument Sans body. cash-green keeps
     its job on .period spans, the wordmark, and step numbers.
   - This sheet is linked AFTER each page's inline styles, so it wins ties and
     restyles the shared chrome (atmosphere, topbar, buttons, folds, footer)
     without touching copy, URLs, or schema.
   - No content is ever gated on JS: reveals arm only under html.has-reveal-js,
     the chat mock hides bubbles only under html.has-chat-js. Reduced motion
     turns everything calm-still and fully visible. */

@font-face {
  font-family: 'Greed Condensed';
  src: url('/fonts/GreedCondensed-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Greed Condensed';
  src: url('/fonts/GreedCondensed-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --vanilla: #FCFAF2;
  --off-black: #1A1717;
  --cash-green: #014751;
  --hairline: rgba(26, 23, 23, 0.12);
  --soft-ink: rgba(26, 23, 23, 0.68);

  /* the warm-immersive layer */
  --mint: #D3FFB4;
  --electric-green: #D3FFB4;   /* legacy token name, kept for the carry-over pages */
  --periwinkle: #DCEDD2;       /* legacy token name remapped to sage: the old purple orbs warm up */
  --sage: #DCEDD2;
  --mist: #EAF4E4;
  --cream: #F6EDDA;
  --card: #FFFFFF;
  --wa-you: #E2F7CF;           /* the "you" bubble, whatsapp-familiar but brand-tuned */
  --green-glow: rgba(1, 71, 81, 0.16);

  --font-display: 'Greed Condensed', 'Archivo Narrow', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, sans-serif;

  --ease-calm: cubic-bezier(0.22, 1, 0.36, 1);
}

html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  background: var(--vanilla);
  color: var(--off-black);
  font-family: var(--font-body);
}

/* ── the atmosphere: a soft gradient field that breathes ── */
body::before {
  content: '';
  position: fixed;
  inset: -22% -12%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(42% 36% at 16% 6%, rgba(211, 255, 180, 0.58), transparent 70%),
    radial-gradient(38% 32% at 88% 2%, rgba(220, 237, 210, 0.70), transparent 70%),
    radial-gradient(48% 40% at 82% 64%, rgba(246, 237, 218, 0.72), transparent 72%),
    radial-gradient(40% 36% at 6% 88%, rgba(211, 255, 180, 0.36), transparent 70%),
    radial-gradient(30% 26% at 50% 40%, rgba(234, 244, 228, 0.55), transparent 75%);
  animation: atmosphere 30s var(--ease-calm) infinite alternate;
}
@keyframes atmosphere {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-1.8%, 1.4%, 0) scale(1.045); }
}
/* a whisper of grain so the gradients feel like paper, not plastic */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  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%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* recolor any page-level hero orbs into the warm palette (the carry-over
   pages still draw their own ::before/::after blobs) */
.hero::before { background: var(--mint) !important; opacity: 0.38 !important; }
.hero::after  { background: var(--cream) !important; opacity: 0.55 !important; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cash-green);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: var(--mint); color: var(--off-black); }

/* ── topbar: a floating warm shelf ── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(252, 250, 242, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.topbar.is-scrolled {
  background: rgba(252, 250, 242, 0.86);
  border-bottom-color: rgba(1, 71, 81, 0.08);
  box-shadow: 0 10px 32px -24px rgba(1, 71, 81, 0.45);
}
.topbar__inner {
  max-width: 1100px; margin: 0 auto; padding: .9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topbar .wordmark {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; letter-spacing: -0.02em;
  color: var(--cash-green); text-transform: lowercase;
}
.topbar .nav {
  display: flex; align-items: center; gap: 1.25rem;
  font-size: .9rem; font-weight: 500;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.topbar .nav::-webkit-scrollbar { display: none; }
.topbar .nav a { opacity: .74; white-space: nowrap; transition: opacity .15s; }
.topbar .nav a:hover, .topbar .nav a[aria-current="page"] { opacity: 1; }
.topbar .nav a.nav-cta {
  opacity: 1; background: var(--cash-green); color: var(--vanilla);
  font-weight: 600; padding: .45rem 1.1rem; border-radius: 999px;
  box-shadow: 0 10px 22px -14px rgba(1, 71, 81, 0.65);
  transition: transform .15s ease, box-shadow .2s ease;
}
.topbar .nav a.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -14px rgba(1, 71, 81, 0.7); }
@media (max-width: 640px) {
  .topbar .nav { gap: .95rem; font-size: .85rem; }
  .topbar__inner { padding: .8rem 1.1rem; }
}

/* ── big friendly type ── */
.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 10.5vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.015em;
  text-transform: lowercase;
  color: var(--off-black);
}
.headline .period { color: var(--cash-green); }
.section h2, .eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 2.9rem);
  letter-spacing: -0.015em;
  text-transform: lowercase;
  line-height: 1.02;
}
.section h2 .period, .eyebrow .period { color: var(--cash-green); }
.sub, .lede { font-size: clamp(1.08rem, 2vw, 1.26rem); line-height: 1.65; }
.section p { font-size: clamp(1.04rem, 1.9vw, 1.18rem); line-height: 1.65; }
.muted, .lede.muted, .section .muted { color: var(--soft-ink); }

/* ── the one button ── */
.btn-primary {
  background: linear-gradient(140deg, #02525E 0%, var(--cash-green) 60%, #013A42 100%);
  color: var(--vanilla);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1.05rem 2.1rem;
  border-radius: 999px;
  text-transform: lowercase;
  letter-spacing: -0.005em;
  display: inline-flex; align-items: center; gap: 0.65rem;
  box-shadow: 0 18px 38px -18px rgba(1, 71, 81, 0.65), 0 0 0 6px rgba(211, 255, 180, 0.0);
  transition: transform .18s var(--ease-calm), box-shadow .25s ease;
}
.btn-primary:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -18px rgba(1, 71, 81, 0.7), 0 0 0 6px rgba(211, 255, 180, 0.55);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary .arrow, .btn-primary span[aria-hidden] { transition: transform .18s var(--ease-calm); }
.btn-primary:hover .arrow, .btn-primary:hover span[aria-hidden] { transform: translateX(3px); }

.link-quiet {
  font-size: .96rem; color: var(--soft-ink);
  text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}
.link-quiet:hover { color: var(--off-black); text-decoration-color: var(--off-black); opacity: 1; }
.inline-link {
  text-decoration: underline; text-decoration-color: rgba(1, 71, 81, 0.3); text-underline-offset: 3px;
  transition: text-decoration-color .15s;
}
.inline-link:hover { text-decoration-color: var(--cash-green); }

/* ── soft cards (steps, plans, qa cards on carry-over pages) ── */
.step, .plan, .qa-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(1, 71, 81, 0.09);
  border-radius: 22px;
  box-shadow: 0 28px 60px -46px rgba(1, 71, 81, 0.55);
  transition: transform .25s var(--ease-calm), box-shadow .25s ease;
}
.step:hover, .plan:hover { transform: translateY(-3px); box-shadow: 0 32px 64px -42px rgba(1, 71, 81, 0.6); }
.step__num {
  background: var(--mint); color: var(--cash-green);
  border-radius: 12px;
}

/* ── ledgers breathe ── */
.ledger li { padding: .9rem 0; font-size: 1.05rem; border-bottom: 1px solid rgba(1, 71, 81, 0.1); }
.ledger li:first-child { border-top: 1px solid rgba(1, 71, 81, 0.1); }

/* ── the fold: progressive disclosure, native details/summary ──
   the punchy line stays visible; the long-form, query-bearing copy lives
   here, real DOM content at load, one tap away. */
.fold {
  max-width: 62ch;
  margin-top: 1rem;
  border: 1px solid rgba(1, 71, 81, 0.10);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  transition: background-color .2s ease, border-color .2s ease;
}
.fold:hover { border-color: rgba(1, 71, 81, 0.2); }
.fold[open] { background: rgba(255, 255, 255, 0.85); }
.fold > summary {
  list-style: none; cursor: pointer;
  padding: .9rem 1.15rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  font-weight: 600; font-size: .95rem; color: var(--cash-green);
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: '+'; font-weight: 700; flex-shrink: 0; transition: transform .2s var(--ease-calm); }
.fold[open] > summary::after { content: '\2212'; }
.fold .fold-body { padding: 0 1.15rem 1.05rem; color: var(--soft-ink); }
.fold .fold-body p { margin-bottom: .8rem; max-width: 58ch; line-height: 1.65; font-size: 1rem; }
.fold .fold-body p:last-child { margin-bottom: 0; }
.fold .fold-body .ledger { margin: .2rem 0 .8rem; }
.fold .fold-body .ledger li { font-size: .98rem; padding: .7rem 0; }

/* faq accordions on the carry-over pages pick up the same warmth */
.faq-acc details, .qa details { border-bottom: 1px solid rgba(1, 71, 81, 0.1); }
.faq-acc summary::after { color: var(--cash-green); }

/* ── trust atoms: one line each, leaf-marked, no jokes ── */
.atoms { list-style: none; margin: 0 0 1.1rem; padding: 0; max-width: 62ch; }
.atoms li {
  position: relative;
  padding: .9rem 0 .9rem 2.1rem;
  border-bottom: 1px solid rgba(1, 71, 81, 0.1);
  line-height: 1.55;
  font-size: 1.05rem;
}
.atoms li:first-child { border-top: 1px solid rgba(1, 71, 81, 0.1); }
.atoms li::before {
  content: '';
  position: absolute; left: .2rem; top: 1.25rem;
  width: 0.85rem; height: 0.85rem;
  background: var(--mint);
  border: 2px solid var(--cash-green);
  border-radius: 50% 50% 50% 4px;  /* a little leaf */
}

/* ── the living chat: a whatsapp-shaped conversation that types itself ── */
.chat-card {
  width: min(100%, 400px);
  border-radius: 30px;
  background: #F4F0E4;
  border: 1px solid rgba(1, 71, 81, 0.12);
  box-shadow:
    0 44px 90px -52px rgba(1, 71, 81, 0.6),
    0 12px 30px -22px rgba(1, 71, 81, 0.35);
  overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1.1rem;
  background: linear-gradient(140deg, #02525E, var(--cash-green));
  color: var(--vanilla);
}
.chat-head .avatar {
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--mint);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--cash-green);
  flex-shrink: 0;
}
.chat-head .who { line-height: 1.25; }
.chat-head .who strong { display: block; font-size: 1rem; font-weight: 600; letter-spacing: .01em; }
.chat-head .who span { font-size: .78rem; opacity: .82; }
.chat-thread {
  list-style: none; margin: 0; padding: 1.1rem 1rem 1.25rem;
  display: flex; flex-direction: column; gap: .55rem;
  min-height: 17.5rem;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(211, 255, 180, 0.25), transparent 60%),
    radial-gradient(120% 90% at 10% 100%, rgba(220, 237, 210, 0.4), transparent 65%);
}
.msg {
  max-width: 82%;
  padding: .62rem .85rem;
  border-radius: 16px;
  font-size: .95rem;
  line-height: 1.45;
  box-shadow: 0 2px 6px -3px rgba(26, 23, 23, 0.25);
}
.msg.you { margin-left: auto; background: var(--wa-you); border-bottom-right-radius: 5px; }
.msg.bff { margin-right: auto; background: #FFFFFF; border-bottom-left-radius: 5px; }
.msg .stamp {
  display: block; text-align: right;
  font-size: .68rem; color: rgba(26, 23, 23, 0.5);
  margin-top: .2rem;
}
/* typing indicator: three soft dots, shown by v2a.js between bubbles */
.typing {
  display: none;
  margin-right: auto;
  background: #FFFFFF;
  border-radius: 16px; border-bottom-left-radius: 5px;
  padding: .72rem .85rem;
  box-shadow: 0 2px 6px -3px rgba(26, 23, 23, 0.25);
}
.typing.is-on { display: flex; gap: .28rem; align-items: center; }
.typing i {
  width: .42rem; height: .42rem; border-radius: 50%;
  background: rgba(1, 71, 81, 0.45);
  animation: tick 1.1s ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tick {
  0%, 60%, 100% { transform: translateY(0); opacity: .55; }
  30% { transform: translateY(-3px); opacity: 1; }
}
/* the animation contract: bubbles hide ONLY when v2a.js is driving */
.has-chat-js .chat-thread .msg {
  opacity: 0;
  transform: translateY(10px) scale(.97);
}
.has-chat-js .chat-thread .msg.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--ease-calm), transform .5s var(--ease-calm);
}
/* the whole phone floats, slowly, like breathing */
.chat-float { animation: floaty 7s ease-in-out infinite alternate; }
@keyframes floaty {
  from { transform: translateY(0); }
  to   { transform: translateY(-9px); }
}

/* ── scroll reveals (armed by reveal.js) ── */
.has-reveal-js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease-calm), transform .8s var(--ease-calm);
}
.has-reveal-js .reveal.is-in { opacity: 1; transform: none; }

/* ── footer: quiet, warm, readable ── */
.footer {
  font-size: .88rem; line-height: 1.9;
  padding-top: 2.5rem; margin-top: auto;
  opacity: 1; color: var(--soft-ink);
  border-top: 1px solid rgba(1, 71, 81, 0.12);
}
.footer a {
  text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 3px;
  transition: text-decoration-color .15s, color .15s;
}
.footer a:hover { color: var(--off-black); text-decoration-color: var(--off-black); opacity: 1; }
.footer .sep { margin: 0 .5rem; opacity: .5; }
.updated { font-size: .8rem; color: var(--soft-ink); margin-top: 2rem; }

/* ── mint amplification (2026-06-11 copy-laws pass, L13) ──────────────────
   "a mint tea place, i feel safe." Shared utilities that bring the
   light-green field into the page body, not just the atmosphere:
   - .mint-band: a soft mint panel that holds a whole section.
   - .pull-quote: a big display-type breath between text sections.
   - .duo: two side-by-side cards (stacks on mobile).
   - .cta-note: the quiet caption next to a primary button
     ("takes about a minute to start"). */
.mint-band {
  background: linear-gradient(150deg, rgba(211, 255, 180, 0.36), rgba(234, 244, 228, 0.62));
  border: 1px solid rgba(1, 71, 81, 0.09);
  border-radius: 28px;
  padding: 2rem 1.7rem;
  box-shadow: 0 30px 64px -52px rgba(1, 71, 81, 0.5);
}
@media (max-width: 560px) { .mint-band { padding: 1.5rem 1.2rem; border-radius: 22px; } }
.pull-quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-transform: lowercase;
  max-width: 24ch;
  margin: 2.4rem 0;
  padding: 1.1rem 0 1.1rem 1.5rem;
  border-left: 7px solid var(--mint);
}
.pull-quote .period { color: var(--cash-green); }
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 1.4rem;
  max-width: 64ch;
}
@media (max-width: 560px) { .duo { grid-template-columns: 1fr; } }
.duo .duo-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(1, 71, 81, 0.09);
  border-radius: 22px;
  padding: 1.4rem 1.3rem;
  box-shadow: 0 28px 60px -46px rgba(1, 71, 81, 0.55);
}
.duo .duo-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.015em;
  text-transform: lowercase;
  color: var(--cash-green);
  margin: 0 0 .55rem;
}
.duo .duo-card p { margin: 0; line-height: 1.6; }
.cta-note { font-size: .94rem; color: var(--soft-ink); }

/* ── calm, always: reduced motion = still air, everything visible ── */
@media (prefers-reduced-motion: reduce) {
  body::before, .chat-float, .typing i { animation: none !important; }
  .hero::before, .hero::after { animation: none !important; }
  * { transition: none !important; }
  .has-reveal-js .reveal { opacity: 1 !important; transform: none !important; }
  .has-chat-js .chat-thread .msg { opacity: 1 !important; transform: none !important; }
  /* legacy pages animate .hero/.cta/.felt from opacity 0; force them on */
  .hero, .cta, .felt, .plans, .plans-foot, .section, .faq-group { opacity: 1 !important; animation: none !important; }
}
