:root {
  --accent: #1e40af;
  --accent-light: #3b82f6;
  --accent-dark: #1e3a8a;
  --accent-bg: #eff6ff;
  --text: #111827;
  --text-muted: #4b5563;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;
  --success: #047857;
  --success-bg: #ecfdf5;
  --warning: #b45309;
  --warning-bg: #fffbeb;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
nav {
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--accent-dark);
  letter-spacing: -0.02em;
  z-index: 200;
}

nav .logo:hover {
  text-decoration: none;
  color: var(--accent);
}

/* Desktop nav links */
.nav-links-desktop {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links-desktop li {
  margin: 0;
}

.nav-links-desktop a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-links-desktop a:hover {
  color: var(--accent);
  text-decoration: none;
  border-bottom-color: var(--accent);
}

/* Mobile nav overlay - hidden on desktop */
.nav-overlay {
  display: none;
}

/* Hamburger button - hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: all 0.3s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text);
  left: 0;
  transition: all 0.3s;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* Typography - Stronger hierarchy */
h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

h2 {
  font-size: 1.625rem;
  margin: 2.5rem 0 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  font-weight: 600;
  color: var(--text);
}

p {
  margin-bottom: 1.25rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Data Badge - Trust signal */
.data-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-bg);
  border: 1px solid var(--accent-light);
  color: var(--accent-dark);
  padding: 0.375rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.data-badge::before {
  content: "●";
  color: var(--success);
  font-size: 0.6rem;
}

/* Update timestamp */
.last-update {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 0.75rem;
}

.last-update::before {
  content: "↻";
}

/* Buttons - More professional */
.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.8rem 1.75rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn:hover {
  background: var(--accent-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background: white;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-bg);
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Hero Section - More impactful */
.hero {
  text-align: center;
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.hero .trust-line {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero .trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero .trust-line span::before {
  content: "✓";
  color: var(--success);
  font-weight: bold;
}

.hero .cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Stats Grid - More authoritative */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  position: relative;
  transition: all 0.2s;
}

.stat-card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.08);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 0.5rem 0.5rem 0 0;
}

.stat-card .stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-dark);
  display: block;
  letter-spacing: -0.02em;
}

.stat-card .stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.5rem;
  display: block;
}

.stat-card .stat-source {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Methodology Box - Trust signal */
.methodology-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.methodology-box h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.methodology-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Data Source Tag */
.source-tag {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

/* Tables - More professional */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}

th, td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-alt);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

tbody tr:hover {
  background: var(--accent-bg);
}

tbody tr:last-child td {
  border-bottom: none;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.table-wrapper table {
  margin: 0;
  border: none;
}

/* Lists - Enhanced */
ul, ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.625rem;
}

li strong {
  color: var(--text);
}

/* Key Points Box */
.key-points {
  background: var(--success-bg);
  border: 1px solid #a7f3d0;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 2rem 0;
}

