@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif&family=Manrope:wght@400;600;700;800&display=swap');

/*
  Global stylesheet — single source of truth for the site.

  Structure:
    1) Reset and base
    2) Design tokens (:root) — palette and typography are owned by the
       `brand-guidelines` skill. Spacing, radii, shadows, motion, and layout
       tokens are owned here.
    3) Layout primitives
    4) Components (site-wide reusable primitives only — page-specific
       styles live with their page builds, not here)
    5) Utilities
*/

/* ===== 1) Reset and base ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

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

/* ===== 2) Design tokens ===== */
/* Palette and typography are written by the `brand-guidelines` skill from
   `build-assets/0-the-brand/tokens.json`. Spacing, radii, shadows, and
   transitions are owned here. */
:root {
  /* Palette (brand-guidelines) */
  --color-bg: #F7F3EC;                 /* Warm Cream — dominant background */
  --color-surface: #FFFDF9;            /* Off-white card surface, never pure white */
  --color-surface-soft: #EFE9DE;       /* Soft Stone — section separation, borders */
  --color-text: #202220;               /* Charcoal */
  --color-text-soft: #5C6560;          /* Muted body, 5.45:1 on cream — AA pass */
  --color-primary: #173F35;            /* Deep Forest — nav, dark sections, primary CTA */
  --color-primary-dark: #0E2A23;       /* Deep Forest pressed/hover */
  --color-primary-light: #DDE5DF;      /* Tinted forest wash for soft panels */
  --color-accent: #B96F5D;             /* Terracotta — fills and decoration ONLY, 3.46:1 */
  --color-accent-ink: #A65A48;         /* Terracotta for TEXT and links, 4.54:1 — AA pass */
  --color-sage: #94A694;               /* Sage — icons, tags, rules. Never text on cream */
  --color-focus: #A65A48;              /* Focus ring */

  /* Typography (brand-guidelines) */
  --font-heading: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Radii */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(60, 64, 67, 0.12);
  --shadow-md: 0 4px 14px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 12px 32px rgba(17, 24, 39, 0.12);

  /* Motion */
  --transition-fast: 180ms ease;
  --transition-base: 260ms ease;

  /* Layout */
  --container-max: 72rem;

  /* Aesthetic dials — the `design-system` skill SETS these per brand to diverge
     the look (sharp vs soft, flat vs shadowed, square vs pill). Defaults below are
     a soft/rounded baseline; a brand's design stage should deliberately override
     them so two brands don't look like the same template reskinned. */
  --logo-height: 2.5rem;     /* Refined — elegant serif wordmark, premium editorial vibe */
  --logo-max-width: 20rem;
  --header-bg: var(--color-bg);        /* Warm cream band, not white — keeps the page warm */
  --header-fg: var(--color-text);
  --btn-radius: var(--radius-pill);    /* pill CTAs — the one soft moment, reads friendly */
  --card-radius: var(--radius-sm);     /* 8px — calm, editorial, not app-bubbly */
  --card-shadow: none;                 /* flat. depth comes from the hairline + cream/stone */
  --card-border: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
  --chip-radius: var(--radius-pill);
}

/* Logo grows on wider screens — override the dial at the breakpoint, never per-page. */
@media (min-width: 1024px) {
  :root { --logo-height: 2.75rem; }
}

/* ===== 3) Layout primitives ===== */
.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

.section {
  padding: var(--space-10) 0;
}

.grid {
  display: grid;
  gap: var(--space-4);
}

.grid-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ===== 4) Components ===== */

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  color: var(--header-fg);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}

.site-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* The header logo is an <img src="{{logo.src}}"> whose REAL file is injected by the CMS
   at upload — its aspect ratio is unknown at build time. HEIGHT is the primary driver
   (a generous --logo-height), so every logo renders at a consistent, prominent height
   regardless of ratio; --logo-max-width is a generous, viewport-relative safety cap that
   only clamps a very wide logo on small screens (it then scales down proportionally, never
   distorts). Never pin width AND height. Tune the dials per brand — never a per-page size. */
.site-logo img {
  height: auto;
  width: auto;
  max-height: var(--logo-height);
  max-width: min(var(--logo-max-width, 22rem), 55vw);
  object-fit: contain;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
}

