/* ============================================================
   YADA — yada.ccrcoaching.com
   A Shalom Companion from Christ Centered Relationship Coaching
   Brand v1.0 — dark default, olive signature, Georgia + Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Foundation */
  --yada-black:           #1A1610;   /* warm near-black — primary surface */
  --yada-black-soft:      #2A241C;   /* slightly raised surface — cards */
  --yada-cream:           #F2EDE3;   /* linen cream — light surface */
  --yada-cream-soft:      #FAF6EE;   /* page bg on light mode */

  /* Signature accents */
  --yada-olive:           #8B9474;   /* signature olive sage */
  --yada-olive-deep:      #5F6A4E;   /* deeper olive — branch on light */
  --yada-gold:            #C4A55C;   /* lamp gold — olive fruits, sparse accents */
  --yada-gold-deep:       #8C7340;   /* bronze — gold on light */

  /* Shared with CCR (use sparingly in Yada) */
  --yada-shalom-blue:     #3E5266;   /* CCR's accent — back-links, footer */

  /* Text on dark */
  --yada-text:            #F2EDE3;
  --yada-text-muted:      #B8AE9C;
  --yada-text-faint:      #7A7165;

  /* Text on light */
  --yada-text-dark:       #1A1610;
  --yada-text-dark-muted: #6B6358;

  /* Borders & dividers */
  --yada-border:          rgba(242, 237, 227, 0.12);
  --yada-border-light:    rgba(26, 22, 16, 0.10);
  --yada-border-olive:    rgba(139, 148, 116, 0.40);

  /* Semantic */
  --yada-success:         #8B9474;
  --yada-warning:         #C4A55C;
  --yada-danger:          #A85D4A;

  /* Phase tints (warm, harmonized — used by checkin/assessment/scenarios) */
  --yada-phase1:          #3E5266;   /* Shalom with God — shalom blue */
  --yada-phase1-soft:     rgba(62, 82, 102, 0.12);
  --yada-phase2:          #8C7340;   /* Shalom with Self — bronze */
  --yada-phase2-soft:     rgba(140, 115, 64, 0.14);
  --yada-phase3:          #8B9474;   /* Shalom with Others — olive */
  --yada-phase3-soft:     rgba(139, 148, 116, 0.14);

  /* Awaken Within step badges */
  --yada-surface-bg:      rgba(62, 82, 102, 0.18);  --yada-surface-fg: #8FA8C2;
  --yada-source-bg:       rgba(140, 115, 64, 0.20); --yada-source-fg:  #D9B978;
  --yada-steward-bg:      rgba(139, 148, 116, 0.20);--yada-steward-fg: #B5C29A;

  /* Type families */
  --yada-serif:           Georgia, 'Iowan Old Style', 'Apple Garamond', 'Times New Roman', serif;
  --yada-sans:            Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --yada-hebrew:          'SBL Hebrew', 'Frank Ruhl Libre', 'Ezra SIL', 'Times New Roman', serif;

  /* Type scale */
  --yada-text-xs:         0.75rem;
  --yada-text-sm:         0.875rem;
  --yada-text-base:       1rem;
  --yada-text-lg:         1.25rem;
  --yada-text-xl:         1.5rem;
  --yada-text-2xl:        1.875rem;
  --yada-text-3xl:        2.5rem;
  --yada-text-4xl:        3.5rem;

  /* Weights / leading / tracking */
  --yada-weight-regular:  400;
  --yada-weight-medium:   500;
  --yada-leading-tight:   1.2;
  --yada-leading-snug:    1.4;
  --yada-leading-normal:  1.6;
  --yada-leading-loose:   1.8;
  --yada-tracking-tight:  -0.02em;
  --yada-tracking-normal: 0;
  --yada-tracking-wide:   0.04em;
  --yada-tracking-wider:  0.12em;

  /* Sizing */
  --radius:               12px;
  --radius-lg:            16px;
  --radius-pill:          999px;
  --shadow-card:          0 4px 24px rgba(0,0,0,0.35);
  --shadow-hover:         0 12px 40px rgba(0,0,0,0.50);
  --shadow-olive:         0 6px 24px rgba(139, 148, 116, 0.25);
  --max-w:                1100px;
  --max-w-narrow:         680px;
  --max-w-reading:        38ch;
  --section-pad:          80px 24px;

  /* ============================================================
     LEGACY ALIASES — keep pre-rebrand class names + inline styles
     working with the NEW brand palette. Page bodies are LIGHT
     (cream); explicit dark sections (hero, install modal, AI chat
     header) stay dark on purpose. This preserves contrast in the
     many pages whose inline CSS assumes light cards with dark text.
     ============================================================ */
  --cream:        var(--yada-cream);         /* alt section surface */
  --cream-warm:   var(--yada-cream-soft);    /* warmer alt — page bg */
  --white:        #FFFFFF;                   /* card surface */
  --line:         var(--yada-border-light);  /* dark-ink hairline on light */
  --dark:         var(--yada-black);         /* dark text + dark hero bg */
  --mid:          #3D3428;                   /* primary body text on light */
  --muted:        var(--yada-text-dark-muted); /* secondary text on light */
  --gold:         var(--yada-olive);         /* signature — accents/links/buttons */
  --gold-light:   var(--yada-gold);          /* lamp gold — hover, highlight */
  --gold-soft:    rgba(139, 148, 116, 0.10);
  --gold-border:  var(--yada-border-olive);
  --phase1:       var(--yada-phase1);
  --phase1-soft:  var(--yada-phase1-soft);
  --phase2:       var(--yada-phase2);
  --phase2-soft:  var(--yada-phase2-soft);
  --phase3:       var(--yada-phase3);
  --phase3-soft:  var(--yada-phase3-soft);
  --surface-bg:   var(--yada-surface-bg);
  --surface-fg:   var(--yada-surface-fg);
  --source-bg:    var(--yada-source-bg);
  --source-fg:    var(--yada-source-fg);
  --steward-bg:   var(--yada-steward-bg);
  --steward-fg:   var(--yada-steward-fg);
  --font-head:    var(--yada-serif);
  --font-body:    var(--yada-serif);
  --shadow-gold:  var(--shadow-olive);
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--yada-serif);
  font-size: var(--yada-text-base);
  font-weight: var(--yada-weight-regular);
  line-height: var(--yada-leading-normal);
  color: var(--yada-text-dark);            /* dark text on light page */
  background: var(--yada-cream-soft);      /* warm cream page surface */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── TYPOGRAPHY ────────────────────────────────────────────── */
