/* ============================================
   BuildBetterCredit.org — Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,400;1,9..144,600&display=swap');

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0f1a2e;
  --navy-mid: #1a2a45;
  --navy-light: #243656;
  --teal: #d4a43a;
  --teal-dark: #b8912e;
  --teal-glow: rgba(212, 164, 58, 0.15);
  --gold: #e8b84b;
  --gold-soft: rgba(232, 184, 75, 0.12);
  --coral: #e8695a;
  --white: #ffffff;
  --off-white: #f5f6f8;
  --gray-100: #eceef2;
  --gray-200: #d4d8e0;
  --gray-300: #a0a8b8;
  --gray-500: #6b7488;
  --gray-700: #3d4556;
  --text-primary: #1a1e2a;
  --text-secondary: #4a5268;
  --text-muted: #7a829a;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --shadow-sm: 0 1px 3px rgba(15,26,46,0.06);
  --shadow-md: 0 4px 16px rgba(15,26,46,0.08);
  --shadow-lg: 0 8px 32px rgba(15,26,46,0.12);
  --shadow-xl: 0 16px 48px rgba(15,26,46,0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max-width: 1200px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal); }
ul { list-style: none; }

/* --- UTILITY --- */
.inner, .section-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 80px 0; }
.section-pad-lg { padding: 100px 0; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section-title em {
  font-style: italic;
  color: var(--teal-dark);
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}
.section-center { text-align: center; }
.section-center .section-sub { margin: 0 auto; }

/* --- BUTTONS --- */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--teal);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--teal);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-outline:hover { background: var(--teal); color: var(--white); }

.btn-white {
  display: inline-block;
  padding: 14px 32px;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-white:hover { background: var(--off-white); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-sm { padding: 10px 22px; font-size: 0.88rem; }

/* --- NAV --- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  text-decoration: none;
}
.logo span { color: var(--teal); }
.logo:hover { color: var(--white); }

nav ul { display: flex; align-items: center; gap: 8px; }
nav ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
nav ul li a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--teal-dark) !important; }

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  nav ul {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  nav ul.open { display: flex; }
  nav ul li { width: 100%; }
  nav ul li a { display: block; padding: 12px 14px; }
}

/* --- HERO --- */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--teal-glow), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 44px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(212, 164, 58, 0.12);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: var(--teal); }
.hero p { color: rgba(255,255,255,0.7); font-size: 1.08rem; line-height: 1.7; margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.score-card {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.score-card h3 { color: var(--white); font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 24px; }
.score-range { display: flex; flex-direction: column; gap: 14px; }
.score-row { display: flex; align-items: center; gap: 12px; }
.score-label { color: rgba(255,255,255,0.6); font-size: 0.82rem; font-weight: 500; width: 50px; }
.score-bar-wrap { flex: 1; height: 10px; background: rgba(255,255,255,0.06); border-radius: 5px; overflow: hidden; }
.score-bar { height: 100%; border-radius: 5px; transition: width 1s ease; }
.bar-poor { width: 25%; background: var(--coral); }
.bar-fair { width: 45%; background: var(--gold); }
.bar-good { width: 70%; background: var(--teal); }
.bar-great { width: 95%; background: #4dd4ac; }
.score-num { color: rgba(255,255,255,0.5); font-size: 0.8rem; width: 75px; text-align: right; }
.score-highlight {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .score-card { max-width: 440px; }
}

/* --- STEPS --- */
.steps-strip { background: var(--off-white); }
.steps-strip .section-inner { padding-top: 80px; padding-bottom: 80px; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--teal);
  opacity: 0.35;
  margin-bottom: 12px;
}
.step-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.step-card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.65; }

@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }

/* --- PRODUCT/TOOL CARDS --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-header {
  background: var(--navy);
  padding: 24px 28px;
  color: var(--white);
}
.product-header h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 4px; }
.product-header p { font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.product-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.product-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-dark);
  background: var(--teal-glow);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.product-body > p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 18px; }
.product-features {
  list-style: none;
  margin-bottom: 24px;
}
.product-features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 6px 0 6px 22px;
  position: relative;
}
.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.85rem;
}
.product-cta {
  display: block;
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--teal-dark);
}
.product-cta:hover { color: var(--teal); }

/* Product card: "coming soon" / placeholder variant */
.product-card.placeholder { border-style: dashed; border-color: var(--gray-200); }
.product-card.placeholder .product-header { background: var(--navy-light); }
.product-coming {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}

@media (max-width: 900px) { .products-grid { grid-template-columns: 1fr; max-width: 500px; } }

/* --- COMPARISON TABLE --- */
.comparison-wrap {
  overflow-x: auto;
  margin-top: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.comparison-table thead { background: var(--navy); color: var(--white); }
.comparison-table th {
  padding: 16px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  text-align: left;
  white-space: nowrap;
}
.comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--text-secondary);
}
.comparison-table tbody tr:hover { background: var(--teal-glow); }
.comparison-table .check { color: var(--teal); font-weight: 700; }
.comparison-table .x { color: var(--gray-300); }

/* --- INFO BLOCKS / CONTENT --- */
.content-section { padding: 80px 0; }
.content-section:nth-child(even) { background: var(--off-white); }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }

.content-text h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary);
}
.content-text p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.7; }

.info-box {
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 24px 0;
}
.info-box.teal { background: var(--teal-glow); border-color: rgba(46,196,160,0.2); }
.info-box.gold { background: var(--gold-soft); border-color: rgba(232,184,75,0.2); }
.info-box h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 8px; }
.info-box p { font-size: 0.92rem; color: var(--text-secondary); }

@media (max-width: 768px) { .content-grid { grid-template-columns: 1fr; gap: 32px; } }

/* --- STATS BAR --- */
.stats-bar {
  background: var(--navy);
  padding: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item {}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--teal);
  margin-bottom: 6px;
}
.stat-label { color: rgba(255,255,255,0.6); font-size: 0.88rem; line-height: 1.5; }

@media (max-width: 768px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* --- MORTGAGE SECTION --- */
.mortgage-section {
  background: var(--navy);
  padding: 80px 0;
}
.mortgage-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: start;
}
.mortgage-section .section-label { color: var(--gold); }
.mortgage-section .section-title { color: var(--white); }
.mortgage-section .section-sub { color: rgba(255,255,255,0.65); }

.mortgage-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.stat-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 22px;
}
.stat-box .stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--gold);
}
.stat-box .stat-label { color: rgba(255,255,255,0.5); font-size: 0.82rem; margin-top: 4px; }

.mortgage-cta-box {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.mortgage-cta-box h3 { color: var(--white); font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 14px; }
.mortgage-cta-box p { color: rgba(255,255,255,0.6); font-size: 0.92rem; margin-bottom: 20px; line-height: 1.65; }

@media (max-width: 900px) {
  .mortgage-inner { grid-template-columns: 1fr; }
  .mortgage-cta-box { max-width: 480px; }
}

/* --- CALCULATOR --- */
.calculator-section { background: var(--off-white); padding: 80px 0; }
.calculator-wrap {
  max-width: 860px;
  margin: 48px auto 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.calc-header {
  background: var(--navy);
  padding: 32px 40px;
  color: var(--white);
}
.calc-header h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 6px; }
.calc-header p { color: rgba(255,255,255,0.55); font-size: 0.88rem; }
.calc-body { padding: 40px; }
.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.calc-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.calc-field input, .calc-field select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  transition: border-color var(--transition);
  background: var(--white);
}
.calc-field input:focus, .calc-field select:focus {
  outline: none;
  border-color: var(--teal);
}
.calc-results {
  background: var(--teal-glow);
  border: 1px solid rgba(46,196,160,0.2);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-top: 8px;
  display: none;
}
.calc-results.visible { display: block; }
.calc-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  text-align: center;
}
.calc-result-item {}
.calc-result-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--teal-dark);
}
.calc-result-label { font-size: 0.82rem; color: var(--text-secondary); margin-top: 4px; }