.site-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* CMS-rendered menus — `{{menu.navigation}}` and `{{menu.footer}}` expand to
   <ul class="canvas-navigation-menu"> / <ul class="canvas-footer-menu"> with
   <li><a> children. Style the generated classes directly. */

.canvas-navigation-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.canvas-navigation-menu > li {
  margin: 0;
}

.canvas-navigation-menu a {
  color: var(--header-fg);
  font-weight: 600;
  font-size: 0.95rem;
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.canvas-navigation-menu a:hover,
.canvas-navigation-menu a:focus-visible {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.canvas-footer-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}

/* Footers can carry many links. With 8+ items, flow them into responsive columns
   (auto-fill grid) instead of one long, sprawling wrapping row — multi-column on wide
   screens, collapsing toward a single column on mobile. Short footer menus keep the
   inline row above. Where :has() is unsupported it harmlessly stays the flex row. */
.canvas-footer-menu:has(> li:nth-child(8)) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr));
  align-items: start;
  gap: var(--space-2) var(--space-5);
}

.canvas-footer-menu > li {
  margin: 0;
}

.canvas-footer-menu a {
  color: var(--color-text-soft);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.canvas-footer-menu a:hover,
.canvas-footer-menu a:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--color-primary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--color-text-soft);
  opacity: 0.6;
}

.breadcrumb [aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--btn-radius);
  min-height: 2.75rem;
  padding: 0.78rem 1.4rem;
  font-size: 0.98rem;
  line-height: 1;
  letter-spacing: 0.01em;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline-offset: 3px; }

.btn[disabled],
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
  box-shadow: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary) 28%, transparent);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--color-primary) 40%, transparent);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid color-mix(in srgb, var(--color-text) 16%, transparent);
}

.btn-secondary:hover {
  background: color-mix(in srgb, var(--color-surface-soft) 75%, #fff);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid color-mix(in srgb, var(--color-text) 20%, transparent);
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--color-surface-soft) 65%, transparent);
}

/* Header CTAs follow the header foreground so they stay legible on a coloured band
   (no-op on the neutral default where --header-fg == --color-text). */
.site-header .btn-ghost {
  color: var(--header-fg);
  border-color: color-mix(in srgb, var(--header-fg) 20%, transparent);
}

.btn-sm {
  min-height: 2.2rem;
  padding: 0.55rem 1rem;
  font-size: 0.87rem;
}

.btn-lg {
  min-height: 3rem;
  padding: 0.9rem 1.7rem;
  font-size: 1.04rem;
}

.btn-block { width: 100%; }

.btn-icon {
  width: 2.75rem;
  min-width: 2.75rem;
  padding: 0;
  border-radius: 50%;
}

/* Card */
.card {
  background: var(--color-surface);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  padding: var(--space-5);
}

.card-title {
  margin: 0 0 var(--space-2);
  font-size: 1.08rem;
}

.card-text {
  margin: 0;
  color: var(--color-text-soft);
}

/* Chip — pill-shaped tag */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--chip-radius);
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
}

.chip-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Site footer */
.site-footer {
  padding: var(--space-10) 0;
  color: var(--color-text-soft);
  font-size: 0.9rem;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}

/* Member profile */
.profile-head {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  margin-bottom: var(--space-6);
}
.profile-avatar {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: var(--radius-pill);
  object-fit: cover;
}
.profile-id {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.profile-headline {
  font-size: 1.15rem;
  font-weight: 600;
}
.profile-bio {
  color: var(--color-text-soft);
  max-width: 60ch;
}
.profile-interests {
  margin-top: var(--space-3);
}


/* ===== 4b) Christian Love Finder design language =====
   Added by `design-system`. Token-driven only. Editorial + calm.
   Type: Instrument Serif display over Manrope UI. Flat cards, hairline borders,
   pill CTAs, cream-and-forest rhythm. Depth comes from surface changes and
   generous space, never from shadows. */

/* --- Editorial type scale --- */
.display {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
}
.display-sm {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}
.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-text-soft);
  max-width: 46ch;
  margin: var(--space-5) 0 0;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
  margin: 0 0 var(--space-4);
  display: block;
}
.section-head { max-width: 60ch; margin-bottom: var(--space-8); }
.section-head .lede { margin-top: var(--space-4); }

