/*
Theme Name: Aurelis Markets
Theme URI: https://aurelismarkets.example
Author: Aurelis Markets
Description: WordPress theme for a modern CFD / multi-asset broker with a founders-club programme. Warm forest-dark palette with emerald and sand accents, elegant serif + modern sans typography. Includes Newsroom and Academy custom post types, WP Customizer, pricing-tier comparator, and embedded TradingView widgets.
Version: 1.0.0
License: GPL v2 or later
Text Domain: aurelis-markets
Tags: business, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Manrope:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* =====================================================
   TOKENS — warm forest, emerald + sand
   ===================================================== */
:root {
  --bg:           #0E1D19;
  --bg-elev:      #14302A;
  --surface:      #1B4138;
  --surface-2:    #275247;
  --cream-bg:     #FAF7F0;
  --border:       rgba(20, 184, 166, 0.18);
  --border-soft:  rgba(254, 243, 199, 0.08);

  --emerald:      #14B8A6;
  --emerald-soft: #5EEAD4;
  --emerald-deep: #0F766E;
  --sand:         #FBBF77;
  --sand-soft:    #FCD9A9;
  --cream:        #FEF3C7;
  --rust:         #DC7F4A;

  --text:         #F0FDF4;
  --text-dim:     #C9DDD5;
  --text-muted:   #92A8A0;
  --text-faint:   #6B847C;

  --up:           #34D399;
  --down:         #F87171;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --container:    1220px;
  --radius:       16px;
  --radius-lg:    26px;
  --radius-xl:    36px;

  --ease:         cubic-bezier(.22,.61,.36,1);
  --t-fast:       180ms;
  --t-med:        300ms;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 90% 0%, rgba(20, 184, 166, 0.10), transparent 55%),
    radial-gradient(900px 540px at 5% 90%, rgba(251, 191, 119, 0.10), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* TYPOGRAPHY — serif display gives Aurelis its quiet-capital feel */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.45rem; font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; font-family: var(--font-body); }
p { margin: 0 0 1em; color: var(--text-dim); }
.lede { font-size: 1.18rem; color: var(--text-dim); max-width: 64ch; font-family: var(--font-body); }

.italic-accent { font-style: italic; color: var(--sand); font-family: var(--font-display); font-weight: 400; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px;
  background: var(--sand);
}

.mono { font-family: var(--font-mono); }

/* LAYOUT */
.container {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 24px;
}
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section--tight { padding: clamp(48px, 6vw, 88px) 0; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* NAVBAR */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 29, 25, 0.78);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--border-soft);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 600;
  letter-spacing: -0.01em; color: var(--text);
}
.brand__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-deep) 100%);
  box-shadow: 0 6px 16px rgba(20, 184, 166, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.18);
}
.brand__mark svg { width: 18px; height: 18px; color: var(--cream); }

.nav__links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  font-size: 0.95rem; color: var(--text-dim);
  transition: color var(--t-fast) var(--ease);
  font-weight: 500;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--sand); }
.nav__cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text);
  width: 42px; height: 42px;
  border-radius: 10px;
  align-items: center; justify-content: center;
}

/* WordPress admin bar offset — keeps the sticky nav clear of the
   32px admin bar shown to logged-in admins. */
.admin-bar .nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.96rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all var(--t-med) var(--ease);
  white-space: nowrap; cursor: pointer;
}
.btn:focus-visible { outline: 2px solid var(--sand-soft); outline-offset: 3px; }
.btn--primary {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-deep) 100%);
  color: var(--cream);
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.28);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(20, 184, 166, 0.42); }
.btn--sand {
  background: linear-gradient(135deg, var(--sand) 0%, var(--rust) 100%);
  color: #1A1208;
  box-shadow: 0 8px 24px rgba(251, 191, 119, 0.32);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(254, 243, 199, 0.16);
}
.btn--ghost:hover { background: rgba(254, 243, 199, 0.04); border-color: rgba(254, 243, 199, 0.24); }
.btn--lg { padding: 16px 32px; font-size: 1.02rem; }
.btn--sm { padding: 8px 16px; font-size: 0.86rem; }

