/* =========================================================
   APC Revision — Design System
   Palette: deep navy ink + chartered gold
   Type: Fraunces (display) + Inter (body)
   ========================================================= */

:root {
  /* Type scale (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  /* Spacing (4px system) */
  --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;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 680px;
  --content-default: 1040px;
  --content-wide: 1240px;

  /* Fonts */
  --font-display: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- LIGHT ---------- */
:root,
[data-theme='light'] {
  --color-bg: #FBFAF7;
  --color-surface: #FFFFFF;
  --color-surface-2: #F5F2EC;
  --color-surface-offset: #EFEBE2;
  --color-surface-inverse: #0F2B46;

  --color-border: #E4DFD2;
  --color-divider: #EDE7D8;

  --color-text: #0F1A2B;
  --color-text-muted: #5A6779;
  --color-text-faint: #8B94A3;
  --color-text-inverse: #FBFAF7;

  /* Primary: deep navy ink */
  --color-primary: #0F2B46;
  --color-primary-hover: #1A3D5E;
  --color-primary-active: #081A2E;
  --color-primary-tint: #E6ECF2;

  /* Accent: chartered gold */
  --color-gold: #C9A34E;
  --color-gold-hover: #B28D3A;
  --color-gold-active: #8E6F26;
  --color-gold-tint: #F5EDD6;
  --color-gold-soft: #FAF3DF;

  /* Success green (free / positive) */
  --color-success: #3A7D5E;
  --color-success-hover: #2C6349;
  --color-success-tint: #E2EFE8;

  /* Lock state */
  --color-lock-bg: #F5F2EC;
  --color-lock-text: #5A6779;

  --shadow-xs: 0 1px 2px rgba(15, 26, 43, 0.06);
  --shadow-sm: 0 2px 6px rgba(15, 26, 43, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 26, 43, 0.10);
  --shadow-lg: 0 16px 48px rgba(15, 26, 43, 0.14);

  --gradient-hero: linear-gradient(180deg, #FBFAF7 0%, #F5F2EC 100%);
  --gradient-cta: linear-gradient(135deg, #0F2B46 0%, #16375A 100%);
}

/* ---------- DARK ---------- */
[data-theme='dark'] {
  --color-bg: #0A1A2B;
  --color-surface: #0F2337;
  --color-surface-2: #142C44;
  --color-surface-offset: #1A3550;
  --color-surface-inverse: #FBFAF7;

  --color-border: #24415E;
  --color-divider: #1C3650;

  --color-text: #E8EAEE;
  --color-text-muted: #9AA7B8;
  --color-text-faint: #6B7A8E;
  --color-text-inverse: #0F1A2B;

  --color-primary: #E8B964;
  --color-primary-hover: #F3C878;
  --color-primary-active: #D4A74E;
  --color-primary-tint: #1B3552;

  --color-gold: #E8B964;
  --color-gold-hover: #F3C878;
  --color-gold-active: #D4A74E;
  --color-gold-tint: #2A3B52;
  --color-gold-soft: #1F324A;

  --color-success: #6BB28A;
  --color-success-hover: #85C5A0;
  --color-success-tint: #1E3A2D;

  --color-lock-bg: #132A40;
  --color-lock-text: #9AA7B8;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 56px rgba(0, 0, 0, 0.55);

  --gradient-hero: linear-gradient(180deg, #0A1A2B 0%, #0F2337 100%);
  --gradient-cta: linear-gradient(135deg, #0F2337 0%, #1A3550 100%);
}

/* System preference fallback when user hasn't toggled */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0A1A2B;
    --color-surface: #0F2337;
    --color-surface-2: #142C44;
    --color-surface-offset: #1A3550;
    --color-surface-inverse: #FBFAF7;
    --color-border: #24415E;
    --color-divider: #1C3650;
    --color-text: #E8EAEE;
    --color-text-muted: #9AA7B8;
    --color-text-faint: #6B7A8E;
    --color-text-inverse: #0F1A2B;
    --color-primary: #E8B964;
    --color-primary-hover: #F3C878;
    --color-primary-tint: #1B3552;
    --color-gold: #E8B964;
    --color-gold-hover: #F3C878;
    --color-gold-tint: #2A3B52;
    --color-gold-soft: #1F324A;
    --color-success: #6BB28A;
    --color-success-tint: #1E3A2D;
    --color-lock-bg: #132A40;
    --gradient-hero: linear-gradient(180deg, #0A1A2B 0%, #0F2337 100%);
    --gradient-cta: linear-gradient(135deg, #0F2337 0%, #1A3550 100%);
  }
}

/* =========================================================
   Base
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  font-feature-settings: 'ss01', 'cv11';
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role='list'], ol[role='list'] { list-style: none; }

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--color-text);
}

p, li, figcaption {
  text-wrap: pretty;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { text-decoration: underline; }

::selection {
  background: var(--color-gold-tint);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a, button, [role='button'], input, textarea, select {
  transition:
    color var(--transition-interactive),
    background-color var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =========================================================
   Layout primitives
   ========================================================= */

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}
@media (min-width: 1200px) {
  .container { padding-inline: var(--space-10); }
}

.container-narrow { max-width: var(--content-narrow); }
.container-default { max-width: var(--content-default); }

section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}
.section-tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}

/* =========================================================
   Header / Nav
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-divider);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding-block: var(--space-4);
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand svg { flex-shrink: 0; }

.site-nav {
  display: none;
  flex: 1;
  gap: var(--space-6);
  align-items: center;
}
.site-nav a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { color: var(--color-text); text-decoration: none; }
.site-nav a[aria-current='page'] { color: var(--color-text); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.header-actions .login-link {
  display: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
}
.header-actions .login-link:hover { color: var(--color-text); text-decoration: none; }

@media (min-width: 900px) {
  .site-nav { display: flex; }
  .header-actions .login-link { display: inline; }
}

.theme-toggle, .nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid transparent;
}
.theme-toggle:hover, .nav-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
  border-color: var(--color-border);
}

.nav-toggle { display: inline-flex; }
@media (min-width: 900px) { .nav-toggle { display: none; } }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--color-bg);
  z-index: 40;
  padding: var(--space-6) var(--space-5) var(--space-24);
  overflow-y: auto;
  border-top: 1px solid var(--color-divider);
}
.mobile-nav[data-open='true'] { display: block; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.mobile-nav a {
  display: block;
  padding: var(--space-4) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-lg);
  font-weight: 500;
  text-decoration: none;
}
.mobile-nav a:hover { background: var(--color-surface-2); }
.mobile-nav .btn { margin-top: var(--space-4); width: 100%; justify-content: center; }

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-gold);
  color: #1A1306;
  border-color: var(--color-gold);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, var(--shadow-md);
}

.btn-ink {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}
[data-theme='dark'] .btn-ink {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ink:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover {
  background: var(--color-surface-2);
  border-color: var(--color-text-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
}
.btn-ghost:hover { background: var(--color-surface-2); }

.btn-lg { padding: var(--space-4) var(--space-6); font-size: var(--text-base); }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn-block { width: 100%; }

/* Price pill inside primary CTA */
.btn .price-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(15, 26, 43, 0.12);
  font-size: 0.8em;
  font-weight: 700;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  background: var(--gradient-hero);
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 15% 20%, color-mix(in oklab, var(--color-gold) 12%, transparent), transparent 60%),
    radial-gradient(50% 40% at 90% 80%, color-mix(in oklab, var(--color-primary) 8%, transparent), transparent 60%);
  opacity: 0.7;
}
[data-theme='dark'] .hero::before {
  background:
    radial-gradient(60% 50% at 15% 20%, color-mix(in oklab, var(--color-gold) 10%, transparent), transparent 60%),
    radial-gradient(50% 40% at 90% 80%, color-mix(in oklab, var(--color-gold) 6%, transparent), transparent 60%);
}
.hero__inner { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-gold-soft);
  color: var(--color-gold-active);
  border: 1px solid var(--color-gold-tint);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
