/*
  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: #14100f;
  --color-surface: #1e1918;
  --color-surface-soft: #2a221f;
  --color-text: #f5efe9;
  --color-text-soft: #ab9c93;
  --color-primary: #ff1616;
  --color-primary-dark: #c81010;
  --color-primary-light: #ffb3b0;
  --color-accent: #c9a34a;
  --color-focus: #ff1616;

  /* Typography (brand-guidelines) */
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", Helvetica, 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. */
  /* Dating Affairs - discreet/upscale/editorial direction: refined logo presence,
     sharp square cards, no shadow, thin hairline border, subtle motion only. */
  --logo-height: 2.25rem;    /* refined - simple wordmark, elegant/premium vibe */
  --logo-max-width: 20rem;
  --header-bg: var(--color-surface);   /* dark surface - matches the logo's dark-background requirement */
  --header-fg: var(--color-text);
  --btn-radius: var(--radius-sm);      /* sharp, not pill - editorial restraint */
  --card-radius: 0;                    /* square cards - magazine/editorial feel */
  --card-shadow: none;                 /* flat, no shadow - sharp language uses colour/border, not elevation */
  --card-border: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
  --chip-radius: var(--radius-sm);

  /* Motion - Subtle level: easing tokens for entrance fade/rise + scroll-reveal */
  --easing-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 480ms var(--easing-smooth);
}

/* Logo grows on wider screens - override the dial at the breakpoint, never per-page. */
@media (min-width: 1024px) {
  :root { --logo-height: 2.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%;
}

/* Motion - Subtle level (design-system). CSS-only on-load fade + short rise -
   no IntersectionObserver/scroll-trigger, because this site ships zero JavaScript
   site-wide. Reduced-motion is handled globally above (animation-duration
   collapses to ~0), so this degrades to an instant, fully-visible state. */
@keyframes reveal-fade-rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.js-reveal {
  animation: reveal-fade-rise var(--transition-slow) both;
}

/* Native menu - CSS-only mobile toggle (checkbox hack), no JavaScript.
   Site-wide "no JS" requirement means the drawer can't use the reusable
   inline <script> from native-menu.md; this checkbox+label pattern gets the
   same collapsible mobile nav with zero script. */
.nav-toggle-checkbox { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; padding: var(--space-2); cursor: pointer; }
.nav-toggle-bar { width: 24px; height: 2px; background: var(--header-fg); display: block; }
.site-nav .nav-list { display: flex; align-items: center; gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.site-nav .nav-list a { color: var(--header-fg); font-weight: 600; }
.site-nav .nav-list a:hover { color: var(--color-primary); }

@media (max-width: 767px) {
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 20rem);
    background: var(--color-surface); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform var(--transition-base);
    padding: var(--space-8) var(--space-6);
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
  }
  .nav-toggle-checkbox:checked ~ .site-nav { transform: translateX(0); }
  .site-nav .nav-list { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
}
@media (min-width: 768px) { .nav-toggle { display: none; } }

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

/* Featured card - full width, used for a landing's lead item (e.g. featured article) */
.card-featured { width: 100%; }

/* Card thumbnail image - used on listing/landing card grids (comparisons, articles, etc.) */
.card-img {
  border-radius: var(--card-radius);
  margin-bottom: var(--space-3);
  width: 100%;
  object-fit: cover;
}

/* 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 imagery disclaimer - small but legible, site-wide (design-system / brand rule) */
.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-soft);
  margin-top: var(--space-4);
  max-width: 70ch;
}

/* Hero-split pattern (references/patterns/hero-split.md) - used on comparison pages */
.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);
  margin: 0 0 var(--space-2);
}

/* Full-bleed hero - homepage only. Traditional dating-site landing shape: a
   full-width photo with a headline/CTA overlay, rather than a split two-column
   hero. The overlay gradient keeps --color-text (already light, dark theme)
   readable regardless of what's under it. */
