/*
  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: #FAF4F3;
  --color-surface: #FFFFFF;
  --color-surface-soft: #F4E1E3;
  --color-text: #2A1216;
  --color-text-soft: #7C5A5F;
  --color-primary: #8C1D2B;
  --color-primary-dark: #4A0817;
  --color-primary-light: #F1D4D8;
  --color-accent: #C89B3C;
  --color-focus: #8C1D2B;

  /* Typography (brand-guidelines) */
  --font-heading: "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Poppins", "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.75rem;    /* prominent by default — the logo is a brand asset, not chrome */
  --logo-max-width: 22rem;   /* generous, so wide wordmarks stay tall (not width-starved) */
  --header-bg: var(--color-surface);   /* header band — design-system may set a brand colour */
  --header-fg: var(--color-text);      /* header text/nav colour — flips for a coloured band */
  --btn-radius: var(--radius-pill);
  --card-radius: var(--radius-md);
  --card-shadow: var(--shadow-sm);
  --card-border: 1px solid color-mix(in srgb, var(--color-text) 6%, 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: 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-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);
}

/* ===== 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;
}

/* ============================================================
   Homepage build — 2026-09-04
   Additions: desktop-only utility, canvas-nav theming,
   member-loop styling, homepage sections (hero, steps, features, CTA band).
   See references/placeholders/menu.navigation.default.md and
   references/placeholders/members.loop.md for the source rules.
   ============================================================ */

/* ----- Desktop-only header CTAs (menu.navigation.default handles mobile) ----- */
@media (max-width: 1023px) {
  .desktop-only { display: none; }
}

/* ----- Canvas nav (menu.navigation.default) theming -----
   Drawer background intentionally left at the snippet's default white — the
   header logo's colour mode is unconfirmed (see brand.md), and white/surface
   are the confirmed-safe backgrounds. Only the primary CTA and link colours
   are themed to the brand palette. */
.hs-canvas-nav .hs-canvas-nav__cta--primary {
  background: var(--color-primary);
  color: #fff;
}
.hs-canvas-nav .hs-canvas-nav__cta--primary:hover {
  background: var(--color-primary-dark);
}
.hs-canvas-nav .hs-canvas-nav__menu--desktop .hs-canvas-nav__link {
  font-family: var(--font-heading);
  font-weight: 600;
}
.hs-canvas-nav .hs-canvas-nav__menu--desktop .hs-canvas-nav__link:hover {
  color: var(--color-primary);
}
.hs-canvas-nav .hs-canvas-nav__menu--mobile .hs-canvas-nav__link:hover,
.hs-canvas-nav .hs-canvas-nav__menu--mobile .hs-canvas-nav__summary:hover {
  color: var(--color-primary);
}
@media (min-width: 1024px) {
  .hs-canvas-nav .hs-canvas-nav__menu--desktop > .hs-canvas-nav__item > .hs-canvas-nav__details > .hs-canvas-nav__submenu {
    border-color: color-mix(in srgb, var(--color-text) 14%, transparent);
    box-shadow: var(--shadow-lg);
  }
}

/* ----- Member loops — see references/placeholders/members.loop.md -----
   Authored with data-members-styles="none": the CMS emits classes and no CSS.
   Baseline + portrait-card preset, themed to brand tokens. */

/* Ticker container: breaks the loop out to full viewport width (the section-head
   copy above it stays inside .container) and hides the horizontal overflow that
   the animation scrolls through. The mask fades cards in/out at the edges instead
   of having them hard-clip. Hover/focus-within pauses the scroll — for mouse users
   hovering and for keyboard users who've tabbed a card into focus; combined with
   the site-wide prefers-reduced-motion rule (top of this file), which freezes the
   animation outright for anyone who's asked for reduced motion. Note: this is a
   JS-free marquee (no JS ships to the page), so unlike a duplicated-content
   marquee it can't loop perfectly seamlessly — once per animation cycle the strip
   resets. A higher data-members-count (16) makes that reset infrequent rather than
   eliminating it; a fully seamless loop or an explicit pause button would need JS,
   which this project's pages don't ship. */
