/* =============================================
   PAYCHECK GUIDE — Complete Design System
   NerdWallet × Rich Dad Poor Dad
   Serious. Warm. Typography-driven. Editorial.
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800;900&display=swap');

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

:root {
  --navy:       #1B3A5C;
  --navy-90:    #1e4168;
  --navy-mid:   #254e7a;
  --navy-light: #2d6099;
  --navy-dark:  #0f2035;
  --orange:     #F97316;
  --orange-dk:  #e06210;
  --black:      #0f1923;
  --ink:        #1a2533;
  --body:       #374151;
  --muted:      #6b7280;
  --border:     #e2e8f0;
  --border-lt:  #f1f5f9;
  --surface:    #f8fafc;
  --white:      #ffffff;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --r4:  4px;
  --r8:  8px;
  --r12: 12px;
  --r16: 16px;

  --sh1: 0 1px 3px rgba(15,25,35,0.07), 0 1px 2px rgba(15,25,35,0.04);
  --sh2: 0 4px 16px rgba(15,25,35,0.09), 0 2px 4px rgba(15,25,35,0.05);
  --sh3: 0 12px 32px rgba(15,25,35,0.12), 0 4px 8px rgba(15,25,35,0.06);
  --sh-lift: 0 8px 24px rgba(15,25,35,0.14), 0 4px 8px rgba(15,25,35,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--white);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dk); }
img { max-width: 100%; display: block; }

.container    { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.container-sm { max-width:  780px; margin: 0 auto; padding: 0 28px; }


/* ═══════════════════════════════════
   TYPOGRAPHY SCALE
═══════════════════════════════════ */
.display {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 74px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--white);
}
.display em { font-style: normal; color: var(--orange); }

.headline-xl {
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.headline-lg {
  font-family: var(--sans);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--navy);
}
.headline-md {
  font-family: var(--sans);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--orange);
}
.lead {
  font-size: 18px;
  line-height: 1.8;
  color: var(--body);
}
.body-sm  { font-size: 15px; line-height: 1.7; color: var(--muted); }
.body-xs  { font-size: 13px; line-height: 1.6; color: var(--muted); }


/* ═══════════════════════════════════
   BUTTONS
═══════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--r8);
  padding: 13px 26px;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 2px solid transparent;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.btn-cta {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: 0 2px 8px rgba(249,115,22,0.28);
}
.btn-cta:hover {
  background: var(--orange-dk);
  border-color: var(--orange-dk);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(249,115,22,0.38);
}
.btn-cta-lg {
  font-size: 17px;
  padding: 17px 38px;
  border-radius: var(--r8);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--surface);
}
.btn-ghost-dk {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost-dk:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
}


/* ═══════════════════════════════════
   DIVIDER ACCENT
═══════════════════════════════════ */
.divider {
  width: 48px; height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin: 20px 0;
}
.divider-center { margin: 20px auto; }


/* ═══════════════════════════════════
   STICKY NAVBAR — WHITE BACKGROUND
═══════════════════════════════════ */
.navbar {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 12px rgba(15,25,35,0.06);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 16px;
}

/* Logo */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1;
}
.brand-name span { color: var(--orange); }
.brand-tagline {
  display: none; /* shown in some layouts */
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-top: 1px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.nav-links > li > a:hover { color: var(--navy); background: var(--surface); }
.nav-links > li > a.active { color: var(--orange); }

/* CTA in nav */
.nav-cta {
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: all 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  flex-direction: column;
  padding: 80px 28px 40px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  text-decoration: none;
  transition: color 0.15s;
  letter-spacing: -0.01em;
}
.mobile-nav a:hover { color: var(--orange); }
.mobile-nav-cta {
  margin-top: 28px;
}
.mobile-cat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange);
  padding: 20px 0 6px;
}


