/* ============================================================
   FINLYBOX — global.css
   Shared design system across all pages.
   Page-specific styles live in each HTML file's <style> block.
   ============================================================ */

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

/* ── DESIGN TOKENS ── */
:root {
  /* Base */
  --white:        #FFFFFF;
  --ink:          #111827;
  --muted:        #6B7280;
  --muted-light:  #9CA3AF;
  --border:       #E5E7EB;
  --bg-subtle:    #F9FAFB;

  /* Sky (primary — Housing, main CTAs) */
  --sky:          #0EA5E9;
  --sky-bg:       #F0F9FF;
  --sky-mid:      #BAE6FD;
  --sky-dark:     #0284C7;

  /* Emerald (Career) */
  --emerald:      #10B981;
  --emerald-bg:   #ECFDF5;
  --emerald-mid:  #6EE7B7;

  /* Violet (Retirement) */
  --violet:       #8B5CF6;
  --violet-bg:    #F5F3FF;
  --violet-mid:   #C4B5FD;

  /* Amber (Auto) */
  --amber:        #F59E0B;
  --amber-bg:     #FFFBEB;
  --amber-mid:    #FCD34D;

  /* Rose (Health) */
  --rose:         #F43F5E;
  --rose-bg:      #FFF1F2;
  --rose-mid:     #FDA4AF;

  /* Teal (Savings & Investing) */
  --teal:         #0D9488;
  --teal-bg:      #F0FDFA;
  --teal-mid:     #5EEAD4;

  /* Typography */
  --sans:         'Plus Jakarta Sans', system-ui, sans-serif;

  /* Spacing */
  --page-pad:     48px;
  --section-gap:  88px;
  --inner-max:    1100px;

  /* Radius */
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --radius-pill:  100px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY SCALE ── */
h1 { font-size: 56px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.05; }
h2 { font-size: 40px; font-weight: 800; letter-spacing: -1px;   line-height: 1.1;  }
h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.2;  }
h4 { font-size: 18px; font-weight: 700; letter-spacing: -0.2px; line-height: 1.3;  }
p  { font-size: 15px; font-weight: 400; line-height: 1.7; }

.text-muted    { color: var(--muted); }
.text-small    { font-size: 13px; }
.text-xs       { font-size: 12px; }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--sky);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── LAYOUT UTILITIES ── */
.inner {
  max-width: var(--inner-max);
  margin: 0 auto;
}
.section {
  padding: var(--section-gap) var(--page-pad);
}
.section-sm {
  padding: 56px var(--page-pad);
}

/* ── PROMO BAR ── */
.promo-bar {
  background: var(--sky-dark);
  color: var(--white);
  padding: 10px var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  position: relative;
  z-index: 101;
}
.promo-bar a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.promo-bar a:hover { opacity: 0.85; }
.promo-tag {
  background: rgba(255,255,255,0.22);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.promo-dismiss {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.65);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.15s;
}
.promo-dismiss:hover { color: var(--white); }

/* ── NAV ── */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--page-pad);
  height: 64px;
  gap: 0;
  max-width: 100%;
}
/* Nav inner constrains content to the same grid as page sections */
.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--inner-max);
  gap: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
  margin-right: 32px;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 5px;
  background: var(--ink);
  flex-shrink: 0;
}
.logo-mark span { border-radius: 3px; display: block; }
.logo-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

/* Nav links sit directly beside the logo */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
}
.nav-link:hover,
.nav-link.active { background: var(--bg-subtle); color: var(--ink); }
.nav-link.active { font-weight: 600; }
.nav-link .chevron {
  font-size: 10px;
  color: var(--muted-light);
  transition: transform 0.15s;
}
.nav-link:hover .chevron { transform: rotate(180deg); color: var(--muted); }

/* ── DROPDOWN MENU ── */
.nav-item {
  position: relative;
}
/* Dropdown is now controlled by .open class via JS — not CSS :hover.
   This allows a close delay so moving toward the menu doesn't dismiss it. */
.nav-item.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}
.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  padding: 8px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  pointer-events: none;
  z-index: 200;
}
/* Invisible bridge fills the gap between nav link and dropdown panel
   so the cursor doesn't "fall off" when moving diagonally */
.dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.dropdown-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-light);
  padding: 6px 10px 4px;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s;
}
.dropdown-item:hover { background: var(--bg-subtle); }
.dropdown-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.dropdown-item-text {}
.dropdown-item-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.dropdown-item-desc  { font-size: 11px; color: var(--muted); margin-top: 1px; }
.dropdown-divider    { border: none; border-top: 1px solid var(--border); margin: 6px 0; }
.dropdown-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 4px;
  font-size: 12px;
  color: var(--sky);
  font-weight: 600;
  cursor: pointer;
}
.dropdown-footer:hover { color: var(--sky-dark); }

