/*
  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: #f2f2f2;
  --color-surface: #ffffff;
  --color-surface-soft: #fdf6ce;
  --color-text: #584b04;
  --color-text-soft: #5f5f5f;
  --color-primary: #c9a227;
  --color-primary-dark: #8f7a1a;
  --color-primary-light: #fdf6ce;
  --color-accent: #584b04;
  --color-focus: #584b04;

  /* Typography (brand-guidelines) */
  --font-heading: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Montserrat", "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 — Expressive level (design-system, 2026-08-08): Subtle vocabulary
     (entrance fade/rise, hover feedback, scroll-reveal) plus one signature accent
     moment (a slow pulse on the single primary hero CTA). */
  --transition-fast: 180ms ease;
  --transition-base: 260ms ease;
  --transition-slow: 600ms;
  --easing-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  --easing-smooth: cubic-bezier(0.16, 1, 0.3, 1);

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

  /* Aesthetic dials — SET per brand by `design-system` (2026-08-08).
     CountrySide Dating vibe: warm, friendly, down-to-earth, trustworthy. Direction:
     Soft / friendly / premium — pill buttons, generously rounded cards, soft shadow,
     minimal border. Logo presence: Prominent (wide wordmark badge, self-contained
     black/gold, reads on any background). Header: branded gold band (approved at the
     brand gate) rather than the neutral default. */
  --logo-height: 2.75rem;    /* Prominent — mobile */
  --logo-max-width: 22rem;
  --header-bg: var(--color-primary);        /* branded gold band, not neutral surface */
  --header-fg: var(--color-primary-light);  /* cream nav/CTA text for contrast on gold */
  --btn-radius: var(--radius-pill);
  --card-radius: var(--radius-lg);
  --card-shadow: var(--shadow-md);
  --card-border: 1px solid color-mix(in srgb, var(--color-text) 4%, 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; }  /* Prominent — desktop */
}

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

/* Footer legal links — the four mandatory {{footerLinks.*Url}} anchors */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding-top: var(--space-4);
  margin-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;
}

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

/* Desktop-only chrome. Spec default: {{menu.navigation.default}}'s mobile drawer already
   embeds its own Login/Join, so header CTAs would normally be fully desktop-only to avoid
   duplicating them. Deviation for this brand: the live production site (same CMS/classes)
   was confirmed to ship NO nav/hamburger at all in its header — verified via computer.
   Below 1024px, .site-header-row rendered only [logo, .site-cta.desktop-only], so with the
   old rule the header went blank except the logo. As a defensive fallback, only the Join
   button keeps the .desktop-only class now (see homepage.html etc. — .btn-header-join
   .desktop-only); Login stays visible at all breakpoints so it's never dependent on the
   CMS drawer actually rendering its own login entry. See notes/decisions.md (2026-08-08,
   "mobile header login"). */
@media (max-width: 1023px) {
  .desktop-only { display: none; }
}

/* Hero split (pattern: hero-split.md) — copy + visual, first used on homepage.html */
.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(2rem, 5vw, 3.4rem);
  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 img {
  width: 100%;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  object-fit: cover;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 var(--space-2);
}

/* Trust row — rating + member count under the hero CTA */
.trust-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  font-size: 0.92rem;
  color: var(--color-text-soft);
}
.trust-row strong { color: var(--color-text); }

/* How it works — numbered steps, no photos (kept intentionally simple) */
.steps-grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 640px) {
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.step-card { padding: var(--space-2) 0; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.step-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin: 0 0 var(--space-2);
}
.step-text {
  color: var(--color-text-soft);
  margin: 0;
}

/* Testimonial card — quote-led variant of .card */
.testimonial-title {
  font-family: var(--font-heading);
  margin: 0 0 var(--space-2);
  font-size: 1.05rem;
}
.testimonial-quote {
  color: var(--color-text-soft);
  margin: 0;
}

/* FAQ — native <details>/<summary>, no JS required */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 68ch;
  margin-inline: auto;
}
.faq-item {
  border: var(--card-border);
  border-radius: var(--card-radius);
  background: var(--color-surface);
  padding: var(--space-4) var(--space-5);
}
.faq-item summary {
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--color-primary-dark);
  font-weight: 700;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  color: var(--color-text-soft);
  margin: var(--space-3) 0 0;
}

