/* ============================================================
   MoneyCounterAI.com — Premium Stylesheet v2.0
   Palette: Green #1A6B3D | Navy #1A365D | Amber #D69E2E
   ============================================================ */

/* ── Google Fonts Import ──────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1E293B;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1A6B3D; text-decoration: none; transition: color .2s; }
a:hover { color: #145530; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --green:      #1A6B3D;
  --green-dark: #145530;
  --green-mid:  #228B4E;
  --green-light:#E8F5EE;
  --navy:       #1A365D;
  --navy-dark:  #0F2044;
  --navy-light: #EBF4FF;
  --amber:      #D69E2E;
  --amber-light:#FEFCE8;
  --white:      #FFFFFF;
  --off-white:  #F8FAFC;
  --grey-50:    #F9FAFB;
  --grey-100:   #F3F4F6;
  --grey-200:   #E5E7EB;
  --grey-300:   #D1D5DB;
  --grey-500:   #6B7280;
  --grey-700:   #374151;
  --grey-900:   #111827;
  --text:       #1E293B;
  --text-muted: #64748B;
  --border:     #E2E8F0;
  --shadow-xs:  0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.07);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.10);
  --shadow-xl:  0 16px 48px rgba(0,0,0,.12);
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --transition: .2s ease;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -.02em;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1.05rem; }
p  { margin-bottom: 1rem; color: var(--text); }
p:last-child { margin-bottom: 0; }
.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.65;
}
strong { font-weight: 600; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: .35rem; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.site-header {
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(255,255,255,.06), var(--shadow-md);
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 1rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 2px 8px rgba(26,107,61,.4);
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1;
}
.logo-text span { color: var(--amber); }

/* Nav links */
.site-nav {
  display: flex;
  align-items: center;
  gap: .15rem;
  flex-wrap: nowrap;
}
.site-nav a {
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  font-weight: 500;
  padding: .45rem .7rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: .01em;
}
.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.1);
  text-decoration: none;
}

/* Currency toggle */
.currency-toggle {
  display: flex;
  background: rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
  margin-left: .5rem;
  border: 1px solid rgba(255,255,255,.12);
}
.currency-btn {
  padding: .25rem .7rem;
  border-radius: 16px;
  font-size: .75rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
  letter-spacing: .02em;
}
.currency-btn.active,
.currency-btn:hover {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 2px 6px rgba(214,158,46,.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: .5rem;
  gap: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 66px; left: 0; right: 0;
    background: var(--navy-dark);
    padding: 1rem 1.25rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
    gap: .25rem;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: .95rem; width: 100%; padding: .6rem .75rem; }
  .currency-toggle { margin-left: 0; margin-top: .5rem; }
}

/* ── HERO — HOMEPAGE ──────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, #1A365D 50%, #1E4A3A 100%);
  padding: 5rem 1.25rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 70% 50%, rgba(26,107,61,.25) 0%, transparent 60%),
    radial-gradient(ellipse 400px 400px at 20% 80%, rgba(214,158,46,.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.1rem;
  letter-spacing: -.03em;
}
.hero h1 em {
  font-style: normal;
  color: var(--amber);
  display: block;
}
.hero-subtitle {
  color: rgba(255,255,255,.75);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* Search bar */
.search-form {
  display: flex;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0,0,0,.2), 0 0 0 1px rgba(255,255,255,.1);
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto 1.5rem;
  position: relative;
}
.search-input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: none;
  font-size: .95rem;
  color: var(--text);
  background: transparent;
  outline: none;
}
.search-input::placeholder { color: var(--grey-500); }
.btn.btn-primary {
  background: var(--green);
  color: #fff;
  border: none;
  padding: .9rem 1.5rem;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background var(--transition);
  white-space: nowrap;
}
.btn.btn-primary:hover { background: var(--green-dark); }

/* Search results dropdown */
.search-results {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0; right: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  z-index: 100;
  border: 1px solid var(--border);
}
.sr-item {
  display: flex;
  flex-direction: column;
  padding: .75rem 1.1rem;
  border-bottom: 1px solid var(--grey-100);
  transition: background var(--transition);
}
.sr-item:hover { background: var(--grey-50); text-decoration: none; }
.sr-item:last-child { border-bottom: none; }
.sr-cat { font-size: .72rem; color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .15rem; }
.sr-item strong { font-size: .9rem; color: var(--navy); }

