/* =============================================================
   Nowambee site layout — built on tokens.css
   Sections: layout helpers, header, hero, app preview, feature grid,
   value band, CTA band, footer, FAQ accordion, legal prose, embed mode.
   ============================================================= */

.wrap {
  width: 100%;
  max-width: var(--jungle-width-wide);
  margin: 0 auto;
  padding: 0 var(--jungle-space-lg);
}
.wrap--narrow { max-width: 720px; }

.section { padding: var(--jungle-space-xxl) 0; }
.section--tight { padding: var(--jungle-space-xl) 0; }

.center { text-align: center; }
.muted { color: var(--jungle-text-muted); }
.lead {
  font-size: var(--jungle-size-headline-sm);
  line-height: 1.55;
  color: var(--jungle-text-muted);
  font-weight: var(--jungle-weight-medium);
}
.stack > * + * { margin-top: var(--jungle-space-md); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 249, 251, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color var(--jungle-dur-medium) ease,
              background var(--jungle-dur-medium) ease;
}
/* No backdrop-filter — the app forbids blur on web (Pass 9.3). Solid-ish
   canvas tint + a hairline that fades in on scroll instead. */
.site-header.is-scrolled {
  background: rgba(248, 249, 251, 0.96);
  border-bottom-color: var(--jungle-border);
}
.site-header__row {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: var(--jungle-space-md);
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: var(--jungle-weight-black);
  font-size: var(--jungle-size-title-lg);
  letter-spacing: -0.3px;
  color: var(--jungle-text);
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--jungle-story-ring);
  box-shadow: var(--jungle-glow-primary);
  display: inline-block;
}
.nav { display: flex; align-items: center; gap: var(--jungle-space-lg); }
.nav__links { display: flex; align-items: center; gap: var(--jungle-space-lg); }
.nav__links a {
  color: var(--jungle-text-muted);
  font-weight: var(--jungle-weight-semibold);
  font-size: var(--jungle-size-title-md);
}
.nav__links a:hover { color: var(--jungle-text); text-decoration: none; }
.nav__lang {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--jungle-radius-pill);
  border: 1px solid var(--jungle-border-strong);
  color: var(--jungle-text-muted) !important;
  font-weight: var(--jungle-weight-bold);
  font-size: var(--jungle-size-label-md);
}
.nav__lang .icon { font-size: 18px; }
.nav__lang:hover { background: var(--jungle-surface-muted); color: var(--jungle-text) !important; text-decoration: none; }
.nav__cta {
  min-height: 40px; padding: 0 18px;
  font-size: var(--jungle-size-title-md);
}
.nav__toggle {
  display: none;
  background: var(--jungle-surface-muted);
  border: 1px solid var(--jungle-border);
  border-radius: var(--jungle-radius-sm);
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  cursor: pointer; color: var(--jungle-text);
}

/* ---------- Hero ---------- */
.hero { padding: var(--jungle-space-xxl) 0 var(--jungle-space-xl); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--jungle-space-xxl);
  align-items: center;
}
.hero h1 { font-size: var(--jungle-size-display-lg); margin-bottom: var(--jungle-space-md); }
.hero .lead { max-width: 30ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--jungle-space-sm); margin-top: var(--jungle-space-lg); }

.eyebrow-row {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: var(--jungle-space-md);
}

