@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@500;600&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: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-surface-soft: #F1F8F5;
  --color-text: #333333;
  --color-text-soft: #5F6B6A;
  --color-primary: #3E8E7E;
  --color-primary-dark: #2F7466;
  --color-primary-light: #E3F1ED;
  --color-accent: #FF6B6B;
  --color-focus: #2F7466;
  --color-cta: #2F7466; /* brand-guidelines — green CTA (white text 5.51:1) */
  --color-peach: #FFE8DC; /* brand-guidelines — secondary accent surface, use sparingly */

  /* Typography (brand-guidelines) */
  --font-heading: "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lato", "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. */
  /* Active Life Singles: "Curvalicious base, sportier" — pill buttons, 20px cards,
     soft green-tinted shadow, hairline border, green→coral motion gradient. */
  --logo-height: 2.75rem;    /* Prominent: 44px mobile → 56px desktop */
  --logo-max-width: 22rem;
  --header-bg: var(--color-surface);   /* white header — green wordmark needs a light bg */
  --header-fg: var(--color-text);
  --btn-radius: var(--radius-pill);
  --card-radius: var(--radius-lg);
  --card-shadow: 0 6px 22px color-mix(in srgb, var(--color-primary-dark) 10%, transparent);
  --card-border: 1px solid color-mix(in srgb, var(--color-primary) 10%, transparent);
  --chip-radius: var(--radius-pill);
  --gradient-motion: linear-gradient(120deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, #7DC2AF 100%);
  --hero-overlay: linear-gradient(180deg, rgba(20, 40, 36, 0) 30%, rgba(20, 40, 36, 0.78) 100%);

  /* Motion (Expressive, CSS-only) */
  --easing-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --easing-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-slow: 650ms var(--easing-smooth);
}

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

/* ===== 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-family: var(--font-heading);
  font-weight: 500;
  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;
}

/* Primary = the join/CTA button: deep green (white text 5.51:1). */
.btn-primary {
  background: var(--color-cta);
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--color-cta) 30%, transparent);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--color-cta) 85%, #000);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--color-cta) 42%, transparent);
}

/* Green solid button for secondary emphasis (white text on primary-dark 5.51:1). */
.btn-green {
  background: var(--color-primary-dark);
  color: #fff;
}
.btn-green:hover { background: color-mix(in srgb, var(--color-primary-dark) 85%, #000); }

/* Outline on light: green border + deep green text. */
.btn-outline {
  background: transparent;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary-light); }

/* Light outline for use on photo / dark backgrounds. */
.btn-on-dark {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.btn-on-dark:hover { background: rgba(255, 255, 255, 0.24); }

.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) Active Life Singles brand components (design-system) ===== */

/* Eyebrow — small pill label above section headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 0.95rem;
  border-radius: var(--chip-radius);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-primary);
}

/* Section heading block */
.section-head { max-width: 44rem; margin: 0 auto var(--space-8); text-align: center; }
.section-head h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem);
  font-weight: 600;
  margin: var(--space-4) 0 var(--space-3);
  color: var(--color-text);
}
.section-head p { color: var(--color-text-soft); font-size: 1.08rem; line-height: 1.65; margin: 0; }
.section-soft { background: var(--color-surface-soft); }
.section-mint { background: var(--color-primary-light); }

/* Gradient word + motion underline */
.text-gradient {
  background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.motion-rule {
  display: block;
  width: 5rem;
  height: 0.35rem;
  border-radius: var(--radius-pill);
  background: var(--gradient-motion);
}

/* Photo hero — full-bleed image, text over a bottom overlay (Curvalicious rhythm) */
.hero-photo {
  position: relative;
  min-height: min(88vh, 46rem);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-photo > picture { display: contents; }
.hero-photo > picture > img,
.hero-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: -2;
}
/* Hero photos whose subjects' heads sit near the top of the frame. */
.hero-photo.hero-top > img,
.hero-photo.hero-top > picture > img { object-position: center 8%; }

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: -1;
}
.hero-photo .container { padding: var(--space-12) 0 var(--space-10); }
.hero-photo h1 {
  font-size: clamp(2.2rem, 1.4rem + 4vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 var(--space-4);
  max-width: 16ch;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}
.hero-photo h1 em { font-style: normal; color: #BFE3D8; }
.hero-photo p { font-size: 1.15rem; line-height: 1.6; max-width: 36rem; margin: 0 0 var(--space-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Media card — photo top, text below */
.media-card {
  background: var(--color-surface);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.media-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-card-body { padding: var(--space-5) var(--space-5) var(--space-6); }
.media-card-body h3 { margin: 0 0 var(--space-2); font-size: 1.2rem; font-weight: 600; }
.media-card-body p { margin: 0; color: var(--color-text-soft); line-height: 1.6; }
a.media-card:hover,
.media-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px color-mix(in srgb, var(--color-primary-dark) 16%, transparent); }

/* Swipe row — horizontal scroll-snap on mobile, grid on desktop (CSS only) */
.swipe-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: var(--space-2) var(--space-1) var(--space-4);
  scrollbar-width: none;
}
.swipe-row::-webkit-scrollbar { display: none; }
.swipe-row > * { scroll-snap-align: start; }
.swipe-hint { text-align: center; color: var(--color-text-soft); font-size: 0.88rem; margin-top: var(--space-2); }
@media (min-width: 600px) { .swipe-row { grid-auto-columns: 46%; } }
@media (min-width: 960px) {
  .swipe-row { grid-auto-flow: row; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); overflow: visible; }
  .swipe-hint { display: none; }
}

/* Activity chips — filled pastel variant */
.chip-activity {
  background: var(--color-surface);
  color: var(--color-primary-dark);
  border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
}
.chip-activity:hover { background: var(--color-primary-light); }

/* Numbered steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: var(--space-2); }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-primary-dark);
  box-shadow: 0 0 0 4px var(--color-surface), 0 0 0 6px var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: var(--space-3);
}
.step h3 { margin: 0 0 var(--space-2); font-size: 1.15rem; font-weight: 600; }
.step p { margin: 0; color: var(--color-text-soft); line-height: 1.6; }

/* Stat pill + review card */
.stat { text-align: center; }
.stat-value { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 600; color: var(--color-primary-dark); line-height: 1; }
.stat-label { color: var(--color-text-soft); font-size: 0.9rem; margin-top: var(--space-1); }
.review-card { background: var(--color-surface); border-radius: var(--card-radius); border: var(--card-border); box-shadow: var(--card-shadow); padding: var(--space-6); }
.review-stars { color: var(--color-accent); letter-spacing: 0.1em; }
.review-quote { font-size: 1.02rem; line-height: 1.65; margin: var(--space-3) 0 var(--space-4); }
.review-by { display: flex; align-items: center; gap: var(--space-3); font-size: 0.9rem; color: var(--color-text-soft); }
.avatar-initial {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-primary-light); color: var(--color-primary-dark);
  font-family: var(--font-heading); font-weight: 600;
}

/* FAQ — native details/summary, no JS */
.faq { max-width: 48rem; margin-inline: auto; display: grid; gap: var(--space-3); }
.faq details { background: var(--color-surface); border: var(--card-border); border-radius: var(--radius-md); padding: 0 var(--space-5); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--space-4) 0;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.02rem;
  display: flex; justify-content: space-between; gap: var(--space-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-primary); font-size: 1.4rem; line-height: 1; transition: transform var(--transition-fast); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 var(--space-5); color: var(--color-text-soft); line-height: 1.65; }

