/* Font loaded via HTML link tag for performance */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #10b981;
  --accent-dark: #059669;
  --accent-light: #d1fae5;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 12px;
  --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-alt);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.logo img { height: 40px !important; width: auto; }
.logo-text { font-size: 1.35rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.logo-text::after { content: ''; }
.footer-brand .logo-text { color: white; }
.logo:hover { text-decoration: none; opacity: 0.9; }

/* Nav */
.nav-categories {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}
.nav-categories a {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.nav-categories a:hover {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}
.nav-categories a.active {
  background: var(--primary);
  color: white;
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Search */
.search-box {
  position: relative;
}
.search-box input {
  padding: 0.5rem 1rem 0.5rem 2.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  width: 220px;
  background: var(--bg-alt);
  transition: all 0.2s;
}
.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  width: 300px;
}
.search-box svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-light);
}
.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 200;
}
.search-results.active { display: block; }
.search-result-item {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.search-result-item:hover { background: var(--bg-alt); }
.search-result-item:last-child { border-bottom: none; }

/* Language selector */
.lang-selector {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text);
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 200;
  min-width: 200px;
}
.lang-dropdown.active { display: block; }
.lang-option {
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lang-option:hover { background: var(--bg-alt); }
.lang-option.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
}
.mobile-nav {
  display: none;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1rem 1rem;
}
.mobile-nav.active { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Breadcrumb */
.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1rem 0;
  font-size: 0.875rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb span { color: var(--text); font-weight: 500; }

/* Main layout */
.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}
.content-area { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

/* Calculator widget */
.calc-widget {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.calc-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 1.5rem;
  color: white;
}
.calc-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.calc-header p {
  opacity: 0.9;
  font-size: 0.875rem;
}
.calc-body { padding: 1.5rem; }

/* Form inputs */
.calc-group {
  margin-bottom: 1rem;
}
.calc-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--text);
}
.calc-group .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.calc-group .input-prefix,
.calc-group .input-suffix {
  position: absolute;
  color: var(--text-light);
  font-size: 0.875rem;
  pointer-events: none;
}
.calc-group .input-prefix { left: 0.75rem; }
.calc-group .input-suffix { right: 0.75rem; }
.calc-group input[type="number"],
.calc-group input[type="text"],
.calc-group select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
  background: var(--bg);
}
.calc-group input.has-prefix { padding-left: 1.75rem; }
.calc-group input.has-suffix { padding-right: 2.5rem; }
.calc-group input:focus,
.calc-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.calc-group .input-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}
.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Range slider */
.calc-group input[type="range"] {
  width: 100%;
  margin-top: 0.25rem;
  accent-color: var(--primary);
}
.range-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Calculate button */
.calc-btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
}
.calc-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Results */
.calc-results {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
  display: none;
}
.calc-results.active { display: block; }
.result-main {
  text-align: center;
  padding: 1.5rem;
  background: var(--accent-light);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.result-main .result-label {
  font-size: 0.875rem;
  color: var(--accent-dark);
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.result-main .result-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-dark);
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.result-item {
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: 8px;
}
.result-item .result-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.result-item .result-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

/* Results table (amortization etc) */
.result-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.875rem;
}
.result-table th {
  background: var(--bg-alt);
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}
.result-table td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.result-table tr:hover td { background: var(--bg-alt); }

/* Content sections */
.content-section {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-top: 1.5rem;
}
.content-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}
.content-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}
.content-section p {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.content-section ul, .content-section ol {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--text-secondary);
}
.content-section li { margin-bottom: 0.375rem; }

.formula-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
}

/* FAQ accordion */
.faq-section { margin-top: 1.5rem; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-family: inherit;
}
.faq-question:hover { background: var(--bg-alt); }
.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.25rem 1rem;
}

/* Related calculators */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.related-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.related-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.related-card .card-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}
.related-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.related-card p {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* Sidebar */
.sidebar-ad {
  /* Ezoic manages ad display */
}
.sidebar-widget {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.sidebar-widget h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget li {
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-widget li:last-child { border-bottom: none; }
.sidebar-widget a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.sidebar-widget a:hover { color: var(--primary); }

/* Homepage */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.hero-search {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}
.hero-search input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1.0625rem;
  box-shadow: var(--shadow-lg);
}
.hero-search input:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.3); }
.hero-search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

/* Category cards */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}
.category-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.category-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  text-decoration: none;
}
.category-card .cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.category-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.category-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.category-card .cat-count {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 600;
}

/* Category index page */
.category-hero {
  padding: 2rem 1rem;
  text-align: center;
  max-width: 1280px;
  margin: 0 auto;
}
.category-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.category-hero p { color: var(--text-secondary); font-size: 1.0625rem; }