/* HERO — big serif display, generous space */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 96px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 460px at 88% 22%, rgba(20, 184, 166, 0.16), transparent 55%),
    radial-gradient(600px 400px at 8% 80%, rgba(251, 191, 119, 0.14), transparent 55%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 920px; }
.hero__lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-dim); max-width: 60ch; margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* STATS */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: 64px;
}
.stat {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: left;
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 500; color: var(--sand);
  letter-spacing: -0.02em; line-height: 1;
}
.stat__label {
  display: block; margin-top: 14px;
  font-family: var(--font-body);
  font-size: 0.85rem; color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* CARDS — softer, more rounded than Meridian's glass */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--t-med) var(--ease);
  height: 100%;
}
.card:hover {
  border-color: var(--border);
  background: var(--surface);
  transform: translateY(-3px);
}
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.22), rgba(251, 191, 119, 0.16));
  border: 1px solid var(--border);
  margin-bottom: 22px;
}
.card__icon svg { width: 22px; height: 22px; color: var(--emerald-soft); }
.card h3 { color: var(--text); margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.96rem; margin: 0; }

/* PRICING — the centerpiece, since this theme's primary pattern is pricing-focused */
.plans-toggle {
  display: inline-flex;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 4px;
  margin: 0 auto 48px;
}
.plans-toggle button {
  font-family: var(--font-body);
  font-size: 0.92rem; font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  border: 0; background: transparent;
  color: var(--text-muted);
  transition: all var(--t-fast) var(--ease);
}
.plans-toggle button[aria-pressed="true"] {
  background: var(--sand);
  color: #1A1208;
  box-shadow: 0 4px 12px rgba(251, 191, 119, 0.24);
}

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.plan {
  position: relative;
  padding: 40px 32px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  display: flex; flex-direction: column;
  transition: all var(--t-med) var(--ease);
}
.plan:hover { border-color: var(--border); }
.plan--featured {
  border: 1.5px solid var(--sand);
  background:
    radial-gradient(420px 220px at 80% 10%, rgba(251, 191, 119, 0.10), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-elev) 100%);
  box-shadow: 0 24px 50px rgba(20, 184, 166, 0.10);
}
.plan__badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--sand); color: #1A1208;
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em;
  padding: 7px 16px;
  border-radius: 999px;
  text-transform: uppercase;
}
.plan__name {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 500;
  margin: 0 0 8px;
  color: var(--text);
}
.plan__tag {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 28px;
  min-height: 3em;
}
.plan__price {
  display: flex; align-items: baseline; gap: 8px;
  padding: 20px 0 24px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 28px;
}
.plan__price-num {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 500;
  color: var(--sand);
  letter-spacing: -0.03em; line-height: 1;
}
.plan__price-per { color: var(--text-muted); font-size: 0.92rem; }
.plan__price-fine { display: block; color: var(--text-faint); font-size: 0.82rem; margin-top: 8px; }
.plan__features { list-style: none; padding: 0; margin: 0 0 32px; flex-grow: 1; }
.plan__features li {
  display: flex; gap: 12px;
  padding: 9px 0;
  color: var(--text-dim); font-size: 0.95rem;
}
.plan__features li::before {
  content: ""; flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23FBBF77'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

/* FEATURE COMPARISON TABLE */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-body);
}
.compare-table th, .compare-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.compare-table thead th {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
  background: var(--surface);
}
.compare-table thead th:first-child { text-align: left; }
.compare-table tbody th {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  width: 36%;
}
.compare-table tbody td { text-align: center; color: var(--text); font-weight: 500; }
.compare-table .featured-col { background: rgba(251, 191, 119, 0.05); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-table .check { color: var(--emerald); font-size: 1.2rem; }
.compare-table .dash { color: var(--text-faint); }

/* INSTRUMENT GRID */
.inst-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; flex-direction: column;
  gap: 8px;
  transition: all var(--t-fast) var(--ease);
}
.inst-card:hover { border-color: var(--border); }
.inst-card__sym {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}
.inst-card__name { color: var(--text-muted); font-size: 0.86rem; }
.inst-card__row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 12px;
}
.inst-card__price { font-family: var(--font-mono); font-weight: 600; color: var(--text); }
.inst-card__delta { font-family: var(--font-mono); font-size: 0.84rem; }
.delta--up { color: var(--up); }
.delta--down { color: var(--down); }