/* --- Section surfaces --- */
.section-alt { background: var(--color-surface-soft); }
.section-dark {
  background: var(--color-primary);
  color: var(--color-bg);
}
.section-dark .lede,
.section-dark .muted { color: color-mix(in srgb, var(--color-bg) 78%, transparent); }
.section-dark .eyebrow { color: color-mix(in srgb, var(--color-bg) 70%, transparent); }
.section-lg { padding: var(--space-12) 0; }
@media (min-width: 768px) { .section-lg { padding: calc(var(--space-12) * 1.6) 0; } }

.rule {
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--color-sage) 55%, transparent);
  margin: var(--space-10) 0;
}

/* --- Hero: editorial split --- */
.hero { padding: var(--space-10) 0 var(--space-12); }
.hero-grid { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-12); }
}
.hero-media {
  position: relative;
  margin: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-surface-soft);
}
@media (min-width: 900px) { .hero-media { aspect-ratio: 5 / 6; } }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

/* --- Trust strip --- */
.trust-strip {
  list-style: none;
  margin: var(--space-8) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-soft);
}
.trust-strip .icon { width: 1.125rem; height: 1.125rem; stroke-width: 2; }
.section-dark .trust-strip li { color: color-mix(in srgb, var(--color-bg) 82%, transparent); }

/* --- Statistics / social proof --- */
.stat-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { border-top: 1px solid color-mix(in srgb, var(--color-text) 14%, transparent); padding-top: var(--space-4); }
.section-dark .stat { border-top-color: color-mix(in srgb, var(--color-bg) 26%, transparent); }
.stat-figure {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1;
  display: block;
}
.stat-label {
  display: block;
  margin-top: var(--space-2);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-soft);
}
.section-dark .stat-label { color: color-mix(in srgb, var(--color-bg) 76%, transparent); }

/* --- Stars --- */
.stars { display: inline-flex; gap: 0.125rem; color: var(--color-accent); font-size: 0.9375rem; letter-spacing: 0.06em; }
.review-quote { font-size: 1.0625rem; }
.section-dark .stars { color: color-mix(in srgb, var(--color-accent) 70%, var(--color-bg)); }

/* --- Cards, editorial --- */
.card { background: var(--color-surface); }
.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: calc(var(--card-radius) - 2px);
  background: var(--color-surface-soft);
  margin-bottom: var(--space-4);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-base); }
.card:hover .card-media img { transform: scale(1.03); }
.card-meta { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-accent-ink); }

.review-card {
  background: var(--color-surface);
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.review-quote { font-family: var(--font-heading); font-size: 1.1875rem; line-height: 1.45; margin: 0; }
.review-by { font-size: 0.875rem; color: var(--color-text-soft); margin: 0; }

/* --- Numbered steps --- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps > li { counter-increment: step; border-top: 1px solid color-mix(in srgb, var(--color-text) 14%, transparent); padding-top: var(--space-4); }
.steps > li::before {
  content: counter(step);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-accent-ink);
  display: block;
  line-height: 1;
  margin-bottom: var(--space-3);
}
.step-title { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin: 0 0 var(--space-2); }
.step-text { margin: 0; font-size: 0.9375rem; color: var(--color-text-soft); }

/* --- Link lists (locations, related) --- */
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .link-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.link-list a {
  display: block;
  padding: var(--space-3) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
  font-weight: 600;
  transition: color var(--transition-fast);
}
.link-list a:hover { color: var(--color-accent-ink); }
.section-dark .link-list a { border-bottom-color: color-mix(in srgb, var(--color-bg) 24%, transparent); }
.section-dark .link-list a:hover { color: var(--color-bg); }

/* --- App store badges --- */
.app-badges { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin: 0; padding: 0; list-style: none; }
.app-badges img { height: 2.75rem; width: auto; }

/* --- Faith accent: used sparingly, never as a hero --- */
.accent-mark { color: var(--color-accent); }
.pull-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  line-height: 1.25;
  margin: 0;
  max-width: 24ch;
}