.calc-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}
.calc-list-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.calc-list-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.calc-list-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.calc-list-item p {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* Footer */
.site-footer {
  background: var(--text);
  color: #cbd5e1;
  padding: 3rem 1rem 1.5rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand p { font-size: 0.875rem; margin-top: 0.5rem; line-height: 1.6; }
.footer-col h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.375rem; }
.footer-col a { color: #94a3b8; font-size: 0.875rem; }
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1280px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
}

/* Ad placeholders — no styles, Ezoic manages display */
.ad-leaderboard {
  margin: 1.5rem 0;
}

/* Cookie consent */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e293b;
  color: white;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  z-index: 10000;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
  border-top: 3px solid var(--primary);
  animation: slideUp 0.4s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.cookie-banner p { font-size: 0.9375rem; flex: 1; max-width: 700px; line-height: 1.5; }
.cookie-banner button {
  padding: 0.625rem 1.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s;
  white-space: nowrap;
}
.cookie-accept { background: var(--primary); color: white; }
.cookie-accept:hover { background: var(--primary-dark); transform: scale(1.05); }
.cookie-decline { background: transparent; color: #94a3b8; border: 1px solid #475569 !important; }
.cookie-decline:hover { color: white; border-color: #94a3b8 !important; }
@media (max-width: 768px) {
  .cookie-banner { flex-direction: column; padding: 1.25rem 1rem; gap: 1rem; }
  .cookie-banner p { text-align: center; }
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
}
.toast.active { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .main-content { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .nav-categories { display: none; }
  .mobile-menu-btn { display: block; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  .calc-header h1 { font-size: 1.25rem; }
  .result-main .result-value { font-size: 2rem; }
  .result-grid { grid-template-columns: 1fr; }
  .calc-row { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .search-box input { width: 160px; }
  .search-box input:focus { width: 200px; }
}

@media (max-width: 480px) {
  .header-inner { height: 56px; }
  .logo { font-size: 1.25rem; }
  .calc-body { padding: 1rem; }
  .content-section { padding: 1.25rem; }
}

/* === DESIGN UPGRADE v2 === */

/* SVG Category Icons */
.cat-svg-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}
.cat-svg-icon svg { width: 28px; height: 28px; }
.category-card:hover .cat-svg-icon { transform: scale(1.1) rotate(-5deg); }

/* Stats Section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1280px;
  margin: -1.5rem auto 2.5rem;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}
.stat-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* How It Works */
.how-section {
  max-width: 1280px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}
.how-section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2rem;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.how-step {
  text-align: center;
  padding: 1.5rem;
}
.how-step-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 1rem;
}
.how-step h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.5rem; }
.how-step p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* Trust Badges */
.trust-section {
  background: linear-gradient(135deg, #f0f4ff, #faf5ff);
  padding: 3rem 1rem;
  margin: 0 auto 2.5rem;
  border-radius: var(--radius-lg);
  max-width: 1280px;
}
.trust-section h2 { font-size: 1.75rem; font-weight: 800; text-align: center; margin-bottom: 2rem; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.trust-item { text-align: center; }
.trust-icon {
  width: 56px;
  height: 56px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  box-shadow: var(--shadow);
}
.trust-icon svg { width: 28px; height: 28px; color: var(--primary); }
.trust-item h4 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.25rem; }
.trust-item p { font-size: 0.8125rem; color: var(--text-secondary); }

/* Newsletter */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  color: white;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}
.newsletter-section h3 { font-size: 1.375rem; font-weight: 700; margin-bottom: 0.5rem; }
.newsletter-section p { opacity: 0.9; margin-bottom: 1.25rem; font-size: 0.9375rem; }
.newsletter-form { display: flex; gap: 0.5rem; max-width: 450px; margin: 0 auto; }
.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 0.9375rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form input:focus { outline: none; border-color: white; background: rgba(255,255,255,0.25); }
.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--primary);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.newsletter-form button:hover { transform: scale(1.05); box-shadow: var(--shadow-md); }

/* Quick Tips Box */
.tips-box {
  background: var(--accent-light);
  border: 1px solid #6ee7b7;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}
.tips-box h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tips-box ul { list-style: none; margin: 0; padding: 0; }
.tips-box li {
  padding: 0.25rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
}
.tips-box li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

/* Improved Category Cards */
.category-card { position: relative; overflow: hidden; }
.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.category-card:hover::before { transform: scaleX(1); }

/* Improved Hero */
.hero { position: relative; overflow: hidden; padding: 4rem 1rem; }
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.category-card, .stat-card { animation: fadeInUp 0.5s ease-out backwards; }
.category-card:nth-child(1) { animation-delay: 0.05s; }
.category-card:nth-child(2) { animation-delay: 0.1s; }
.category-card:nth-child(3) { animation-delay: 0.15s; }
.category-card:nth-child(4) { animation-delay: 0.2s; }
.category-card:nth-child(5) { animation-delay: 0.25s; }
.category-card:nth-child(6) { animation-delay: 0.3s; }
.category-card:nth-child(7) { animation-delay: 0.35s; }
.category-card:nth-child(8) { animation-delay: 0.4s; }

.calc-widget { border: 1px solid var(--border); transition: box-shadow 0.3s; }
.calc-widget:hover { box-shadow: var(--shadow-lg); }

/* Responsive new sections */
@media (max-width: 1024px) {
  .stats-section { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .stats-section { grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: -1rem; }
  .stat-number { font-size: 1.75rem; }
  .how-grid { grid-template-columns: 1fr; gap: 1rem; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; }
}
@media (max-width: 480px) {
  .stat-card { padding: 1rem; }
  .stat-number { font-size: 1.5rem; }
}

/* Print */
@media print {
  .site-header, .sidebar, .site-footer, .cookie-banner, .ad-leaderboard, .sidebar-ad { display: none !important; }
  .main-content { grid-template-columns: 1fr; }
  .calc-results { display: block !important; }
}

/* Utilities */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
