/*
Theme Name: IEP Navigator
Theme URI: https://iepnavigator.com
Author: IEP Navigator
Author URI: https://iepnavigator.com
Description: A custom, fast, SEO-optimized WordPress theme for IEP Navigator — AI-powered special education advocacy tools for parents in the US and Canada.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: iep-navigator
Tags: custom, education, advocacy, accessibility, fast, seo
*/

/* ============================================================
   DESIGN SYSTEM
   ============================================================ */

:root {
  --brand:        #1a5f4a;
  --brand-mid:    #2d8c6b;
  --brand-light:  #e8f5f0;
  --brand-dark:   #0f3d2f;
  --accent:       #c8763a;
  --accent-light: #fdf3eb;
  --accent-dark:  #9a551f;

  --ink:          #1c1c1c;
  --ink-mid:      #444;
  --ink-muted:    #767676;
  --ink-faint:    #a8a8a8;
  --surface:      #ffffff;
  --surface-2:    #f7f8f6;
  --surface-3:    #f0f2ef;
  --border:       rgba(0,0,0,0.08);
  --border-mid:   rgba(0,0,0,0.14);

  --font-display: 'Lora', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);

  --max-w:      1120px;
  --max-w-text: 720px;

  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-mid); }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }
button { cursor: pointer; font-family: var(--font-body); }
ul, ol { list-style: none; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }

p { max-width: 68ch; }
p + p { margin-top: 1em; }

.text-muted { color: var(--ink-muted); }
.text-small { font-size: 0.875rem; }
.text-xs    { font-size: 0.75rem; }
.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.container--narrow {
  max-width: var(--max-w-text);
}

.section {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.section--sm {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

/* ============================================================
   HEADER & NAV
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease-out);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-text span { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-mid);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}

.nav-link:hover { color: var(--brand); background: var(--brand-light); }
.nav-link.active { color: var(--brand); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-ghost {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-mid);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  background: transparent;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }

.btn-primary {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  padding: 0.55rem 1.25rem;
  border: none;
  border-radius: var(--radius-md);
  background: var(--brand);
  transition: all 0.2s var(--ease-out);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-primary:hover { background: var(--brand-mid); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,95,74,0.25); }
.btn-primary:active { transform: translateY(0); }

.btn-primary--lg {
  font-size: 1rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-lg);
}

.btn-accent {
  background: var(--accent);
}
.btn-accent:hover { background: var(--accent-dark); box-shadow: 0 4px 12px rgba(200,118,58,0.3); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--ink);
  border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: var(--surface-2); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  padding-block: clamp(4rem, 10vw, 8rem);
  overflow: hidden;
  background: var(--surface);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(26,95,74,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(200,118,58,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  border: 1px solid rgba(26,95,74,0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: normal;
  color: var(--brand);
  position: relative;
}

.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.5;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--ink-mid);
  margin-bottom: 2rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.trust-dots {
  display: flex;
  gap: -4px;
}

.trust-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--brand);
  margin-left: -6px;
}

.trust-dot:first-child { margin-left: 0; }

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-mid) 50%, var(--accent) 100%);
}

.hero-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}

.hero-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
}

.hero-card-field {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.875rem;
  font-size: 0.8rem;
  color: var(--ink-mid);
  margin-bottom: 0.5rem;
}

.hero-card-field strong {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  margin-bottom: 0.2rem;
  font-weight: 500;
}

.hero-card-output {
  background: var(--brand-light);
  border: 1px solid rgba(26,95,74,0.15);
  border-radius: var(--radius-sm);
  padding: 0.875rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--brand-dark);
  margin-top: 1rem;
  position: relative;
}

.hero-card-output::before {
  content: '✦ AI Analysis';
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 12px;
  background: var(--brand);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.floating-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.6rem 0.875rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-mid);
  white-space: nowrap;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.floating-badge--1 { top: -12px; right: -16px; animation-delay: 0s; }
.floating-badge--2 { bottom: 20px; left: -20px; animation-delay: 2s; }
.floating-badge .dot { width: 8px; height: 8px; border-radius: 50%; }
.floating-badge .dot--green { background: #22c55e; }
.floating-badge .dot--amber { background: #f59e0b; }

/* ============================================================
   FEATURES / TOOLS
   ============================================================ */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.tool-card:hover {
  border-color: rgba(26,95,74,0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.tool-card:hover::before { transform: scaleX(1); }

.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.tool-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--brand);
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tool-badge--free { background: var(--brand-light); color: var(--brand); border: 1px solid rgba(26,95,74,0.2); }
.tool-badge--pro  { background: var(--accent-light); color: var(--accent); border: 1px solid rgba(200,118,58,0.2); }

.tool-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.tool-card p { font-size: 0.875rem; color: var(--ink-muted); max-width: none; }

/* ============================================================
   PRICING
   ============================================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  transition: all 0.25s var(--ease-out);
  position: relative;
}

.price-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.price-card--featured {
  border-color: var(--brand);
  border-width: 2px;
  box-shadow: 0 0 0 4px rgba(26,95,74,0.07), var(--shadow-md);
}

.price-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.price-name {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.25rem;
}

.price-period {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

.price-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1.25rem;
}

.price-features { margin-bottom: 1.75rem; }

.price-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--ink-mid);
  padding: 0.3rem 0;
}

.price-feature::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-light);
  border: 1px solid rgba(26,95,74,0.2);
  flex-shrink: 0;
  margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='%231a5f4a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}

.price-cta { width: 100%; text-align: center; display: block; padding: 0.75rem; }

.price-note {
  font-size: 0.75rem;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 0.875rem;
}

/* ============================================================
   SOCIAL PROOF / TESTIMONIALS
   ============================================================ */

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

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--border-mid);
  font-weight: 600;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.875rem;
}

.testimonial-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-mid);
  margin-bottom: 1.25rem;
  max-width: none;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  flex-shrink: 0;
}