/* ── TRUST STATS BAR ──────────────────────────────────────── */
.trust-stats {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
}
.stats-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.stat-card {
  background: #fff;
  padding: 1.1rem 1.25rem;
  text-align: center;
  transition: background var(--transition);
}
.stat-card:hover { background: var(--off-white); }
.stat-number {
  font-family: 'Inter', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .2rem;
}
.stat-label {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: .02em;
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── CALCULATOR CATEGORY SECTIONS ────────────────────────── */
.calculator-category {
  padding: 0 0 2.5rem;
}
.calculator-category:nth-child(odd) { background: var(--off-white); }
.calculator-category:nth-child(even) { background: #fff; }

.category-header {
  padding: 2rem 1.25rem 1.5rem;
  margin-bottom: 0;
}
.category-header h2 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .3rem;
  letter-spacing: -.02em;
}
.category-header p {
  color: rgba(255,255,255,.8);
  font-size: .88rem;
  margin: 0;
}

/* Calculator grid */
.calculators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: .75rem;
  padding: 1.25rem 1.25rem 0;
  max-width: 1160px;
  margin: 0 auto;
}
.calc-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.15rem;
  text-decoration: none;
  transition: all var(--transition);
  display: block;
  position: relative;
  overflow: hidden;
}
.calc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--green);
  opacity: 0;
  transition: opacity var(--transition);
}
.calc-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.calc-card:hover::before { opacity: 1; }
.calc-card h3 {
  font-size: .92rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: .3rem;
  line-height: 1.25;
}
.calc-card p {
  font-size: .78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}
@media (max-width: 640px) {
  .calculators-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .calc-card { padding: .85rem .9rem; }
  .calc-card h3 { font-size: .85rem; }
}
@media (max-width: 400px) {
  .calculators-grid { grid-template-columns: 1fr; }
}

/* ── WHY USE SECTION ──────────────────────────────────────── */
.why-use-section {
  background: var(--navy-dark);
  padding: 3.5rem 1.25rem;
}
.why-use-section h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}
.why-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: background var(--transition);
}
.why-card:hover { background: rgba(255,255,255,.09); }
.why-icon {
  width: 34px; height: 34px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .85rem;
  box-shadow: 0 3px 10px rgba(26,107,61,.4);
}
.why-card h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: .4rem;
}
.why-card p { color: rgba(255,255,255,.65); font-size: .875rem; margin: 0; }

/* ── AD SLOTS ─────────────────────────────────────────────── */
.ad-slot {
  background: var(--grey-50) !important;
  border: 1.5px dashed var(--grey-200) !important;
  border-radius: var(--radius) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-300);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ad-slot::after { content: 'Advertisement'; }

/* ── BREADCRUMB ───────────────────────────────────────────── */
.breadcrumb {
  background: var(--grey-50);
  border-bottom: 1px solid var(--border);
  padding: .65rem 1.25rem;
}
.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
}
.breadcrumb a { color: var(--text-muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .separator { color: var(--grey-300); }
.breadcrumb .current { color: var(--navy); font-weight: 600; }

/* ── PAGE HEADER ──────────────────────────────────────────── */
.page-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.page-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  margin-bottom: .5rem;
  font-weight: 800;
}
.page-header .lead { max-width: 640px; }

/* ── CALCULATOR LAYOUT ────────────────────────────────────── */
.calculator-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 2rem;
}
@media (max-width: 900px) {
  .calculator-layout { grid-template-columns: 1fr; }
}

/* ── CALCULATOR FORM ──────────────────────────────────────── */
.calculator-section {
  position: sticky;
  top: 84px;
}
.calculator-form {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.calculator-form fieldset {
  border: none;
  padding: 1.5rem 1.5rem .5rem;
}
.calculator-form fieldset fieldset {
  border-top: 1.5px solid var(--grey-100);
  padding: 1rem 0 .5rem;
  margin-top: .75rem;
}
.calculator-form legend {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green);
  padding: 0;
  margin-bottom: .85rem;
}
.calculator-form fieldset fieldset legend {
  font-size: .72rem;
  color: var(--text-muted);
  margin-bottom: .6rem;
}

.form-group {
  margin-bottom: .9rem;
  position: relative;
}
.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--grey-700);
  margin-bottom: .3rem;
  letter-spacing: .01em;
}
.form-group input[type="number"],
.form-group input[type="text"],
.form-group select {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--text);
  background: var(--grey-50);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  -moz-appearance: textfield;
  appearance: textfield;
}
.form-group input::-webkit-outer-spin-button,
.form-group input::-webkit-inner-spin-button { -webkit-appearance: none; }
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,107,61,.1);
}
.form-group input[readonly] {
  background: var(--grey-100);
  color: var(--text-muted);
  cursor: default;
}
.currency-symbol {
  position: absolute;
  left: .9rem;
  bottom: .68rem;
  font-weight: 600;
  color: var(--text-muted);
  font-size: .9rem;
  pointer-events: none;
}
/* Only add padding when currency symbol is shown */
.form-group:has(.currency-symbol) input { padding-left: 1.7rem; }