.hero-full {
  position: relative;
  min-height: min(46rem, 88vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero-full { align-items: center; }
}
.hero-full-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}
.hero-full-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--color-bg) 88%, transparent) 0%,
    color-mix(in srgb, var(--color-bg) 45%, transparent) 35%,
    transparent 70%
  );
}
@media (min-width: 768px) {
  .hero-full-overlay {
    background: linear-gradient(
      to right,
      color-mix(in srgb, var(--color-bg) 82%, transparent) 0%,
      color-mix(in srgb, var(--color-bg) 55%, transparent) 32%,
      color-mix(in srgb, var(--color-bg) 15%, transparent) 55%,
      transparent 78%
    );
  }
}
.hero-full-content {
  position: relative;
  z-index: 2;
  padding: var(--space-12) 0 var(--space-10);
  max-width: 34rem;
}
@media (min-width: 768px) {
  .hero-full { min-height: min(50rem, 92vh); }
  /* Pin the text block to the left edge (over the darker hair area of the
     photo) instead of letting .container's auto margins center it - centered
     placement pushed the copy into the woman's face on wider screens. */
  .hero-full .container.hero-full-content {
    margin-inline: 0;
    padding-left: clamp(2rem, 7vw, 5rem);
    max-width: 30rem;
  }
}

/* Section heading - used above feature/how-it-works grids */
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 var(--space-2);
  text-align: center;
}
.section-sub {
  color: var(--color-text-soft);
  text-align: center;
  max-width: 56ch;
  margin: 0 auto var(--space-8);
}

/* Centered container content - e.g. a closing CTA section with no grid */
.text-center { text-align: center; }

/* Alternate section background - subtle tint to separate sections without a hard border */
.section-alt {
  background: color-mix(in srgb, var(--color-surface) 60%, transparent);
}

/* Centered CTA row, e.g. below a "how it works" grid */
.hero-cta-center {
  justify-content: center;
  margin-top: var(--space-8);
}

/* Comparison page - at-a-glance table + theme sections (first use: /comparisons) */
.compare-hero {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-10) 0 var(--space-6);
}
@media (min-width: 768px) {
  .compare-hero { grid-template-columns: 1.2fr 1fr; }
}
.compare-hero img {
  width: 100%;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  object-fit: cover;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
}
.compare-table th,
.compare-table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border: var(--card-border);
  font-size: 0.95rem;
}
.compare-table th {
  background: var(--color-surface);
  font-family: var(--font-heading);
  font-weight: 700;
}
.compare-table td:first-child {
  color: var(--color-text-soft);
  font-weight: 600;
  width: 28%;
}
.theme-section { padding: var(--space-8) 0; border-top: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); }
.theme-section:first-of-type { border-top: none; }
.theme-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 0 0 var(--space-3);
}

/* Article page (references/page-types/article.md) - first use: /articles/* */
.article-header {
  padding: var(--space-10) 0 var(--space-6);
  max-width: 46rem;
  margin: 0 auto;
}
.article-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 var(--space-4);
}
.article-byline {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-soft);
  font-size: 0.9rem;
}
.article-hero {
  max-width: 60rem;
  margin: 0 auto var(--space-8);
}
.article-hero img {
  width: 100%;
  border-radius: var(--card-radius);
  border: var(--card-border);
  object-fit: cover;
}
.article-body {
  max-width: 46rem;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
}
.article-body h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin: var(--space-8) 0 var(--space-3);
}
.article-body p { margin: 0 0 var(--space-4); }
.article-body blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--color-primary);
  color: var(--color-text-soft);
  font-family: var(--font-heading);
  font-style: italic;
}
.article-body ul,
.article-body ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.4rem;
}
.article-body li { margin-bottom: var(--space-2); }
.article-tags {
  max-width: 46rem;
  margin: var(--space-8) auto 0;
}

/* Location landing hero (countries.html/cities.html) - gradient block, text-only,
   matching the comparisons/articles landing pattern. Individual country/city detail
   pages use .compare-hero (image + text) instead, so every country and city page
   carries a photo; only the top-level landing heroes stay photo-free since they list
   many places at once rather than represent a single one. */