/* ═══════════════════════════════════
   HERO — TYPOGRAPHIC, NO IMAGE
═══════════════════════════════════ */
.hero {
  background: var(--navy);
  padding: 100px 0 84px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 79px,
    rgba(255,255,255,0.018) 80px
  );
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--orange);
  margin-bottom: 28px;
}
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--orange);
  opacity: 0.5;
}
.hero-sub {
  font-size: 19px;
  color: rgba(255,255,255,0.68);
  max-width: 540px;
  line-height: 1.75;
  margin: 28px 0 40px;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-cta-note {
  font-size: 13px;
  color: rgba(255,255,255,0.42);
  line-height: 1.5;
}
.hero-cta-note strong { color: rgba(255,255,255,0.62); font-weight: 600; }


/* ═══════════════════════════════════
   TRUST BAR
═══════════════════════════════════ */
.trust-bar {
  background: var(--black);
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.trust-bar-stat { font-size: 13px; color: rgba(255,255,255,0.48); }
.trust-bar-stat strong { color: var(--orange); font-weight: 700; }
.trust-bar-sep { width: 4px; height: 4px; background: rgba(255,255,255,0.14); border-radius: 50%; }


/* ═══════════════════════════════════
   SECTION SCAFFOLDING
═══════════════════════════════════ */
.section       { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-dark  { background: var(--navy); }
.section-ink   { background: var(--black); }
.section-tint  { background: var(--surface); }

.section-header { margin-bottom: 52px; }
.section-header .eyebrow { display: block; margin-bottom: 14px; }
.section-header.centered { text-align: center; }
.section-header.centered .divider { margin: 16px auto 0; }


/* ═══════════════════════════════════
   PAIN POINTS — STAT GRID
═══════════════════════════════════ */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r12);
  overflow: hidden;
}
.pain-card {
  background: var(--white);
  padding: 32px 28px;
  position: relative;
}
.pain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--border-lt);
}
.pain-card:first-child::before { background: var(--orange); }
.pain-num {
  font-size: 46px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}
.pain-num-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 16px;
}
.pain-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.pain-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}


/* ═══════════════════════════════════
   STATS ROW — DARK SECTION
═══════════════════════════════════ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r12);
  overflow: hidden;
}
.stat-item {
  padding: 40px 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-big {
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-big span { color: var(--orange); }
.stat-label { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.48); line-height: 1.5; }
.stat-label strong { display: block; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.75); margin-bottom: 4px; }


/* ═══════════════════════════════════
   CATEGORIES — NUMBERED GRID
═══════════════════════════════════ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r12);
  overflow: hidden;
}
.cat-card {
  background: var(--white);
  padding: 28px 24px 32px;
  display: block;
  text-decoration: none;
  transition: background 0.15s;
  position: relative;
}
.cat-card:hover { background: var(--surface); }
.cat-card::after {
  content: '→';
  position: absolute;
  bottom: 20px; right: 20px;
  font-size: 15px;
  color: var(--border);
  transition: color 0.15s, transform 0.15s;
}
.cat-card:hover::after { color: var(--orange); transform: translateX(3px); }
.cat-num {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 12px;
}
.cat-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.cat-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }


/* ═══════════════════════════════════
   ARTICLE CARDS — 3-COL GRID
═══════════════════════════════════ */
.articles-section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.article-card:hover {
  box-shadow: var(--sh-lift);
  transform: translateY(-4px);
  border-color: transparent;
}
.article-card-thumb {
  height: 8px;
  width: 100%;
  /* color bar set per category via inline style */
}
.article-card-body {
  padding: 24px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--orange);
  margin-bottom: 12px;
}
.article-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  transition: color 0.15s;
  /* 2-line clamp */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card:hover h3 { color: var(--orange); }
.article-excerpt {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
  /* 2-line clamp */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-lt);
  margin-top: auto;
}
.article-readtime {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.article-readtime::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
}
.article-readmore {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  transition: gap 0.15s;
}
.article-card:hover .article-readmore { gap: 8px; }