/* --- Member loop overrides (must be [data-members] prefixed — the CMS injects
   unscoped styles, so equal specificity loses silently) --- */
[data-members] img { border-radius: calc(var(--card-radius) - 2px); }
[data-members] a { color: inherit; }

/* --- Motion: Subtle. CSS only, no JS, reduced-motion safe via the seed's reset. --- */
@keyframes clf-rise { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }
.reveal { animation: clf-rise 0.6s var(--transition-base) both; }
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.14s; }
.reveal-3 { animation-delay: 0.23s; }
/* Scroll-driven reveal removed: `animation-fill-mode: both` on a view() timeline
   leaves content at opacity 0 wherever the timeline does not progress, which hides
   copy from readers and crawlers. Entrance motion is load-time only (.reveal). */
.muted { color: var(--color-text-soft); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== 4c) Homepage + shared components (added on first use) ===== */

/* Footer legal row — required on every page */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid color-mix(in srgb, var(--color-bg) 20%, transparent);
  font-size: 0.8125rem;
}
.footer-legal a { color: color-mix(in srgb, var(--color-bg) 72%, transparent); }
.footer-legal a:hover { color: var(--color-bg); text-decoration: underline; }

/* Desktop-only header CTAs — the CMS nav drawer owns the mobile CTAs */
@media (max-width: 1023px) { .desktop-only { display: none; } }

/* Premium outline icons — inline SVG, 1.5 stroke, brand colours, never emoji */
.icon {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  stroke: var(--color-primary);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.icon-lg { width: 2.5rem; height: 2.5rem; }
.icon-sm { width: 1.125rem; height: 1.125rem; stroke-width: 1.75; }
.icon-accent { stroke: var(--color-accent-ink); }
.section-dark .icon { stroke: var(--color-bg); }

/* Value panels — editorial, icon-led, equal height */
.value-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6) 0 0;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 16%, transparent);
}
.value-panel h3 { margin: 0; font-size: 1.375rem; }
.value-panel p { margin: 0; color: var(--color-text-soft); }
.value-panel .value-link { margin-top: auto; padding-top: var(--space-4); }
.value-link { font-weight: 700; color: var(--color-accent-ink); display: inline-flex; align-items: center; gap: var(--space-2); }
.value-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Editorial split band — image one side, copy the other. Alternates on request. */
.split-band { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 900px) {
  .split-band { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-12); }
  .split-band.is-reversed { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split-band.is-reversed .split-media { order: 2; }
}
.split-media {
  margin: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-surface-soft);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }

