
/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; color-scheme: light; }
body { font-family: 'DM Sans', system-ui, -apple-system, sans-serif; line-height: 1.6; color: var(--text); background: var(--bg); transition: background 0.3s ease, color 0.3s ease; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== CSS VARIABLES — LIGHT ===== */
:root {
  --navy: #1d2a34;
  --navy-light: #2a3d4a;
  --navy-dark: #141e26;
  --teal: #58afff;
  --teal-light: #7ec3ff;
  --teal-dark: #3d8fd9;
  --gold: #58afff;
  --gold-light: #7ec3ff;
  --gold-dark: #3d8fd9;

  --bg: #f9f5f6;
  --bg-card: #ffffff;
  --bg-card-alt: #f1f0f2;
  --bg-input: #ffffff;
  --border: #dcd8da;
  --border-focus: var(--teal);
  --text: #1d2a34;
  --text-secondary: #42545e;
  --text-muted: #7a8a94;
  --text-on-navy: #ffffff;
  --text-on-gold: #ffffff;

  --shadow-sm: 0 1px 3px rgba(29,42,52,0.06);
  --shadow-md: 0 4px 12px rgba(29,42,52,0.08);
  --shadow-lg: 0 8px 32px rgba(29,42,52,0.12);
  --shadow-xl: 0 16px 48px rgba(29,42,52,0.16);

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

  --font-display: 'Cabinet Grotesk', 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}


/* ===== TYPOGRAPHY ===== */
.font-display { font-family: var(--font-display); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* ===== LAYOUT ===== */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
@media (max-width: 768px) { .section { padding: 48px 0; } }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-md); font-weight: 600;
  font-size: 1rem; border: none; transition: all 0.2s ease;
  text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #ffffff; box-shadow: 0 4px 16px rgba(88,175,255,0.3);
}
.btn-gold:hover { box-shadow: 0 6px 24px rgba(88,175,255,0.4); background: linear-gradient(135deg, var(--gold-dark), var(--gold)); }

.btn-navy {
  background: var(--navy); color: #fff;
  box-shadow: 0 4px 16px rgba(29,42,52,0.25);
}
.btn-navy:hover { background: var(--navy-light); }

.btn-outline {
  background: transparent; color: var(--text);
  border: 2px solid var(--border); padding: 12px 26px;
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

.btn-lg { padding: 18px 36px; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }


/* ===== HEADER / NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #ffffff; backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border); padding: 0 24px;
  transition: background 0.3s ease;
}
.navbar-inner {
  max-width: 1120px; margin: 0 auto; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.navbar-logo { display: flex; align-items: center; gap: 10px; }
.navbar-logo svg { height: 42px; width: auto; }
.navbar-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.navbar-links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.navbar-links a:hover { color: var(--teal); text-decoration: none; }

/* ===== HERO ===== */
.hero {
  padding-top: 140px; padding-bottom: 80px;
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-dark) 60%, #0f171e 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(88,175,255,0.12), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(88,175,255,0.06), transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; }
.hero h1 { color: #fff; margin-bottom: 20px; font-size: clamp(2.2rem, 5vw, 3.5rem); }
.hero h1 span { color: var(--teal-light); }
.hero p { color: rgba(255,255,255,0.8); font-size: clamp(1rem, 2vw, 1.2rem); margin-bottom: 40px; max-width: 560px; margin-left: auto; margin-right: auto; }
.trust-badges {
  display: flex; gap: 40px; justify-content: center; margin-top: 48px;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.trust-badge .badge-num {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 800;
  color: var(--teal-light);
}
.trust-badge .badge-label { font-size: 0.8rem; color: rgba(255,255,255,0.65); letter-spacing: 0.05em; text-transform: uppercase; }
@media (max-width: 480px) { .trust-badges { gap: 24px; } .trust-badge .badge-num { font-size: 1.35rem; } }

/* ===== FORM WIZARD ===== */
.wizard-section { background: var(--bg); }
.wizard-wrapper {
  max-width: 680px; margin: 0 auto;
}
.wizard-card {
  background: var(--bg-card); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  overflow: hidden;
}

/* Progress Bar */
.progress-bar-wrap { padding: 28px 32px 0; }
.progress-steps {
  display: flex; gap: 6px;
}
.progress-step {
  flex: 1; height: 5px; border-radius: 3px;
  background: var(--bg-card-alt); transition: background 0.4s ease;
}
.progress-step.active { background: var(--teal); }
.progress-step.completed { background: var(--navy); }
.progress-label {
  display: flex; justify-content: space-between; margin-top: 10px;
  font-size: 0.8rem; color: var(--text-muted);
}

/* Form Steps */
.form-step {
  padding: 32px; display: none;
  animation: fadeSlideIn 0.35s ease forwards;
}
.form-step.active { display: block; }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.step-title {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  margin-bottom: 4px;
}
.step-desc {
  font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 28px;
}

/* Form Controls */
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block; font-size: 0.875rem; font-weight: 600;
  margin-bottom: 6px; color: var(--text);
}
.form-group label .req { color: #e74c3c; margin-left: 2px; }
.form-input, .form-select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); background: var(--bg-input);
  color: var(--text); font-size: 1rem; transition: border-color 0.2s;
  outline: none;
}
.form-input:focus, .form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(88,175,255,0.15);
}
.form-input.error, .form-select.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231,76,60,0.12);
}
.error-msg {
  font-size: 0.8rem; color: #e74c3c; margin-top: 4px; display: none;
}
.form-input.error + .error-msg,
.form-select.error + .error-msg { display: block; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555e6e' d='M6 8.5L1 3.5h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* Radio Groups */
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-option {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); cursor: pointer;
  transition: all 0.2s ease; background: var(--bg-input);
}
.radio-option:hover { border-color: var(--teal); }
.radio-option.selected {
  border-color: var(--teal); background: rgba(88,175,255,0.05);
}
.radio-option input[type="radio"] { display: none; }
.radio-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.radio-option.selected .radio-dot {
  border-color: var(--teal);
}
.radio-option.selected .radio-dot::after {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal);
}
.radio-label { font-size: 0.95rem; }

