/*
  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: #f6fafd;
  --color-surface: #ffffff;
  --color-surface-soft: #eaf4fd;
  --color-text: #17293a;
  --color-text-soft: #5b7183;
  --color-primary: #1d74b8;
  --color-primary-dark: #185c92;
  --color-primary-light: #cfe7fb;
  --color-accent: #bf5010;
  --color-focus: #1d74b8;

  /* Decorative-only tones — large fills, badges, illustration.
     Never carry body text on these; use --color-text on top. */
  --color-sky: #93caf7;           /* the logo's light blue — decorative only */
  --color-accent-bright: #f0925a; /* brand-guidelines */
  --color-sun: #f5c563; /* brand-guidelines */
  --color-blush: #ffd9c7; /* brand-guidelines */

  /* Typography (brand-guidelines) */
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "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-xl);
  --card-shadow: var(--shadow-md);
  --card-border: none;
  --chip-radius: var(--radius-pill);
  --radius-xl: 1.75rem;      /* design-system: generous, friendly card corners */
  --space-16: 4rem;          /* design-system: section rhythm — airier than the seed */
  --space-20: 5rem;
  --easing-smooth: cubic-bezier(0.16, 1, 0.30, 1);
  --easing-snap: cubic-bezier(0.20, 0.90, 0.30, 1.40);
  --transition-slow: 520ms 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-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;
}

/* ===== 6) Design language (design-system skill) ===== */
/* Motion level: EXPRESSIVE — scroll-reveal + hover feedback + ONE hero moment
   per page. CSS-only by necessity: the HubPeople CMS drops any page containing
   a <script>, so there is no IntersectionObserver here. Scroll-reveal uses
   native scroll-driven animation and degrades to "always visible" where the
   browser doesn't support it. The reduced-motion block in section 1 collapses
   every duration below to ~0. */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

@keyframes clip-reveal {
  from { opacity: 0; clip-path: inset(0 0 110% 0); }
  to   { opacity: 1; clip-path: inset(0 0 -12% 0); }
}

@keyframes pop-in {
  0%   { opacity: 0; transform: scale(0.86); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary) 28%, transparent); }
  50%      { box-shadow: 0 4px 24px color-mix(in srgb, var(--color-primary) 46%, transparent); }
}

/* Scroll-reveal — progressive enhancement, no JS. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    .reveal-group > * {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}

/* Hero moment — one per page, on load. */
@media (prefers-reduced-motion: no-preference) {
  .hero-reveal { animation: clip-reveal 880ms var(--easing-smooth) both; }
  .hero-reveal-delay { animation: rise-in 620ms var(--easing-smooth) 220ms both; }
  .pop-in { animation: pop-in 480ms var(--easing-snap) both; }
  .cta-pulse { animation: cta-pulse 2.8s ease-in-out 1.2s infinite; }
}

/* Hover feedback — soft brand, so it lifts. */
.card-hover {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.card-hover:hover,
.card-hover:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* --- Components added by the design stage --- */

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  margin: 0 0 var(--space-4);
}

.lede {
  font-size: 1.08rem;
  color: var(--color-text-soft);
  max-width: 60ch;
}

.section-soft { background: var(--color-surface-soft); }
.section-lg { padding: var(--space-16) 0; }

@media (min-width: 768px) {
  .section-lg { padding: var(--space-20) 0; }
}

.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-12) 0 var(--space-16);
}

.hero-title {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-4);
}

/* Decorative blobs — the play tones, non-text only. */
/* Position and size come from CSS-custom-property data bindings on the element
   (e.g. style="--blob-size: 12rem; --blob-right: -3rem; --blob-top: -4rem") —
   the one inline-style form the build rules allow. */
.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  width: var(--blob-size, 8rem);
  height: var(--blob-size, 8rem);
  top: var(--blob-top, auto);
  right: var(--blob-right, auto);
  bottom: var(--blob-bottom, auto);
  left: var(--blob-left, auto);
  opacity: var(--blob-opacity, 1);
}
.blob-sun { background: var(--color-sun); }
.blob-apricot { background: var(--color-accent-bright); }
.blob-blush { background: var(--color-blush); }
.blob-tint { background: var(--color-primary-light); }
.blob-sky { background: var(--color-sky); }