h1, h2, h3, h4, .yada-h1, .yada-h2, .yada-h3, .yada-h4 {
  font-family: var(--yada-serif);
  font-weight: var(--yada-weight-medium);
  line-height: var(--yada-leading-tight);
  color: var(--yada-text-dark);
}
h1, .yada-h1 {
  font-size: clamp(var(--yada-text-3xl), 6vw, var(--yada-text-4xl));
  letter-spacing: var(--yada-tracking-tight);
}
h2, .yada-h2 {
  font-size: clamp(var(--yada-text-2xl), 4vw, var(--yada-text-3xl));
  line-height: var(--yada-leading-snug);
}
h3, .yada-h3 {
  font-size: var(--yada-text-xl);
  line-height: var(--yada-leading-snug);
}
h4, .yada-h4 { font-size: var(--yada-text-lg); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--yada-olive); }
p { color: var(--yada-text-dark); }
em { font-style: italic; }
strong { font-weight: var(--yada-weight-medium); color: var(--yada-text-dark); }

.yada-eyebrow, .eyebrow {
  font-family: var(--yada-sans);
  font-size: var(--yada-text-xs);
  font-weight: var(--yada-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--yada-tracking-wider);
  color: var(--yada-olive);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.tagline, .yada-tagline {
  font-family: var(--yada-serif);
  font-size: var(--yada-text-lg);
  font-style: italic;
  color: var(--yada-text-muted);
  line-height: var(--yada-leading-snug);
}

.yada-reading {
  font-family: var(--yada-serif);
  font-size: var(--yada-text-lg);
  line-height: var(--yada-leading-loose);
  color: var(--yada-text);
  max-width: var(--max-w-reading);
}

.yada-hebrew {
  font-family: var(--yada-hebrew);
  font-size: var(--yada-text-2xl);
  color: var(--yada-olive);
  direction: rtl;
}

.scripture, .yada-scripture {
  font-family: var(--yada-serif);
  font-style: italic;
  font-size: var(--yada-text-lg);
  line-height: var(--yada-leading-loose);
  color: var(--yada-text-muted);
  border-left: 2px solid var(--yada-olive);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.5rem 0;
}
.scripture-ref, .yada-scripture cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: var(--yada-text-sm);
  color: var(--yada-text-faint);
  font-family: var(--yada-sans);
  letter-spacing: 0.04em;
}

