/*
  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: #faf9fd;
  --color-surface: #ffffff;
  --color-surface-soft: #f1eef9;
  --color-text: #1c1c24;
  --color-text-soft: #6b6b78;
  --color-primary: #3140e3;
  --color-primary-dark: #232fb0;
  --color-primary-light: #dde0fb;
  --color-accent: #9c3a96;
  --color-accent-pink: #ff5cc4; /* brand-guidelines */
  --color-focus: #3140e3;

  /* Typography (brand-guidelines) */
  --font-heading: "Quicksand", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Nunito", "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;
  --transition-slow: 520ms var(--easing-smooth);
  --easing-smooth: cubic-bezier(0.16, 1, 0.3, 1); /* design-system: scroll-reveal / entrance ease-out */
  --easing-snap: cubic-bezier(0.34, 1.56, 0.64, 1); /* design-system: reserved for any future pop-in moment */

  /* Layout */
  --container-max: 72rem;
  --content-prose: 65ch;

  /* 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;
  --btn-radius: var(--radius-pill);
  --card-radius: var(--radius-lg);
  --card-shadow: var(--shadow-md);
  --card-border: none;
  --chip-radius: var(--radius-pill);
}

/* ===== 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(--color-surface);
  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}}"> — size the image; don't style text.
   Adjust --logo-height per brand (logos vary in aspect ratio). */
.site-logo img {
  height: var(--logo-height);
  width: auto;
}

.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(--color-text);
  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);
}

.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;
}

/* Dating-layer CTA — one-off accent per design-system.md, kept rare so it
   reads as an optional invitation, never the default action. */
.btn-accent {
  background: var(--color-accent-pink);
  color: #4b1528;
}

.btn-accent:hover {
  background: color-mix(in srgb, var(--color-accent-pink) 85%, black);
}

.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);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

/* design-system: soft/rounded brand → hover lift, not a color/border shift */
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.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);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) 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.85rem;
  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;
}

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

/* design-system: Subtle motion — scroll-triggered entrance (fade + short rise).
   Toggle `.is-visible` via an IntersectionObserver on elements with `.js-reveal`.
   Reduced-motion users get the instant, no-animation state automatically via the
   prefers-reduced-motion query at the top of this file. */
.js-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Homepage-specific components (web-page-builder: site/homepage.html) ===== */

/* Landing header: logo reads one step larger than the sitewide default */
.site-header--landing .site-logo img {
  height: 3.25rem;
}
@media (min-width: 1024px) {
  .site-header--landing .site-logo img {
    height: 3.75rem;
  }
}

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

@media (max-width: 1023px) {
  .desktop-only { display: none; }
}

/* {{menu.navigation.default}} theming: swap the snippet's hardcoded
   black-on-white primary CTA for the brand primary. Higher specificity
   beats the snippet's inline <style> (see
   references/placeholders/menu.navigation.default.md). */
.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);
}

/* Pattern: hero-split (references/patterns/hero-split.md) */
.hero-split { padding: var(--space-12) 0; }
.hero-split-inner {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 768px) {
  .hero-split-inner { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 1rem + 4vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 var(--space-4);
}
.hero-sub {
  color: var(--color-text-soft);
  font-size: 1.12rem;
  max-width: 46ch;
  margin: 0 0 var(--space-6);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-split-visual {
  aspect-ratio: 1536 / 900;
  overflow: hidden;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}
.hero-split-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Pattern: hero-banner — full-bleed banner variant of hero-split, used on the
   homepage to echo the live site's edge-to-edge photo hero with overlaid copy. */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: clamp(26rem, 56vw, 40rem);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 20, 28, 0.78) 0%, rgba(20, 20, 28, 0.5) 42%, rgba(20, 20, 28, 0.12) 75%, rgba(20, 20, 28, 0) 100%);
}
.hero-banner-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-banner-content {
  max-width: 36rem;
  padding-block: var(--space-12);
  padding-inline-start: clamp(0.5rem, 4vw, var(--space-8));
}
.hero-banner .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}
.hero-banner .hero-title {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
.hero-banner .hero-sub {
  color: rgba(255, 255, 255, 0.84);
  text-align: justify;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}
.hero-banner .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}
.hero-banner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 var(--space-2);
}