/* Checkbox Groups */
.checkbox-group { display: flex; flex-direction: column; gap: 8px; }
.checkbox-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); cursor: pointer;
  transition: all 0.2s ease; background: var(--bg-input);
}
.checkbox-option:hover { border-color: var(--teal); }
.checkbox-option.selected {
  border-color: var(--teal); background: rgba(88,175,255,0.05);
}
.checkbox-option input[type="checkbox"] { display: none; }
.check-box {
  width: 20px; height: 20px; border-radius: var(--radius-sm);
  border: 2px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.checkbox-option.selected .check-box {
  border-color: var(--teal); background: var(--teal);
}
.checkbox-option.selected .check-box::after {
  content: ''; width: 10px; height: 6px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

/* Form Nav */
.form-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 32px 28px; gap: 12px;
}
.form-nav .btn { min-width: 120px; }
.secure-note {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--text-muted); padding: 0 32px 20px;
}
.secure-note svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Review Step */
.review-section {
  background: var(--bg-card-alt); border-radius: var(--radius-md);
  padding: 20px; margin-bottom: 16px;
}
.review-section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.review-section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; color: var(--teal);
}
.review-edit-btn {
  font-size: 0.8rem; font-weight: 600; color: var(--teal);
  cursor: pointer; background: none; border: none; padding: 4px 8px;
}
.review-edit-btn:hover { text-decoration: underline; }
.review-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0; font-size: 0.9rem;
}
.review-label { color: var(--text-muted); flex-shrink: 0; }
.review-value { color: var(--text); font-weight: 500; text-align: right; }

.consent-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 16px; background: var(--bg-card-alt);
  border-radius: var(--radius-md); margin-top: 16px; cursor: pointer;
}
.consent-row input[type="checkbox"] { display: none; }
.consent-check {
  width: 22px; height: 22px; border-radius: var(--radius-sm);
  border: 2px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px; transition: all 0.2s;
}
.consent-row.checked .consent-check {
  border-color: var(--teal); background: var(--teal);
}
.consent-row.checked .consent-check::after {
  content: ''; width: 10px; height: 6px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.consent-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

/* ===== RESULTS ===== */
.results-section { display: none; background: var(--bg); }
.results-header { text-align: center; margin-bottom: 48px; }
.results-header h2 { margin-bottom: 8px; }
.results-header h2 span { color: var(--teal); }
.results-subtitle { color: var(--text-secondary); font-size: 1.05rem; }

.results-actions {
  display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap;
}

.match-category { margin-bottom: 40px; }
.match-category-title {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.match-category-title .cat-icon {
  width: 32px; height: 32px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 0.85rem;
}
.strong-matches .cat-icon { background: rgba(88,175,255,0.12); color: var(--teal); }
.worth-exploring .cat-icon { background: rgba(88,175,255,0.12); color: var(--gold); }

/* Program Cards */
.program-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 12px;
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
}
.program-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-1px);
}
.program-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 20px 24px; cursor: pointer; gap: 12px;
}
.program-card-left { flex: 1; min-width: 0; }
.program-card-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.program-badge {
  font-size: 0.7rem; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge-grant { background: rgba(88,175,255,0.12); color: var(--teal); }
.badge-loan { background: rgba(27,54,93,0.1); color: var(--navy); }
.badge-tax-credit { background: rgba(88,175,255,0.12); color: var(--gold-dark); }
.badge-advisory { background: rgba(100,100,100,0.1); color: var(--text-secondary); }

.program-card-meta {
  display: flex; gap: 16px; font-size: 0.85rem; color: var(--text-secondary);
  flex-wrap: wrap;
}
.program-card-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  flex-shrink: 0;
}
.match-score {
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem;
}
.match-score.high { color: var(--teal); }
.match-score.medium { color: var(--gold); }
.match-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.expand-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-card-alt); display: flex;
  align-items: center; justify-content: center;
  transition: transform 0.3s ease;
}
.program-card.expanded .expand-icon { transform: rotate(180deg); }