.hero > .container { position: relative; z-index: 1; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-text);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
}
.badge-sun { background: var(--color-sun); }
.badge-blush { background: var(--color-blush); }
.badge-apricot { background: var(--color-accent-bright); }
.badge-tint { background: var(--color-primary-light); color: var(--color-primary-dark); }
.badge-sky { background: var(--color-sky); color: var(--color-text); }

.stat-row {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  line-height: 1.1;
  color: var(--color-primary-dark);
  margin: 0;
}
.stat-label {
  font-size: 0.86rem;
  color: var(--color-text-soft);
  margin: var(--space-1) 0 0;
}

.avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-surface-soft);
}

.quote {
  position: relative;
  background: var(--color-surface-soft);
  border-radius: var(--card-radius);
  padding: var(--space-6);
  font-family: var(--font-heading);
  font-size: 1.05rem;
}
.quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--space-5);
  bottom: var(--space-5);
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--color-sun), var(--color-accent-bright));
}

/* ===== 7) Page components (web-page-builder) ===== */

/* Footer legal row — the four {{footerLinks.*Url}} anchors. */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.footer-legal a {
  color: var(--color-text-soft);
  font-size: 0.86rem;
  transition: color var(--transition-fast);
}
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Desktop-only header CTAs — the CMS drawer supplies them below 1024px. */
@media (max-width: 1023px) {
  .desktop-only { display: none; }
}

/* ---- Canvas nav theming (menu.navigation.default) ----
   Every selector is >= 0,2,0 so it beats the snippet's own inline <style>,
   which loads after global.css and would otherwise win at equal specificity. */
.hs-canvas-nav .hs-canvas-nav__drawer {
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
}
.hs-canvas-nav .hs-canvas-nav__overlay {
  background: color-mix(in srgb, var(--color-text) 40%, transparent);
}
.hs-canvas-nav .hs-canvas-nav__cta--primary {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--btn-radius);
}
.hs-canvas-nav .hs-canvas-nav__cta--primary:hover {
  background: var(--color-primary-dark);
}
.hs-canvas-nav .hs-canvas-nav__cta--secondary {
  color: var(--color-text);
  border-color: color-mix(in srgb, var(--color-text) 22%, transparent);
  border-radius: var(--btn-radius);
}
.hs-canvas-nav .hs-canvas-nav__menu--mobile .hs-canvas-nav__link,
.hs-canvas-nav .hs-canvas-nav__menu--mobile .hs-canvas-nav__summary {
  color: var(--color-text);
  font-family: var(--font-heading);
}
.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);
}
.hs-canvas-nav .hs-canvas-nav__close { color: var(--color-text); }
.hs-canvas-nav .hs-canvas-nav__menu--desktop .hs-canvas-nav__link {
  color: var(--header-fg);
  font-weight: 600;
  transition: color var(--transition-fast);
}
.hs-canvas-nav .hs-canvas-nav__menu--desktop .hs-canvas-nav__link:hover {
  color: var(--color-primary);
}

/* ---- Hero: asymmetric split (copy 7 / media 5) ---- */
.hero-split {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-split { grid-template-columns: 7fr 5fr; gap: var(--space-12); }
}

.hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-media-badge {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  box-shadow: var(--shadow-md);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-6) 0 var(--space-5);
}

/* ---- Trust strip: words, not numbers ---- */
.trust-strip .stat-value { font-size: clamp(1.15rem, 2.2vw, 1.45rem); }

/* ---- Feature cards ---- */
.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  font-size: 1.4rem;
  margin-bottom: var(--space-4);
}
.feature-card .card-text { margin-bottom: var(--space-4); }
.feature-card .feature-foot { margin-top: auto; }