/* Nav right side — no CTA button per feedback */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--sky);
  color: var(--white);
  font-size: 15px;
  padding: 13px 28px;
}
.btn-sm {
  font-size: 13px;
  padding: 9px 20px;
}
.btn-md {
  font-size: 14px;
  padding: 11px 24px;
}
.btn-secondary {
  background: var(--bg-subtle);
  color: var(--ink);
  font-size: 15px;
  padding: 13px 24px;
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: #F3F4F6; }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  padding: 9px 18px;
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-subtle); color: var(--ink); }
.btn-dark {
  background: var(--ink);
  color: var(--white);
}

/* Nav CTA is a specific button style */
.nav-cta {
  background: var(--sky);
  color: var(--white);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.88; }

/* ── TAGS / BADGES ── */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tag-sky      { background: var(--sky-bg);     color: var(--sky);     }
.tag-emerald  { background: var(--emerald-bg);  color: var(--emerald); }
.tag-violet   { background: var(--violet-bg);   color: var(--violet);  }
.tag-amber    { background: var(--amber-bg);    color: var(--amber);   }
.tag-rose     { background: var(--rose-bg);     color: var(--rose);    }
.tag-teal     { background: var(--teal-bg);     color: var(--teal);    }
.tag-muted    { background: var(--bg-subtle);   color: var(--muted);   }

/* Category aliases (used on calc cards) */
.tag-housing    { background: var(--sky-bg);    color: var(--sky);     }
.tag-career     { background: var(--emerald-bg);color: var(--emerald); }
.tag-health     { background: var(--rose-bg);   color: var(--rose);    }
.tag-retirement { background: var(--violet-bg); color: var(--violet);  }
.tag-auto       { background: var(--amber-bg);  color: var(--amber);   }
.tag-debt       { background: #FFF7ED;          color: #C2410C;        }
.tag-savings    { background: var(--teal-bg);   color: var(--teal);    }

/* ── CALCULATOR CARDS ── */
.calc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 24px 20px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.calc-card:hover {
  border-color: #D1D5DB;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}
.calc-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 20px;
}
.icon-sky     { background: var(--sky-bg);     }
.icon-emerald { background: var(--emerald-bg); }
.icon-violet  { background: var(--violet-bg);  }
.icon-amber   { background: var(--amber-bg);   }
.icon-rose    { background: var(--rose-bg);    }
.icon-teal    { background: var(--teal-bg);    }
.icon-muted   { background: var(--bg-subtle);  }
.calc-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
  line-height: 1.3;
}
.calc-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.calc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.calc-card-arrow {
  font-size: 15px;
  color: var(--muted-light);
  transition: transform 0.15s;
}
.calc-card:hover .calc-card-arrow { transform: translateX(3px); }

/* ── SPONSORED / AD STRIP ── */
.ad-strip {
  background: var(--sky-bg);
  border-top: 1px solid var(--sky-mid);
  border-bottom: 1px solid var(--sky-mid);
  padding: 18px var(--page-pad);
}
.ad-strip-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ad-left { display: flex; align-items: center; gap: 14px; }
.ad-stamp {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sky);
  border: 1px solid var(--sky-mid);
  background: var(--white);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ad-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1px;
}
.ad-text span { font-size: 13px; color: var(--muted); }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-bar-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-light);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.trust-bar-items {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.trust-bar-item {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px var(--page-pad);
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
}
.breadcrumb a:hover { color: var(--sky); }
.breadcrumb-sep { margin: 0 6px; color: var(--ink); }

/* ── SIDEBAR CARDS ── */
.sidebar { display: flex; flex-direction: column; gap: 14px; }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
}
.sidebar-card-muted { background: var(--bg-subtle); border-color: var(--border); }
.sidebar-ad { background: var(--bg-subtle); }
.sidebar-stamp {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-light);
  margin-bottom: 10px;
}
.sidebar-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
  line-height: 1.3;
}
.sidebar-card-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.6;
}
.sidebar-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}
.sidebar-related-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: padding-left 0.15s;
}
.sidebar-related-item:hover { padding-left: 4px; }
.sidebar-related-item:hover .sri-title { color: var(--sky); }
.sidebar-related-item:last-child { border-bottom: none; padding-bottom: 0; }
.sri-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.sri-arrow { font-size: 13px; color: var(--muted-light); }
.share-row { display: flex; gap: 8px; }
.share-btn {
  flex: 1;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}
.share-btn:hover { background: var(--bg-subtle); color: var(--ink); }

/* ── EMAIL CAPTURE ── */
.email-section {
  padding: var(--section-gap) var(--page-pad);
  text-align: center;
}
.email-section h2 { margin-bottom: 12px; }
.email-section p  { font-size: 17px; color: var(--muted); margin-bottom: 32px; }
.email-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto 12px;
}
.email-input {
  flex: 1;
  font-family: var(--sans);
  font-size: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: var(--bg-subtle);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.email-input:focus { border-color: var(--sky); background: var(--white); }
.email-input::placeholder { color: var(--muted-light); }
.email-submit {
  background: var(--sky);
  color: var(--white);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.email-submit:hover { opacity: 0.88; }
.email-fine { font-size: 12px; color: var(--muted-light); }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  padding: 52px var(--page-pad) 36px;
}
.footer-top {
  max-width: var(--inner-max);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.footer-logo { color: var(--white); margin-bottom: 12px; }
.footer-logo .logo-mark { background: rgba(255,255,255,0.12); }
.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 260px;
}
.footer-cols { display: flex; gap: 52px; flex-wrap: wrap; }
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin-bottom: 10px;
  cursor: pointer;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy  { font-size: 12px; color: rgba(255,255,255,0.28); }
.footer-legal { font-size: 12px; color: rgba(255,255,255,0.28); }

/* ── FORM ELEMENTS (shared across calculators) ── */
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field input,
.field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
.field input:focus,
.field select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}
.slider-field label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.slider-field label span { font-weight: 600; color: var(--ink); }
.slider-field input[type=range] {
  width: 100%;
  accent-color: var(--sky);
}