[data-theme='dark'] .eyebrow {
  color: var(--color-gold);
  background: var(--color-gold-soft);
  border-color: color-mix(in oklab, var(--color-gold) 30%, transparent);
}

.hero h1 {
  font-size: var(--text-2xl);
  margin-block: var(--space-6);
  max-width: 18ch;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.hero h1 em {
  font-style: italic;
  color: var(--color-gold-active);
  font-weight: 500;
}
[data-theme='dark'] .hero h1 em { color: var(--color-gold); }

.hero__lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 54ch;
  margin-bottom: var(--space-8);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.hero__trust {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .hero__trust { grid-template-columns: 1.3fr 1fr 1fr 1fr; align-items: baseline; }
}
.hero__trust p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.metric strong {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  display: block;
  line-height: 1.1;
}
.metric span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* =========================================================
   Section heading block
   ========================================================= */

.section-head {
  max-width: 56ch;
  margin-bottom: var(--space-12);
}
.section-head .eyebrow { margin-bottom: var(--space-4); }
.section-head h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.section-head p {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

/* =========================================================
   Cards & grids
   ========================================================= */

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}
.card--interactive:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.card__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-gold-soft);
  color: var(--color-gold-active);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}
[data-theme='dark'] .card__icon { color: var(--color-gold); }