.form-group.checkbox {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}
.form-group.checkbox input { width: auto; margin: 0; }
.form-group.checkbox label {
  margin: 0;
  font-size: .875rem;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  padding: .75rem 1.35rem;
  border-radius: var(--radius);
  border: none;
  transition: all var(--transition);
  letter-spacing: .01em;
  cursor: pointer;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 3px 12px rgba(26,107,61,.3);
}
.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 5px 18px rgba(26,107,61,.4);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  background: var(--grey-50);
  border-color: var(--navy);
  color: var(--navy);
  text-decoration: none;
}
.btn-block {
  width: 100%;
  display: flex;
}
.calculator-form .btn-primary {
  margin: .5rem 1.5rem 1rem;
  width: calc(100% - 3rem);
}
.calculator-form .btn-secondary {
  margin: 0 1.5rem 1.5rem;
  width: calc(100% - 3rem);
  font-weight: 600;
  font-size: .82rem;
}

/* ── RESULTS PANEL ────────────────────────────────────────── */
.results-panel {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.results-panel h2 {
  font-size: 1.1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--off-white);
  color: var(--navy);
  font-weight: 700;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.result-card {
  padding: 1.25rem 1.35rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.result-card:nth-child(even) { border-right: none; }
.result-card:hover { background: var(--grey-50); }
.result-card.highlight {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  border-color: transparent;
}
.result-card.highlight .result-label { color: rgba(255,255,255,.8); }
.result-card.highlight .result-value { color: #fff; }
.result-card.highlight .result-note  { color: rgba(255,255,255,.65); }
.result-label {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .3rem;
}
.result-value {
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -.03em;
}
.result-note {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: .25rem;
}
.chart-container {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.chart-container h3 {
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .85rem;
}

/* ── AMORTISATION TABLE ───────────────────────────────────── */
.table-responsive {
  overflow-x: auto;
  padding: 1.25rem 1.5rem;
}
.table-responsive h3 {
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .85rem;
}
.amortisation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.amortisation-table thead th {
  background: var(--navy);
  color: #fff;
  padding: .6rem .85rem;
  text-align: right;
  font-weight: 600;
  font-size: .76rem;
  letter-spacing: .03em;
  white-space: nowrap;
}
.amortisation-table thead th:first-child { text-align: left; border-radius: var(--radius-sm) 0 0 0; }
.amortisation-table thead th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }
.amortisation-table tbody tr:nth-child(even) { background: var(--grey-50); }
.amortisation-table tbody tr:hover { background: var(--green-light); }
.amortisation-table tbody td {
  padding: .55rem .85rem;
  border-bottom: 1px solid var(--grey-100);
  text-align: right;
  color: var(--text);
}
.amortisation-table tbody td:first-child { text-align: left; font-weight: 600; }

/* ── CONTENT SECTIONS (supporting text) ──────────────────── */
.content-section {
  padding: 2.75rem 1.25rem;
  border-top: 1px solid var(--border);
}
.content-section:nth-child(even) { background: var(--off-white); }
.content-section h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  margin-bottom: 1.1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--green-light);
  display: inline-block;
}
.content-section h3 { margin: 1.5rem 0 .5rem; color: var(--navy); }
.content-section p, .content-section li { max-width: 760px; }
.content-section ul li::marker { color: var(--green); }

.info-box {
  background: var(--navy-light);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  max-width: 760px;
}
.info-box h4 { color: var(--navy); margin-bottom: .3rem; font-size: .95rem; }
.info-box p { margin: 0; font-size: .88rem; }

.formula-box {
  background: var(--grey-900);
  color: #E2E8F0;
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius);
  font-family: 'Courier New', monospace;
  font-size: .85rem;
  margin: 1rem 0;
  max-width: 760px;
  overflow-x: auto;
}

/* ── FAQ SECTION ──────────────────────────────────────────── */
.faq-section {
  background: var(--off-white);
  padding: 2.75rem 1.25rem;
  border-top: 1px solid var(--border);
}
.faq-section h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  margin-bottom: 1.5rem;
  color: var(--navy);
}
.faq-list { max-width: 800px; }
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: .6rem;
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item:hover { border-color: var(--green); }
.faq-item.open {
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy);
  gap: 1rem;
}
.faq-toggle {
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 300;
  transition: transform var(--transition), background var(--transition);
  line-height: 1;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--green); color: #fff; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .2s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p {
  padding: 0 1.25rem 1.1rem;
  font-size: .875rem;
  color: var(--text);
  margin: 0;
}