/* ---- How it works ---- */
.step { display: flex; flex-direction: column; height: 100%; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
}

/* ---- Safety row ---- */
.safety-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.safety-item .feature-icon { margin-bottom: 0; flex: 0 0 auto; }

/* ---- Closing CTA band: stacked and centered ---- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-6);
  text-align: center;
}
.cta-band > * { position: relative; z-index: 1; }
/* …except the decorative blobs, which must stay absolutely positioned behind
   the content. Without this they inherit the rule above, collapse to zero size
   and never render. */
.cta-band > .blob { position: absolute; z-index: 0; }
.cta-band h2 { color: #fff; margin: 0 0 var(--space-3); font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.cta-band p {
  color: #fff;
  margin: 0 auto var(--space-6);
  max-width: 46ch;
}
/* Inside the band the ground IS --color-primary, so a primary-coloured button
   disappears into it and a primary focus ring is invisible. Invert both. */
.cta-band .btn-primary {
  background: #fff;
  color: var(--color-primary-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.cta-band .btn-primary:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.cta-band .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: color-mix(in srgb, #fff 55%, transparent);
}
.cta-band .btn-secondary:hover { background: color-mix(in srgb, #fff 14%, transparent); }
.cta-band :focus-visible { outline-color: #fff; }

/* ---- Section heading block ---- */
.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-8);
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin: 0 0 var(--space-3);
}

/* ---- Features & safety page components ---- */

/* Breadcrumb sits under the sticky header, above the hero. */
.page-head { padding-top: var(--space-4); }

/* Platform availability rows */
.platform-list {
  display: grid;
  gap: var(--space-3);
}
.platform-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: var(--space-4) var(--space-5);
}
.platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}
.platform-icon svg { width: 1.5rem; height: 1.5rem; }
.platform-icon img { width: 1.4rem; height: 1.4rem; }
.platform-row h3 { margin: 0 0 var(--space-1); font-size: 1.02rem; }
.platform-row p { margin: 0; color: var(--color-text-soft); font-size: 0.92rem; }
.platform-avail {
  margin-left: auto;
  flex: 0 0 auto;
  align-self: center;
}

/* Tier cards */
.tier-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .tier-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tier-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tier-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: var(--space-6);
}
.tier-card--dark {
  background: var(--color-text);
  color: var(--color-bg);
}
.tier-card--dark .card-text,
.tier-card--dark .tier-tagline { color: color-mix(in srgb, var(--color-bg) 78%, transparent); }
.tier-card--dark .feature-list li::before { color: var(--color-sun); }
.tier-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0 0 var(--space-2);
}
.tier-badge { display: block; margin-bottom: var(--space-2); }
.tier-badge svg { width: 100%; max-width: 11rem; height: auto; }
.tier-badge--vip { color: var(--color-primary-dark); }
/* Table headers sit on a light ground — both wordmarks need a dark ink there,
   so the tier colour is swapped without swapping the mark itself. */
.tier-badge--onlight { color: var(--color-primary-dark); }
.tier-tagline {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  margin: 0 0 var(--space-4);
}
.feature-list {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.feature-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.94rem;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--color-primary);
}
.tier-card .tier-foot { margin-top: auto; padding-top: var(--space-4); }

/* Comparison table — scrolls inside its own container on small screens */
.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  background: var(--color-surface);
}
.compare-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.compare-table th,
.compare-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);
}
.compare-table thead th {
  /* The site header is sticky at top:0 with z-index 20, so a sticky table head
     at top:0 slides underneath it. Scroll the wrapper instead. */
  position: static;
  background: var(--color-surface-soft);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}
