/* ====================================================
   RADIX AG — SHARED STYLES
   ==================================================== */

/* ====================================================
   CSS VARIABLES — Light & Dark Theme
   ==================================================== */
:root[data-theme="light"] {
  --bg: #F0EEE9;
  --bg-elevated: #FFFFFF;
  --bg-section: #FAF8F3;
  --surface: #FFFFFF;
  --primary: #204829;
  --primary-soft: #2D5C36;
  --accent: #7BC47F;
  --accent-soft: #A8D9AC;
  --amber: #C49B5A;
  --text: #1A1A1A;
  --text-muted: #555555;
  --text-subtle: #888888;
  --border: #E5E0D5;
  --border-strong: #C9C3B5;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-strong: 0 16px 48px rgba(0, 0, 0, 0.12);
  --code-bg: #F5F2EC;
  --hero-overlay: linear-gradient(135deg, rgba(32,72,41,0.06) 0%, rgba(123,196,127,0.03) 100%);
}

:root[data-theme="dark"] {
  --bg: #0F1F17;
  --bg-elevated: #182921;
  --bg-section: #142620;
  --surface: #1D2E26;
  --primary: #7BC47F;
  --primary-soft: #5BAA61;
  --accent: #A8D9AC;
  --accent-soft: #C8E8CB;
  --amber: #D4B387;
  --text: #F0EEE9;
  --text-muted: #B5C2BC;
  --text-subtle: #859189;
  --border: #2A3E34;
  --border-strong: #3A5044;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-strong: 0 16px 48px rgba(0, 0, 0, 0.6);
  --code-bg: #0A1612;
  --hero-overlay: linear-gradient(135deg, rgba(123,196,127,0.05) 0%, rgba(32,72,41,0.1) 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

/* ====================================================
   HEADER & NAVIGATION
   ==================================================== */
header {
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo-link { display: flex; align-items: center; gap: 0.6rem; }
.logo-link img { height: 38px; width: auto; }
.logo-text {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-muted);
  padding: 0.3rem 0;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-links a.cta {
  background: var(--primary);
  color: white;
  padding: 0.55rem 1.2rem;
  border-radius: 100px;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s;
}
.nav-links a.cta:hover {
  transform: translateY(-1px);
  background: var(--primary-soft);
  color: white;
}
.nav-links a.cta::after { display: none; }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 1rem;
}
.theme-toggle:hover {
  background: var(--surface);
  border-color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-elevated);
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border);
  }
}

/* ====================================================
   PAGE STRUCTURE
   ==================================================== */
main { min-height: 60vh; }

section {
  padding: 5rem 1.5rem;
  position: relative;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 850px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.section-lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 3rem;
  line-height: 1.6;
}

/* ====================================================
   PAGE HEADER (used on subpages)
   ==================================================== */
.page-header {
  padding: 5rem 1.5rem 3rem;
  background: var(--hero-overlay), var(--bg);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.page-header h1 .italic {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}

.page-header p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.page-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 0.4rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

/* ====================================================
   HERO (home page only)
   ==================================================== */
.hero {
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  background: var(--hero-overlay), var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.08;
  top: -200px;
  right: -200px;
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
}

.hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 0.4rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 1.8rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero h1 .accent { color: var(--primary); }
.hero h1 .italic { font-family: 'Crimson Pro', serif; font-style: italic; font-weight: 400; color: var(--primary); }

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1rem 2.2rem;
  border-radius: 100px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
  color: white;
}