/* Section rhythm modifier — drop top padding when the section above already
   provides the gap (e.g. a section directly following the hero/feature grid) */
.section--tight-top { padding-top: 0; }

/* Section heading block (intro copy above a feature/content grid) */
.section-head {
  max-width: 60ch;
  margin: 0 0 var(--space-8);
}
.section-head h2 {
  font-size: clamp(1.7rem, 1rem + 2.4vw, 2.4rem);
  margin: 0 0 var(--space-3);
}
.section-head p {
  color: var(--color-text-soft);
  margin: 0;
}

/* Feature cards */
.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Article body (web-page-builder: site/articles/*.html) — one prose width
   shared by the hero and the body copy, per layout-rules.md rule #2
   ("article body should not be narrower than the article hero"). */
.article {
  max-width: var(--content-prose);
  margin: 0 auto;
}
.article-hero {
  aspect-ratio: 1600 / 1067;
  overflow: hidden;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: var(--space-6);
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.article-title {
  font-size: clamp(1.9rem, 1rem + 3vw, 2.8rem);
  margin: 0 0 var(--space-3);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-soft);
  font-size: 0.9rem;
  margin-bottom: var(--space-6);
}
.article h2 {
  font-size: 1.45rem;
  margin: var(--space-8) 0 var(--space-3);
}
.article p {
  margin: 0 0 var(--space-4);
}
.article ul,
.article ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.3rem;
}
.article li {
  margin-bottom: var(--space-2);
}
.article blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  border-left: 3px solid var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-text);
}
.article-tags {
  margin-top: var(--space-8);
}

/* Related-content block (manual cross-link card, or tag-driven 2-up grid) */
.article-related {
  margin-top: var(--space-8);
}
.article-related h2 {
  margin: 0 0 var(--space-4);
}
.article-related > .article-card {
  display: block;
  max-width: 22rem;
}

/* Article card (used on the articles landing grid) */
.article-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--card-radius);
  margin-bottom: var(--space-4);
}
.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.article-card-meta {
  color: var(--color-text-soft);
  font-size: 0.85rem;
  margin: var(--space-2) 0 0;
}

/* Clickable card variant — whole card is an <a>, so it needs an explicit
   block/flex display (anchors default to inline) plus the equal-height +
   bottom-aligned-CTA pattern from layout-rules.md rule #1. */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Community trust-stat strip (web-page-builder: site/community.html) —
   rounded, sourced demographic figures, not a review ticker. */
.stat-card {
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 1.2rem + 3vw, 2.8rem);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.stat-label {
  margin: 0;
  color: var(--color-text-soft);
}

/* Solo variant — a single centered stat (e.g. one county's member count),
   rather than a row of stat-cards in a grid. */
.stat-card--solo {
  max-width: 18rem;
  margin: 0 auto var(--space-6);
}

/* Location pages (web-page-builder: site/locations.html + site/locations/*.html) —
   clickable county cards on the landing grid. Combine with .card + .stat-card
   (display: flex + text-align: center) for the equal-height, centered-stat look. */
.location-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.location-card .stat-number {
  font-size: 1.8rem;
}

/* Trust-badge strip (homepage, directly below the hero) — short, real claims
   paired with an emoji icon, one row, wraps on small screens. Layout idea
   borrowed from competitor hero pages (icon-strip directly under the hero),
   but content stays honest/brand-safe: no fabricated member counts or
   "certified" claims, just things already true about Pillion Link. Uses the
   same iconEmoji + label vocabulary already established by
   build-assets/pricing/example-plans.json's trustIndicators. */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6) var(--space-8);
  padding: var(--space-2) 0 var(--space-10);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--color-text-soft);
  white-space: nowrap;
}
.trust-item .trust-icon {
  font-size: 1.2rem;
  line-height: 1;
}