/* Share pills on article cards */
.article-share {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-lt);
}
.share-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s;
}
.share-pill:hover { opacity: 0.75; }
.share-pill.tw { background: #e7f5fe; color: #1da1f2; }
.share-pill.fb { background: #e8f0fe; color: #1877f2; }
.share-pill.li { background: #e6f1f8; color: #0a66c2; }


/* ═══════════════════════════════════
   FREE TOOLKIT SECTION — NAVY BG
═══════════════════════════════════ */
.toolkit-section {
  background: var(--navy);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.toolkit-section::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(249,115,22,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.toolkit-section::after {
  content: '';
  position: absolute;
  left: -60px; bottom: -60px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(249,115,22,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.toolkit-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.toolkit-content .eyebrow { color: var(--orange); display: block; margin-bottom: 16px; }
.toolkit-content h2 {
  font-family: var(--sans);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.toolkit-content h2 span { color: var(--orange); }
.toolkit-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 28px;
}
.toolkit-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toolkit-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}
.toolkit-check {
  width: 22px; height: 22px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

/* Toolkit form box */
.toolkit-form-box {
  background: var(--white);
  border-radius: var(--r16);
  padding: 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}
.toolkit-form-box h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.toolkit-form-box .form-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}
.form-field { margin-bottom: 14px; }
.form-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r8);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,58,92,0.08);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.toolkit-trust {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}
.toolkit-trust a { color: var(--muted); text-decoration: underline; }
.toolkit-trust a:hover { color: var(--orange); }
.form-privacy { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.form-privacy a { color: var(--muted); text-decoration: underline; }
.form-privacy a:hover { color: var(--orange); }

/* Success banners */
.success-banner {
  display: none;
  padding: 14px 18px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--r8);
  font-size: 14px;
  font-weight: 600;
  color: #15803d;
  margin-top: 12px;
  text-align: center;
  line-height: 1.5;
}
.success-banner.show { display: block; }


/* ═══════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════ */
.about-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-pullquote {
  position: relative;
  padding: 40px 36px 32px;
  background: var(--navy);
  border-radius: var(--r16);
}
.about-pullquote::before {
  content: '"';
  position: absolute;
  top: 12px; left: 28px;
  font-family: var(--serif);
  font-size: 90px;
  line-height: 1;
  color: rgba(249,115,22,0.22);
  font-weight: 900;
}
.about-pullquote blockquote {
  font-family: var(--serif);
  font-size: clamp(19px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.45;
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}
.about-cred {
  display: flex;
  gap: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.cred-item strong { display: block; font-size: 28px; font-weight: 900; color: var(--orange); letter-spacing: -0.03em; }
.cred-item span   { font-size: 12px; color: rgba(255,255,255,0.48); }
.about-text .eyebrow { display: block; margin-bottom: 16px; }
.about-text .headline-lg { margin-bottom: 6px; }
.about-text .divider { margin: 16px 0 24px; }
.about-text p { font-size: 17px; color: var(--body); line-height: 1.8; margin-bottom: 16px; }
.about-text p:last-of-type { margin-bottom: 28px; }


/* ═══════════════════════════════════
   FOOTER — DARK NAVY
═══════════════════════════════════ */
.footer {
  background: var(--navy-dark);
  padding: 64px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  text-decoration: none;
  display: block;
}
.footer-logo span { color: var(--orange); }
.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  line-height: 1.75;
  max-width: 240px;
  margin-bottom: 24px;
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: all 0.15s;
}
.footer-social a:hover { border-color: var(--orange); color: var(--orange); }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.52);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--orange); }

/* Footer bottom bar */
.footer-bottom {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.28);
  line-height: 1.6;
}
.footer-copy a { color: rgba(255,255,255,0.35); text-decoration: underline; }
.footer-copy a:hover { color: rgba(255,255,255,0.6); }
.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.28);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }


/* ═══════════════════════════════════
   INNER PAGE HEADER
═══════════════════════════════════ */
.page-header {
  background: var(--navy);
  padding: 56px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.page-header .eyebrow { display: block; margin-bottom: 12px; }
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  line-height: 1.1;
}
.page-header p { font-size: 17px; color: rgba(255,255,255,0.55); max-width: 500px; line-height: 1.7; }


/* ═══════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════ */
.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}
.author-card {
  position: sticky;
  top: 84px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r12);
  overflow: hidden;
}
.author-card-top {
  background: var(--navy);
  padding: 28px;
  text-align: center;
}
.author-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 16px;
}
.author-card-top h3 { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.author-card-top span { font-size: 12px; color: var(--orange); font-weight: 600; }
.author-card-body { padding: 20px; }
.author-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.author-stat-row:last-of-type { border-bottom: none; }
.author-stat-row strong { font-size: 18px; font-weight: 900; color: var(--navy); }
.author-stat-row span   { font-size: 13px; color: var(--muted); }

.about-prose h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 44px 0 14px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.about-prose h2:first-child { margin-top: 0; }
.about-prose p { font-size: 17px; color: var(--body); line-height: 1.8; margin-bottom: 16px; }
.about-prose ul { margin: 0 0 18px 0; list-style: none; }
.about-prose ul li {
  font-size: 17px; color: var(--body); line-height: 1.75;
  margin-bottom: 8px; padding-left: 22px; position: relative;
}
.about-prose ul li::before { content: '→'; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.values-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0;
}
.value-item {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r8);
  border-left: 3px solid var(--navy);
}
.value-item h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.value-item p  { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }
.disclaimer-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: var(--r8);
  padding: 18px 20px;
  margin: 28px 0;
}
.disclaimer-box p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.65; }
.disclaimer-box a { color: var(--orange); }


/* ═══════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
}
.contact-info h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 12px; letter-spacing: -0.02em; }
.contact-info p { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 28px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-icon {
  width: 42px; height: 42px;
  background: var(--navy);
  border-radius: var(--r8);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 13px; font-weight: 700; color: var(--navy); }
.contact-item span   { font-size: 14px; color: var(--muted); }
.notice-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy);
  border-radius: var(--r8);
  padding: 16px 18px;
  margin-top: 24px;
}
.notice-box p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.7; }
.contact-form-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r12);
  padding: 40px;
  box-shadow: var(--sh1);
}
.contact-form-panel h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 4px; letter-spacing: -0.02em; }
.contact-form-panel > p { font-size: 15px; color: var(--muted); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-check-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.form-check-row input[type="checkbox"] { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; accent-color: var(--navy); }
.form-check-row label { font-size: 14px; color: var(--muted); cursor: pointer; line-height: 1.6; }


/* ═══════════════════════════════════
   LEGAL PAGES
═══════════════════════════════════ */
.legal-wrap { max-width: 740px; margin: 0 auto; padding: 64px 0; }
.legal-meta { font-size: 13px; color: var(--muted); margin-bottom: 40px; }
.legal-wrap .lead { margin-bottom: 48px; }
.legal-wrap h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin: 48px 0 14px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  letter-spacing: -0.02em;
}
.legal-wrap h2:first-of-type { border-top: none; padding-top: 0; }
.legal-wrap p { font-size: 16px; color: var(--body); line-height: 1.8; margin-bottom: 16px; }
.legal-wrap ul { margin: 0 0 16px 0; list-style: none; }
.legal-wrap ul li {
  font-size: 16px; color: var(--body); line-height: 1.75;
  margin-bottom: 8px; padding-left: 18px; position: relative;
}
.legal-wrap ul li::before { content: '—'; position: absolute; left: 0; color: var(--muted); }
.legal-wrap a { color: var(--orange); }
.legal-wrap strong { color: var(--ink); }