/* ─── LAYOUT ────────────────────────────────────────────────── */
.container         { max-width: var(--max-w);        margin: 0 auto; padding: 0 24px; }
.container-narrow  { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 24px; }
.section           { padding: var(--section-pad); }
.section-tight     { padding: 56px 24px; }

.text-center { text-align: center; }
.text-muted  { color: var(--yada-text-muted); }
.text-gold   { color: var(--yada-olive); }     /* legacy: "gold" now reads as olive */
.text-olive  { color: var(--yada-olive); }
.divider     { height: 1px; background: var(--yada-border); margin: 32px 0; border: none; }
.gold-bar    { display: block; width: 48px; height: 2px; background: var(--yada-olive); margin: 16px auto 0; }

/* Section background variants */
.section-warm   { background: var(--yada-cream); }
.section-soft   { background: var(--yada-cream); }
.section-white  { background: #FFFFFF; color: var(--yada-text-dark); border-top: 1px solid var(--yada-border-light); border-bottom: 1px solid var(--yada-border-light); }
.section-dark   {
  background: var(--yada-black);
  color: var(--yada-text);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--yada-text); }
.section-dark p { color: var(--yada-text-muted); }
.section-dark .yada-eyebrow, .section-dark .eyebrow { color: var(--yada-olive); }

/* ─── THE MARK ──────────────────────────────────────────────── */
.yada-mark {
  display: inline-block;
  width: 64px; height: 64px;
}
.yada-mark--sm  { width: 32px;  height: 32px;  }
.yada-mark--md  { width: 64px;  height: 64px;  }
.yada-mark--lg  { width: 128px; height: 128px; }
.yada-mark--xl  { width: 220px; height: 220px; }
.yada-mark--no-bg rect:first-child { display: none; }

.yada-wordmark {
  font-family: var(--yada-serif);
  font-weight: var(--yada-weight-medium);
  font-size: 1.5em;
  letter-spacing: -0.01em;
  color: inherit;
}
.yada-wordmark__dot, .dot {
  color: var(--yada-olive);
  font-weight: var(--yada-weight-medium);
}

/* ─── ENDORSER LOCKUP ───────────────────────────────────────── */
.yada-endorser {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--yada-serif);
  color: var(--yada-text-muted);
  font-size: var(--yada-text-sm);
  flex-wrap: wrap;
  justify-content: center;
}
.yada-endorser__primary {
  font-size: var(--yada-text-base);
  color: var(--yada-text);
}
.yada-endorser__divider { color: var(--yada-olive); }
.yada-endorser__secondary a {
  color: var(--yada-shalom-blue);
  text-decoration: none;
  border-bottom: 1px solid var(--yada-border-olive);
  transition: color 200ms ease, border-color 200ms ease;
}
.yada-endorser__secondary a:hover {
  color: var(--yada-olive);
  border-bottom-color: var(--yada-olive);
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
/* Spec: pill shape, 44px min-height for accessible touch target, Georgia
   serif, 500 weight. Four variants (primary olive · gold for real-coach
   actions · ghost · quiet) plus legacy aliases for pre-rebrand class
   names so older inline markup keeps rendering correctly. */

.yada-btn, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  min-height: 44px;
  font-family: var(--yada-sans);            /* Inter — readable at all weights on every OS */
  font-size: var(--yada-text-base);
  font-weight: 600;                          /* semibold — never thin on Windows/iOS */
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--yada-text-dark);              /* safety default if a variant forgets */
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;          /* thicker so the outline is clearly visible */
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 100ms ease, box-shadow 200ms ease;
}
.yada-btn:active, .btn:active { transform: scale(0.98); }
.yada-btn:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--yada-gold);
  outline-offset: 2px;
}

/* Primary — olive sage. Default page action: assessment, daily practice,
   "Talk to your AI Companion", etc. WCAG AA: black on #8B9474 = ~7.4:1. */
.yada-btn--primary, .btn-primary {
  background: var(--yada-olive);
  color: var(--yada-black);
  border-color: var(--yada-olive-deep);
}
.yada-btn--primary:hover, .yada-btn--primary:focus-visible,
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--yada-olive-deep);
  border-color: var(--yada-olive-deep);
  color: var(--yada-cream);
  box-shadow: var(--shadow-olive);
}

/* Gold — reserved for "real human coach" actions: "Book a call with
   Brent & Raine". Higher signal/elevated. Black on #C4A55C ≈ 8.5:1. */