/* Final CTA band: stacked-and-centered layout intent */
.cta-band {
  background: var(--color-surface-soft);
  border-radius: var(--card-radius);
  padding: var(--space-10) var(--space-6);
  text-align: center;
}
.cta-band h2 {
  margin: 0 0 var(--space-3);
}
.cta-band p {
  color: var(--color-text-soft);
  max-width: 50ch;
  margin: 0 auto var(--space-6);
}
.cta-band .hero-cta {
  justify-content: center;
}

/* Features page (web-page-builder: site/features.html) */

/* Generic content flow for sections outside .article (Matching Algorithm,
   Super Match, Safety & Trust) — mirrors .article's h2/h3/p/ul spacing so a
   bare h3 + ul stack inside a .section reads with the same rhythm as prose
   inside an article, without borrowing the .article class itself. */
.content-section h3 {
  font-size: 1.25rem;
  margin: var(--space-8) 0 var(--space-3);
}
.content-section > h3:first-child {
  margin-top: 0;
}
.content-section p {
  margin: 0 0 var(--space-4);
}
.content-section ul.content-list {
  margin: 0 0 var(--space-4);
  padding-left: 1.3rem;
}
.content-section .content-list li {
  margin-bottom: var(--space-2);
}

/* Tier badge — wraps an inlined VIP.svg / VIPPlus.svg wordmark so CSS can
   recolor it via currentColor. Never swap which badge class wraps which
   SVG (VIP.svg → --vip, VIPPlus.svg → --vip-plus); see
   build-assets/features/README.md. */
.tier-badge {
  display: inline-flex;
  align-items: center;
}
.tier-badge svg {
  display: block;
  height: 1.3rem;
  width: auto;
}
.tier-badge--vip { color: var(--color-primary); }
.tier-badge--vip-plus { color: var(--color-accent); }

/* Membership tier cards — equal-height per layout-rules.md rule #1, no CTA
   on this page (informational only; pricing/CTAs live on /pricing). */
.tier-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tier-card-head {
  margin-bottom: var(--space-3);
  min-height: 1.8rem;
  display: flex;
  align-items: center;
}
.tier-card-head h3 {
  margin: 0;
  font-size: 1.3rem;
}
.tier-price-note {
  color: var(--color-text-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.tier-card-intro {
  color: var(--color-text-soft);
  margin: 0 0 var(--space-3);
}
.tier-includes {
  font-weight: 700;
  margin: 0 0 var(--space-2);
}
.tier-list {
  margin: 0;
  padding-left: 1.2rem;
  flex-grow: 1;
}
.tier-list li {
  margin-bottom: var(--space-2);
}

/* Platform availability rows — fixed icon assignment per platform; see
   references/page-types/features.md. */
.platform-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.platform-icon {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  color: var(--color-primary);
}
.platform-icon svg,
.platform-icon img {
  width: 1.5rem;
  height: 1.5rem;
}
.platform-name {
  margin: 0 0 var(--space-1);
  font-weight: 700;
}
.platform-desc {
  margin: 0 0 var(--space-1);
  color: var(--color-text-soft);
}
.platform-availability {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
}

/* Feature comparison table — first real <table> on the site. Wrapped in a
   scroll container for mobile rather than reflowing into cards, since the
   22-row x 3-column shape stays legible as a table at any width above
   ~640px and a horizontal scroll is the lower-effort, less lossy option. */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 var(--space-2);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}
.comparison-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--color-surface);
}
.comparison-table th,
.comparison-table td {
  padding: var(--space-3) var(--space-4);
  text-align: center;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
}
.comparison-table thead th {
  background: var(--color-surface-soft);
  font-weight: 700;
  vertical-align: middle;
}
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}