/* Final CTA band */
.cta-band {
  background: var(--color-primary-light);
  border-radius: var(--card-radius);
  padding: var(--space-10) var(--space-6);
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-heading);
  margin: 0 0 var(--space-3);
}
.cta-band p {
  color: var(--color-text-soft);
  margin: 0 0 var(--space-6);
}

/* Section tint — soft branded panel (e.g. the homepage features band) */
.section-tint {
  background: var(--color-primary-light);
  border-radius: var(--card-radius);
}

/* Header CTA — the primary Join button in the header, distinct from the hero's
   .btn-primary so it reads against the branded gold header band. */
.btn-header-join {
  background: var(--color-text);
  color: var(--color-primary-light);
}

/* Vertical stack of feature blurbs (used in the homepage tools/features section) */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Features page (site/features.html) — platform availability, tier cards,
   comparison table, tier wordmarks. First used here; token-driven throughout. */

.platform-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 640px) {
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.platform-row {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--card-radius);
  border: var(--card-border);
}
.platform-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  color: var(--color-primary-dark);
}
.platform-icon img { width: 100%; height: 100%; object-fit: contain; }
.platform-name {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0 0 var(--space-1);
}
.platform-desc {
  color: var(--color-text-soft);
  margin: 0 0 var(--space-2);
  font-size: 0.92rem;
}
.platform-availability {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
  border-radius: var(--chip-radius);
  padding: 0.2rem 0.7rem;
}

/* Membership tier cards — equal height (layout-rules.md pattern) */
.tier-grid {
  display: grid;
  gap: var(--space-6);
  align-items: stretch;
}
@media (min-width: 768px) {
  .tier-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tier-card {
  display: flex;
  flex-direction: column;
}
.tier-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0 0 var(--space-2);
}
.tier-desc {
  color: var(--color-text-soft);
  margin: 0 0 var(--space-4);
}
.tier-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.tier-list li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.94rem;
}
.tier-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-primary-dark);
  font-weight: 700;
}

/* Tier wordmark badges (VIP / VIP+) — inline SVG, currentColor */
.tier-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-2);
}
.tier-badge svg { height: 1.4rem; width: auto; }
.tier-badge--vip { color: var(--color-primary-dark); }
.tier-badge--vip-plus { color: var(--color-accent); }

/* Feature comparison table */
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--card-radius);
  border: var(--card-border);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  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);
  font-size: 0.9rem;
}
.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
}
.comparison-table thead th {
  font-family: var(--font-heading);
  color: var(--color-text);
  background: var(--color-primary-light);
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table .yes { color: var(--color-primary-dark); font-weight: 700; }
.comparison-table .no { color: var(--color-text-soft); opacity: 0.5; }

/* Simple factor list (matching algorithm, safety sections) */
.factor-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 60ch;
}
.factor-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text-soft);
}
.factor-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* Safety page (site/safety.html) — category sections + feature cards.
   Quiet-confidence styling: muted palette, no marketing gradients. */
.category-section + .category-section {
  margin-top: var(--space-12);
}
.category-heading-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-1);
}
.category-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.category-desc {
  color: var(--color-text-soft);
  margin: 0 0 var(--space-6);
}
.feature-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.feature-grid.cols-3 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .feature-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .feature-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.feature-card {
  display: flex;
  flex-direction: column;
}
.feature-icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: var(--space-3);
}
.feature-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin: 0 0 var(--space-2);
}
.feature-what {
  color: var(--color-text-soft);
  margin: 0;
  font-size: 0.94rem;
}
.feature-protects {
  margin-top: var(--space-3);
  padding-left: var(--space-3);
  border-left: 3px solid var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
}
.feature-protects-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  display: block;
  margin-bottom: 0.2rem;
}

/* Pricing page (site/pricing.html) — light/dark tier cards, price hierarchy.
   Editorial info page, not a checkout form. */