.yada-btn--gold, .btn-gold {
  background: var(--yada-gold);
  color: var(--yada-black);
  border-color: var(--yada-gold-deep);
}
.yada-btn--gold:hover, .yada-btn--gold:focus-visible,
.btn-gold:hover, .btn-gold:focus-visible {
  background: var(--yada-gold-deep);
  border-color: var(--yada-gold-deep);
  color: var(--yada-black);
  box-shadow: 0 8px 22px rgba(168, 137, 63, 0.32);
}

/* Dark — inverted on cream surfaces (legacy alias retained) */
.yada-btn--dark, .btn-dark {
  background: var(--yada-black);
  color: var(--yada-cream);
  border-color: var(--yada-black);
}
.yada-btn--dark:hover, .yada-btn--dark:focus-visible,
.btn-dark:hover, .btn-dark:focus-visible {
  background: var(--yada-black-soft);
  border-color: var(--yada-black-soft);
  color: var(--yada-cream);
}

/* Ghost — outline on light backgrounds. High contrast, never washed out.
   Uses olive-deep for border and dark text + subtle olive tint background
   so the button reads clearly even with Georgia/serif body text around it. */
.yada-btn--ghost, .btn-outline {
  background: rgba(139, 148, 116, 0.08);    /* subtle olive wash for presence */
  color: var(--yada-text-dark);
  border-color: var(--yada-olive-deep);     /* darker olive border, not faded */
}
.yada-btn--ghost:hover, .yada-btn--ghost:focus-visible,
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--yada-olive-deep);
  border-color: var(--yada-olive-deep);
  color: var(--yada-cream);
}

/* Ghost on dark backgrounds (hero CTAs, nav, install modal).
   Cream text on a near-black hero is ~14:1 — easy. */
.yada-btn--ghost-light, .btn-outline-light {
  background: rgba(242, 237, 227, 0.06);
  color: var(--yada-cream);
  border-color: var(--yada-cream);
}
.yada-btn--ghost-light:hover, .yada-btn--ghost-light:focus-visible,
.btn-outline-light:hover, .btn-outline-light:focus-visible {
  background: var(--yada-cream);
  border-color: var(--yada-cream);
  color: var(--yada-black);
}

/* Quiet — tertiary action ("Maybe later", "Cancel"). Underlined text only. */
.yada-btn--quiet {
  background: transparent;
  color: var(--yada-text-dark-muted);
  border-color: transparent;
  padding: 0.5rem 1rem;
  min-height: auto;
  text-decoration: underline;
  font-weight: 500;
}
.yada-btn--quiet:hover { color: var(--yada-text-dark); }

.btn-sm { padding: 0.65rem 1.2rem; font-size: 0.85rem; min-height: 38px; }
.btn-full { width: 100%; justify-content: center; }

/* ─── LEGACY NAV (kept for pages not yet migrated to .yada-header) ─── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(26, 22, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(242, 237, 227, 0.10);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  font-family: var(--yada-serif);
  font-size: var(--yada-text-xl);
  font-weight: var(--yada-weight-medium);
  letter-spacing: -0.01em;
  color: var(--yada-text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo .dot { color: var(--yada-olive); }
.nav-links { display: flex; gap: 0.25rem; align-items: center; }
.nav-links a {
  padding: 0.5rem 0.85rem;
  font-family: var(--yada-serif);
  font-size: var(--yada-text-sm);
  color: rgba(242, 237, 227, 0.75);
  text-decoration: none;
  border-radius: 8px;
  transition: color 200ms ease, background 200ms ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--yada-text);
  background: rgba(139, 148, 116, 0.12);
}

/* ─── YADA APP HEADER (new, replaces .nav going forward) ────── */
/* Three-zone sticky header: back · brand · menu. Visible on every page
   including PWA standalone mode. Respects iOS safe-area insets. */
.yada-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--yada-black);
  border-bottom: 1px solid var(--yada-border);
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.yada-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 56px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 12px;
  gap: 8px;
}
@media (min-width: 720px) {
  .yada-header__inner { height: 64px; padding: 0 20px; }
}
.yada-header__left  { justify-self: start; }
.yada-header__center{ justify-self: center; }
.yada-header__right { justify-self: end; }