.calc-cta {
  margin-top: 32px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}
.calc-cta p { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 14px; }

@media (max-width: 600px) {
  .calc-row { grid-template-columns: 1fr; }
  .calc-results-grid { grid-template-columns: 1fr; gap: 16px; }
  .calc-body { padding: 24px; }
  .calc-header { padding: 24px; }
}

/* --- CONTACT / LEAD FORM --- */
.contact-section { padding: 80px 0; }
.contact-wrap {
  max-width: 640px;
  margin: 48px auto 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.contact-header {
  background: var(--navy);
  padding: 32px 40px;
  color: var(--white);
}
.contact-header h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 6px; }
.contact-header p { color: rgba(255,255,255,0.55); font-size: 0.88rem; }
.contact-body { padding: 40px; }
.contact-field { margin-bottom: 20px; }
.contact-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  transition: border-color var(--transition);
  background: var(--white);
}
.contact-field textarea { resize: vertical; min-height: 100px; }
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus { outline: none; border-color: var(--teal); }

.contact-field .radio-group { display: flex; gap: 20px; margin-top: 6px; }
.contact-field .radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.contact-field .radio-group input[type="radio"] { width: auto; }
.contact-success {
  display: none;
  text-align: center;
  padding: 40px;
}
.contact-success.visible { display: block; }
.contact-success h4 { font-family: var(--font-display); font-size: 1.3rem; color: var(--teal-dark); margin-bottom: 10px; }
.contact-success p { color: var(--text-secondary); }

@media (max-width: 600px) {
  .contact-body { padding: 24px; }
  .contact-header { padding: 24px; }
}

/* --- TESTIMONIALS --- */
.testimonials-section { padding: 80px 0; background: var(--off-white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.stars { color: var(--gold); font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.testimonial-author { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.testimonial-detail { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; max-width: 480px; } }

/* --- FAQ --- */
.faq-section { padding: 80px 0; }
.faq-list { max-width: 760px; margin: 48px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--gray-100);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 40px 22px 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--teal-dark); }
.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gray-300);
  transition: all var(--transition);
}
.faq-item.open .faq-question::after { content: '−'; color: var(--teal); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 0 22px 0; font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; }

/* --- BREADCRUMB --- */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { margin: 0 6px; }

/* --- DISCLOSURE BAR --- */
.disclosure-bar {
  background: var(--gray-100);
  padding: 20px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.disclosure-bar .inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.disclosure-bar a { color: var(--teal-dark); text-decoration: underline; }

/* --- FOOTER --- */
footer {
  background: var(--navy);
  padding-top: 60px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.88rem; line-height: 1.65; margin-top: 14px; max-width: 320px; }
footer h4 { color: var(--white); font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; }
footer ul li { margin-bottom: 8px; }
footer ul li a { color: rgba(255,255,255,0.5); font-size: 0.88rem; }
footer ul li a:hover { color: var(--teal); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* --- PAGE HEADER --- */
.page-header {
  background: var(--navy);
  padding: 60px 0 50px;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--white);
  margin-bottom: 14px;
}
.page-header h1 em { font-style: italic; color: var(--teal); }
.page-header p { color: rgba(255,255,255,0.6); font-size: 1.05rem; max-width: 580px; margin: 0 auto; }

/* --- ARTICLE CONTENT --- */
.article-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 48px 0 16px;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 32px 0 12px;
}
.article-content p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.75;
}
.article-content ul, .article-content ol {
  margin: 0 0 18px 24px;
  color: var(--text-secondary);
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 8px; line-height: 1.65; }

.article-toc {
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 40px;
}
.article-toc h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 12px; }
.article-toc ol { margin: 0; padding-left: 20px; }
.article-toc li { margin-bottom: 6px; }
.article-toc a { font-size: 0.92rem; }