.members-ticker {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

[data-members] .lp-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0 0.75rem;
  width: max-content;
  max-width: none;
  will-change: transform;
  animation: members-ticker-scroll 45s linear infinite;
}

.members-ticker:hover [data-members] .lp-grid,
.members-ticker:focus-within [data-members] .lp-grid {
  animation-play-state: paused;
}

@keyframes members-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* Card is now a fixed square (7.5rem × 7.5rem) per user request — previously
   a fixed 5.5rem width with a variable, taller-than-wide height. All the
   inner sizes below (avatar, text, cta padding) were tightened to fit that
   square comfortably; margin-top:auto on .mem-card__cta (further down) still
   soaks up any leftover vertical space, so it isn't a razor-thin fit. */
[data-members] .mem-card {
  display: flex;
  flex: 0 0 auto;
  width: 7.5rem;
  height: 7.5rem;
  flex-direction: column;
  gap: 0.2rem;
  box-sizing: border-box;
  margin: 0;
  overflow: hidden;
  position: relative;
  padding: 0;
  background: var(--color-surface, #ffffff);
  border: var(--card-border, 1px solid #e3e1da);
  border-radius: var(--card-radius, 0.875rem);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(60,64,67,.12));
}

/* Circular avatar (was an edge-to-edge 3/2 rectangle) per user request.
   Only the avatar itself is centered — via align-self on this rule — while
   the card's own align-items stays at its stretch default so
   name/where/cta still span the full card width. That matters for two
   things below: the whole-card-tappable ::after overlay on .mem-card__cta
   needs cta to stay full-width, not shrink to its text, and .mem-card--join
   (the "Join free" tile) needs its full-bleed cta untouched. Sized down
   (3.25rem → 2.75rem) alongside the card-height tightening above so it fits
   the new square comfortably. */
[data-members] .mem-card img,
[data-members] .mem-card__initial {
  width: 2.75rem;
  height: 2.75rem;
  margin-top: 0.5rem;
  align-self: center;
  border-radius: 50%;
  flex: 0 0 auto;
}
[data-members] .mem-card img { display: block; object-fit: cover; object-position: 50% 25%; }
[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-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}

[data-members] .mem-card__name,
[data-members] .mem-card__where {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
[data-members] .mem-card:not(.mem-card--join) .mem-card__name,
[data-members] .mem-card:not(.mem-card--join) .mem-card__where,
[data-members] .mem-card:not(.mem-card--join) .mem-card__line,
[data-members] .mem-card:not(.mem-card--join) .mem-card__cta {
  padding-left: var(--space-3, 0.75rem);
  padding-right: var(--space-3, 0.75rem);
}
[data-members] .mem-card__name {
  margin: 0.25rem 0 0;
  font-family: var(--font-heading, inherit);
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--color-text, inherit);
}
[data-members] .mem-card__where {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.15;
  color: var(--color-text-soft, #6b6f85);
}
[data-members] .mem-card__name:empty,
[data-members] .mem-card__where:empty { display: none; }

/* Description blurb removed from the ticker per user request. The CMS still
   generates this element (it's not in our authored markup, so it can't be
   deleted outright) — hidden via display:none rather than left visible. */
[data-members] .mem-card__line {
  display: none;
}

[data-members] .badge {
  position: absolute;
  top: var(--space-2, 0.5rem);
  left: var(--space-2, 0.5rem);
  max-width: calc(100% - 1.5rem);
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: var(--chip-radius, 999px);
  color: var(--color-text, #1d2328);
  background: var(--color-primary-light, #e4f0ee);
  z-index: 1;
  margin: 0;
}

[data-members] .mem-card:not(.mem-card--join) .mem-card__cta {
  margin-top: auto;
  padding-top: 0.2rem;
  padding-bottom: 0.3rem;
  font-size: 0.7rem;
  line-height: 1.2;
  color: var(--color-text, inherit);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-align: center;
}

[data-members] a:focus-visible {
  outline: 3px solid var(--color-focus, #8C1D2B);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--color-surface, #ffffff);
}

/* Whole card tappable — label is honest ("See who's nearby", set via
   data-members-cta-text in the page markup), so the enlarged hit target
   doesn't imply a real profile page exists. */
[data-members] .mem-card:not(.mem-card--join) .mem-card__cta {
  position: relative;
  outline-offset: -2px;
}
[data-members] .mem-card:not(.mem-card--join) .mem-card__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

[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-weight: 600;
  background: var(--color-surface-soft, #f2f0ea);
  color: var(--color-text, #1d2328);
}

[data-members] .lp-members__empty {
  margin: 0;
  color: var(--color-text, inherit);
  font-size: 0.9rem;
}

/* ----- Shared section-intro pattern ----- */
.eyebrow {
  margin: 0 0 var(--space-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.section-head {
  max-width: 42rem;
  margin: 0 auto var(--space-8);
  text-align: center;
}

.section-head h2 {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
}

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

/* ----- Hero: full-width image with overlaid copy -----
   The <img class="hero-bg"> is absolutely positioned to fill the section
   (object-fit: cover), so it always reads edge-to-edge regardless of the
   source photo's aspect ratio. The scrim is a left-to-right gradient toward
   --color-primary-dark so the copy stays legible over any photo without
   needing a fixed crop or a dark-only source image. */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(26rem, 60vw, 34rem);
  display: flex;
  align-items: center;
  background: var(--color-primary-dark); /* fallback while the image loads */
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--color-primary-dark) 92%, black) 0%,
    color-mix(in srgb, var(--color-primary-dark) 70%, transparent) 42%,
    color-mix(in srgb, var(--color-primary-dark) 25%, transparent) 70%,
    transparent 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: var(--space-12);
}

.hero-copy {
  max-width: 34rem;
}

.hero .eyebrow {
  color: var(--color-accent);
}

.hero h1 {
  margin: 0 0 var(--space-4);
  color: #fff;
  font-size: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  letter-spacing: -0.01em;
}

.hero-sub {
  margin: 0 0 var(--space-6);
  font-size: 1.1rem;
  color: color-mix(in srgb, #fff 85%, transparent);
  max-width: 42ch;
}

.hero-actions {
  margin-bottom: var(--space-5);
}

.hero-stat {
  margin: 0;
  font-size: 0.95rem;
  color: color-mix(in srgb, #fff 75%, transparent);
}
.hero-stat strong {
  color: var(--color-accent);
  font-family: var(--font-heading);
}

/* ----- Steps ----- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-card {
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.step-eyebrow {
  margin: 0 0 var(--space-1);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.step-card h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.05rem;
}

.step-card p {
  margin: 0 0 var(--space-4);
  color: var(--color-text-soft);
  flex-grow: 1;
}

.step-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ----- Feature / tools cards ----- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: var(--space-5);
}

.feature-card {
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-3);
}

.feature-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.feature-card h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.05rem;
}

/* ----- Final CTA band ----- */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  margin-inline: auto;
  max-width: calc(var(--container-max) - 2rem);
}

.cta-band-inner {
  text-align: center;
  padding-block: var(--space-10);
}

.cta-band h2 {
  margin: 0 0 var(--space-3);
  color: #fff;
}

.cta-band p {
  margin: 0 0 var(--space-6);
  color: color-mix(in srgb, #fff 85%, transparent);
  max-width: 40ch;
  margin-inline: auto;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--color-primary-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.cta-band .btn-primary:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ----- FAQ page — 2026-09-04 -----
   Accordion built on native <details>/<summary> (no custom JS ships to the
   site). .faq-hero reuses the shared .section-head intro pattern; .faq-item
   reuses the .card surface treatment. */
.faq-hero .section-head { margin-bottom: 0; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 46rem;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-surface);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  padding: var(--space-4) var(--space-5);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 1.1rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "\2013"; /* en dash, reads as a minus once expanded */
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

.faq-item p {
  margin: var(--space-3) 0 0;
  color: var(--color-text-soft);
  line-height: 1.6;
}

/* ----- Safety / Trust & Safety page — 2026-09-04 -----
   Categorized feature grid, built from build-assets/safety/safety.json.
   Reuses .card / .feature-icon / .grid-2 / .grid-3 rather than inventing new
   card primitives — only the category header and the "protects you" accent
   line are new here. */
.safety-category {
  margin-bottom: var(--space-10);
}

.safety-category:last-child {
  margin-bottom: 0;
}

.safety-category-head {
  margin-bottom: var(--space-5);
}

.safety-category-head h2 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-2);
  font-size: 1.4rem;
}

.safety-category-icon {
  display: inline-flex;
  font-size: 1.15em;
  line-height: 1;
}

.safety-category-sub {
  margin: 0;
  color: var(--color-text-soft);
  max-width: 60ch;
}

.safety-feature-grid .feature-card {
  height: 100%;
}

/* "How it protects you" — visually distinct reassurance line, using the
   accent gold (not the primary red already spent on CTAs elsewhere on
   the page) with a left border so it reads as a separate, earned callout
   rather than a continuation of "what it does". */
.safety-protects {
  margin: var(--space-3) 0 0;
  padding-left: var(--space-3);
  border-left: 2px solid var(--color-accent);
  color: var(--color-text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.safety-protects strong {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Second, brand-voice line under the (verbatim, JSON-sourced) hero intro —
   kept visually secondary so the factual safety copy above it still reads
   as the primary statement. */
.safety-hero-note {
  margin-top: var(--space-3);
  font-size: 0.95rem;
  color: var(--color-text-soft);
}

/* ----- Articles (landing + individual pages) — 2026-09-05 -----
   Shared reading-column width (46rem) across the head, hero image, and body
   so the article never gets uncomfortably wide on large screens. .article-card
   is used both on the articles landing grid and the per-article "related"
   grid — same markup, same styling, so it only needs defining once. */

.article-head,
.article-hero,
.article-body {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.article-head {
  margin-bottom: var(--space-6);
}

.article-tags {
  margin-bottom: var(--space-3);
}

.article-head h1 {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.9rem, 1.5rem + 2vw, 2.75rem);
}

.article-byline {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.92rem;
}

.article-hero {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-8);
}

/* Article body typography — plain markdown rendered to HTML, styled here
   rather than per-page. Verbatim content; only presentation lives in CSS. */
.article-body h2 {
  margin: var(--space-8) 0 var(--space-3);
  font-size: 1.4rem;
}

.article-body h3 {
  margin: var(--space-6) 0 var(--space-2);
  font-size: 1.1rem;
}

.article-body p {
  margin: 0 0 var(--space-4);
  line-height: 1.7;
}

.article-body ul,
.article-body ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
  line-height: 1.7;
}

.article-body li {
  margin-bottom: var(--space-2);
}

.article-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--color-primary-dark);
}

.article-body blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--color-accent);
  background: var(--color-surface-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text);
}

.article-body code {
  background: var(--color-surface-soft);
  padding: 0.15em 0.4em;
  border-radius: 0.3em;
  font-size: 0.9em;
}

/* Related-articles block and the articles-landing grid share this card. */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  overflow: hidden;
  color: inherit;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.article-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
}

.article-card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.05rem;
}

.article-card-body p:not(.article-byline) {
  margin: 0 0 var(--space-3);
  color: var(--color-text-soft);
  flex-grow: 1;
}

.article-card .article-byline {
  margin-top: auto;
}

.related-section .section-head,
.articles-hero .section-head {
  margin-bottom: var(--space-8);
}