.yada-header__brand {
  font-family: var(--yada-serif);
  font-size: var(--yada-text-xl);
  font-weight: var(--yada-weight-medium);
  letter-spacing: -0.01em;
  color: var(--yada-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.yada-header__brand .dot { color: var(--yada-olive); }

.yada-header__back,
.yada-header__menu {
  background: transparent;
  border: 0;
  color: var(--yada-text);
  font-family: var(--yada-serif);
  font-size: var(--yada-text-sm);
  font-weight: var(--yada-weight-medium);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  min-height: 44px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease;
}
.yada-header__back:hover, .yada-header__menu:hover,
.yada-header__back:focus-visible, .yada-header__menu:focus-visible {
  color: var(--yada-olive);
  background: rgba(139, 148, 116, 0.12);
}
.yada-header__back:focus-visible, .yada-header__menu:focus-visible {
  outline: 2px solid var(--yada-gold);
  outline-offset: 1px;
}
.yada-header__back svg, .yada-header__menu svg {
  width: 20px; height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.yada-header__back-text {
  display: none;
}
@media (min-width: 720px) {
  .yada-header__back-text { display: inline; }
}

/* ─── SLIDE-OUT MENU ────────────────────────────────────────── */
.yada-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.yada-menu.open { display: block; }
.yada-menu__backdrop {
  position: absolute; inset: 0;
  background: rgba(26, 22, 16, 0.65);
  backdrop-filter: blur(6px);
  animation: yada-menu-fade 0.2s ease;
}
@keyframes yada-menu-fade { from { opacity: 0; } to { opacity: 1; } }
.yada-menu__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(340px, 86vw);
  background: var(--yada-black);
  border-left: 1px solid var(--yada-border);
  padding: max(20px, env(safe-area-inset-top)) 20px 20px;
  padding-right: max(20px, env(safe-area-inset-right));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  animation: yada-menu-slide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes yada-menu-slide {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.yada-menu__close {
  align-self: flex-end;
  background: transparent;
  border: 0;
  color: var(--yada-text-muted);
  font-size: 1.6rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  line-height: 1;
}
.yada-menu__close:hover, .yada-menu__close:focus-visible {
  color: var(--yada-text);
  background: rgba(242, 237, 227, 0.08);
}
.yada-menu__panel a {
  display: block;
  padding: 14px 16px;
  font-family: var(--yada-serif);
  font-size: var(--yada-text-lg);
  color: var(--yada-text);
  text-decoration: none;
  border-radius: 8px;
  transition: background 200ms ease, color 200ms ease;
}
.yada-menu__panel a:hover, .yada-menu__panel a:focus-visible {
  background: rgba(139, 148, 116, 0.14);
  color: var(--yada-olive);
}
.yada-menu__panel a[aria-current="page"] {
  color: var(--yada-olive);
  background: rgba(139, 148, 116, 0.08);
}
.yada-menu__panel .yada-menu__divider {
  height: 1px;
  background: var(--yada-border);
  margin: 12px 4px;
}
.yada-menu__footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--yada-border);
  font-family: var(--yada-serif);
  font-size: var(--yada-text-xs);
  color: var(--yada-text-faint);
  text-align: center;
}

/* Body locks scroll when menu open */
body.yada-menu-open { overflow: hidden; }

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  padding: 88px 24px 72px;
  background: var(--yada-black);
  color: var(--yada-text);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(139, 148, 116, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse at 80% 70%, rgba(196, 165, 92, 0.05) 0%, transparent 55%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--yada-olive);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w-narrow);
  margin: 0 auto;
}
.hero-eyebrow {
  font-family: var(--yada-sans);
  font-size: var(--yada-text-xs);
  color: var(--yada-olive);
  letter-spacing: var(--yada-tracking-wider);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: inline-block;
  font-weight: var(--yada-weight-medium);
}
.hero h1 {
  color: var(--yada-text);
  margin-bottom: 1rem;
}
.hero h1 em { color: var(--yada-olive); font-style: italic; }
.hero-tagline {
  font-family: var(--yada-serif);
  font-size: clamp(var(--yada-text-base), 2vw, var(--yada-text-lg));
  font-style: italic;
  color: var(--yada-text-muted);
  margin-bottom: 2.5rem;
  line-height: var(--yada-leading-snug);
}
.hero-mark {
  margin: 0 auto 2rem;
  display: block;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── CARDS ─────────────────────────────────────────────────── */
.card {
  background: #FFFFFF;
  border: 1px solid var(--yada-border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: var(--yada-text-dark);
}
.card-cream { background: var(--yada-cream); }

/* Path cards (Men / Women / Couples) */
.paths-grid, .yada-paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.path-card, .yada-path-card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  background: #FFFFFF;
  border: 1px solid var(--yada-border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--yada-text-dark);
  transition: border-color 250ms ease, transform 250ms ease, background 250ms ease, box-shadow 250ms ease;
  position: relative;
  overflow: hidden;
}
.path-card:hover, .yada-path-card:hover {
  border-color: var(--yada-olive);
  box-shadow: 0 12px 40px rgba(26, 22, 16, 0.08);
  transform: translateY(-2px);
}
.path-card-eyebrow, .yada-path-card__eyebrow {
  font-family: var(--yada-sans);
  font-size: var(--yada-text-xs);
  font-weight: var(--yada-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--yada-tracking-wider);
  color: var(--yada-olive);
  margin-bottom: 1rem;
}
.path-card h3, .yada-path-card__title {
  font-family: var(--yada-serif);
  font-size: var(--yada-text-xl);
  font-weight: var(--yada-weight-medium);
  line-height: var(--yada-leading-snug);
  margin-bottom: 0.75rem;
  color: var(--yada-text-dark);
}
.path-card p, .yada-path-card__body {
  font-family: var(--yada-serif);
  font-size: var(--yada-text-base);
  line-height: var(--yada-leading-normal);
  color: var(--yada-text-dark-muted);
  margin-bottom: 1.25rem;
  flex: 1;
}

/* ─── PHASE COLORS / BADGES ─────────────────────────────────── */
.phase-1 { color: var(--yada-phase1); }
.phase-2 { color: var(--yada-phase2); }
.phase-3 { color: var(--yada-phase3); }
.bg-phase-1 { background: var(--yada-phase1-soft); color: var(--yada-phase1); }
.bg-phase-2 { background: var(--yada-phase2-soft); color: var(--yada-phase2); }
.bg-phase-3 { background: var(--yada-phase3-soft); color: var(--yada-phase3); }

.phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--yada-sans);
  font-size: var(--yada-text-xs);
  font-weight: var(--yada-weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
}
.phase-badge.p1 { background: var(--yada-phase1-soft); color: var(--yada-phase1); }
.phase-badge.p2 { background: var(--yada-phase2-soft); color: var(--yada-phase2); }
.phase-badge.p3 { background: var(--yada-phase3-soft); color: var(--yada-phase3); }