/* Sidebar layout for guide pages */
.guide-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
}
.guide-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
}
.guide-sidebar h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 600;
}
.guide-sidebar ul li { margin-bottom: 4px; }
.guide-sidebar ul li a {
  display: block;
  font-size: 0.88rem;
  padding: 6px 12px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.guide-sidebar ul li a:hover { color: var(--teal-dark); background: var(--teal-glow); }
.guide-sidebar ul li a.active { color: var(--teal-dark); background: var(--teal-glow); font-weight: 600; }

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; gap: 32px; }
  .guide-sidebar { position: static; }
}

/* --- ANIMATIONS --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up-d1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-d2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-d3 { animation-delay: 0.3s; opacity: 0; }

/* --- TABS --- */
.tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.tab-btn {
  background: var(--off-white);
  border: 1.5px solid var(--gray-100);
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 50px;
  transition: all var(--transition);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text-primary); background: var(--gray-100); border-color: var(--gray-200); }
.tab-btn.active { color: var(--white); background: var(--navy); border-color: var(--navy); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- BADGE / PILL VARIANTS --- */
.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 50px;
}
.pill-teal { color: var(--teal-dark); background: var(--teal-glow); }
.pill-gold { color: #b38a20; background: var(--gold-soft); }
.pill-coral { color: var(--coral); background: rgba(232,105,90,0.1); }

/* --- MOBILE RESPONSIVE FIXES --- */

/* Force grid children to respect container bounds */
.guide-layout > * { min-width: 0; overflow-wrap: break-word; word-wrap: break-word; }
.section-inner > * { min-width: 0; }
.article-content { overflow: hidden; }

/* Tabs wrap on small screens */
@media (max-width: 700px) {
  .tabs-nav { flex-wrap: wrap; gap: 6px; }
  .tab-btn { padding: 8px 16px; font-size: 0.82rem; flex: 0 0 auto; }
}

@media (max-width: 600px) {
  .section-inner, .inner { padding: 0 16px; }
  .section-pad { padding: 48px 0; }
  .section-pad-lg { padding: 60px 0; }
  .page-header { padding: 36px 0 32px; }
  .page-header h1 { font-size: 1.5rem; padding: 0 8px; }
  .page-header p { font-size: 0.92rem; padding: 0 8px; }

  .guide-layout {
    padding: 24px 16px 48px;
    gap: 24px;
  }
  .article-content {
    padding: 24px 0 48px;
    max-width: 100% !important;
    overflow: hidden;
  }
  .article-content h2 { font-size: 1.2rem; margin-top: 32px; word-wrap: break-word; overflow-wrap: break-word; }
  .article-content h3 { font-size: 1.05rem; word-wrap: break-word; overflow-wrap: break-word; }
  .article-content p,
  .article-content li { font-size: 0.92rem; word-wrap: break-word; overflow-wrap: break-word; }
  .article-content em { word-wrap: break-word; overflow-wrap: break-word; }

  .comparison-wrap { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: none; border-right: none; }
  .comparison-table th { padding: 10px 12px; font-size: 0.75rem; }
  .comparison-table td { padding: 10px 12px; font-size: 0.8rem; }

  .info-box { padding: 20px 16px; overflow: hidden; word-wrap: break-word; }
  .info-box h4 { font-size: 1rem; }

  .breadcrumb { font-size: 0.78rem; }

  .score-card { padding: 24px 20px; }
  .score-card h3 { font-size: 1rem; margin-bottom: 18px; }

  .hero-inner { padding: 28px 16px 32px; gap: 28px; }
  .hero h1 { font-size: 1.7rem; }
  .hero p { font-size: 0.95rem; margin-bottom: 24px; }

  .section-title { font-size: 1.4rem; }
  .section-sub { font-size: 0.92rem; }

  .step-card { padding: 24px 20px; }

  .disclosure-bar .inner { font-size: 0.78rem; padding: 16px; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand p { font-size: 0.85rem; }
}

/* Global overflow safety */
img, pre, code, iframe, video { max-width: 100%; }
.comparison-wrap { -webkit-overflow-scrolling: touch; }