/* App download band */
.app-band { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 900px) { .app-band { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.app-shot {
  margin: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: color-mix(in srgb, var(--color-bg) 14%, transparent);
}
.app-shot img { width: 100%; height: 100%; object-fit: cover; }

/* Static chips — used where a destination page does not exist yet */
.chip-static {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: var(--chip-radius);
  border: 1px solid color-mix(in srgb, var(--color-text) 16%, transparent);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-soft);
}
.section-dark .chip-static {
  border-color: color-mix(in srgb, var(--color-bg) 30%, transparent);
  color: color-mix(in srgb, var(--color-bg) 82%, transparent);
}

/* Visible build-time flag. Delete the element once real content lands. */
.placeholder-note {
  display: block;
  margin-top: var(--space-3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
}

/* Safety list */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
@media (min-width: 700px) { .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.check-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.check-list p { margin: 0; }
.check-list strong { display: block; margin-bottom: 0.125rem; }
.check-list span { color: var(--color-text-soft); font-size: 0.9375rem; }
.section-dark .check-list span { color: color-mix(in srgb, var(--color-bg) 76%, transparent); }

/* Final CTA — stacked and centred */
.cta-panel { text-align: center; display: grid; justify-items: center; gap: var(--space-5); }
.cta-panel .lede { margin: 0; max-width: 52ch; }
.cta-panel .hero-actions { justify-content: center; margin-top: var(--space-2); }
.cta-panel .trust-strip { justify-content: center; }

/* ===== Canvas nav theming (menu.navigation.default) =====
   The snippet injects its <style> into the <body>, after global.css. Equal specificity
   loses silently, so every override below is at least (0,2,0) and targets the consumer
   property, not the custom property. See references/placeholders/menu.navigation.default.md */
.hs-canvas-nav .hs-canvas-nav__drawer {
  background: var(--color-bg);
  box-shadow: var(--shadow-lg);
}
.hs-canvas-nav .hs-canvas-nav__overlay {
  background: color-mix(in srgb, var(--color-primary) 45%, transparent);
}
.hs-canvas-nav .hs-canvas-nav__cta--primary {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--btn-radius);
}
.hs-canvas-nav .hs-canvas-nav__cta--primary:hover { background: var(--color-primary-dark); }
.hs-canvas-nav .hs-canvas-nav__cta--secondary {
  color: var(--color-text);
  border-radius: var(--btn-radius);
}
.hs-canvas-nav .hs-canvas-nav__link,
.hs-canvas-nav .hs-canvas-nav__summary {
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 600;
}
.hs-canvas-nav .hs-canvas-nav__link:hover { color: var(--color-accent-ink); }
.hs-canvas-nav .hs-canvas-nav__submenu {
  background: var(--color-surface);
  border-radius: var(--card-radius);
}
.hs-canvas-nav[data-hs-canvas-nav] {
  --hs-canvas-nav-border: color-mix(in srgb, var(--color-text) 14%, transparent);
  --hs-canvas-nav-shadow: var(--shadow-lg);
}

/* ===== Member loops (CMS-injected) =====
   The snippet injects an UNSCOPED <style> into the <body>, so it loads after this file.
   Equal specificity loses. Every override below out-specifies it, targets by class never
   by element, and scopes shape rules by layout.
   Canonical: references/placeholders/members.loop.md */
[data-members],
[data-members] *,
[data-members] *::before,
[data-members] *::after { box-sizing: border-box; }

[data-members]:not([data-members-layout="orbs"]):not(.demo-orbs).lp-members { min-height: 12rem; }

[data-members] .mem-card {
  background: var(--color-surface, #ffffff);
  border: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
  isolation: isolate;
}
[data-members] .mem-card__initial {
  background: var(--color-primary, #b4602c);
  color: var(--color-surface, #ffffff);
  font-size: 1.5rem;
}
[data-members] .mem-card__name {
  font-family: var(--font-heading, inherit);
  color: var(--color-text, inherit);
  font-size: 0.9rem;
  line-height: 1.3;
}
[data-members] .mem-card__where,
[data-members] .mem-card__line {
  color: var(--color-text-soft, #6b6f85);
  font-size: 0.75rem;
}
[data-members] .mem-card__line { line-height: 1.35; }
[data-members] .mem-card__cta {
  color: var(--color-primary, #b4602c);
  font-size: 0.75rem;
  font-weight: 700;
}
[data-members] .mem-card--join {
  background: var(--color-surface-soft, #f2f0ea);
  color: var(--color-primary, #b4602c);
}

[data-members]:not([data-members-layout="orbs"]):not(.demo-orbs) .lp-grid {
  --mem-gap: var(--space-3, 0.75rem);
  gap: var(--mem-gap);
  grid-template-columns: repeat(auto-fill, minmax(min(11rem, calc(50% - var(--mem-gap))), 1fr));
}
[data-members]:not([data-members-layout="orbs"]):not(.demo-orbs) .mem-card {
  width: 100%;
  max-width: 11rem;
  justify-self: center;
  border-radius: var(--radius-sm, 6px);
  padding: 0.5rem;
}
[data-members]:not([data-members-layout="orbs"]):not(.demo-orbs) .mem-card img,
[data-members]:not([data-members-layout="orbs"]):not(.demo-orbs) .mem-card__initial {
  border-radius: var(--radius-sm, 4px);
}
[data-members]:not([data-members-layout="orbs"]):not(.demo-orbs) .mem-card--join {
  border-radius: var(--radius-sm, 6px);
}

.lp-members__empty {
  color: var(--color-text-soft, #6b6f85);
  text-align: center;
  padding: var(--space-8, 2rem) var(--space-4, 1rem);
  margin: 0;
}

/* ===== Dark footer (brand anchor) =====
   The canonical <footer class="site-footer"> HTML is unchanged; only its styling
   is re-toned here, plus the CMS footer menu's link colours for the dark ground. */
.site-footer {
  background: var(--color-primary);
  color: color-mix(in srgb, var(--color-bg) 76%, transparent);
  border-top: 0;
  padding: var(--space-12) 0;
}
.site-footer .canvas-footer-menu a { color: color-mix(in srgb, var(--color-bg) 82%, transparent); }
.site-footer .canvas-footer-menu a:hover,
.site-footer .canvas-footer-menu a:focus-visible { color: var(--color-bg); }

/* Hero media: sources are 16:9, so the desktop crop stays close to the original ratio
   rather than a portrait crop that would cut heads. */
@media (min-width: 900px) {
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}

/* Primary CTA on a Deep Forest band: forest-on-forest is invisible, so invert.
   Cream ground, forest label — 10.55:1. */
.section-dark .btn-primary {
  background: var(--color-bg);
  color: var(--color-primary);
  box-shadow: none;
}
.section-dark .btn-primary:hover {
  background: #fff;
  box-shadow: none;
}
.section-dark .btn-secondary {
  background: transparent;
  color: var(--color-bg);
  border-color: color-mix(in srgb, var(--color-bg) 40%, transparent);
}
.section-dark .btn-secondary:hover { background: color-mix(in srgb, var(--color-bg) 12%, transparent); }

/* Instrument Serif ships one weight (400). Anything asking for bold gets a synthesised
   faux-bold that smears at small sizes, so small headings use Manrope instead and the
   serif is always set at 400. */
.value-panel h3,
.review-quote,
.pull-quote { font-weight: 400; }
.card-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.35;
}

/* ===== 4d) Icon sprite, breadcrumb, and inner-page components ===== */

/* The sprite holds <symbol> defs only — it must never take layout space. */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Breadcrumb tone on cream */
.breadcrumb { padding: var(--space-6) 0 0; font-size: 0.8125rem; color: var(--color-text-soft); }
.breadcrumb a:hover { color: var(--color-accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Page hero for inner pages — no image, the words carry it */
.page-hero { padding: var(--space-8) 0 var(--space-10); }
.page-hero .lede { max-width: 56ch; }

/* Platform availability rows */
.platform-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
@media (min-width: 700px) { .platform-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.platform-list li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5);
  background: var(--color-surface);
  border: var(--card-border);
  border-radius: var(--card-radius);
}
.platform-list img { width: 1.75rem; height: 1.75rem; flex: none; }
.platform-name { display: block; font-weight: 700; margin-bottom: 0.125rem; }
.platform-desc { display: block; font-size: 0.9375rem; color: var(--color-text-soft); }
.platform-avail {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
}

/* Membership tier cards — equal height, CTA-free on the features page */
.tier-grid { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .tier-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tier-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--color-surface);
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--space-6);
}
.tier-card.is-featured { border-color: color-mix(in srgb, var(--color-primary) 45%, transparent); }
.tier-head { min-height: 2.25rem; display: flex; align-items: center; }
.tier-name { font-family: var(--font-heading); font-weight: 400; font-size: 1.75rem; margin: 0; line-height: 1; }
.tier-badge svg { display: block; height: 1.5rem; width: auto; }
.tier-badge--vip { color: var(--color-primary); }
.tier-badge--vip-plus { color: var(--color-accent-ink); }
.tier-desc { margin: 0; color: var(--color-text-soft); font-size: 0.9375rem; }
.tier-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); font-size: 0.9375rem; }
.tier-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.tier-list .icon { width: 1.125rem; height: 1.125rem; stroke-width: 2; margin-top: 0.15rem; }
.tier-inherits {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-accent-ink);
}

/* Comparison table — scrolls inside its own container, never the page */
.table-wrap { overflow-x: auto; border: var(--card-border); border-radius: var(--card-radius); background: var(--color-surface); }
table.compare { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 34rem; }
table.compare th, table.compare td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent); text-align: left; }
table.compare thead th { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-soft); font-weight: 700; white-space: nowrap; }
table.compare td + td, table.compare th + th { text-align: center; width: 7.5rem; }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare .yes { color: var(--color-primary); font-weight: 700; }
table.compare .no { color: color-mix(in srgb, var(--color-text) 35%, transparent); }
table.compare thead .tier-badge svg { height: 1rem; margin-inline: auto; }

/* Safety feature cards */
.safety-grid { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .safety-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .safety-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.safety-grid.is-pair { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) { .safety-grid.is-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.safety-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--color-surface);
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--space-6);
}
.safety-card h3 { margin: 0; font-family: var(--font-body); font-weight: 700; font-size: 1.0625rem; }
.safety-card p { margin: 0; font-size: 0.9375rem; color: var(--color-text-soft); }
.safety-card .protects {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  color: var(--color-accent-ink);
  font-size: 0.875rem;
  font-weight: 600;
}
.safety-card .protects .icon { width: 1rem; height: 1rem; stroke-width: 2; stroke: var(--color-accent-ink); margin-top: 0.1rem; }
.category-head { display: flex; gap: var(--space-3); align-items: center; margin-bottom: var(--space-2); }
.category-head h2 { margin: 0; }

/* Article body — editorial reading experience */
.prose { max-width: 68ch; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: var(--space-5); }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 400; margin-top: var(--space-10); }
.prose h3 { font-family: var(--font-body); font-size: 1.125rem; font-weight: 700; margin-top: var(--space-8); }
.prose p { line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: var(--space-3); line-height: 1.6; }
.prose li::marker { color: var(--color-accent-ink); }
.prose blockquote {
  margin: var(--space-8) 0;
  padding-left: var(--space-6);
  border-left: 2px solid var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.375rem;
  line-height: 1.4;
}
.prose blockquote p { line-height: 1.4; }
.answer-box {
  background: var(--color-surface);
  border: var(--card-border);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
  padding: var(--space-6);
}
.answer-box p { margin: 0; }
.answer-box .eyebrow { margin-bottom: var(--space-3); }