.location-hero {
  padding: var(--space-12) var(--space-6);
  background: linear-gradient(135deg, var(--color-surface), var(--color-bg));
  border: var(--card-border);
  text-align: center;
}
.location-hero .eyebrow { justify-content: center; }
.location-hero .hero-sub { margin-inline: auto; }
.location-list {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 600px) {
  .location-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .location-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.location-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Safety page (references/page-types/safety.md) - quiet-confidence feature grid */
.safety-category { padding: var(--space-8) 0; border-top: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); }
.safety-category:first-of-type { border-top: none; }
.safety-category-heading {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 0 0 var(--space-2);
}
.safety-category-desc { color: var(--color-text-soft); margin: 0 0 var(--space-5); }
.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: var(--space-3);
}
.protects-label {
  display: block;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-1);
}

/* Pricing page (references/page-types/pricing.md) - editorial tier comparison,
   not a transactional purchase form. */
.pricing-hero { max-width: 42rem; margin: 0 auto; }
.tier-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-6);
  border: var(--card-border);
  border-radius: var(--card-radius);
}
.tier-card-light {
  background: var(--color-surface);
  color: var(--color-text);
}
.tier-card-dark {
  background: var(--color-text);
  color: var(--color-surface);
  border-color: color-mix(in srgb, var(--color-surface) 25%, transparent);
}
.tier-card-dark .tier-tagline,
.tier-card-dark .card-text,
.tier-card-dark .price-currency-code { color: color-mix(in srgb, var(--color-surface) 75%, transparent); }
.tier-logo { height: 1.75rem; width: auto; display: block; }
/* Tier wordmarks ship with a hardcoded fill; inline + currentColor lets each
   card set the right contrast (dark card needs a light mark, light card needs
   a dark mark) instead of hardcoding a fill color from the source file that
   may be invisible against a different background. */
.tier-badge { display: inline-block; }
.tier-badge--vip { color: var(--color-primary); }
.tier-badge--vip-plus { color: var(--color-bg); }
.tier-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-text-soft);
  margin: 0;
}
.tier-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}
.price-block {
  border-top: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
  padding-top: var(--space-5);
}
.tier-card-dark .price-block { border-top-color: color-mix(in srgb, var(--color-surface) 20%, transparent); }
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}
.price-row-prime { font-size: 1.15rem; font-weight: 700; }
.price-row-secondary { font-size: 1rem; }
.price-currency-code {
  font-family: var(--font-heading);
  color: var(--color-text-soft);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.price-values { display: flex; gap: var(--space-3); }
.price-others-heading {
  margin: var(--space-5) 0 var(--space-2);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-soft);
}
.tier-card-dark .price-others-heading { color: color-mix(in srgb, var(--color-surface) 65%, transparent); }
.price-others-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2) var(--space-4);
  font-size: 0.85rem;
}
@media (max-width: 480px) {
  .price-others-grid { grid-template-columns: 1fr; }
}
.length-note {
  text-align: center;
  color: var(--color-text-soft);
  max-width: 40rem;
  margin: var(--space-6) auto 0;
}
.trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-6);
  color: var(--color-text-soft);
}
@media (max-width: 480px) {
  .trust-strip { flex-direction: column; align-items: center; gap: var(--space-2); }
}

/* Features page (references/page-types/features.md) - platform availability rows,
   three-tier cards (Classic/VIP/VIP+), reuses .compare-table for the comparison grid. */
.platform-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.platform-row:first-of-type { border-top: none; }
.platform-icon {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.platform-icon img { width: 100%; height: 100%; object-fit: contain; }
/* Apple/Android brand marks ship with a fixed dark fill and must stay canonical
   (no recoloring), which is unreadable on this brand's dark background - a
   small light chip gives them contrast without altering the marks themselves. */
.platform-icon--brand {
  background: var(--color-text);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
}
.platform-icon--brand img { filter: none; }
.platform-copy { flex: 1; }
.platform-name { font-weight: 700; margin: 0 0 var(--space-1); }
.platform-desc { color: var(--color-text-soft); margin: 0; }
.platform-availability {
  flex-shrink: 0;
  font-size: 0.82rem;
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tier-card-neutral {
  background: var(--color-surface-soft);
  color: var(--color-text);
}
.tier-card-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 0;
}
.tier-card > * + .tier-features { margin-top: 0; }

/* Step list - "how it works" */
.step-card {
  text-align: center;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid color-mix(in srgb, var(--color-primary) 40%, transparent);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

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