/* Article card */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}
.article-card:hover {
  text-decoration: none;
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.article-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.article-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.article-card__excerpt {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  flex: 1;
}
.article-card__foot {
  margin-top: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.badge-free {
  background: var(--color-success-tint);
  color: var(--color-success-hover);
  border: 1px solid color-mix(in oklab, var(--color-success) 25%, transparent);
}
[data-theme='dark'] .badge-free { color: var(--color-success); }
.badge-members {
  background: var(--color-gold-soft);
  color: var(--color-gold-active);
  border: 1px solid var(--color-gold-tint);
}
[data-theme='dark'] .badge-members { color: var(--color-gold); }
.badge-neutral {
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.badge-lvl {
  background: var(--color-primary-tint);
  color: var(--color-primary);
  border: 1px solid color-mix(in oklab, var(--color-primary) 20%, transparent);
}
[data-theme='dark'] .badge-lvl { color: var(--color-text); background: var(--color-surface-2); border-color: var(--color-border); }

/* =========================================================
   Competency pills grid
   ========================================================= */

.competency-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .competency-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .competency-grid { grid-template-columns: repeat(3, 1fr); } }

.competency {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.competency__dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-gold);
  margin-top: 10px;
  flex-shrink: 0;
}
.competency__name { font-weight: 600; font-size: var(--text-sm); color: var(--color-text); }
.competency__lvl { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }

/* Competency category header */
.comp-category {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-top: var(--space-8);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}
.comp-category:first-of-type { margin-top: 0; }

/* =========================================================
   Testimonials
   ========================================================= */

.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--color-text);
  flex: 1;
}
.testimonial blockquote::before {
  content: "\201C";
  display: block;
  font-size: 3rem;
  line-height: 0.5;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}
.avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-gold-soft);
  color: var(--color-gold-active);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--text-sm);
  font-family: var(--font-display);
}
[data-theme='dark'] .avatar { color: var(--color-gold); }
.testimonial__author strong { display: block; font-size: var(--text-sm); font-weight: 600; }
.testimonial__author span { font-size: var(--text-xs); color: var(--color-text-muted); }

/* =========================================================
   Pricing
   ========================================================= */

.pricing-card {
  max-width: 520px;
  margin-inline: auto;
  background: var(--color-surface);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.pricing-card::before {
  content: "MEMBERSHIP";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: #1A1306;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.pricing-card .price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-2);
  margin-block: var(--space-4);
}
.pricing-card .price .amount {
  font-family: var(--font-display);
  font-size: clamp(3rem, 1rem + 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-text);
}
.pricing-card .price .currency {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text-muted);
}
.pricing-card .price .once {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-left: var(--space-2);
}
.pricing-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.pricing-card .lede { color: var(--color-text-muted); font-size: var(--text-base); }