.article-meta { max-width: 68ch; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: 0.875rem; color: var(--color-text-soft); margin-top: var(--space-5); }
.article-hero { max-width: 68ch; margin: var(--space-8) 0 0; border-radius: var(--card-radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--color-surface-soft); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.author-box {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid color-mix(in srgb, var(--color-text) 14%, transparent);
  font-size: 0.9375rem;
  color: var(--color-text-soft);
  max-width: 68ch;
}
.author-box strong { color: var(--color-text); }

/* Article landing cards link through, so the whole card is the target */
.article-card { display: flex; flex-direction: column; height: 100%; }
.article-card .card-text { margin-bottom: var(--space-4); }
.article-card .card-more { margin-top: auto; font-weight: 700; color: var(--color-accent-ink); font-size: 0.9375rem; }
a.card { transition: border-color var(--transition-fast); }
a.card:hover { border-color: color-mix(in srgb, var(--color-primary) 40%, transparent); }

/* ===== 4e) Pricing ===== */
.price { margin: 0; display: grid; gap: 0.125rem; }
.price-figure { font-family: var(--font-heading); font-weight: 400; font-size: clamp(2.25rem, 4vw, 3rem); line-height: 1; }
.price-unit { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em; color: var(--color-text-soft); }
.price-alt { font-size: 0.8125rem; color: var(--color-text-soft); margin-top: var(--space-2); line-height: 1.5; }
.tier-cta { margin-top: auto; }

.faq { display: grid; gap: var(--space-4); max-width: 76ch; }
.faq-item {
  background: var(--color-surface);
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--space-6);
}
.faq-item h3 { margin: 0 0 var(--space-3); font-family: var(--font-body); font-weight: 700; font-size: 1.0625rem; }
.faq-item p { margin: 0; color: var(--color-text-soft); line-height: 1.65; }

/* Chips that are links (city guides) — same shape as .chip-static but interactive */
a.chip { text-decoration: none; transition: border-color var(--transition-fast), color var(--transition-fast); }
a.chip:hover { color: var(--color-accent-ink); }
.section-dark a.chip { color: var(--color-bg); border-color: color-mix(in srgb, var(--color-bg) 34%, transparent); }
.section-dark a.chip:hover { border-color: var(--color-bg); }