/* ═══════════════════════════════════
   COOKIE CONSENT BANNER
═══════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 9999;
  width: calc(100% - 48px);
  max-width: 560px;
  background: var(--navy-dark);
  border-radius: var(--r16);
  border-top: 4px solid var(--orange);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);
  padding: 28px 28px 24px;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s ease;
}
.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-banner-text {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin: 0;
}
.cookie-banner-text strong {
  display: block;
  font-size: 16px;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.cookie-banner-text a {
  color: var(--orange);
  text-decoration: underline;
}
.cookie-banner-text a:hover { color: var(--orange-dk); }
.cookie-banner-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cookie-btn-accept,
.cookie-btn-necessary,
.cookie-btn-decline {
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--r8);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  border: 2px solid transparent;
  letter-spacing: -0.01em;
  text-align: center;
}
/* Accept All — most prominent, orange filled */
.cookie-btn-accept {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: 0 2px 10px rgba(249,115,22,0.35);
}
.cookie-btn-accept:hover {
  background: var(--orange-dk);
  border-color: var(--orange-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249,115,22,0.4);
}
/* Accept Necessary Only — secondary, ghost outlined */
.cookie-btn-necessary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.cookie-btn-necessary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
}
/* Decline — least prominent, subtle text style */
.cookie-btn-decline {
  background: transparent;
  color: rgba(255,255,255,0.4);
  border-color: transparent;
  font-weight: 600;
  font-size: 13px;
}
.cookie-btn-decline:hover {
  color: rgba(255,255,255,0.7);
}
@media (max-width: 480px) {
  .cookie-banner { bottom: 16px; padding: 22px 20px 20px; }
}

/* ═══════════════════════════════════
   BACK TO TOP
═══════════════════════════════════ */
#back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 500;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--sh2);
  transition: all 0.2s;
  display: none;
  align-items: center;
  justify-content: center;
}
#back-to-top.show { display: flex; }
#back-to-top:hover { background: var(--orange); transform: translateY(-2px); }


/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1100px) {
  .nav-links > li > a { padding: 7px 8px; font-size: 12.5px; }
}

@media (max-width: 1024px) {
  .categories-grid   { grid-template-columns: repeat(2, 1fr); }
  .articles-section-grid { grid-template-columns: repeat(2, 1fr); }
  .toolkit-inner     { gap: 48px; }
  .about-section-inner { gap: 48px; }
  .footer-top        { grid-template-columns: 1fr 1fr; }
  .about-layout      { grid-template-columns: 1fr; }
  .author-card       { position: static; }
}

@media (max-width: 900px) {
  .pain-grid   { grid-template-columns: 1fr; }
  .stats-row   { grid-template-columns: repeat(2, 1fr); }
  .stat-item   { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-item:nth-child(2),
  .stat-item:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .section       { padding: 64px 0; }
  .section-tight { padding: 48px 0; }

  .articles-section-grid { grid-template-columns: 1fr; }
  .toolkit-inner   { grid-template-columns: 1fr; gap: 40px; }
  .about-section-inner { grid-template-columns: 1fr; }
  .contact-layout  { grid-template-columns: 1fr; }
  .footer-top      { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom   { flex-direction: column; text-align: center; }
  .values-row      { grid-template-columns: 1fr; }
  .form-row        { grid-template-columns: 1fr; }
  .hero            { padding: 72px 0 60px; }
  .hero-cta-row    { flex-direction: column; align-items: flex-start; gap: 12px; }
  .toolkit-form-box { padding: 28px; }
  .contact-form-panel { padding: 24px; }
  .stats-row       { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .footer-top      { grid-template-columns: 1fr; }
  .pain-grid       { grid-template-columns: 1fr; }
}

/* =========================================================
   page-free-toolkit.php — additional styles (not in style.css)
   ========================================================= */

/* ---------------------------------------------------------
   1. Toolkit Feature Grid
   --------------------------------------------------------- */
.toolkit-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---------------------------------------------------------
   2. Toolkit Feature Card
   --------------------------------------------------------- */
.toolkit-feature-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r12);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.toolkit-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lift, 0 8px 28px rgba(0,0,0,0.10));
  border-color: var(--navy);
}
.toolkit-feature-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.toolkit-feature-card h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0;
}
.toolkit-feature-card p {
  font-size: 14px;
  color: var(--muted, #6b7280);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* ---------------------------------------------------------
   3. How It Works — 3-step horizontal layout
   --------------------------------------------------------- */
.how-it-works-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.how-it-works-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.666% + 14px);
  right: calc(16.666% + 14px);
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--orange) 0px,
    var(--orange) 8px,
    transparent 8px,
    transparent 18px
  );
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* ---------------------------------------------------------
   4. How Step — individual step
   --------------------------------------------------------- */