/* CTA band */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #1c2b28; /* fallback while the photo loads */
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-6);
  text-align: center;
}
/* Image fill: <img class="cta-band-bg" alt=""> as the first child, with a neutral dark
   scrim so white text reads and the green CTA button stands out from the photo. */
.cta-band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--cta-pos, 40%); /* per-page nudge: style="--cta-pos: 55%" */
  z-index: -2;
}
/* For photos whose subjects sit high in the frame — keeps faces in view. */
.cta-band-bg.cta-bg-faces-high { object-position: center 28%; }
.cta-band-bg.cta-bg-top { object-position: center 0%; }
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 22, 20, 0.4) 0%, rgba(14, 22, 20, 0.64) 100%);
  z-index: -1;
}
/* Lighter scrim for bright photos — keeps the photo airy; text-shadow keeps copy legible. */
.cta-band.cta-band-light::after { background: linear-gradient(180deg, rgba(14, 22, 20, 0.22) 0%, rgba(14, 22, 20, 0.48) 100%); }
.cta-band.cta-band-light h2, .cta-band.cta-band-light p { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); }
.cta-band .btn-primary { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 6px 18px rgba(0, 0, 0, 0.25); }
@media (min-width: 900px) { .cta-band { padding: calc(var(--space-12) * 1.4) var(--space-8); } }
.cta-band h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); font-weight: 600; margin: 0 0 var(--space-3); }
.cta-band p { margin: 0 auto var(--space-6); max-width: 36rem; font-size: 1.08rem; opacity: 0.95; }

/* Native header — desktop inline nav + CSS-only mobile drawer (<details>, no JS) */
.site-nav .nav-list { display: flex; align-items: center; gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.site-nav .nav-list a,
.nav-drawer-panel a:not(.btn) {
  color: var(--header-fg);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.site-nav .nav-list a:hover,
.site-nav .nav-list a[aria-current="page"],
.site-nav .nav-list a[aria-current="true"] { color: var(--color-primary-dark); border-bottom-color: var(--color-primary); }
.site-header-row { position: relative; }
.site-header .site-nav { display: none; }
.site-header .site-cta .btn-ghost { display: none; }
.nav-drawer { margin-left: var(--space-2); }
.nav-drawer > summary {
  list-style: none;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-drawer > summary::-webkit-details-marker { display: none; }
.nav-toggle-bar { display: block; height: 2px; border-radius: 2px; background: var(--header-fg); transition: transform var(--transition-fast), opacity var(--transition-fast); }
.nav-drawer[open] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-drawer[open] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-drawer[open] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-drawer-panel {
  position: absolute;
  top: 100%;
  left: -1rem;
  right: -1rem;
  background: var(--color-surface);
  border-top: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4) var(--space-6) var(--space-6);
  animation: als-rise 0.35s var(--easing-smooth) both;
}
.nav-drawer-panel ul { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; }
.nav-drawer-panel li a:not(.btn) { display: block; padding: var(--space-3) 0; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 7%, transparent); }
@media (min-width: 480px) { .site-header .site-cta .btn-ghost { display: inline-flex; } }
@media (min-width: 1100px) {
  .site-header .site-nav { display: inline-flex; }
  .nav-drawer { display: none; }
}

/* Native footer — link columns + legal row */
.site-footer { background: var(--color-surface); }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: var(--space-6); margin-bottom: var(--space-8); }
.footer-cols h2 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text); margin: 0 0 var(--space-3); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer-cols a { color: var(--color-text-soft); }
.footer-cols a:hover { color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  font-size: 0.85rem;
}
.footer-legal a { color: var(--color-text-soft); }
.footer-legal a:hover { color: var(--color-primary-dark); text-decoration: underline; }