/* ── VERDICT PILLS ── */
.verdict-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.verdict-good { background: var(--emerald-bg); color: var(--emerald); }
.verdict-warn { background: var(--amber-bg);   color: var(--amber);   }
.verdict-info { background: var(--sky-bg);     color: var(--sky);     }

/* ── CALCULATOR PAGES — SHARED STYLES ──────────────────────── */
 
/* Page header */
.calc-page-header { background: var(--white); border-bottom: 1px solid var(--border); padding: 32px var(--page-pad) 0; }
.calc-page-header .inner { max-width: var(--inner-max); margin: 0 auto; }
.calc-page-title  { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; line-height: 1.1; }
.calc-page-sub    { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.calc-page-meta   { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.calc-page-meta span { font-size: 13px; color: var(--muted); }
 
/* Body layout */
.calc-body-wrap { background: var(--bg-subtle); padding: 40px var(--page-pad) 80px; }
.calc-layout {
  max-width: var(--inner-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}
 
/* Calculator widget */
.calc-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 32px; }
.calc-widget-header { background: var(--bg-subtle); border-bottom: 1px solid var(--border); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.calc-widget-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.calc-body { padding: 28px; }
.calc-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
 
/* Result panel */
.result-panel { background: var(--bg-subtle); border-radius: var(--radius-lg); padding: 22px; margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.result-main-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; }
.result-main-num   { font-size: 44px; font-weight: 800; letter-spacing: -1.5px; color: var(--ink); line-height: 1; }
.result-main-sub   { font-size: 13px; color: var(--muted); margin-top: 4px; }
 
/* Mini metric chips */
.mini-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.mini-metric  { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 13px 14px; }
.mm-label     { font-size: 11px; color: var(--muted-light); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.04em; }
.mm-val       { font-size: 17px; font-weight: 700; color: var(--ink); }
 
/* Two-column comparison input grid */
.offers-grid     { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.offer-col-label { font-size: 13px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.offer-dot       { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.offer-fields    { display: flex; flex-direction: column; gap: 10px; }
 
/* Editorial content */
.editorial h2     { font-size: 22px; font-weight: 700; color: var(--ink); margin: 32px 0 10px; line-height: 1.2; letter-spacing: -0.3px; }
.editorial p      { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 14px; }
.editorial ul     { margin: 0 0 14px 20px; }
.editorial ul li  { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 6px; }
.editorial strong { color: var(--ink); font-weight: 600; }
 
/* Fact box */
.fact-box   { border-left: 3px solid var(--sky); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 14px 18px; margin: 20px 0; background: var(--sky-bg); }
.fact-box p { font-size: 14px; line-height: 1.65; margin: 0; color: #0369A1; }
 
/* Related calculators section */
.related-section       { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 28px; }
.related-section-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.related-link          { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; cursor: pointer; transition: padding-left 0.15s; }
.related-link:hover            { padding-left: 4px; }
.related-link:hover .rl-title  { color: var(--sky); }
.related-link:last-child       { border-bottom: none; }
.rl-left  { display: flex; align-items: center; gap: 10px; }
.rl-icon  { font-size: 18px; }
.rl-title { color: var(--sky); }
.rl-desc  { font-size: 12px; color: var(--muted); margin-top: 1px; }
.rl-arrow { font-size: 14px; color: var(--muted-light); }
 
/* Sidebar 
.sidebar { display: none; }
*/
 
/* Calculator responsive */
@media (max-width: 900px) {
  .calc-layout     { grid-template-columns: 1fr; }
  /* .sidebar         { display: none; } */
  .calc-page-title { font-size: 28px; }
  .result-main-num { font-size: 32px; }
  .mini-metrics    { grid-template-columns: 1fr 1fr; }
  .offers-grid     { grid-template-columns: 1fr; }
  .calc-row        { grid-template-columns: 1fr; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root {
    --page-pad:   24px;
    --section-gap: 64px;
  }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
}

@media (max-width: 600px) {
  :root {
    --page-pad:    16px;
    --section-gap: 52px;
  }
  .promo-bar { padding: 10px 40px 10px 16px; font-size: 12px; }
  .footer-cols { gap: 24px; }
  .footer-top { flex-direction: column; }
  .email-form { flex-direction: column; }
  .email-submit { width: 100%; text-align: center; }
  .ad-strip-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