.feature-list {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-block: var(--space-8);
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
}
.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 3px;
  background: var(--color-success-tint);
  color: var(--color-success);
  border-radius: var(--radius-full);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233A7D5E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
}
[data-theme='dark'] .feature-list li::before {
  background-color: var(--color-success-tint);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236BB28A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-row svg { color: var(--color-success); }

/* =========================================================
   FAQ
   ========================================================= */

.faq {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.faq__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq__item[open] { border-color: var(--color-gold); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  list-style: none;
  color: var(--color-text);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "";
  width: 20px; height: 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230F2B46' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform var(--transition-interactive);
  flex-shrink: 0;
}
[data-theme='dark'] .faq__q::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23E8EAEE' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}
.faq__item[open] .faq__q::after { transform: rotate(180deg); }
.faq__a {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.65;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-16) var(--space-10);
  margin-top: var(--space-16);
}
.site-footer__grid {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.site-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.site-footer a {
  color: var(--color-text);
  font-size: var(--text-sm);
  text-decoration: none;
}
.site-footer a:hover { color: var(--color-gold-active); text-decoration: none; }
[data-theme='dark'] .site-footer a:hover { color: var(--color-gold); }

.site-footer__legal {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* =========================================================
   CTA banner sections
   ========================================================= */

.cta-panel {
  background: var(--gradient-cta);
  color: var(--color-text-inverse);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 6vw, var(--space-16)) clamp(var(--space-6), 4vw, var(--space-12));
  text-align: center;
  position: relative;
  overflow: hidden;
}
[data-theme='dark'] .cta-panel {
  color: var(--color-text);
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 80% 20%, rgba(201, 163, 78, 0.25), transparent 60%);
  pointer-events: none;
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 {
  font-size: var(--text-xl);
  color: inherit;
  max-width: 22ch;
  margin-inline: auto;
}
.cta-panel p {
  max-width: 52ch;
  margin: var(--space-4) auto var(--space-6);
  color: rgba(255,255,255,0.82);
  font-size: var(--text-base);
}
[data-theme='dark'] .cta-panel p { color: var(--color-text-muted); }

/* =========================================================
   Sticky mobile CTA
   ========================================================= */

.mobile-cta {
  position: fixed;
  left: var(--space-3);
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 40;
  display: flex;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  animation: slide-up 400ms cubic-bezier(0.16, 1, 0.3, 1) 500ms both;
}
[data-theme='dark'] .mobile-cta { background: var(--color-surface-2); color: var(--color-text); border: 1px solid var(--color-border); }
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4);
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm);
}
.mobile-cta a:hover { text-decoration: none; }
.mobile-cta .price-pill {
  background: var(--color-gold);
  color: #1A1306;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-xs);
}
@media (min-width: 900px) { .mobile-cta { display: none; } }
/* Add bottom padding to body on mobile so sticky bar doesn't overlap content */
@media (max-width: 899px) {
  body { padding-bottom: 80px; }
}

/* =========================================================
   Forms
   ========================================================= */

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-sm);
}

.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.field input, .field select, .field textarea {
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-gold-soft);
}
.field .hint { font-size: var(--text-xs); color: var(--color-text-muted); }

/* =========================================================
   Paywall & locked cards
   ========================================================= */

.paywall {
  position: relative;
  margin-top: var(--space-10);
}
.paywall__fade {
  position: absolute;
  top: -80px;
  left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
}
.paywall__box {
  background: var(--color-surface);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  text-align: center;
  box-shadow: var(--shadow-md);
}
.paywall__box .lock {
  width: 56px; height: 56px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-gold-soft);
  color: var(--color-gold-active);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
[data-theme='dark'] .paywall__box .lock { color: var(--color-gold); }
.paywall__box h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.paywall__box p {
  color: var(--color-text-muted);
  max-width: 46ch;
  margin: 0 auto var(--space-6);
}