/* Homepage helpers */
.section-lg { padding: var(--space-12) 0; }
@media (min-width: 900px) { .section-lg { padding: calc(var(--space-12) * 1.6) 0; } }
.eyebrow-on-dark { background: rgba(255, 255, 255, 0.18); color: #fff; }
.eyebrow-on-dark::before { background: #BFE3D8; }
.hero-photo .eyebrow { margin-bottom: var(--space-4); }
.swipe-row.cols-4 { --cols: 4; }
.chip-row-center { justify-content: center; margin-top: var(--space-8); }
.mt-8 { margin-top: var(--space-8); }
ol.steps { list-style: none; margin: 0; padding: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

/* Explainer (AEO answer block) */
.explainer { display: grid; gap: var(--space-8); align-items: center; }
.explainer img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; border-radius: var(--card-radius); }
.explainer h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 600; margin: var(--space-4) 0 var(--space-3); }
.explainer p { color: var(--color-text-soft); line-height: 1.7; font-size: 1.05rem; }
.explainer .answer { color: var(--color-text); font-size: 1.12rem; }
@media (min-width: 900px) { .explainer { grid-template-columns: 1fr 1fr; } }

/* Member loops — see references/placeholders/members.loop.md. Authored with
   data-members-styles="none": the CMS emits classes and no CSS. */
[data-members] .lp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(11rem, calc(50% - 0.375rem)), 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: calc(6 * 14rem + 5 * 0.75rem);
}
[data-members] .mem-card {
  display: flex; flex-direction: column; gap: 0.25rem;
  box-sizing: border-box; margin: 0; overflow: hidden; position: relative;
  max-width: 14rem; width: 100%; justify-self: center;
  padding: 0.5rem;
  background: var(--color-surface, #ffffff);
  border: var(--card-border, 1px solid #e3e1da);
  border-radius: var(--card-radius, 0.875rem);
  box-shadow: var(--card-shadow, none);
}
[data-members] .mem-card img,
[data-members] .mem-card__initial { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius-md, 0.875rem); flex: 0 0 auto; }
[data-members] .mem-card img { display: block; object-fit: cover; object-position: 50% 30%; }
[data-members] .mem-card__initial {
  display: flex; align-items: center; justify-content: center;
  background: var(--color-surface-soft, #f2f0ea); color: var(--color-text, #1d2328);
  font-family: var(--font-heading); font-size: 1.75rem; font-weight: 600; text-transform: uppercase;
}
[data-members] .mem-card__name,
[data-members] .mem-card__where { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-members] .mem-card__name { margin: 0.35rem 0 0; font-family: var(--font-heading, inherit); font-weight: 600; font-size: 0.9rem; line-height: 1.3; color: var(--color-text, inherit); }
[data-members] .mem-card__where { margin: 0; font-size: 0.75rem; line-height: 1.3; color: var(--color-text-soft, #6b6f85); }
[data-members] .mem-card__name:empty,
[data-members] .mem-card__where:empty { display: none; }
[data-members] .mem-card__line {
  margin: 0.15rem 0 0; font-size: 0.75rem; line-height: 1.4; color: var(--color-text-soft, #6b6f85);
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
[data-members] .badge {
  position: absolute; top: 0.75rem; left: 0.75rem; max-width: calc(100% - 1.5rem);
  font-size: 0.75rem; padding: 0.1rem 0.45rem; border-radius: var(--chip-radius, 999px);
  color: var(--color-text, #1d2328); background: var(--color-primary-light, #e4f0ee);
}
[data-members] .mem-card__cta {
  margin-top: auto; padding-top: 0.4rem; font-size: 0.8rem; font-weight: 700;
  color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 2px;
}
[data-members] a:focus-visible { outline: 3px solid var(--color-focus, #2F7466); outline-offset: 2px; box-shadow: 0 0 0 5px var(--color-surface, #ffffff); }
[data-members] .mem-card--join { padding: 0; min-height: 8rem; }
[data-members] .mem-card--join .mem-card__cta {
  display: grid; place-items: center; height: 100%; margin: 0; padding: 0.75rem;
  text-align: center; font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; background: var(--color-cta); color: #fff;
}
[data-members] .lp-members__empty { margin: 0; color: var(--color-text, inherit); font-size: 0.9rem; text-align: center; }
/* Local preview: the section is empty until the CMS renders it. */
.members-grid:empty { min-height: 6rem; border: 2px dashed color-mix(in srgb, var(--color-primary) 30%, transparent); border-radius: var(--card-radius); }
.members-grid:empty::before { content: "Live member feed — fills with real members on the live site"; display: grid; place-items: center; min-height: 6rem; color: var(--color-text-soft); font-size: 0.9rem; text-align: center; padding: var(--space-4); }

/* ===== 4d) Page components — safety + about ===== */
/* ===== Safety + About page components (merge into global.css section 4b) =====
   Token-driven only; no new palette values. Used by site/safety.html and site/about-us.html. */

/* Shorter photo hero for inner pages (homepage keeps the tall hero) */
.hero-photo.hero-short { min-height: min(64vh, 34rem); }
.hero-photo.hero-short h1 { max-width: 18ch; }

/* Icon badge — circular container for small decorative inline SVG icons */
.icon-badge {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}
.icon-badge svg { width: 1.4rem; height: 1.4rem; }
.icon-badge-lg {
  width: 3.75rem;
  height: 3.75rem;
  background: var(--gradient-motion);
  color: #fff;
  box-shadow: var(--card-shadow);
}
.icon-badge-lg svg { width: 1.75rem; height: 1.75rem; }
.section-head .icon-badge-lg { display: grid; margin: 0 auto var(--space-4); }

/* Safety feature card — icon, name, what it does, "how it protects you" accent */
.safety-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--color-surface);
  border-radius: var(--card-radius);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: var(--space-6);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.safety-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px color-mix(in srgb, var(--color-primary-dark) 14%, transparent); }
.safety-card h3 { margin: var(--space-1) 0 0; font-size: 1.15rem; font-weight: 600; }
.safety-what { margin: 0; color: var(--color-text-soft); line-height: 1.6; }
.safety-protects {
  margin: auto 0 0;
  padding: var(--space-3) var(--space-4);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: color-mix(in srgb, var(--color-primary-light) 70%, var(--color-surface));
  color: var(--color-primary-dark);
  font-weight: 700;
  line-height: 1.5;
}
.safety-protects-label {
  display: block;
  margin-bottom: var(--space-1);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}
.safety-grid { gap: var(--space-5); max-width: 60rem; margin-inline: auto; }
.safety-grid.grid-3 { max-width: none; }
.safety-category { scroll-margin-top: 5rem; }
.safety-jump { margin-top: var(--space-6); }

/* Small centered note under a grid, with an inline text link */
.section-note { max-width: 44rem; margin: var(--space-8) auto 0; text-align: center; color: var(--color-text-soft); }
.inline-link { color: var(--color-primary-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.inline-link:hover { color: var(--color-cta); }

/* Linked media cards with a bottom-aligned "learn more" line (equal heights) */
.media-card-body.stack { display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.media-card-body.stack h3, .media-card-body.stack p { margin: 0; }
.card-more {
  margin-top: auto;
  padding-top: var(--space-3);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary-dark);
}
a.media-card:hover .card-more,
a.link-card:hover .card-more { color: var(--color-cta); }

/* Value / audience card: .card + icon badge */
.card.value-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); }
.value-card h3 { margin: 0; font-size: 1.15rem; font-weight: 600; }
.value-card p { margin: 0; color: var(--color-text-soft); line-height: 1.6; }

/* Link card — whole-card link to another page */
a.link-card { display: flex; flex-direction: column; gap: var(--space-3); transition: transform var(--transition-base), box-shadow var(--transition-base); }
a.link-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px color-mix(in srgb, var(--color-primary-dark) 14%, transparent); }
a.link-card h3 { margin: 0; font-size: 1.1rem; font-weight: 600; }
a.link-card p { margin: 0; color: var(--color-text-soft); line-height: 1.6; }

/* Pull quote (mission line) */
.mission-quote {
  margin: var(--space-6) 0 0;
  padding-left: var(--space-5);
  border-left: 4px solid transparent;
  border-image: var(--gradient-motion) 1;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}

@media (prefers-reduced-motion: reduce) {
  .safety-card:hover, a.link-card:hover { transform: none; }
}

/* ===== 4e) Page components — features + pricing ===== */
/* ===== Features + Pricing page components (merge into site/global.css, section 4b) =====
   Token-driven only — uses existing :root tokens and aesthetic dials. No JS. */

/* NOTE: these pages also use `.hero-photo.hero-short`, `.inline-link` and `.section-note`,
   defined in css-additions-safety-about.css — merge both files. */

/* Check list — tick bullets for feature lists and algorithm factors */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.check-list li { position: relative; padding-left: var(--space-6); line-height: 1.55; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.95rem;
  height: 0.55rem;
  border-left: 2.5px solid var(--color-primary);
  border-bottom: 2.5px solid var(--color-primary);
  transform: rotate(-45deg);
}
.check-list-2 { gap: var(--space-2) var(--space-6); }
@media (min-width: 700px) { .check-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Platform availability cards */
.platform-card { display: flex; flex-direction: column; gap: var(--space-2); }
.platform-card h3 { margin: var(--space-2) 0 0; font-size: 1.1rem; font-weight: 600; }
.platform-card p { margin: 0; color: var(--color-text-soft); line-height: 1.6; }
.platform-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}
.platform-icon svg,
.platform-icon img { width: 1.5rem; height: 1.5rem; }
.platform-avail {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.3rem 0.8rem;
  border-radius: var(--chip-radius);
  background: var(--color-surface-soft);
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Membership tier cards — equal height, trailing block pinned to the bottom */
.tier-grid { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .tier-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
.tier-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--card-radius);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: var(--space-8) var(--space-6);
}
.tier-card h2,
.tier-card h3 { margin: 0; font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.tier-mark { display: inline-flex; align-items: center; color: var(--color-primary-dark); }
.tier-mark svg { height: 2.25rem; width: auto; }
.tier-kicker { margin: 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-soft); }
.tier-desc { margin: 0; color: var(--color-text-soft); line-height: 1.6; }
.tier-card .check-list { font-size: 0.97rem; }
.tier-plus { margin: 0; font-weight: 700; font-size: 0.95rem; }
.tier-price { margin: 0; padding-top: var(--space-4); border-top: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent); }
.tier-price-amount { display: block; font-family: var(--font-heading); font-size: 2.2rem; font-weight: 600; line-height: 1.1; color: var(--color-text); }
.tier-price-amount small { font-size: 1rem; font-weight: 500; }
.tier-price-note { display: block; margin-top: var(--space-1); font-size: 0.9rem; color: var(--color-text-soft); }
.tier-foot { margin-top: auto; display: grid; gap: var(--space-4); }
/* Dark (elevated) tier — VIP Plus */
.tier-card-dark {
  background: var(--color-primary-dark);
  background-image: radial-gradient(circle at 90% 6%, color-mix(in srgb, #7DC2AF 30%, transparent), transparent 42%);
  color: #fff;
  border-color: transparent;
}
.tier-card-dark .tier-mark { color: #fff; }
.tier-card-dark .tier-desc,
.tier-card-dark .tier-kicker,
.tier-card-dark .tier-price-note { color: color-mix(in srgb, #fff 86%, transparent); }
.tier-card-dark .tier-price { border-top-color: color-mix(in srgb, #fff 22%, transparent); }
.tier-card-dark .tier-price-amount { color: #fff; }
.tier-card-dark .check-list li::before { border-color: #BFE3D8; }

/* Scrollable table wrapper — the table scrolls inside, the page never does */
.table-wrap {
  position: relative; /* contains absolutely-positioned .visually-hidden labels so they can't widen the page */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--color-surface);
  border-radius: var(--card-radius);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
}
.table-wrap:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.table-hint { text-align: center; color: var(--color-text-soft); font-size: 0.88rem; margin: var(--space-2) 0 0; }
@media (min-width: 900px) { .table-hint { display: none; } }

/* Feature comparison table */
.compare-table { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: 0.95rem; }
.compare-table caption { text-align: left; padding: var(--space-4) var(--space-5) 0; color: var(--color-text-soft); font-size: 0.9rem; }
.compare-table th,
.compare-table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); }
.compare-table thead th { background: var(--color-primary-light); font-family: var(--font-heading); font-weight: 600; text-align: center; vertical-align: middle; }
.compare-table thead th:first-child { text-align: left; }
.compare-table tbody th { text-align: left; font-weight: 400; }
.compare-table td { text-align: center; width: 18%; }
.compare-table tbody tr { background: var(--color-surface); }
.compare-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--color-surface-soft) 35%, var(--color-surface)); }
.compare-table .table-mark { display: inline-flex; color: var(--color-primary-dark); }
.compare-table .table-mark svg { height: 1.5rem; width: auto; }
.cell-yes { color: var(--color-primary-dark); font-weight: 700; font-size: 1.1rem; }
.cell-no { color: var(--color-text-soft); }
.compare-table tr.table-group th { background: var(--color-surface); font-family: var(--font-heading); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary-dark); padding-top: var(--space-5); }

/* Plan-length price tables (pricing page) */
.plan-tables { display: grid; gap: var(--space-8); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .plan-tables { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan-table-head { display: flex; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-3); font-size: 1.25rem; font-weight: 600; }
.plan-table-head .tier-mark svg { height: 1.9rem; }
.plan-table { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: 0.95rem; }
.plan-table th,
.plan-table td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); vertical-align: top; }
.plan-table thead th { background: var(--color-primary-light); font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; }
.plan-table tbody th { font-weight: 700; }
.plan-table .price-total { font-family: var(--font-heading); font-weight: 600; color: var(--color-text); }
.plan-table .renew { color: var(--color-text-soft); font-size: 0.88rem; }
.plan-table tbody tr { background: var(--color-surface); }
.plan-table tr.is-best { background: color-mix(in srgb, var(--color-surface-soft) 60%, var(--color-surface)); }
.value-flag {
  display: inline-block;
  margin-top: var(--space-1);
  padding: 0.15rem 0.6rem;
  border-radius: var(--chip-radius);
  background: var(--color-cta);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Soft callout note (currency note, add-on note) */
.note-callout {
  max-width: 48rem;
  margin: var(--space-8) auto 0;
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: var(--card-border);
  border-left: 4px solid var(--color-primary);
  color: var(--color-text);
  line-height: 1.6;
}
.note-callout p { margin: 0; }
.note-callout p + p { margin-top: var(--space-2); }

/* Info card grid body (Super Match / safety cards) */
.info-card h3 { margin: 0 0 var(--space-2); font-size: 1.15rem; font-weight: 600; }
.info-card p { margin: 0; color: var(--color-text-soft); line-height: 1.6; }
.info-card .chip-row { margin-top: var(--space-4); }

/* Explainer sub-heading */
.explainer h3 { font-size: 1.15rem; font-weight: 600; margin: var(--space-6) 0 var(--space-3); }
.explainer .check-list { color: var(--color-text); margin-bottom: var(--space-4); }

/* Sticky first column — row labels stay visible while the table scrolls sideways on phones */
.compare-table thead th:first-child,
.compare-table tbody tr:not(.table-group) th,
.plan-table thead th:first-child,
.plan-table tbody th { position: sticky; left: 0; z-index: 1; background: inherit; }
.compare-table thead th:first-child,
.plan-table thead th:first-child { background: var(--color-primary-light); }
.compare-table tbody tr:not(.table-group) th,
.plan-table tbody th { box-shadow: 1px 0 0 color-mix(in srgb, var(--color-text) 8%, transparent); }
@media (max-width: 599px) {
  .compare-table { min-width: 30rem; font-size: 0.9rem; }
  .compare-table th, .compare-table td,
  .plan-table th, .plan-table td { padding: var(--space-3); }
  .compare-table tbody th { min-width: 9.5rem; }
  .plan-table { min-width: 28rem; }
}
.compare-table tr.table-group th span { position: sticky; left: var(--space-4); display: inline-block; }

/* ===== 4f) Page components — articles ===== */
/* ===== Articles section (landing + article pages) — token-driven additions =====
   Merge into site/global.css (components section). Used by site/articles.html and
   site/articles/*.html. No new palette tokens; everything reads from :root. */

:root {
  --content-prose: 70ch;
}

/* --- Article page: reading column --- */
.article-section { padding: var(--space-10) 0 var(--space-12); }
.article-body {
  max-width: var(--content-prose);
  margin-inline: auto;
  font-size: 1.09rem;
  line-height: 1.78;
  color: var(--color-text);
}
.article-body > * { margin: 0; }
.article-body > * + * { margin-top: var(--space-5); }
.article-body h2 {
  font-size: clamp(1.45rem, 1.15rem + 1.2vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
  margin: calc(var(--space-12) * 0.9) 0 0;
  scroll-margin-top: 5rem;
}
.article-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  margin: var(--space-8) 0 0;
}
.article-body h2 + *,
.article-body h3 + * { margin-top: var(--space-3); }
.article-body ul:not(.check-list),
.article-body ol { margin: 0; padding-left: 1.4rem; display: grid; gap: var(--space-2); }
.article-body ul:not(.check-list) li::marker { color: var(--color-accent); }
.article-body ol li::marker { color: var(--color-primary-dark); font-family: var(--font-heading); font-weight: 600; }
.article-body a:not(.btn):not(.chip) {
  color: var(--color-primary-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--color-accent) 70%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.article-body a:not(.btn):not(.chip):hover { color: var(--color-cta); }
.article-body strong { color: var(--color-text); }

/* Lede — the answer-first opening paragraph */
.article-body .lede {
  font-size: clamp(1.12rem, 1rem + 0.5vw, 1.22rem);
  line-height: 1.7;
  color: var(--color-text);
}

/* Byline row */
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
  font-size: 0.95rem;
  color: var(--color-text-soft);
}
.byline-name { font-family: var(--font-heading); font-weight: 600; color: var(--color-text); }
.byline-name a { color: inherit; text-decoration: none; font-weight: 600; }
.article-body .byline a:not(.btn):not(.chip) { text-decoration: none; color: var(--color-text); font-weight: 600; }
.article-body .byline a:not(.btn):not(.chip):hover { color: var(--color-primary-dark); }
.byline-dot { width: 0.3rem; height: 0.3rem; border-radius: 50%; background: var(--color-accent); }
@media (max-width: 599px) { .byline-dot { display: none; } .byline-name { flex-basis: 100%; } }

/* Key takeaways box */
.takeaways {
  margin-top: var(--space-8);
  padding: var(--space-6);
  border-radius: var(--card-radius);
  background: var(--color-primary-light);
  border: var(--card-border);
  position: relative;
  overflow: hidden;
}
.takeaways::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 0.3rem;
  background: var(--gradient-motion);
}
.article-body .takeaways h2 {
  margin: 0 0 var(--space-3);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}
.takeaways .check-list { font-size: 1rem; line-height: 1.6; }

/* Inline figure inside the prose column */
.article-figure { margin: var(--space-8) 0 0; }
.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--card-radius);
}
.article-figure figcaption {
  margin-top: var(--space-2);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-soft);
}

/* Callout inside prose (e.g. safety note) — reuses .note-callout look, resets its centering */
.article-body .note-callout { margin: var(--space-8) 0 0; max-width: none; }
.article-body .note-callout p + p { margin-top: var(--space-2); }

/* Tag chips at the foot of an article */
.article-tags { margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent); }

/* FAQ block narrowed to match the prose column */
.faq-prose { max-width: var(--content-prose); }

/* Article card meta line (landing + related cards) */
.card-meta {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  font-family: var(--font-heading);
  font-weight: 500;
}
.media-card-body .card-meta { margin: 0; }

/* --- Articles landing: featured article --- */
.featured-article {
  display: grid;
  background: var(--color-surface);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.featured-article:hover { transform: translateY(-4px); box-shadow: 0 14px 34px color-mix(in srgb, var(--color-primary-dark) 16%, transparent); }
.featured-article img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.featured-article-body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); }
.featured-article-body h2 { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); font-weight: 600; line-height: 1.2; }
.featured-article-body p { margin: 0; color: var(--color-text-soft); line-height: 1.65; font-size: 1.05rem; }
.featured-article-body .eyebrow { align-self: flex-start; }
.featured-article .card-more { margin-top: auto; }
a.featured-article:hover .card-more { color: var(--color-cta); }
@media (min-width: 860px) {
  .featured-article { grid-template-columns: 1.15fr 1fr; }
  .featured-article img { aspect-ratio: auto; min-height: 22rem; }
  .featured-article-body { padding: var(--space-10) var(--space-8); justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .featured-article:hover { transform: none; }
}

/* --- Articles landing: text-led intro (no hero image — content is the hero) --- */
.page-intro { padding: var(--space-10) 0 var(--space-4); }
.section-head h1 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  margin: var(--space-4) 0 var(--space-4);
  color: var(--color-text);
}
.page-intro .chip-row-center { margin-top: var(--space-6); }