.program-card-body {
  display: none; padding: 0 24px 24px; border-top: 1px solid var(--border);
}
.program-card.expanded .program-card-body { display: block; padding-top: 20px; }
.program-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.6; }
.program-highlights {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.program-chip {
  font-size: 0.78rem; padding: 5px 12px; border-radius: 20px;
  background: var(--bg-card-alt); color: var(--text-secondary);
  border: 1px solid var(--border);
}
.program-best-for {
  font-size: 0.85rem; color: var(--text-secondary);
  margin-bottom: 16px; padding: 12px; background: var(--bg-card-alt);
  border-radius: var(--radius-md);
}
.program-best-for strong { color: var(--text); }
.program-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.9rem; font-weight: 600; color: var(--teal);
}
.program-link:hover { text-decoration: underline; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius-xl); padding: 48px; color: #fff;
  margin-top: 48px; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(88,175,255,0.2), transparent 70%);
  pointer-events: none;
}
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.8); max-width: 560px; margin-bottom: 24px; }
.cta-services {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px;
}
.cta-service {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; color: rgba(255,255,255,0.9);
}
.cta-service svg { width: 18px; height: 18px; color: var(--gold-light); flex-shrink: 0; }
.cta-buttons { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.cta-contact { margin-top: 24px; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.cta-contact a { color: var(--gold-light); }

/* ===== ABOUT / TRUST ===== */
.about-section { background: var(--bg-card-alt); }
.about-header { text-align: center; margin-bottom: 48px; }
.about-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-bottom: 48px;
}
@media (max-width: 768px) { .about-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 480px) { .about-grid { grid-template-columns: 1fr; } }
.about-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 28px 24px; text-align: center; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.about-card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: rgba(88,175,255,0.1); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.about-card-icon svg { width: 24px; height: 24px; }
.about-card h4 { margin-bottom: 8px; }
.about-card p { font-size: 0.85rem; color: var(--text-secondary); }

.testimonial {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 32px; border: 1px solid var(--border);
  max-width: 680px; margin: 0 auto; text-align: center;
}
.testimonial-quote {
  font-size: 1.05rem; font-style: italic; color: var(--text);
  margin-bottom: 16px; line-height: 1.7;
}
.testimonial-author { font-weight: 600; color: var(--text); }
.testimonial-role { font-size: 0.85rem; color: var(--text-muted); }

/* ===== FOOTER ===== */
footer {
  background: var(--navy-dark); color: rgba(255,255,255,0.7);
  padding: 40px 0; text-align: center;
}
footer a { color: var(--gold-light); }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 0.9rem; }
.footer-tagline { font-size: 0.85rem; margin-bottom: 8px; }
.footer-disclaimer { font-size: 0.75rem; max-width: 640px; margin: 16px auto 0; color: rgba(255,255,255,0.5); line-height: 1.5; }
.footer-attribution { font-size: 0.75rem; margin-top: 16px; color: rgba(255,255,255,0.45); }