/* App-store style badges (placeholder links until store URLs exist) */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 0 20px;
  background: var(--jungle-ink); color: #fff;
  border-radius: var(--jungle-radius-md);
  box-shadow: var(--jungle-shadow-raised);
  transition: transform var(--jungle-dur-fast) var(--jungle-ease-spring), filter var(--jungle-dur-fast) ease;
}
.store-badge:hover { filter: brightness(1.1); text-decoration: none; }
.store-badge:active { transform: scale(0.97); }
.store-badge .icon { font-size: 26px; }
.store-badge__logo { width: 24px; height: 24px; fill: #fff; flex: 0 0 auto; }
.store-badge__label { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge__label b { font-size: var(--jungle-size-title-md); font-weight: var(--jungle-weight-bold); }
.store-badge__label span { font-size: 10.5px; color: rgba(255,255,255,0.7); font-weight: var(--jungle-weight-semibold); }

/* ---------- App preview mock (porcelain phone) ---------- */
.preview { display: flex; justify-content: center; }
.phone {
  width: 360px; max-width: 100%;
  background: var(--jungle-surface-lift);
  border-radius: 46px;
  box-shadow: var(--jungle-shadow-floating);
  padding: 10px;
  position: relative; overflow: hidden;
}
.phone::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  border-radius: 46px;
  background: var(--jungle-surface-rim); pointer-events: none;
}
.phone__notch {
  position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 6px; border-radius: 999px;
  background: rgba(27, 35, 30, 0.14); z-index: 3;
}
.phone__screen {
  position: relative; overflow: hidden; z-index: 2;
  background: var(--jungle-canvas-atmosphere);
  background-color: var(--jungle-canvas);
  border-radius: 38px;
  padding: 30px 14px 88px;
  min-height: 560px;
}

/* === Moments screen — mirrors lib/screens/home.dart 1:1 === */

/* large title row + "N sharing now" pulse pill + activity bell */
.ph-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin: 0 2px 14px;
}
.ph-title {
  font-size: 28px; font-weight: var(--jungle-weight-black);
  letter-spacing: -0.4px; line-height: 1; color: var(--jungle-text);
}
.ph-head__trailing { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.ph-pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 5px 9px; border-radius: var(--jungle-radius-pill);
  background: var(--jungle-primary-soft); color: var(--jungle-primary-dark);
  font-size: 10.5px; font-weight: var(--jungle-weight-black); letter-spacing: 0.4px;
}
.ph-pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--jungle-success); flex: 0 0 auto; }
.ph-bell {
  width: 40px; height: 40px; border-radius: 14px; flex: 0 0 auto;
  background: var(--jungle-surface-lift);
  border: 1px solid var(--jungle-border);
  box-shadow: var(--jungle-shadow-soft);
  display: inline-flex; align-items: center; justify-content: center;
}

/* today's prompt card (pinned in-app) */
.ph-prompt {
  position: relative; overflow: hidden;
  background: var(--jungle-surface); border: 1px solid var(--jungle-border);
  border-radius: var(--jungle-radius-lg); box-shadow: var(--jungle-shadow-soft);
  padding: 16px 18px;
}
.ph-prompt::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--jungle-primary);
}
.ph-prompt__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ph-prompt__eyebrow {
  padding: 3px 8px; border-radius: var(--jungle-radius-pill);
  background: var(--jungle-primary-soft); color: var(--jungle-primary-dark);
  font-size: 9.5px; font-weight: var(--jungle-weight-black); letter-spacing: 0.6px;
  text-transform: uppercase;
}
.ph-prompt__count { font-size: 11px; font-weight: var(--jungle-weight-bold); color: var(--jungle-text-faint); }
.ph-prompt__title {
  font-size: 19px; font-weight: var(--jungle-weight-black); letter-spacing: -0.2px;
  line-height: 1.25; color: var(--jungle-text); margin: 10px 0 14px;
}
.ph-prompt__cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--jungle-radius-pill);
  background: var(--jungle-ink); color: #fff;
  font-size: 12.5px; font-weight: var(--jungle-weight-black);
}
.ph-prompt__cta .icon { font-size: 14px; }

/* section label — moss dot + uppercase + hairline */
.ph-section { display: flex; align-items: center; gap: 8px; margin: 18px 2px 12px; }
.ph-section__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--jungle-primary); flex: 0 0 auto; }
.ph-section__label {
  font-size: 11px; font-weight: var(--jungle-weight-black); letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--jungle-text-muted); white-space: nowrap;
}
.ph-section__rule { flex: 1; height: 1px; background: var(--jungle-border); }