.compare-table td + td,
.compare-table th + th { text-align: center; width: 6.5rem; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table .yes { color: var(--color-primary); font-weight: 700; }
.compare-table .no { color: var(--color-text-soft); }
.compare-table thead .tier-badge { display: inline-block; margin: 0; }
.compare-table thead .tier-badge svg { max-width: 4.5rem; }

/* Safety categories */
.safety-cat { margin-top: var(--space-12); }
.safety-cat:first-of-type { margin-top: 0; }
.cat-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.cat-emoji { font-size: 1.6rem; line-height: 1; }
.cat-head h2 { margin: 0; font-size: 1.45rem; }
.safety-card { display: flex; flex-direction: column; height: 100%; }
.safety-card .feature-icon { font-size: 1.3rem; }
.protects {
  margin: auto 0 0;
  padding-top: var(--space-3);
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 600;
}
.protects-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

/* Prose blocks (matching algorithm) */
.prose { max-width: 65ch; }
.prose p { color: var(--color-text-soft); }
.prose ul { color: var(--color-text-soft); padding-left: 1.2rem; }
.prose li { margin-bottom: var(--space-2); }
.prose h3 { margin: var(--space-6) 0 var(--space-3); font-size: 1.15rem; }

/* ---- Pricing page ---- */

.plan-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.plan-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: var(--space-6);
  position: relative;
}
.plan-card--popular {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
  box-shadow: var(--shadow-lg);
}
.plan-flag {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: var(--space-6);
}
.plan-term {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin: 0 0 var(--space-4);
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.price-row:first-of-type { border-top: 0; padding-top: 0; }
.price-cur {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--color-text-soft);
  width: 2.6rem;
  flex: 0 0 auto;
}
.price-main {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  line-height: 1.05;
  color: var(--color-primary-dark);
}
.price-sub { font-size: 0.86rem; color: var(--color-text-soft); }
.price-save { font-size: 0.86rem; font-weight: 600; color: var(--color-accent); }
.price-row--secondary .price-main { font-size: 1.25rem; color: var(--color-text); }
.plan-save {
  margin: var(--space-4) 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-accent);
}
.plan-card .plan-foot { margin-top: auto; padding-top: var(--space-5); }

.basis-note {
  font-size: 0.86rem;
  color: var(--color-text-soft);
  margin-top: var(--space-5);
  max-width: 60ch;
}

.other-cur-wrap {
  overflow-x: auto;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  background: var(--color-surface);
}
.other-cur {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.other-cur th,
.other-cur td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.other-cur thead th {
  background: var(--color-surface-soft);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}
.other-cur td + td, .other-cur th + th { text-align: right; }
.other-cur tbody tr:last-child td { border-bottom: 0; }
.other-cur .wk { display: block; font-size: 0.78rem; color: var(--color-text-soft); }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  align-items: center;
  color: var(--color-text-soft);
  font-size: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trust-row li { display: flex; align-items: center; gap: var(--space-2); }

.free-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  background: var(--color-primary-light);
  border-radius: var(--card-radius);
  padding: var(--space-6);
}
.free-card h2 { margin: 0 0 var(--space-2); font-size: 1.35rem; }
.free-card p { margin: 0; color: var(--color-primary-dark); max-width: 52ch; }
.free-card .free-price {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--color-primary-dark);
  margin-left: auto;
  line-height: 1;
}

/* ---- Location pages ---- */

.place-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.place-grid a {
  display: block;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  font-size: 0.94rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base), color var(--transition-fast);
}
.place-grid a:hover,
.place-grid a:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-primary-dark);
}

.state-block { margin-top: var(--space-8); }
.state-block:first-of-type { margin-top: 0; }
.state-block h3 {
  font-size: 1.05rem;
  margin: 0 0 var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.state-block h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--color-text) 10%, transparent);
}

.steps-row { counter-reset: step; }
.step-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: var(--space-6);
}

/* ---- Full-width banner figure ---- */
.band-figure {
  margin: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  aspect-ratio: 1600 / 305;
}
.band-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* ---------------------------------------------------------------- fact list
   Named local places on enriched city pages. Card grid like .place-grid, but
   the items are text rather than links, so no hover lift and no link colour. */
.fact-list {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.fact-list li {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: var(--space-4);
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--color-text-soft);
}
.fact-list strong {
  display: block;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.section-soft .fact-list li { background: var(--color-surface); }
