@import url('https://fonts.googleapis.com/css2?family=Suez+One&family=David+Libre:ital,wght@0,400;0,500;0,700;1,400&family=Heebo:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Given palette, used verbatim */
  --ink: #293321;
  --olive: #616a41;
  --brown: #7c4836;
  --amber: #cb8641;
  --gold: #e6b95f;

  /* Derived neutrals — necessary for accessible text/backgrounds, tinted from the palette */
  --ground: #FAF5EA;
  --surface: #FFFEFA;
  --border: #E4D9C2;
  --border-strong: #CBB98F;

  /* Semantic roles (see contrast notes in comments — verified WCAG) */
  --text: var(--ink);              /* 12.15:1 on ground */
  --text-muted: var(--olive);      /* 5.30:1 on ground */
  --cta: var(--brown);             /* white-on-brown 7.40:1 */
  --cta-text: #FFFEFA;
  --accent: var(--amber);          /* decorative fill only — not for small text */
  --highlight: var(--gold);        /* panel bg w/ ink text 7.21:1 */
  --danger: #A13B2A;
  --success: #3F6B3E;
}

* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--ground);
  color: var(--text);
  font-family: 'Heebo', 'Segoe UI', system-ui, sans-serif;
}

.font-display {
  font-family: 'Suez One', 'Heebo', system-ui, sans-serif;
}
.font-editorial {
  font-family: 'David Libre', 'Heebo', Georgia, serif;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Paper grain — Nature Distilled texture layer */
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.05;
  pointer-events: none;
  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='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

/* Halftone dot field — decorative, sits behind display type */
.halftone {
  background-image: radial-gradient(var(--amber) 1.4px, transparent 1.4px);
  background-size: 14px 14px;
  opacity: 0.35;
}

/* Editorial kicker label: small tracked word + rule, replaces generic pill badges */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: 'Heebo', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--brown);
}
.kicker::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--amber);
  flex-shrink: 0;
}

/* Ghost folio numerals for step lists */
.folio {
  font-family: 'Suez One', serif;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-strong);
  line-height: 1;
}

/* Torn/organic divider between color-blocked sections */
.torn-divider { display: block; width: 100%; height: 28px; margin-bottom: -1px; }
.torn-divider-flip { transform: scaleY(-1); margin-bottom: 0; margin-top: -1px; }

::selection { background: var(--gold); color: var(--ink); }

/* Mobile menu disclosure */
.mobile-menu > summary { list-style: none; }
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-menu[open] > summary .menu-icon-open { display: none; }
.mobile-menu:not([open]) > summary .menu-icon-close { display: none; }

.inert-link { color: var(--text-muted); cursor: default; text-decoration: none; }
.inert-link:hover { color: var(--text-muted); }

/* Scroll-reveal (paired with tiny JS observer; CSS-only fallback = visible) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Swipe-card world — index.html's redesign only. Purely additive:
   every rule above this line still carries the 29 pages that have
   not migrated off the Nature Distilled world yet.
   ============================================================ */

.site-header { border-bottom: 1px solid var(--border); }

.pill-btn {
  display: inline-flex; align-items: center; gap: .5em;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pill-btn:active { transform: scale(.96); }
.pill-btn--primary { background: var(--brown); color: var(--surface); box-shadow: 0 10px 20px -8px rgba(41,51,33,.30); }
.pill-btn--primary:hover { background: #5E3627; box-shadow: 0 14px 26px -10px rgba(41,51,33,.38); }
.pill-btn--ghost { background: transparent; color: var(--brown); border: 1.5px solid var(--border-strong); }
.pill-btn--ghost:hover { background: rgba(124,72,54,.07); border-color: var(--brown); }
.pill-btn--dark { background: var(--surface); color: var(--ink); }
.pill-btn--dark:hover { background: var(--gold); }

.pill-nav-link { border-radius: 999px; padding: .5rem 1rem; transition: background-color .18s ease, color .18s ease; }
.pill-nav-link:hover { background: rgba(203,134,65,.16); color: var(--brown); }

/* Card stack — the signature interaction */
.swipe-stack { position: relative; width: min(19rem, 82vw); aspect-ratio: 3 / 4; margin-inline: auto; }
.swipe-card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform .5s cubic-bezier(.16,1,.3,1), opacity .5s ease;
}
.swipe-card--back { transform: scale(.94) translateY(-20px) translateX(16px) rotate(-7deg); z-index: 1; }
.swipe-card--front { z-index: 2; }
.swipe-card--front.is-swiping-like { transform: translateX(120%) rotate(10deg); opacity: 0; }
.swipe-card--front.is-swiping-pass { transform: translateX(-120%) rotate(-10deg); opacity: 0; }

.crew-constellation { position: absolute; inset: 13%; width: 74%; height: 74%; }

.match-toast {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; text-align: center;
  background: var(--brown); color: var(--surface);
  opacity: 0; transform: scale(.95); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 4;
}
.match-toast.is-visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.match-toast--pass { background: var(--olive); }

@media (prefers-reduced-motion: reduce) {
  .swipe-card, .match-toast { transition: none; }
}

/* Flow rail — alternating app-screen mockups, replaces the generic feature-card grid */
.flow-row { display: grid; gap: 2.25rem; align-items: center; }
@media (min-width: 1024px) {
  .flow-row { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .flow-row--reverse .flow-row__art { order: 2; }
  .flow-row--reverse .flow-row__copy { order: 1; }
}

/* Discovery mockup: a fanned card stack, static */
.mini-fan { position: relative; width: 100%; max-width: 19rem; aspect-ratio: 4 / 3.1; margin-inline: auto; }
.mini-fan__card {
  position: absolute; top: 4%; width: 54%; aspect-ratio: 3 / 4;
  border-radius: 1.25rem; background: var(--surface); overflow: hidden;
  box-shadow: 0 16px 28px -16px rgba(41,51,33,.26);
}
.mini-fan__card svg { position: absolute; inset: 10%; width: 80%; height: 80%; }

/* Match mockup: two constellations meeting */
.match-collide { position: relative; width: 100%; max-width: 19rem; aspect-ratio: 1; margin-inline: auto; }

/* Meetup mockup: chat thread */
.chat-thread { display: flex; flex-direction: column; gap: .6rem; max-width: 20rem; margin-inline: auto; }
.chat-bubble { border-radius: 1.1rem; padding: .6rem 1rem; font-size: .9rem; line-height: 1.45; max-width: 82%; }
.chat-bubble--them { background: var(--ground); color: var(--ink); align-self: flex-start; }
.chat-bubble--us { background: var(--brown); color: var(--surface); align-self: flex-end; }

/* Objection Q&A */
.objection-card { border-radius: 1.75rem; }

/* Who-it's-for mosaic: flowing, unequal chip-cards — never a uniform grid */
.mosaic { display: flex; flex-wrap: wrap; gap: .85rem; }
.mosaic-chip { border-radius: 1.5rem; background: var(--surface); box-shadow: 0 12px 24px -18px rgba(41,51,33,.22); padding: 1.25rem; }
.mosaic-chip--lead { flex: 1 1 21rem; }
.mosaic-chip--minor { flex: 1 1 14rem; }