/* ===== 4g) Page components — community ===== */
/* ===== Community page components (merge into site/global.css, section 4b) ===== */

/* Explainer with the image on the right at desktop, portrait (4:5) photo */
.explainer-flip img { aspect-ratio: 4 / 5; object-position: center 40%; max-height: 36rem; }
@media (min-width: 900px) {
  .explainer-flip img { order: 2; }
}

/* Badge list inside an explainer: icon + badge name tiles */
.badge-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: var(--space-6) 0; }
.badge-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: var(--card-border);
  border-radius: var(--card-radius);
}
.badge-item h3 { margin: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.25; }
@media (max-width: 420px) {
  .badge-item { padding: var(--space-3); gap: var(--space-2); }
  .badge-item .icon-badge { width: 2.25rem; height: 2.25rem; }
  .badge-item h3 { font-size: 0.95rem; }
}

/* Hero on a bright photo: add a left-side scrim so the eyebrow and copy stay legible */
.hero-photo.hero-scrim > img { object-position: center 45%; }
.hero-photo.hero-scrim::after {
  background:
    linear-gradient(90deg, rgba(20, 40, 36, 0.72) 0%, rgba(20, 40, 36, 0.45) 45%, rgba(20, 40, 36, 0) 75%),
    var(--hero-overlay);
}
@media (max-width: 767px) {
  .hero-photo.hero-scrim::after { background: linear-gradient(180deg, rgba(20, 40, 36, 0.35) 0%, rgba(20, 40, 36, 0.82) 70%); }
}