/* FOUNDERS PROGRESS BAR */
.founders-progress {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
}
.founders-progress__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.founders-progress__bar {
  height: 8px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.founders-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--sand) 100%);
  border-radius: 999px;
  transition: width var(--t-med) var(--ease);
}
.founders-progress__caption {
  display: flex; justify-content: space-between;
  margin-top: 12px;
  font-size: 0.84rem; color: var(--text-muted);
  font-family: var(--font-mono);
}

/* POST CARDS (Newsroom) */
.post-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  height: 100%;
  transition: all var(--t-med) var(--ease);
}
.post-card:hover { border-color: var(--border); transform: translateY(-3px); }
.post-card__thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  position: relative;
  display: flex; align-items: flex-end;
  padding: 18px 24px;
}
.post-card__thumb::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 25% 35%, rgba(20, 184, 166, 0.20), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(251, 191, 119, 0.16), transparent 55%);
  pointer-events: none;
}
.post-card__tag {
  position: relative; z-index: 1;
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 600;
  color: var(--sand);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(14, 29, 25, 0.6);
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.post-card__body { padding: 24px 26px; display: flex; flex-direction: column; flex-grow: 1; }
.post-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem; line-height: 1.25;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--text);
}
.post-card__excerpt { color: var(--text-muted); font-size: 0.94rem; margin: 0; flex-grow: 1; }
.post-card__meta {
  margin-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.84rem; color: var(--text-faint);
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
}
.post-card__meta a {
  color: var(--sand); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}

/* FAQ */
.faq { display: grid; gap: 0; }
.faq__item {
  border-bottom: 1px solid var(--border-soft);
  padding: 28px 0;
}
.faq__item:first-child { border-top: 1px solid var(--border-soft); }
.faq__q {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 500;
  margin: 0 0 12px;
  color: var(--text);
  cursor: pointer;
  display: flex; justify-content: space-between; gap: 24px;
  align-items: baseline;
}
.faq__q::after {
  content: "+";
  font-family: var(--font-display);
  color: var(--sand);
  font-size: 1.8rem;
  line-height: 1;
  transition: transform var(--t-fast) var(--ease);
}
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a { color: var(--text-dim); margin: 0; }

/* TESTIMONIAL */
.quote {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  gap: 22px;
  height: 100%;
}
.quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--text);
  margin: 0; flex-grow: 1;
  font-weight: 400;
}
.quote blockquote::before {
  content: "\"";
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.3;
  color: var(--sand);
  display: inline-block;
  margin-right: 4px;
}
.quote__author {
  font-size: 0.88rem; color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
  padding-top: 18px;
}
.quote__author strong { color: var(--text); font-weight: 600; }