/* Locked article card (in lists) */
.article-card--locked {
  position: relative;
}
.article-card--locked .article-card__body::after {
  content: "";
  position: absolute;
  inset: auto var(--space-4) var(--space-4) auto;
  width: 28px; height: 28px;
  background: var(--color-gold-soft);
  color: var(--color-gold-active);
  border-radius: var(--radius-full);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C9A34E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='11' rx='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================================================
   Download cards
   ========================================================= */

.download-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.download-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}
.download-card__head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.file-icon {
  flex-shrink: 0;
  width: 48px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-tint);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  position: relative;
  font-family: var(--font-body);
}
[data-theme='dark'] .file-icon { color: var(--color-gold); background: var(--color-gold-soft); }
.file-icon::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 12px; height: 12px;
  background: var(--color-bg);
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}
.download-card h3 {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-1);
}
.download-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}
.download-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  flex: 1;
}

/* =========================================================
   Filters (revision page)
   ========================================================= */

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.filter-group__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.chip {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}
.chip:hover { color: var(--color-text); border-color: var(--color-text-muted); }
.chip[aria-pressed='true'] {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}
[data-theme='dark'] .chip[aria-pressed='true'] {
  background: var(--color-gold);
  color: #1A1306;
  border-color: var(--color-gold);
}

/* =========================================================
   Dashboard preview
   ========================================================= */

.dashboard-hero {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  margin-bottom: var(--space-12);
}
.dashboard-hero h1 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.dashboard-hero p { color: var(--color-text-muted); max-width: 60ch; }

.progress-grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-8);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .progress-grid { grid-template-columns: repeat(3, 1fr); } }

.progress-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.progress-card .pct {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
}
.progress-card .label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}
[data-theme='dark'] .progress-bar { background: var(--color-surface-offset); }
.progress-bar__fill {
  height: 100%;
  background: var(--color-gold);
  border-radius: var(--radius-full);
}

/* Section subheads */
.subhead {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-5);
  margin-top: var(--space-12);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}
.subhead:first-child { margin-top: 0; }

/* Preview watermark */
.preview-mode {
  position: relative;
}
.preview-mode::before {
  content: "PREVIEW — JOIN TO UNLOCK";
  display: block;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-gold-active);
  background: var(--color-gold-soft);
  border: 1px solid var(--color-gold-tint);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  margin: 0 auto var(--space-8);
  width: fit-content;
}
[data-theme='dark'] .preview-mode::before { color: var(--color-gold); }

/* =========================================================
   Utilities
   ========================================================= */

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.stack-3 { display: flex; flex-direction: column; gap: var(--space-3); }
.stack-5 { display: flex; flex-direction: column; gap: var(--space-5); }
.flex-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.space-top-6 { margin-top: var(--space-6); }
.space-top-8 { margin-top: var(--space-8); }
.space-top-12 { margin-top: var(--space-12); }
.hide-mobile { display: none; }
@media (min-width: 700px) { .hide-mobile { display: initial; } .hide-desktop { display: none; } }

/* Hero with image split */
.hero-split {
  display: grid;
  gap: var(--space-10);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .hero-split { grid-template-columns: 1.15fr 1fr; gap: var(--space-16); } }
.hero-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  position: relative;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 5 / 6;
}

/* Section variants */
.section-surface { background: var(--color-surface-2); }
.section-dark { background: var(--color-primary); color: var(--color-text-inverse); }
.section-dark h2, .section-dark h3 { color: inherit; }
.section-dark p { color: rgba(255,255,255,0.82); }
[data-theme='dark'] .section-dark { background: var(--color-surface); }
[data-theme='dark'] .section-dark p { color: var(--color-text-muted); }

/* =========================================================
   Paywall Modal
   ========================================================= */
.paywall-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: rgba(15, 26, 43, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.paywall-modal[data-open='true'] { display: flex; }
.paywall-modal__card {
  background: var(--color-surface);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.paywall-modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.paywall-modal__close:hover { background: var(--color-surface-2); color: var(--color-text); }