/* ===== 4h) Page components — comparisons ===== */
/* ===== Comparisons landing + comparison pages (merge into site/global.css, after section 4e) =====
   Token-driven only — uses existing :root tokens. No JS. Reuses .hero-photo.hero-short,
   .table-wrap, .compare-table, .card.value-card, .media-card, .faq, .cta-band, .check-list. */

/* Answer-first summary box ("Which is right for you?") */
.verdict-summary {
  max-width: 52rem;
  margin: 0 auto;
  padding: var(--space-6);
  border-radius: var(--card-radius);
  background: var(--color-surface);
  border: var(--card-border);
  border-left: 5px solid var(--color-primary);
  box-shadow: var(--card-shadow);
}
.verdict-summary h2 { margin: var(--space-2) 0 var(--space-3); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 600; }
.verdict-summary p { margin: 0 0 var(--space-4); font-size: 1.1rem; line-height: 1.65; }
.verdict-summary .check-list { margin-bottom: var(--space-5); }
.verdict-summary .hero-actions { animation: none; }
@media (min-width: 700px) { .verdict-summary { padding: var(--space-8) var(--space-10); } }

/* Text comparison table — modifier on .compare-table for sentence-length cells */
.compare-table.compare-text { min-width: 44rem; }
.compare-table.compare-text thead th { text-align: left; }
.compare-table.compare-text td { text-align: left; vertical-align: top; width: 38%; line-height: 1.55; }
.compare-table.compare-text tbody th { vertical-align: top; font-weight: 700; width: 24%; }
.compare-table.compare-text td.col-us { background: color-mix(in srgb, var(--color-primary-light) 55%, transparent); }
.compare-table.compare-text .cell-muted { color: var(--color-text-soft); font-style: italic; }
@media (max-width: 599px) {
  .compare-table.compare-text { min-width: 38rem; }
  .compare-table.compare-text tbody th { min-width: 8.5rem; }
}