.hero-secondary {
  margin-left: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ====================================================
   BENEFITS / FEATURE CARDS
   ==================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature {
  background: var(--surface);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.feature h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ====================================================
   STEPS / NUMBERED CARDS
   ==================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  background: var(--surface);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.step-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.step-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.step.expanded {
  padding: 2.5rem 2rem;
}

.step.expanded .step-body {
  font-size: 1rem;
}

.step.expanded .step-body p {
  margin-bottom: 0.8rem;
}

/* ====================================================
   HORIZONTAL STEPS (used on How It Works page)
   ==================================================== */
.steps-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

.step-horizontal {
  background: var(--surface);
  padding: 2rem 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.step-horizontal:hover {
  transform: translateX(4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.step-horizontal .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  font-weight: 800;
  font-size: 1.6rem;
  border-radius: 50%;
  margin-bottom: 0;
  flex-shrink: 0;
}

.step-horizontal .step-content {
  display: flex;
  flex-direction: column;
}

.step-horizontal .step-title {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.step-horizontal .step-body {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.step-horizontal .step-body p {
  margin-bottom: 0.8rem;
}
.step-horizontal .step-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .step-horizontal {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.8rem;
  }
  .step-horizontal .step-num {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
}

/* ====================================================
   PRICING TIERS
   ==================================================== */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.tier:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.tier.featured {
  border-color: var(--primary);
  border-width: 2px;
  background: linear-gradient(to bottom right, var(--surface), var(--bg-section));
}

.tier-badge {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  text-transform: uppercase;
}

.tier h3 {
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.tier-price {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.tier-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-subtle);
}

.tier-tagline {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.tier ul {
  list-style: none;
  margin-bottom: 1.8rem;
}

.tier ul li {
  padding: 0.5rem 0;
  color: var(--text);
  font-size: 0.93rem;
  position: relative;
  padding-left: 1.5rem;
}
.tier ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.tier-cta {
  display: block;
  text-align: center;
  background: var(--primary);
  color: white;
  padding: 0.9rem;
  border-radius: 100px;
  font-weight: 600;
  transition: background 0.2s;
}
.tier-cta:hover {
  background: var(--primary-soft);
  color: white;
}

/* ====================================================
   PRODUCT CARDS
   ==================================================== */
.products-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: center;
}
@media (max-width: 800px) { .products-intro { grid-template-columns: 1fr; gap: 2rem; } }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.product-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.product-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ====================================================
   LEARNING / ARTICLES
   ==================================================== */
.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.2s, border-color 0.2s;
}
.article:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.article-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.6rem;
}

.article h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.article-body p { margin-bottom: 0.9rem; }
.article-body p:last-child { margin-bottom: 0; }

.article-body strong { color: var(--text); }

/* ====================================================
   SOURCES / RESEARCH
   ==================================================== */
.sources-categories {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3rem;
}

.sources-cat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.sources-cat h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.sources-cat .cat-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.source-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.source-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.source-item:last-child { border-bottom: none; padding-bottom: 0; }

.source-title {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.3rem;
  display: block;
}
.source-title:hover { color: var(--primary); }

.source-meta {
  font-size: 0.85rem;
  color: var(--text-subtle);
  font-style: italic;
}

.source-summary {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ====================================================
   ABOUT PAGE
   ==================================================== */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 880px;
  margin: 0 auto;
}

.about-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

.about-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 1rem;
}

.about-section p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.about-section p strong { color: var(--text); }

.about-section ul {
  list-style: none;
  margin: 1rem 0;
}

.about-section ul li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: var(--text-muted);
  line-height: 1.6;
}
.about-section ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.about-section ul li strong { color: var(--text); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-card {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.value-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.value-card p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.leadership-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 600px) {
  .leadership-card { grid-template-columns: 1fr; }
}

.leader-avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.leader-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.leader-info .title {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.leader-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ====================================================
   CONTACT
   ==================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-item {
  background: var(--surface);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
}

.contact-item .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.contact-item .value {
  font-weight: 600;
  color: var(--text);
  font-size: 1.05rem;
}

.contact-item .value a { color: var(--primary); }

/* Contact form */
.contact-form-section {
  margin-top: 4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.submit-btn:hover {
  background: var(--primary-soft);
  transform: translateY(-1px);
}

/* ====================================================
   FOOTER
   ==================================================== */
footer {
  background: var(--primary);
  color: white;
  padding: 4rem 1.5rem 2rem;
}

[data-theme="dark"] footer {
  background: #0A1612;
  border-top: 1px solid var(--border);
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.footer-brand img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-brand .footer-logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-tagline {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent);
}

/* ====================================================
   UTILITIES
   ==================================================== */
.highlight { color: var(--accent); font-weight: 600; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.section-alt { background: var(--bg-section); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* CTA Section (used on multiple pages) */
.cta-section {
  text-align: center;
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1rem 2.2rem;
  border-radius: 100px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
  color: white;
}

/* ====================================================
   MOBILE RESPONSIVE — Tablet & Phone
   ==================================================== */
@media (max-width: 768px) {
  body { font-size: 16px; }

  nav { padding: 0.8rem 1rem; gap: 0.8rem; }
  .logo-link img { height: 32px; }
  .logo-text { font-size: 1rem; }

  section { padding: 3.5rem 1.2rem; }
  .hero { padding: 4rem 1.2rem 3rem; }
  .page-header { padding: 3rem 1.2rem 2rem; }

  .hero h1 { line-height: 1.1; }
  .hero-sub { font-size: 1.05rem; margin-bottom: 2rem; }

  .hero-secondary {
    margin-left: 0;
    margin-top: 1rem;
    display: block;
  }

  .section-lede { font-size: 1rem; margin-bottom: 2rem; }

  .feature-grid, .steps-grid, .products-grid, .articles, .tiers {
    gap: 1rem;
    margin-top: 2rem;
  }

  .feature, .step, .article, .sources-cat, .tier, .product-card, .contact-item {
    padding: 1.8rem 1.4rem;
  }

  .tier {
    padding: 2rem 1.5rem;
  }

  .tier-price { font-size: 2.2rem; }

  .contact-form-section {
    padding: 2rem 1.4rem;
  }

  .about-section h2 { font-size: 1.5rem; }
  .about-section p { font-size: 1rem; }
}

@media (max-width: 480px) {
  /* Phone-specific tightening */
  nav { padding: 0.7rem 0.9rem; }
  .logo-text { display: none; }

  section { padding: 3rem 1rem; }
  .hero { padding: 3.5rem 1rem 2.5rem; }
  .page-header { padding: 2.5rem 1rem 1.8rem; }

  .hero-tag, .page-tag, .section-tag {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
  }

  .hero-cta, .cta-button {
    padding: 0.9rem 1.6rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .tier {
    padding: 1.8rem 1.3rem;
  }

  .tier-badge {
    right: 1rem;
    font-size: 0.65rem;
  }

  .leader-avatar {
    width: 80px;
    height: 80px;
    font-size: 1.8rem;
    margin: 0 auto;
  }

  .contact-form-section {
    padding: 1.5rem 1.2rem;
    border-radius: 14px;
  }

  .step-horizontal {
    padding: 1.5rem 1.3rem;
  }

  .source-title {
    font-size: 0.95rem;
  }

  .source-summary {
    font-size: 0.88rem;
  }

  .submit-btn {
    width: 100%;
  }
}

/* Ensure form inputs are properly sized on mobile (prevents iOS zoom on focus) */
@media (max-width: 768px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }
}

/* ====================================================
   MOBILE RESPONSIVE — Tablet & Phone
   ==================================================== */
@media (max-width: 768px) {
  body { font-size: 16px; }

  nav { padding: 0.8rem 1rem; gap: 0.8rem; }
  .logo-link img { height: 32px; }
  .logo-text { font-size: 1rem; }

  section { padding: 3.5rem 1.2rem; }
  .hero { padding: 4rem 1.2rem 3rem; }
  .page-header { padding: 3rem 1.2rem 2rem; }

  .hero h1 { line-height: 1.1; }
  .hero-sub { font-size: 1.05rem; margin-bottom: 2rem; }

  .hero-secondary {
    margin-left: 0;
    margin-top: 1rem;
    display: block;
  }

  .section-lede { font-size: 1rem; margin-bottom: 2rem; }

  .feature-grid, .steps-grid, .products-grid, .articles, .tiers {
    gap: 1rem;
    margin-top: 2rem;
  }

  .feature, .step, .article, .sources-cat, .tier, .product-card, .contact-item {
    padding: 1.8rem 1.4rem;
  }

  .tier {
    padding: 2rem 1.5rem;
  }

  .tier-price { font-size: 2.2rem; }

  .contact-form-section {
    padding: 2rem 1.4rem;
  }

  .about-section h2 { font-size: 1.5rem; }
  .about-section p { font-size: 1rem; }

  /* Prevent iOS zoom on input focus */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  /* Phone-specific tightening */
  nav { padding: 0.7rem 0.9rem; }
  .logo-text { display: none; }

  section { padding: 3rem 1rem; }
  .hero { padding: 3.5rem 1rem 2.5rem; }
  .page-header { padding: 2.5rem 1rem 1.8rem; }

  .hero-tag, .page-tag, .section-tag {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
  }

  .hero-cta, .cta-button {
    padding: 0.9rem 1.6rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .tier {
    padding: 1.8rem 1.3rem;
  }

  .tier-badge {
    right: 1rem;
    font-size: 0.65rem;
  }

  .leader-avatar {
    width: 80px;
    height: 80px;
    font-size: 1.8rem;
    margin: 0 auto;
  }

  .contact-form-section {
    padding: 1.5rem 1.2rem;
    border-radius: 14px;
  }

  .step-horizontal {
    padding: 1.5rem 1.3rem;
  }

  .source-title {
    font-size: 0.95rem;
  }

  .source-summary {
    font-size: 0.88rem;
  }

  .submit-btn {
    width: 100%;
  }
}