.step-badge {
  display: inline-block;
  font-family: var(--yada-sans);
  font-size: 0.65rem;
  font-weight: var(--yada-weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
}
.step-badge.surface { background: var(--yada-surface-bg); color: var(--yada-surface-fg); }
.step-badge.source  { background: var(--yada-source-bg);  color: var(--yada-source-fg); }
.step-badge.steward { background: var(--yada-steward-bg); color: var(--yada-steward-fg); }

/* ─── FORM ELEMENTS ─────────────────────────────────────────── */
input, textarea, select {
  font-family: var(--yada-sans);
  font-size: var(--yada-text-base);
  padding: 0.75rem 1rem;
  border: 1px solid var(--yada-border-light);
  border-radius: var(--radius);
  background: #FFFFFF;
  color: var(--yada-text-dark);
  width: 100%;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--yada-olive);
  box-shadow: 0 0 0 3px rgba(139, 148, 116, 0.18);
}
textarea {
  resize: vertical;
  min-height: 120px;
  line-height: var(--yada-leading-normal);
  font-family: var(--yada-serif);
}
label {
  display: block;
  font-family: var(--yada-sans);
  font-size: var(--yada-text-sm);
  font-weight: var(--yada-weight-medium);
  color: var(--yada-text-dark-muted);
  margin-bottom: 0.5rem;
}

/* ─── VOICE-TO-TEXT (mic button) ───────────────────────────── */
/* Wrapper turned on by Yada.voice.attach when placement is 'in-textarea'.
   Lets us position the mic absolutely inside the field. */
.yada-textarea-wrap {
  position: relative;
  display: block;
}
.yada-textarea-wrap > textarea,
.yada-textarea-wrap > input {
  /* Reserve space for the mic so text doesn't crawl underneath it. */
  padding-right: 54px !important;
}