/* Small source / freshness note under a table or section */
.compare-note {
  max-width: 52rem;
  margin: var(--space-5) auto 0;
  color: var(--color-text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

/* Side-by-side theme cards (our side vs theirs) — modifiers on .card.value-card */
.value-card.side-us { border-top: 4px solid var(--color-primary); }
.value-card.side-them { border-top: 4px solid color-mix(in srgb, var(--color-text) 18%, transparent); }
.value-card .side-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}
.value-card.side-them .side-label { color: var(--color-text-soft); }
.value-card .check-list { color: var(--color-text); }
.value-card .inline-link { align-self: flex-start; margin-top: auto; padding-top: var(--space-2); }

/* Verdict cards ("Choose X if…") */
.value-card.verdict-us { background: var(--color-primary-light); border: 0; }

/* Featured comparison card on the landing — horizontal on wide screens */
.media-card.featured-compare { display: grid; grid-template-columns: minmax(0, 1fr); margin-bottom: var(--space-8); }
.media-card.featured-compare .media-card-body { padding: var(--space-6); }
.media-card.featured-compare h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
@media (min-width: 900px) {
  .media-card.featured-compare { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .media-card.featured-compare img { height: 100%; aspect-ratio: auto; min-height: 20rem; object-position: center 35%; }
  .media-card.featured-compare .media-card-body { padding: var(--space-10) var(--space-8); justify-content: center; }
}
.featured-flag {
  align-self: flex-start;
  padding: 0.2rem 0.7rem;
  border-radius: var(--chip-radius);
  background: var(--color-cta);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Comparison card images: people framing */
.compare-cards .media-card img { object-position: center 35%; }

/* Stronger left-side scrim for comparison heroes (long two-line H1 over bright photos) */

/* ===== 4c) Motion — Expressive, CSS-only (no JS; survives the CMS ZIP import) ===== */
@keyframes als-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes als-reveal { from { clip-path: inset(0 0 100% 0); transform: translateY(0.4em); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes als-run { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Accent moment (one per page): hero headline reveal + gradient rule "runs" in */
.hero-reveal { animation: als-reveal 0.9s var(--easing-smooth) both; }
.hero-reveal + p { animation: als-rise 0.8s var(--easing-smooth) 0.25s both; }
.hero-actions { animation: als-rise 0.8s var(--easing-smooth) 0.4s both; }
.motion-rule.is-run { transform-origin: left; animation: als-run 0.9s var(--easing-smooth) 0.3s both; }

/* Scroll-reveal via scroll-driven animations where supported; elsewhere content is simply visible. */
@supports (animation-timeline: view()) {
  .reveal {
    animation: als-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-reveal, .hero-reveal + p, .hero-actions, .motion-rule.is-run, .reveal { animation: none !important; }
  .media-card:hover { transform: none; }
}

/* ===== 5) Utilities ===== */
.text-center { text-align: center; }
.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;
}

/* hero-top must beat hero-scrim positioning */
.hero-photo.hero-scrim.hero-top > img,
.hero-photo.hero-scrim.hero-top > picture > img { object-position: center 8%; }

/* Homepage activity mosaic — photo tiles with overlaid label, CSS only */
.activity-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
@media (min-width: 900px) { .activity-mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-4); } }
.activity-tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg, 16px); color: #fff; text-decoration: none; }
.activity-tile img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s ease; }
.activity-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,40,36,0) 50%, rgba(20,40,36,.7) 100%); }
.activity-tile-label { position: absolute; left: var(--space-3); right: var(--space-3); bottom: var(--space-3); z-index: 1; font-family: var(--font-heading, inherit); font-weight: 600; font-size: clamp(.85rem, 1.3vw, 1rem); line-height: 1.25; }
.activity-tile:hover img, .activity-tile:focus-visible img { transform: scale(1.06); }
.activity-tile:focus-visible { outline: 3px solid var(--color-cta); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .activity-tile img { transition: none; } }