/* "sharing right now" story strip */
.ph-strip { display: flex; gap: 10px; overflow: hidden; }
.ph-story { width: 64px; flex: 0 0 auto; text-align: center; }
.ph-story__ring, .ph-story__add {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
}
.ph-story__ring { background: var(--jungle-story-ring); padding: 2px; }
.ph-story__ring.is-seen { background: var(--jungle-border-strong); }
.ph-avatar {
  width: 100%; height: 100%; border-radius: 50%; box-sizing: border-box;
  background: var(--jungle-primary-soft); color: var(--jungle-primary);
  border: 1.5px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: var(--jungle-weight-bold);
}
.ph-story__add { border: 1.6px dashed var(--jungle-primary); color: var(--jungle-primary); }
.ph-story__add .icon { font-size: 24px; }
.ph-story__name {
  display: block; margin-top: 6px; font-size: 11px; font-weight: var(--jungle-weight-bold);
  color: var(--jungle-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ph-story__name.is-seen { color: var(--jungle-text-muted); }

/* "fresh today" 2-col grid of blurred preview tiles */
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-tile {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--jungle-radius-lg); background: var(--jungle-primary-soft);
}
/* the web build hides the photo behind a heavy ink scrim (no BackdropFilter) */
.ph-tile::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.55) 100%),
    rgba(17, 23, 20, 0.55);
}
.ph-tile__lock {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 11px; border-radius: var(--jungle-radius-pill);
  background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff; font-size: 10.5px; font-weight: var(--jungle-weight-black);
  letter-spacing: 0.6px; text-transform: uppercase;
}
.ph-tile__lock .icon { font-size: 13px; }
.ph-tile__live {
  position: absolute; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 7px; border-radius: var(--jungle-radius-pill);
  background: rgba(255, 255, 255, 0.18); color: #fff;
  font-size: 9.5px; font-weight: var(--jungle-weight-black);
  letter-spacing: 0.6px; text-transform: uppercase;
}
.ph-tile__livedot { width: 5px; height: 5px; border-radius: 50%; background: var(--jungle-success); }
.ph-tile__foot { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 8px; }
.ph-tile__foot .ph-avatar--sm { width: 28px; height: 28px; flex: 0 0 auto; font-size: 12px; border: 0; }
.ph-tile__name { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.ph-tile__name b { color: #fff; font-size: 12.5px; font-weight: var(--jungle-weight-black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-tile__name small { color: rgba(255, 255, 255, 0.85); font-size: 10.5px; font-weight: var(--jungle-weight-bold); letter-spacing: 0.6px; text-transform: uppercase; }

/* floating bottom bar — mirrors home_components/bottom_bar.dart */
.phone__nav {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3;
  height: 64px; border-radius: var(--jungle-radius-pill);
  background: var(--jungle-surface);
  box-shadow: var(--jungle-shadow-floating);
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 8px;
}
.phone__nav-i { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.phone__nav-i .icon { font-size: 24px; color: var(--jungle-text-muted); }
.phone__nav-cap {
  position: relative; width: 52px; height: 52px; flex: 0 0 auto;
  border-radius: 18px;
  background: linear-gradient(180deg, #3D6E55 0%, var(--jungle-primary) 50%, var(--jungle-primary-dark) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 18px rgba(46, 87, 66, 0.45), 0 0 28px rgba(46, 87, 66, 0.28);
  display: inline-flex; align-items: center; justify-content: center;
}
/* terracotta active ring — Moments is the selected tab */
.phone__nav-cap::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 22px; border: 2px solid var(--jungle-accent);
}
.phone__nav-cap .icon { font-size: 26px; color: #fff; }

/* filled icon variant for the bell + capsule (match the Flutter _rounded fills) */
.ph-bell .icon, .phone__nav-cap .icon {
  font-variation-settings: 'opsz' 24, 'wght' 500, 'FILL' 1, 'GRAD' 0;
}

/* ---------- Feature grid ---------- */
.grid {
  display: grid; gap: var(--jungle-space-md);
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.feature {
  padding: var(--jungle-space-lg);
}
.feature .tile {
  width: 44px; height: 44px; border-radius: var(--jungle-radius-md);
  background: var(--jungle-primary-soft);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--jungle-primary); margin-bottom: var(--jungle-space-md);
}
.feature .tile .icon { font-size: 24px; }
.feature h4 { margin-bottom: 6px; }
.feature p { color: var(--jungle-text-muted); font-size: var(--jungle-size-body-md); }

/* ---------- Value band ---------- */
.band {
  background: var(--jungle-ink);
  color: #fff;
  border-radius: var(--jungle-radius-xl);
  padding: var(--jungle-space-xl);
  position: relative; overflow: hidden;
}
.band h2, .band h3 { color: #fff; }
.band .muted { color: rgba(255,255,255,0.66); }
.band .value-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--jungle-space-lg); margin-top: var(--jungle-space-lg); }
.band .value-row .tile { background: rgba(255,255,255,0.08); color: #fff; }
.band .value-row h4 { color: #fff; }
.band .value-row p { color: rgba(255,255,255,0.66); font-size: var(--jungle-size-body-md); }

/* ---------- Not-dating reassurance ---------- */
.note {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--jungle-radius-pill);
  background: var(--jungle-primary-soft); color: var(--jungle-primary-dark);
  font-weight: var(--jungle-weight-semibold); font-size: var(--jungle-size-body-md);
}

/* ---------- Pressure-free messaging — 1:1 chat mockups ---------- */
/* These mirror lib/screens/messages/personal_chat_screen.dart: the
   interaction banner (_ComposerBanner), the moss/them bubbles
   (messaging_ui.dart ChatBubble) and the real rule copy from the app. */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--jungle-space-lg); }
.rule { display: flex; flex-direction: column; }
.rule__screen {
  background: var(--jungle-canvas-atmosphere);
  background-color: var(--jungle-canvas);
  border: 1px solid var(--jungle-border);
  border-radius: var(--jungle-radius-xl);
  box-shadow: var(--jungle-shadow-soft);
  overflow: hidden;
  margin-bottom: var(--jungle-space-md);
}
.cm-head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px;
  background: var(--jungle-surface);
  border-bottom: 1px solid var(--jungle-border);
}
.cm-back { font-size: 20px; color: var(--jungle-text-muted); }
.cm-ava {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  background: var(--jungle-primary-soft); color: var(--jungle-primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: var(--jungle-weight-bold);
}
.cm-id { display: flex; flex-direction: column; line-height: 1.2; }
.cm-id b { font-size: 14px; font-weight: var(--jungle-weight-black); color: var(--jungle-text); }
.cm-id span { font-size: 11px; font-weight: var(--jungle-weight-semibold); color: var(--jungle-success); }

/* interaction banner — _ComposerBanner */
.cm-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; line-height: 1.4;
  font-size: 12.5px; font-weight: var(--jungle-weight-bold);
  border-bottom: 1px solid transparent;
}
.cm-banner .icon { font-size: 16px; flex: 0 0 auto; }
.cm-banner__txt { flex: 1; }
.cm-banner--info {
  background: rgba(216, 153, 62, 0.10); color: var(--jungle-warning);
  border-bottom-color: rgba(216, 153, 62, 0.32);
}
.cm-banner--error {
  background: rgba(194, 85, 63, 0.08); color: var(--jungle-danger);
  border-bottom-color: rgba(194, 85, 63, 0.32);
}
.cm-banner__connect {
  flex: 0 0 auto;
  padding: 5px 12px; border-radius: var(--jungle-radius-pill);
  background: var(--jungle-primary); color: #fff;
  font-size: 11.5px; font-weight: var(--jungle-weight-black);
}

/* message thread — ChatBubble (radius AppRadius.lg = 22 + a 6px snip toward the
   speaker; me = moss, them = surface-lift pebble with hairline + soft shadow,
   padding 14×10 — matching lib/components/messaging_ui.dart _buildBubble) */
.cm-thread { padding: 13px; display: flex; flex-direction: column; gap: 8px; }
.cm-msg { max-width: 82%; padding: 10px 14px; font-size: 13.5px; line-height: 1.4; }
.cm-msg--them {
  align-self: flex-start;
  background: var(--jungle-surface-lift);
  border: 1px solid var(--jungle-border);
  box-shadow: var(--jungle-shadow-soft);
  color: var(--jungle-text);
  border-radius: var(--jungle-radius-lg) var(--jungle-radius-lg) var(--jungle-radius-lg) 6px;
}
.cm-msg--me {
  align-self: flex-end;
  background: var(--jungle-primary); color: #fff;
  border-radius: var(--jungle-radius-lg) var(--jungle-radius-lg) 6px var(--jungle-radius-lg);
}

/* moment-reply bubble — first contact is your reply wrapping the moment you
   replied to (MomentReplyBubble): accent-soft peach bubble, the moment photo
   inset with a bottom-up scrim + caption, your reply beneath. Same 22/6 snip. */
.cm-reply {
  align-self: flex-end; max-width: 88%;
  background: var(--jungle-accent-soft, #FBE8D7);
  border: 1px solid #F4D2B8;
  border-radius: var(--jungle-radius-lg) var(--jungle-radius-lg) 6px var(--jungle-radius-lg);
  padding: 4px;
}
.cm-reply__photo {
  position: relative; height: 96px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(150deg, #6b8a72 0%, #3f5a48 52%, #c98b5e 100%);
}
.cm-reply__cap {
  position: absolute; left: 8px; right: 8px; bottom: 6px;
  color: #fff; font-size: 10px; font-weight: var(--jungle-weight-bold);
  text-shadow: 0 1px 3px rgba(0,0,0,.55);
}
.cm-reply__text {
  padding: 6px 8px 3px; font-size: 13px; line-height: 1.4; color: var(--jungle-text);
}

/* composer */
.cm-composer {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px; border-top: 1px solid var(--jungle-border);
  background: var(--jungle-surface);
}
.cm-field {
  flex: 1; padding: 9px 13px; border-radius: var(--jungle-radius-pill);
  background: var(--jungle-surface-muted); color: var(--jungle-text-faint);
  font-size: 12.5px; font-weight: var(--jungle-weight-semibold);
}
.cm-send {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  background: var(--jungle-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.cm-send .icon { font-size: 18px; }
.cm-send.is-disabled { background: var(--jungle-border-strong); }

.rule h4 { margin-bottom: 6px; }
.rule p { color: var(--jungle-text-muted); font-size: var(--jungle-size-body-md); }

/* dark-theme showcase — re-scopes the brand vars to the app's dark palette
   (lib/theme/app_palette.dart dark) so the SAME cm-* mockups render in dark,
   1:1 with the in-app dark theme. */
.rules--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px; margin-inline: auto;
}
.screen--dark {
  --jungle-canvas: #0F1411;
  --jungle-canvas-atmosphere: linear-gradient(160deg, #141A15 0%, #0F1411 62%);
  --jungle-surface: #1A211C;
  --jungle-surface-muted: #232B25;
  --jungle-surface-lift: linear-gradient(180deg, #222A24 0%, #1A211C 100%);
  --jungle-border: #2C342E;
  --jungle-border-strong: #3A433C;
  --jungle-primary: #3E7355;
  --jungle-primary-dark: #2A4F3B;
  --jungle-primary-soft: #1B2A22;
  --jungle-text: #E9ECE7;
  --jungle-text-muted: #9BA29A;
  --jungle-text-faint: #6B726B;
  --jungle-accent-soft: #33241A;
  --jungle-success: #5FB07E;
}
.screen--dark .cm-ava { color: var(--jungle-on-primary-soft, #A6D5BC); }
.screen--dark .cm-reply { border-color: rgba(232, 154, 99, 0.35); }
@media (max-width: 640px) {
  .rules--two { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band__inner { padding: var(--jungle-space-xl); }
.cta-band .hero__cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--jungle-border);
  margin-top: var(--jungle-space-xxl);
  padding: var(--jungle-space-xl) 0;
}
.site-footer__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--jungle-space-md);
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--jungle-space-lg); }
.site-footer__links a { color: var(--jungle-text-muted); font-weight: var(--jungle-weight-semibold); font-size: var(--jungle-size-body-md); }
.site-footer__links a:hover { color: var(--jungle-text); text-decoration: none; }
.site-footer small { display: block; }

/* ---------- Page header (legal + help) ---------- */
.page-head { padding: var(--jungle-space-xl) 0 var(--jungle-space-md); }
.page-head h1 { font-size: var(--jungle-size-display-sm); }
.page-head .updated { margin-top: 8px; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: var(--jungle-size-headline-md); margin: var(--jungle-space-xl) 0 var(--jungle-space-xs); }
.prose h3 { font-size: var(--jungle-size-headline-sm); margin: var(--jungle-space-lg) 0 var(--jungle-space-xs); }
.prose p { color: var(--jungle-text); margin: var(--jungle-space-xs) 0; }
.prose ul { margin: var(--jungle-space-xs) 0; padding-left: 1.2em; color: var(--jungle-text); }
.prose li { margin: 6px 0; }
.prose .toc {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: var(--jungle-space-md) 0 var(--jungle-space-lg);
}
.prose .toc a { font-size: var(--jungle-size-body-sm); }
.callout {
  background: var(--jungle-accent-soft); color: #7a3d17;
  border-radius: var(--jungle-radius-md); padding: 14px 16px;
  font-size: var(--jungle-size-body-md); margin: var(--jungle-space-md) 0;
}

/* ---------- FAQ accordion ---------- */
.faq-group { margin-top: var(--jungle-space-lg); }
.faq-group > .section-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--jungle-space-sm); }
.faq {
  border: 1px solid var(--jungle-border);
  border-radius: var(--jungle-radius-md);
  background: var(--jungle-surface);
  margin-bottom: 10px; overflow: hidden;
}
.faq > summary {
  list-style: none; cursor: pointer;
  padding: 16px 18px;
  font-weight: var(--jungle-weight-bold);
  font-size: var(--jungle-size-title-lg);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary .chev { color: var(--jungle-text-muted); transition: transform var(--jungle-dur-medium) var(--jungle-ease-standard); }
.faq[open] > summary .chev { transform: rotate(180deg); }
.faq__body { padding: 0 18px 16px; color: var(--jungle-text-muted); font-size: var(--jungle-size-body-md); }
.faq__body p + p { margin-top: 10px; }

/* ---------- Embed mode (in-app webview: ?embed=1) ---------- */
body.embed .site-header,
body.embed .site-footer { display: none; }
body.embed .section, body.embed .page-head { padding-top: var(--jungle-space-md); }
body.embed { background: var(--jungle-surface); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--jungle-space-xl); }
  .hero .lead { max-width: none; }
  .preview { order: -1; }
  .grid--3 { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; gap: var(--jungle-space-xl); }
  .rule { max-width: 400px; margin-inline: auto; width: 100%; }
  .band .value-row { grid-template-columns: 1fr; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open { position: absolute; left: 0; right: 0; top: 68px;
    background: var(--jungle-surface); border-bottom: 1px solid var(--jungle-border);
    box-shadow: var(--jungle-shadow-soft);
    flex-direction: column; align-items: stretch; gap: 0; padding: var(--jungle-space-sm); }
  .nav.is-open .nav__links { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .nav.is-open .nav__links a { padding: 14px 12px; border-radius: var(--jungle-radius-sm); font-size: var(--jungle-size-title-lg); }
  .nav.is-open .nav__links a:hover { background: var(--jungle-surface-muted); }
  .nav.is-open .nav__cta { display: inline-flex; margin: 8px 4px 4px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 var(--jungle-space-md); }
  .hero h1 { font-size: var(--jungle-size-display-md); }
  .grid { grid-template-columns: 1fr; }
  .section { padding: var(--jungle-space-xl) 0; }
  .band, .cta-band__inner { padding: var(--jungle-space-lg); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