/* ===== CONFETTI ===== */
.confetti-container {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9999; overflow: hidden;
}
.confetti-piece {
  position: absolute; width: 8px; height: 8px;
  top: -10px; opacity: 0;
  animation: confettiFall 3s ease-in forwards;
}
@keyframes confettiFall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg) scale(0.3); }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar, .hero, .wizard-section,
  .about-section, footer, .results-actions,
  .cta-section, .form-nav, .expand-icon { display: none !important; }
  .results-section { display: block !important; padding: 20px 0; }
  .program-card-body { display: block !important; border-top: 1px solid #ddd; padding-top: 12px; }
  .program-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
  body { background: #fff; color: #000; }
  .match-score { color: #333 !important; }
}

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }

/* Hidden result data textarea */
#hiddenFormData { display: none; }

/* ===== NAV LINKS VISIBLE (Assessment + Browse programs) ===== */
.navbar-inner { justify-content: space-between; }
.navbar-links {
  display: flex !important;
  align-items: center;
  gap: 22px;
}
.navbar-links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.navbar-links a:hover { color: var(--teal); text-decoration: none; }
.navbar-links a.is-active { color: var(--teal); }
.navbar-brand-group { display: flex; align-items: center; gap: 12px; min-width: 0; }
.navbar-funding-link {
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem;
  color: var(--navy); margin-left: 4px;
}
.navbar-funding-link:hover { color: var(--teal); text-decoration: none; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .hero-browse {
  color: #fff; border-color: rgba(255,255,255,0.45); background: transparent;
}
.hero .hero-browse:hover { border-color: var(--teal-light); color: var(--teal-light); }
@media (max-width: 768px) {
  .navbar-links { gap: 10px; }
  .navbar-links a:not(.btn) { font-size: 0.8rem; }
  .navbar-about { display: none; }
  .navbar-links .btn { padding: 8px 12px; font-size: 0.75rem; }
}

/* ===== INNER PAGES ===== */
.page-main { padding-top: 96px; padding-bottom: 64px; }
.page-hero-band {
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-dark) 70%);
  color: #fff; padding: 36px 0 40px; margin-bottom: 40px;
}
.page-hero-band h1 { color: #fff; margin: 12px 0 10px; }
.page-hero-band p { color: rgba(255,255,255,0.8); max-width: 720px; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.65); }
.breadcrumb a { color: var(--teal-light); }
.page-lede { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 28px; line-height: 1.7; }
.page-lede a { font-weight: 600; }

.catalog-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; align-items: center;
}
.catalog-search {
  flex: 1 1 240px; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); background: var(--bg-input); color: var(--text);
  outline: none;
}
.catalog-search:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(88,175,255,0.15); }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 20px;
  background: var(--bg-card); color: var(--text-secondary); font-size: 0.85rem; font-weight: 500;
  cursor: pointer;
}
.filter-chip input { accent-color: var(--teal); }
.filter-chip.is-on { border-color: var(--teal); color: var(--teal); background: rgba(88,175,255,0.08); }
.catalog-count { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }
.catalog-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (max-width: 720px) { .catalog-grid { grid-template-columns: 1fr; } }
.catalog-card {
  display: block; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow-sm);
  color: inherit; text-decoration: none;
  transition: box-shadow 0.2s, transform 0.15s;
}
.catalog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); text-decoration: none; }
.catalog-card h2 {
  font-size: 1.15rem; margin: 8px 0 8px; color: var(--text);
}
.catalog-card .amount { font-weight: 600; color: var(--teal); font-size: 0.95rem; margin-bottom: 8px; }
.catalog-card .best { font-size: 0.9rem; color: var(--text-secondary); }
.catalog-card.is-hidden { display: none; }
.catalog-empty { display: none; text-align: center; padding: 40px 16px; color: var(--text-muted); }
.catalog-empty.show { display: block; }

.bar-callout {
  background: var(--bg-card-alt); border: 1px solid var(--border); border-left: 4px solid var(--teal);
  border-radius: var(--radius-md); padding: 16px 18px; margin: 0 0 28px; font-size: 0.95rem;
  color: var(--text-secondary);
}
.bar-callout strong { color: var(--text); }

.criteria {
  width: 100%; border-collapse: collapse; margin: 0 0 36px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.criteria th, .criteria td {
  text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.criteria th {
  width: 32%; font-weight: 600; color: var(--text); background: var(--bg-card-alt);
  font-family: var(--font-display);
}
.criteria td { color: var(--text-secondary); }
.criteria tr:last-child th, .criteria tr:last-child td { border-bottom: none; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.highlight-list { margin: 0 0 28px; padding-left: 18px; color: var(--text-secondary); }
.highlight-list li { margin: 6px 0; }

.faq details {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 18px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-display); color: var(--text); }
.faq details p { margin-top: 8px; color: var(--text-secondary); font-size: 0.95rem; }

.related-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px;
}
@media (max-width: 720px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  display: block; padding: 16px 18px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: inherit; text-decoration: none;
}
.related-card:hover { border-color: var(--teal); text-decoration: none; }
.related-card strong { display: block; color: var(--text); margin-bottom: 4px; }
.related-card span { font-size: 0.85rem; color: var(--text-secondary); }

.disclaimer-box {
  font-size: 0.85rem; color: var(--text-muted); margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border); line-height: 1.6;
}
.section-label {
  font-family: var(--font-display); font-size: 1.35rem; margin: 8px 0 16px;
}

.criteria-list { margin: 0; padding-left: 18px; color: var(--text-secondary); }
.criteria-list li { margin: 4px 0; }
.criteria td .criteria-list { max-width: 42rem; }