/* Full-screen homepage hero on phones: fills exactly one screen below the sticky header,
   at every phone size. svh = the visible screen height with the browser bars showing,
   so the next section never peeks in; vh line is the fallback for older browsers. */
:root { --header-h: 70px; }
@media (min-width: 1100px) { :root { --header-h: 60px; } }
.hero-photo.hero-full { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }

/* Homepage activity pills on phones: compact, text-sized pills packed tightly */
@media (max-width: 599px) {
  .chip-row.chip-row-grid { gap: 6px; justify-content: center; }
  .chip-row.chip-row-grid .chip { padding: 5px 10px; font-size: .8rem; line-height: 1.2; }
}

/* Getting-started steps on phones: compact centred white step cards (all 4 + CTA fit one screen) */
@media (max-width: 767px) {
  #how.section-lg { padding-block: var(--space-6); }
  #how .section-head { margin-bottom: var(--space-5); }
  #how .section-head h2 { font-size: 1.45rem; }
  ol.steps { gap: var(--space-2); }
  .steps .step { background: var(--color-bg, #fff); border-radius: 14px; padding: 12px 16px; text-align: center; box-shadow: 0 2px 10px rgba(20, 40, 36, .06);
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 10px; }
  .steps .step { flex-direction: column; flex-wrap: nowrap; align-items: center; padding: 9px 16px; }
  .steps .step-num { width: 1.6rem; height: 1.6rem; font-size: .82rem; margin: 2px 0 6px; box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 3px var(--color-primary); }
  .steps .step h3 { font-size: 1rem; margin: 0; text-align: center; }
  .steps .step p { flex-basis: auto; font-size: .875rem; line-height: 1.4; max-width: 34ch; margin: 4px auto 0; }
  #how .cta-actions.mt-8 { margin-top: var(--space-5); }
}
/* Shorter phones: tighten further so the whole block still fits one screen */
@media (max-width: 767px) and (max-height: 760px) {
  #how.section-lg { padding-block: var(--space-5); }
  #how .section-head { margin-bottom: var(--space-3); }
  #how .section-head .eyebrow { display: none; }
  #how .section-head h2 { font-size: 1.15rem; margin: 0; }
  .steps .step { padding: 6px 14px; }
  .steps .step-num { width: 1.4rem; height: 1.4rem; font-size: .75rem; margin: 2px 0 3px; }
  .steps .step h3 { font-size: .95rem; }
  .steps .step p { font-size: .78rem; line-height: 1.3; margin-top: 1px; max-width: 38ch; }
  ol.steps { gap: 6px; }
  #how .cta-actions.mt-8 { margin-top: var(--space-3); }
  #how .cta-actions .btn-lg { padding-block: 10px; }
}

/* Getting-started steps on tablets: number to the left of each step */
@media (min-width: 768px) and (max-width: 1023px) {
  .steps .step { display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-3); align-items: start; padding-top: 0; }
  .steps .step-num { grid-row: 1 / span 2; margin: 0; width: 2.6rem; height: 2.6rem; font-size: 1.05rem; }
  .steps .step h3 { margin: .45rem 0 var(--space-1, 4px); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .steps .step { grid-template-rows: auto 1fr; align-content: start; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  ol.steps.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-6); }
}

/* Getting-started steps on desktop: horizontal timeline — centred steps, dashed line links the numbers */
@media (min-width: 1024px) {
  ol.steps.grid-4 { position: relative; }
  ol.steps.grid-4::before { content: ""; position: absolute; top: 1.5rem; left: 12.5%; right: 12.5%; border-top: 2px dashed color-mix(in srgb, var(--color-primary) 55%, transparent); z-index: 0; }
  .steps .step { text-align: center; padding-top: 0; position: relative; z-index: 1; }
  .steps .step-num { margin: 0 auto var(--space-4); }
  .steps .step p { max-width: 26ch; margin-inline: auto; }
}

/* Green Join buttons over photos (heroes + image CTA bands): white ring + soft glow so they don't blend into the green-tinted overlay */
.hero-photo .btn-primary,
.cta-band .btn-primary {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 6px 20px rgba(0, 0, 0, .28);
}
.hero-photo .btn-primary:hover,
.cta-band .btn-primary:hover {
  box-shadow: 0 0 0 2px #fff, 0 8px 24px rgba(0, 0, 0, .34);
}