.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.how-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
  margin-bottom: 20px;
}
.how-step h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  line-height: 1.3;
}
.how-step p {
  font-size: 14px;
  color: var(--muted, #6b7280);
  line-height: 1.7;
  margin: 0;
}

/* ---------------------------------------------------------
   5. FAQ List — accordion container
   --------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--r12);
  overflow: hidden;
}

/* ---------------------------------------------------------
   6. FAQ Item — individual accordion item
   --------------------------------------------------------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 28px;
  background: var(--white);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.4;
  transition: background 0.15s;
}
.faq-question:hover {
  background: var(--surface, #f9fafb);
}
.faq-question-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface, #f3f4f6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 300;
  color: var(--navy);
  line-height: 1;
  transition: background 0.15s, transform 0.22s ease, color 0.15s;
}
.faq-item.open .faq-question-icon {
  background: var(--orange);
  color: var(--white);
  transform: rotate(45deg);
}
.faq-answer {
  display: none;
  padding: 0 28px 24px;
  background: var(--white);
}
.faq-item.open .faq-answer {
  display: block;
}
.faq-answer p {
  font-size: 15px;
  color: var(--muted, #6b7280);
  line-height: 1.75;
  margin: 0;
}
.faq-answer p + p {
  margin-top: 12px;
}

/* ---------------------------------------------------------
   7. Toolkit Trust Bar
   --------------------------------------------------------- */
.toolkit-trust-bar {
  background: var(--navy);
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.toolkit-trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.toolkit-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
}
.toolkit-trust-item strong {
  font-weight: 700;
  color: var(--white);
}
.toolkit-trust-item .trust-icon {
  font-size: 15px;
  line-height: 1;
}
.toolkit-trust-sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.55;
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   8. Responsive rules — 768px breakpoint
   --------------------------------------------------------- */
@media (max-width: 768px) {
  .toolkit-feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .how-it-works-steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .how-it-works-steps::before {
    display: none;
  }
  .how-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 20px;
    padding: 0;
  }
  .how-step-number {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .how-step-body {
    flex: 1;
  }

  .faq-question {
    padding: 18px 22px;
    font-size: 14px;
  }
  .faq-answer {
    padding: 0 22px 20px;
  }

  .toolkit-trust-bar-inner {
    gap: 10px;
  }
  .toolkit-trust-sep {
    display: none;
  }
}

/* ---------------------------------------------------------
   8b. Responsive rules — 480px breakpoint
   --------------------------------------------------------- */
@media (max-width: 480px) {
  .toolkit-feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .toolkit-feature-card {
    padding: 24px 20px;
  }

  .how-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .how-step-number {
    width: 48px;
    height: 48px;
    font-size: 17px;
  }

  .faq-question {
    padding: 16px 18px;
  }
  .faq-answer {
    padding: 0 18px 18px;
  }
  .faq-answer p {
    font-size: 14px;
  }

  .toolkit-trust-bar {
    padding: 18px 0;
  }
  .toolkit-trust-item {
    font-size: 12px;
  }
}