.yada-mic {
  background: var(--yada-cream-soft);
  border: 1px solid var(--yada-border-olive);
  color: var(--yada-olive-deep);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 100ms ease, box-shadow 200ms ease;
}
.yada-mic:hover, .yada-mic:focus-visible {
  background: rgba(139, 148, 116, 0.16);
  border-color: var(--yada-olive);
  color: var(--yada-olive);
}
.yada-mic:focus-visible { outline: 2px solid var(--yada-gold); outline-offset: 2px; }
.yada-mic:active { transform: scale(0.95); }
.yada-mic svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.yada-mic__icon-idle      { display: block; }
.yada-mic__icon-listening { display: none; fill: currentColor; }
.yada-mic--listening {
  background: var(--yada-olive);
  border-color: var(--yada-olive-deep);
  color: var(--yada-cream);
  box-shadow: 0 0 0 0 rgba(139, 148, 116, 0.45);
  animation: yada-mic-pulse 1.4s ease-in-out infinite;
}
.yada-mic--listening:hover,
.yada-mic--listening:focus-visible {
  background: var(--yada-olive-deep);
  border-color: var(--yada-olive-deep);
  color: var(--yada-cream);
}
.yada-mic--listening .yada-mic__icon-idle      { display: none; }
.yada-mic--listening .yada-mic__icon-listening { display: block; }
@keyframes yada-mic-pulse {
  0%   { box-shadow: 0 0 0 0  rgba(139, 148, 116, 0.45); }
  70%  { box-shadow: 0 0 0 12px rgba(139, 148, 116, 0); }
  100% { box-shadow: 0 0 0 0  rgba(139, 148, 116, 0); }
}

/* Default placement: bottom-right of the field */
.yada-mic--in-textarea {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
}