/* FORMS */
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__label {
  font-family: var(--font-body);
  font-size: 0.84rem; font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.form__input, .form__textarea, .form__select {
  font-family: var(--font-body);
  font-size: 1rem; color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px 18px;
  transition: all var(--t-fast) var(--ease);
  width: 100%;
}
.form__input::placeholder, .form__textarea::placeholder { color: var(--text-faint); }
.form__input:focus, .form__textarea:focus, .form__select:focus {
  outline: none;
  border-color: var(--sand);
  box-shadow: 0 0 0 3px rgba(251, 191, 119, 0.18);
}
.form__textarea { min-height: 150px; resize: vertical; }
.form__consent {
  display: flex; gap: 12px;
  font-size: 0.86rem; color: var(--text-muted);
  align-items: flex-start;
}
.form__consent input { margin-top: 4px; accent-color: var(--sand); }
.form__hint { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* AUTH (login page) */
.auth-section {
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 24px;
  position: relative; overflow: hidden;
}
.auth-section::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(560px 360px at 80% 20%, rgba(20, 184, 166, 0.14), transparent 58%),
    radial-gradient(480px 320px at 16% 84%, rgba(251, 191, 119, 0.14), transparent 58%);
  pointer-events: none;
}
.auth-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 48px 42px;
}
.auth-card__brand { display: flex; justify-content: center; margin-bottom: 24px; }
.auth-card h1 { font-size: 2.2rem; text-align: center; margin-bottom: 6px; }
.auth-card__sub { text-align: center; color: var(--text-muted); font-size: 0.94rem; margin-bottom: 32px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.auth-card__alt {
  text-align: center; margin: 28px 0 0;
  padding-top: 24px; border-top: 1px solid var(--border-soft);
  color: var(--text-muted); font-size: 0.92rem;
}
.auth-note {
  margin: 18px 0 0;
  font-size: 0.8rem; color: var(--text-faint);
  text-align: center; line-height: 1.55;
}
@media (max-width: 480px) { .auth-card { padding: 38px 28px; } }

/* CTA */
.cta-banner {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 80px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(800px 420px at 85% 15%, rgba(20, 184, 166, 0.20), transparent 55%),
    radial-gradient(700px 400px at 12% 88%, rgba(251, 191, 119, 0.18), transparent 55%),
    var(--bg-elev);
  border: 1px solid var(--border);
}
.cta-banner h2 { max-width: 22ch; }
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* FOOTER */
.site-footer {
  background: #081411;
  border-top: 1px solid var(--border-soft);
  padding: 80px 0 32px;
  font-size: 0.92rem;
}
.footer__grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 56px; margin-bottom: 56px;
}
.footer h4 {
  font-family: var(--font-display);
  font-size: 1rem; letter-spacing: 0.02em;
  color: var(--sand);
  margin-bottom: 18px; font-weight: 500;
}
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer__links a { color: var(--text-dim); transition: color var(--t-fast) var(--ease); }
.footer__links a:hover { color: var(--sand); }
.footer__risk {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--sand);
  padding: 22px 26px;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.85rem; line-height: 1.65;
  margin-bottom: 32px;
}
.footer__legal {
  display: flex; flex-wrap: wrap; gap: 18px;
  justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-faint); font-size: 0.84rem;
}
.footer__legal a { color: var(--text-muted); }

/* UTIL */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sand { color: var(--sand); }
.text-emerald { color: var(--emerald-soft); }
.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; }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.tv-widget {
  min-height: 300px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tv-widget--lg { min-height: 500px; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  font-size: 0.78rem; font-weight: 600;
  background: rgba(251, 191, 119, 0.12);
  color: var(--sand);
  border: 1px solid rgba(251, 191, 119, 0.22);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* Photo panel — side-by-side visual for section intros */
.photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  aspect-ratio: 3 / 4;
}
.photo-card img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 600ms var(--ease);
}
.photo-card:hover img { transform: scale(1.03); }
.photo-card::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(14, 29, 25, 0.85) 100%),
    linear-gradient(135deg, rgba(20, 184, 166, 0.10) 0%, transparent 35%, rgba(251, 191, 119, 0.08) 100%);
  pointer-events: none;
}
.photo-card__caption {
  position: absolute;
  left: 28px; right: 28px; bottom: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.photo-card__caption .tag { align-self: flex-start; }
.photo-card__caption h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav__links--open {
    display: flex;
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border-soft);
    padding: 12px 24px 20px;
  }
  .nav__links--open li { padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
  .nav__links--open li:last-child { border-bottom: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .compare-table { font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: 12px 14px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__legal { flex-direction: column; align-items: flex-start; gap: 10px; }
}

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

/* WordPress core */
.alignleft  { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-muted); }