/* ── RELATED CALCULATORS ──────────────────────────────────── */
.related-section {
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--border);
  background: #fff;
}
.related-section h2 { margin-bottom: 1.1rem; font-size: 1.25rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: .75rem;
}
.related-card {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  text-decoration: none;
  transition: all var(--transition);
}
.related-card:hover {
  border-color: var(--green);
  background: var(--green-light);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  text-decoration: none;
}
.rc-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: .05rem; }
.rc-text strong { display: block; font-size: .84rem; color: var(--navy); font-weight: 600; margin-bottom: .15rem; }
.rc-text span   { font-size: .74rem; color: var(--text-muted); }

/* ── DISCLAIMER (calc pages) ─────────────────────────────── */
.calc-disclaimer {
  background: var(--amber-light);
  border: 1px solid #FDE68A;
  border-radius: var(--radius);
  padding: .85rem 1rem .85rem 2.75rem;
  font-size: .8rem;
  color: #78350F;
  position: relative;
  margin: 1.25rem 0;
  max-width: 760px;
}
.calc-disclaimer::before {
  content: '⚠️';
  position: absolute;
  left: .85rem;
  top: .85rem;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: #0A1628;
  color: rgba(255,255,255,.65);
  padding: 3.5rem 1.25rem 0;
}
.footer-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

.footer-brand .site-logo { margin-bottom: .85rem; }
.footer-brand p { font-size: .84rem; line-height: 1.65; max-width: 280px; }

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .85rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a {
  color: rgba(255,255,255,.5);
  font-size: .84rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: rgba(255,255,255,.9); text-decoration: none; }

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-bottom p { font-size: .78rem; margin: 0; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { font-size: .78rem; color: rgba(255,255,255,.4); }
.footer-links a:hover { color: rgba(255,255,255,.8); text-decoration: none; }

.footer-disclaimer {
  max-width: 1160px;
  margin: 0 auto;
  font-size: .72rem;
  color: rgba(255,255,255,.3);
  padding: 1rem 0 2rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,.05);
}

/* ── COOKIE BANNER ────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 3px solid var(--green);
  box-shadow: 0 -8px 32px rgba(0,0,0,.12);
  padding: 1.1rem 1.25rem;
  display: none;
}
.cookie-banner.visible { display: block; }
.cookie-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; font-size: .84rem; min-width: 200px; }
.cookie-text a { color: var(--green); font-weight: 600; }
.cookie-buttons { display: flex; gap: .5rem; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--green);
  color: #fff;
  border: none;
  padding: .5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .82rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-cookie-accept:hover { background: var(--green-dark); }
.btn-cookie-manage {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--transition);
}
.btn-cookie-manage:hover { border-color: var(--navy); color: var(--navy); }

/* ── STATIC PAGES (about, privacy, etc.) ─────────────────── */
.page-hero-static {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 3rem 1.25rem 2.5rem;
}
.page-hero-static h1 { color: #fff; margin-bottom: .5rem; }
.page-hero-static p { color: rgba(255,255,255,.7); margin: 0; max-width: 600px; }

.static-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}
.static-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 .65rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.static-content h2:first-child { margin-top: 0; }
.static-content p, .static-content li { font-size: .925rem; color: #374151; }
.static-content table {
  width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .85rem;
}
.static-content th {
  background: var(--navy); color: #fff;
  padding: .6rem .85rem; text-align: left; font-size: .78rem; letter-spacing: .04em;
}
.static-content td {
  padding: .55rem .85rem; border-bottom: 1px solid var(--grey-100);
}
.static-content tr:nth-child(even) td { background: var(--grey-50); }

/* ── BLOG ─────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.35rem;
  margin-top: 1.5rem;
}
.blog-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}
.blog-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
}
.blog-card-thumb {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.blog-card-body { padding: 1.25rem; }
.blog-tag {
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--green); display: block; margin-bottom: .4rem;
}
.blog-card-body h3 { font-size: .98rem; color: var(--navy); margin-bottom: .5rem; }
.blog-card-body p { font-size: .84rem; color: var(--text-muted); margin: 0; }
.blog-card-footer {
  padding: .75rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  font-size: .76rem; color: var(--text-muted);
}

/* ── UTILITY CLASSES ──────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.text-green { color: var(--green); }
.text-navy  { color: var(--navy); }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
section + section { }

/* ── PRINT ────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .cookie-banner, .ad-slot,
  .related-section, .faq-section, .breadcrumb,
  .calculator-section, .btn { display: none !important; }
  .calculator-layout { grid-template-columns: 1fr; }
  .results-panel { display: block !important; box-shadow: none; border: 1px solid #ccc; }
  .result-card.highlight { background: #f0f0f0 !important; }
  .result-card.highlight .result-value { color: #000 !important; }
}