.author-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.author-detail {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* ============================================================
   STATS BAR
   ============================================================ */

.stats-bar {
  background: var(--brand-dark);
  padding-block: 2.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

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

.faq-list { max-width: var(--max-w-text); margin-inline: auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--brand); }

.faq-icon {
  width: 22px;
  height: 22px;
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease-out);
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1;
}

.faq-item.open .faq-icon {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
}

.faq-answer-inner {
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-mid);
  line-height: 1.7;
}

/* ============================================================
   BLOG / POSTS
   ============================================================ */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(26,95,74,0.2);
}

.post-card-thumb {
  aspect-ratio: 16/9;
  background: var(--surface-2);
  overflow: hidden;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.post-card:hover .post-card-thumb img { transform: scale(1.03); }

.post-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-cat {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.post-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.post-card:hover .post-title { color: var(--brand); }

.post-excerpt {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
  max-width: none;
}

.post-meta {
  font-size: 0.75rem;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.cta-section {
  background: var(--brand-dark);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(200,118,58,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.cta-inner h2 { color: #fff; margin-bottom: 1rem; }
.cta-inner p { color: rgba(255,255,255,0.7); margin-inline: auto; margin-bottom: 2rem; }

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-white {
  background: #fff;
  color: var(--brand-dark);
  font-weight: 600;
}
.btn-white:hover { background: rgba(255,255,255,0.92); color: var(--brand-dark); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }

.btn-outline-white {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.7); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text span { color: var(--accent); }
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.65;
  margin-top: 0.875rem;
  color: rgba(255,255,255,0.55);
  max-width: 28ch;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.footer-legal a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.8rem;
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   SINGLE POST / PAGE
   ============================================================ */

.post-hero {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
}

.post-content {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.prose h2 { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.prose h3 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose p  { margin-bottom: 1.25rem; max-width: 68ch; }
.prose ul, .prose ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.prose ul  { list-style: disc; }
.prose ol  { list-style: decimal; }
.prose li  { margin-bottom: 0.4rem; font-size: 0.9375rem; color: var(--ink-mid); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a  { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  border-left: 3px solid var(--brand);
  padding: 1rem 1.5rem;
  background: var(--brand-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-block: 1.5rem;
  font-style: italic;
  color: var(--brand-dark);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
}

/* ============================================================
   UTILITY
   ============================================================ */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}

.section-label::before, .section-label::after {
  content: '';
  height: 1px;
  width: 24px;
  background: rgba(26,95,74,0.3);
}

.bg-surface-2 { background: var(--surface-2); }
.bg-brand-light { background: var(--brand-light); }

.divide-y > * + * { border-top: 1px solid var(--border); }

/* ============================================================
   ANIMATIONS
   ============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.fade-up.visible { opacity: 1; transform: none; }

.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .hero-grid      { grid-template-columns: 1fr; }
  .hero-visual    { display: none; }
  .pricing-grid   { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .site-nav       { display: none; }
  .nav-toggle     { display: flex; }
  .footer-grid    { grid-template-columns: 1fr; }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .header-cta .btn-ghost { display: none; }
  .tools-grid     { grid-template-columns: 1fr; }
}

/* Mobile nav open state */
.site-header.nav-open .site-nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 68px;
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  box-shadow: var(--shadow-md);
  gap: 0.25rem;
  z-index: 99;
}