.pricing-tier-grid {
  display: grid;
  gap: var(--space-6);
  align-items: stretch;
}
@media (min-width: 768px) {
  .pricing-tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tier-card-pricing {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}
.tier-card-pricing.theme-light {
  background: var(--color-surface);
  color: var(--color-text);
  border: var(--card-border);
}
.tier-card-pricing.theme-dark {
  background: var(--color-text);
  color: var(--color-primary-light);
}
.tier-logo-wrap {
  margin-bottom: var(--space-3);
}
.tier-logo-wrap svg {
  height: 1.6rem;
  width: auto;
  display: block;
}
.price-tagline {
  font-weight: 600;
  margin: 0 0 var(--space-3);
}
.tier-card-pricing.theme-light .price-desc { color: var(--color-text-soft); }
.tier-card-pricing.theme-dark .price-desc { color: color-mix(in srgb, var(--color-primary-light) 72%, transparent); }
.price-desc { margin: 0 0 var(--space-5); }
.tier-card-pricing.theme-dark .tier-list li::before { color: var(--color-primary-light); }
.price-block {
  margin: var(--space-5) 0;
  padding-top: var(--space-5);
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.price-row-prime {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-bottom: var(--space-3);
}
.price-cell-prime { min-width: 7rem; }
.price-currency-code {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.7;
  display: block;
  margin-bottom: 0.15rem;
}
.price-amount {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}
.price-unit {
  font-size: 0.85rem;
  opacity: 0.75;
  font-weight: 400;
}
.price-row-secondary {
  margin-bottom: var(--space-3);
}
.price-row-secondary .price-amount { font-size: 1.15rem; }
.price-others-label {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.7;
  margin: 0 0 var(--space-2);
}
.price-others-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem var(--space-4);
  font-size: 0.82rem;
}
.price-others-grid .code { font-weight: 600; opacity: 0.75; margin-right: 0.35rem; }

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  color: var(--color-text-soft);
  font-size: 0.9rem;
}
.trust-strip li { display: flex; align-items: center; gap: 0.4rem; list-style: none; }

/* Article body — long-form prose (comparisons, articles). Readable line-length,
   distinct from the wider .container used for tables/hero/cards on the same page. */
.article-body {
  max-width: 68ch;
  margin-inline: auto;
}
.article-body h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
}
.article-body p {
  margin: 0 0 var(--space-5);
  color: var(--color-text);
}
.article-body p:first-child { margin-top: 0; }
.article-body a { color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 3px; }

/* Inline prose link — for cross-links inside .hero-sub / .cta-band p / any
   non-.article-body copy that needs a visible in-text link. */
.text-link { color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover, .text-link:focus-visible { color: var(--color-primary); }

/* Content card grid — landing pages with few items (comparisons, polls, etc.)
   1-3 items: centered single row. 4+: use .grid.grid-3 instead. */
.content-grid-centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
}
.content-grid-centered .card {
  flex: 1 1 320px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
}
.content-card-link {
  margin-top: auto;
  padding-top: var(--space-3);
  font-weight: 600;
  color: var(--color-primary-dark);
}

/* Soft reassurance callout */
.soft-callout {
  text-align: center;
  color: var(--color-text-soft);
  font-size: 0.92rem;
  max-width: 60ch;
  margin: 0 auto;
}

/* ===== 5) Motion (design-system — Expressive) =====
   Entrance: CSS-only load animation — `.reveal-onload` (+ `.delay-1`…`.delay-4` for
   stagger). Deliberately NOT a JS/IntersectionObserver scroll-trigger: a page with any
   hand-written <script> (menu drawer aside — that one's CMS-injected, not authored)
   fails a bulk ZIP import outright and goes missing from the site. This stays
   JS-free so shipped pages import safely regardless of menu strategy. Hover feedback
   lives on `.btn`/`.card` already (soft brand = lift + shadow). Accent moment:
   `.cta-pulse` on the ONE primary hero CTA only — a slow, low-amplitude scale pulse. */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal-onload {
  animation: reveal-up var(--transition-slow) var(--easing-smooth) both;
}
.reveal-onload.delay-1 { animation-delay: 0.12s; }
.reveal-onload.delay-2 { animation-delay: 0.24s; }
.reveal-onload.delay-3 { animation-delay: 0.36s; }
.reveal-onload.delay-4 { animation-delay: 0.48s; }

@keyframes cta-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
.cta-pulse {
  animation: cta-pulse 2.4s var(--easing-snap) infinite;
}
.cta-pulse:hover {
  animation-play-state: paused;
}

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