/* Live transcript preview while listening */
.yada-mic__interim {
  position: absolute;
  left: 10px;
  right: 56px;
  bottom: -22px;
  font-family: var(--yada-sans);
  font-size: var(--yada-text-xs);
  color: var(--yada-olive-deep);
  font-style: italic;
  pointer-events: none;
  opacity: 0.78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Reduced motion preference: no pulse */
@media (prefers-reduced-motion: reduce) {
  .yada-mic--listening { animation: none; }
}

/* ─── Voice notice for iOS PWA ─────────────────────────────
   One-time modal shown when a PWA user taps the mic for the first time
   in a session. Explains that voice works better in Safari and offers a
   shortcut to open the same page there. */
.yada-voice-notice {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: yada-vn-fade 0.25s ease;
}
@keyframes yada-vn-fade { from { opacity: 0; } to { opacity: 1; } }
.yada-voice-notice__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 22, 16, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.yada-voice-notice__card {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: 100%;
  background: var(--yada-cream-soft);
  border: 1px solid var(--yada-border-olive);
  border-radius: 16px;
  padding: 28px 26px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: yada-vn-slide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes yada-vn-slide {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.yada-voice-notice__eyebrow {
  font-family: var(--yada-sans);
  font-size: var(--yada-text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yada-olive-deep);
  margin-bottom: 0.5rem;
}
.yada-voice-notice__title {
  font-family: var(--yada-serif);
  font-size: var(--yada-text-2xl);
  font-weight: var(--yada-weight-medium);
  color: var(--yada-text-dark);
  line-height: 1.2;
  margin-bottom: 0.85rem;
}
.yada-voice-notice__title em { font-style: italic; color: var(--yada-olive-deep); }
.yada-voice-notice__body {
  font-family: var(--yada-serif);
  font-size: var(--yada-text-base);
  line-height: 1.65;
  color: var(--yada-text-dark-muted);
  margin: 0 0 1.25rem;
}
.yada-voice-notice__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.yada-voice-notice__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: 0;
  color: var(--yada-text-dark-muted);
  font-size: 1.6rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.yada-voice-notice__close:hover, .yada-voice-notice__close:focus-visible {
  background: rgba(139, 148, 116, 0.14);
  color: var(--yada-text-dark);
}

@media (max-width: 480px) {
  .yada-voice-notice__card { padding: 24px 22px 20px; }
  .yada-voice-notice__title { font-size: var(--yada-text-xl); }
}

/* ─── TESTIMONIAL ───────────────────────────────────────────── */
/* Used on home, /men, /next. Cream-soft card with olive left rule,
   serif italic body, name attribution in small caps underneath.
   Reads as a quiet anchor of social proof. */
.yada-testimonial {
  max-width: 720px;
  margin: 0 auto;
  background: var(--yada-cream-soft);
  border: 1px solid var(--yada-border-olive);
  border-left: 3px solid var(--yada-olive);
  border-radius: 14px;
  padding: 32px 32px 28px;
  text-align: left;
  position: relative;
}
.yada-testimonial::before {
  content: '\201C';                    /* opening curly double-quote */
  position: absolute;
  top: 8px;
  left: 20px;
  font-family: var(--yada-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--yada-olive);
  opacity: 0.32;
  pointer-events: none;
  font-style: normal;
}
.yada-testimonial-eyebrow {
  font-family: var(--yada-sans);
  font-size: var(--yada-text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yada-olive-deep);
  margin-bottom: 1rem;
  position: relative;
}
.yada-testimonial-body {
  font-family: var(--yada-serif);
  font-style: italic;
  font-size: var(--yada-text-lg);
  line-height: 1.75;
  color: var(--yada-text-dark);
  margin: 0;
}
.yada-testimonial-body p {
  font-family: var(--yada-serif);
  font-style: italic;
  font-size: var(--yada-text-lg);
  line-height: 1.75;
  color: var(--yada-text-dark);
  margin: 0;
}
.yada-testimonial-body p + p { margin-top: 1rem; }
.yada-testimonial-attr {
  margin-top: 1.5rem;
  font-family: var(--yada-sans);
  font-size: var(--yada-text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yada-olive-deep);
}
.yada-testimonial-attr::before {
  content: '\2014\00A0';               /* em-dash + nbsp */
}

/* On dark sections (hero-like or .section-dark), invert the testimonial
   colors so it stays readable. */
.section-dark .yada-testimonial,
.yada-testimonial.is-on-dark {
  background: rgba(242, 237, 227, 0.04);
  border-color: rgba(139, 148, 116, 0.32);
  border-left-color: var(--yada-olive);
}
.section-dark .yada-testimonial-body,
.section-dark .yada-testimonial-body p,
.yada-testimonial.is-on-dark .yada-testimonial-body,
.yada-testimonial.is-on-dark .yada-testimonial-body p {
  color: var(--yada-cream);
}
.section-dark .yada-testimonial-eyebrow,
.section-dark .yada-testimonial-attr,
.yada-testimonial.is-on-dark .yada-testimonial-eyebrow,
.yada-testimonial.is-on-dark .yada-testimonial-attr {
  color: var(--yada-olive);
}

@media (max-width: 480px) {
  .yada-testimonial { padding: 28px 22px 24px; }
  .yada-testimonial::before { font-size: 3rem; top: 4px; left: 14px; }
  .yada-testimonial-body, .yada-testimonial-body p { font-size: var(--yada-text-base); }
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: var(--yada-black);
  color: var(--yada-text-faint);
  padding: 3.5rem 1.5rem 2rem;
  text-align: center;
  font-family: var(--yada-serif);
  font-size: var(--yada-text-sm);
  line-height: var(--yada-leading-normal);
  position: relative;
  border-top: 1px solid var(--yada-border);
}
.footer-brand {
  font-family: var(--yada-serif);
  font-size: var(--yada-text-xl);
  font-weight: var(--yada-weight-medium);
  color: var(--yada-text);
  margin-bottom: 0.5rem;
  display: inline-block;
}
.footer-brand .dot { color: var(--yada-olive); }
.footer-tagline {
  font-family: var(--yada-serif);
  font-style: italic;
  color: var(--yada-text-muted);
  margin-bottom: 1.5rem;
}
.footer-meta {
  font-size: var(--yada-text-xs);
  color: var(--yada-text-faint);
  font-family: var(--yada-sans);
}
.footer a {
  color: var(--yada-shalom-blue);
  transition: color 200ms ease;
}
.footer a:hover { color: var(--yada-olive); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 0 auto 1.25rem;
  max-width: 640px;
  font-family: var(--yada-serif);
  font-size: var(--yada-text-sm);
}
.footer-nav a {
  color: var(--yada-text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 200ms ease, border-color 200ms ease;
}
.footer-nav a:hover, .footer-nav a:focus-visible {
  color: var(--yada-olive);
  border-bottom-color: var(--yada-olive);
}

/* ─── PWA STANDALONE ────────────────────────────────────────── */
@media (display-mode: standalone) {
  .nav { top: 0; }
  .yada-header { top: 0; }
  .hide-in-app { display: none; }
  /* Pad bottom of pages so iOS home indicator doesn't sit on content */
  body { padding-bottom: env(safe-area-inset-bottom); }
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 720px) {
  .nav-links { gap: 0.1rem; }
  .nav-links a { font-size: 0.78rem; padding: 0.4rem 0.55rem; }
  .nav-logo { font-size: var(--yada-text-lg); }
  .section { padding: 56px 20px; }
  .hero { padding: 64px 20px 56px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn, .hero-ctas .yada-btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .nav-inner { flex-direction: column; gap: 10px; }
}