.key-points h4 {
  color: var(--success);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.key-points ul {
  margin: 0;
  padding-left: 1.25rem;
}

.key-points li {
  color: #065f46;
  margin-bottom: 0.5rem;
}

/* Blog - Enhanced */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list .post-title {
  font-size: 1.35rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.post-list .post-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
}

.post-list .post-excerpt {
  color: var(--text-muted);
  margin-top: 0.625rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Calculator Styles - More professional */
.calculator {
  max-width: 520px;
  margin: 2rem auto;
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.calculator-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.calculator-header h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.calculator-header p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.progress-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.progress-bar .step {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  transition: background 0.3s;
}

.progress-bar .step.active {
  background: var(--accent);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.625rem;
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-dark);
  border-radius: 0.375rem;
  font-size: 1rem;
  background: var(--bg);
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group .help-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.radio-group {
  margin-top: 0.75rem;
}

.radio-label {
  display: block;
  padding: 0.625rem 0;
  font-weight: normal;
  cursor: pointer;
}

.radio-label input {
  margin-right: 0.625rem;
}

.checkbox-label {
  font-weight: normal;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-label input {
  margin-right: 0.5rem;
}

/* Results - Enhanced */
.results {
  text-align: center;
}

.results h2 {
  margin-top: 0;
  color: var(--success);
  font-size: 1.35rem;
}

.savings {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--success);
  margin: 1rem 0 0.25rem;
  letter-spacing: -0.02em;
}

.savings-label {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.results-table {
  text-align: left;
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.results-table td {
  padding: 0.875rem 1rem;
}

.results-table td:last-child {
  text-align: right;
  font-weight: 600;
  font-family: "SF Mono", Monaco, monospace;
}

.results-table .total-row {
  font-weight: bold;
  background: var(--success-bg);
  border-top: 2px solid var(--success);
}

.results-table .total-row td {
  color: var(--success);
}

.disclaimer {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer - Professional */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  background: var(--bg-alt);
}

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

.footer-brand h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

.footer-links h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Related Questions */
.related-questions {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-questions h2 {
  font-size: 1.25rem;
  margin-top: 0;
}

.related-questions ul {
  list-style: none;
  padding: 0;
}

.related-questions li {
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
}

.related-questions li:last-child {
  border-bottom: none;
}

.related-questions a {
  font-weight: 500;
}

.related-questions a::before {
  content: "→ ";
  color: var(--accent);
}

/* Last Updated - Enhanced */
.last-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.last-updated::before {
  content: "↻";
  font-size: 1rem;
}

/* About Section */
.about-section {
  padding: 3.5rem 0;
}

.about-section h2 {
  margin-top: 0;
}

/* Credential Box */
.credential-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.credential-box .icon {
  width: 48px;
  height: 48px;
  background: var(--accent-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.credential-box .text h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.credential-box .text p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Recent Posts */
.recent-posts {
  padding: 3.5rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.recent-posts h2 {
  margin-top: 0;
}

/* Content styling */
.content h2:first-child {
  margin-top: 0;
}

.content strong {
  font-weight: 600;
  color: var(--text);
}

/* Warning/Note boxes */
.note-box {
  background: var(--warning-bg);
  border: 1px solid #fcd34d;
  border-left: 4px solid var(--warning);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.note-box strong {
  color: var(--warning);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Mobile Navigation */
  .nav-toggle {
    display: block;
  }

  .nav-links-desktop {
    display: none;
  }

  .nav-overlay {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .nav-overlay.active {
    transform: translateX(0);
  }

  .nav-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
  }

  .nav-overlay-header .logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-dark);
  }

  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
  }

  .nav-close:hover {
    background: var(--border);
    color: var(--text);
  }

  .nav-overlay .nav-links {
    flex-direction: column;
    gap: 0;
    flex: 1;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-overlay .nav-links li {
    border-bottom: 1px solid var(--border);
    margin: 0;
  }

  .nav-overlay .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-overlay .nav-links a {
    display: block;
    padding: 1.25rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
  }

  .nav-overlay .nav-links a:hover {
    color: var(--accent);
    text-decoration: none;
  }

  body.nav-open {
    overflow: hidden;
  }

  /* Typography */
  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.375rem;
    margin: 2rem 0 0.875rem;
  }

  h3 {
    font-size: 1.125rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  /* Hero */
  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .hero .trust-line {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Layout */
  .container {
    padding: 1.5rem 1rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 1.25rem;
  }

  .stat-card .stat-number {
    font-size: 1.75rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .footer-legal {
    text-align: left;
  }

  /* Buttons */
  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .btn {
    padding: 0.875rem 1.5rem;
  }

  .btn-lg {
    padding: 1rem 1.75rem;
    font-size: 1rem;
  }

  /* Tables */
  table {
    font-size: 0.8rem;
  }

  th, td {
    padding: 0.5rem 0.625rem;
  }

  th {
    font-size: 0.7rem;
  }

  /* Calculator */
  .calculator {
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
  }

  .button-group {
    flex-direction: column;
  }

  .savings {
    font-size: 2.75rem;
  }

  .credential-box {
    flex-direction: column;
    text-align: center;
  }
}

/* Author Box */
.author-box {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin: 2.5rem 0;
}

.author-avatar {
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.author-info {
  flex: 1;
}

.author-info strong {
  font-size: 1rem;
  display: block;
}

.author-info strong a {
  color: var(--text);
}

.author-info .author-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.author-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Large author box for about page */
.author-box-large {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 2rem 0;
}

.author-box-large .author-avatar {
  width: 80px;
  height: 80px;
  font-size: 1.75rem;
}

.author-box-large h3 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
}

.author-box-large .author-title {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.author-credentials {
  margin-top: 1rem;
  padding-left: 1.25rem;
}

.author-credentials li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

/* Article Header */
.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  margin-bottom: 0.75rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.article-meta .separator {
  color: var(--border-dark);
}

.article-meta .author a {
  color: var(--text);
  font-weight: 500;
}

.article-meta .updated {
  color: var(--success);
}

/* FAQ Section */
.faq-section {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.faq-section h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.35rem;
}

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

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

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

/* Related Articles */
.related-articles {
  margin: 2.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.related-articles h2 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-articles li {
  padding: 0.5rem 0;
}

.related-articles a {
  font-weight: 500;
}

.related-articles a::before {
  content: "→ ";
  color: var(--accent);
}

/* Article Navigation */
.article-nav {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.article-nav a {
  display: block;
  padding: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.article-nav a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.article-nav .nav-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.25rem;
}

.article-nav .nav-title {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  display: block;
}

.article-nav .nav-next {
  text-align: right;
}

/* Additional Mobile Styles */
@media (max-width: 768px) {
  /* Author boxes */
  .author-box {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.25rem;
  }

  .author-box-large {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .author-box-large .author-avatar {
    margin: 0 auto;
  }

  .author-credentials {
    text-align: left;
  }

  /* Article header */
  .article-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .article-meta {
    font-size: 0.8rem;
  }

  /* FAQ section */
  .faq-section {
    padding: 1.25rem;
    margin: 2rem 0;
  }

  .faq-section h2 {
    font-size: 1.15rem;
  }

  .faq-item h3 {
    font-size: 0.95rem;
  }

  /* Article nav */
  .article-nav {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .article-nav .nav-next {
    text-align: left;
  }

  /* Methodology box */
  .methodology-box {
    padding: 1rem 1.25rem;
  }

  /* Data badge */
  .data-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  /* Related articles */
  .related-articles {
    margin: 2rem 0;
  }

  /* Post list */
  .post-list li {
    padding: 1.25rem 0;
  }

  .post-list .post-title {
    font-size: 1.15rem;
  }

  /* Progress bar text */
  .progress-bar {
    margin-bottom: 1.5rem;
  }

  /* Results */
  .results h2 {
    font-size: 1.15rem;
  }

  .savings {
    font-size: 2.5rem;
  }

  .savings-label {
    font-size: 1rem;
  }

  /* Form elements */
  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group select {
    font-size: 16px; /* Prevents iOS zoom */
    padding: 0.75rem;
  }

  .radio-label {
    font-size: 0.95rem;
  }
}

/* Small phones */
@media (max-width: 375px) {
  h1 {
    font-size: 1.625rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .stat-card .stat-number {
    font-size: 1.5rem;
  }

  .savings {
    font-size: 2.25rem;
  }

  nav .nav-links a {
    font-size: 1.1rem;
    padding: 1rem 0;
  }
}

/* Print styles */
@media print {
  nav, footer, .btn, .cta-buttons, .calculator {
    display: none;
  }

  .container {
    max-width: 100%;
  }
}
