/* ============================================================
   Exit Calculators — shared stylesheet
   ============================================================ */

:root {
  --navy: #0f2438;
  --navy-2: #16324c;
  --teal: #0e7c7b;
  --teal-dark: #0a5c5b;
  --gold: #c9a227;
  --ink: #1d2b36;
  --muted: #5a6b78;
  --line: #dde5ea;
  --bg: #f7fafb;
  --card: #ffffff;
  --good: #1e7e4e;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(15, 36, 56, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; }

a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

/* ---------- Layout ---------- */

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow { max-width: 780px; }

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  color: #fff;
  padding: 14px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

.brand span { color: var(--gold); }

.site-nav a {
  color: #d6e2ec;
  text-decoration: none;
  margin-left: 22px;
  font-size: 0.95rem;
}

.site-nav a:hover { color: #fff; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%);
  color: #fff;
  padding: 64px 0 72px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: #c6d4e0;
  max-width: 700px;
  margin: 0 auto 30px;
}

.hero .accent { color: var(--gold); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease;
}

.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
}
.btn-outline:hover { border-color: #fff; color: #fff; }

.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Cards / sections ---------- */

.section { padding: 56px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section h2 {
  font-size: 1.7rem;
  margin-bottom: 14px;
  color: var(--navy);
}

.section p + p { margin-top: 12px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card h3 { color: var(--navy); font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; flex-grow: 1; }
.card .btn { margin-top: 18px; align-self: flex-start; }

.badge {
  display: inline-block;
  background: #eef6f6;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ---------- Calculator form ---------- */

.calc-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin: 30px 0;
}

.calc-panel h2 { font-size: 1.35rem; color: var(--navy); margin-bottom: 6px; }
.calc-panel .hint { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}

.field .help {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 5px;
}

.field input[type="number"],
.field input[type="text"],
.field select {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid #b9c6cf;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
}

.field input:focus, .field select:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
}

fieldset.group {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px 8px;
  margin-bottom: 24px;
}

fieldset.group legend {
  font-weight: 700;
  color: var(--teal-dark);
  padding: 0 8px;
  font-size: 1.02rem;
}

/* ---------- Results ---------- */

.results {
  display: none;
  margin-top: 8px;
}

.results.visible { display: block; }

.result-headline {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 30px;
  text-align: center;
  margin-bottom: 22px;
}

.result-headline .label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b9c9d8;
  margin-bottom: 6px;
}

.result-headline .figure {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 800;
  color: var(--gold);
}

.result-headline .sub { color: #c6d4e0; font-size: 0.95rem; margin-top: 8px; }

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.result-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
}

.result-tile .label { font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
.result-tile .value { font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.result-tile .value.positive { color: var(--good); }
.result-tile .note { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

.scenario {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 18px;
}

.scenario h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.15rem; }
.scenario ul { margin: 10px 0 0 20px; }
.scenario li { margin-bottom: 6px; }
.scenario .big { font-weight: 800; color: var(--teal-dark); }

.disclaimer-box {
  background: #fdf6e3;
  border: 1px solid #ecd9a0;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.88rem;
  color: #6b5a1e;
  margin-top: 18px;
}

/* ---------- Content / FAQ ---------- */

.content h2 { margin-top: 36px; }
.content h3 { color: var(--navy); margin-top: 26px; margin-bottom: 8px; font-size: 1.15rem; }
.content ul, .content ol { margin: 12px 0 12px 24px; }
.content li { margin-bottom: 6px; }

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 14px;
}

.faq-item h3 { color: var(--navy); font-size: 1.08rem; margin-bottom: 8px; }
.faq-item p { color: var(--ink); font-size: 0.97rem; }

/* ---------- Lead capture ---------- */

.lead-cta {
  background: linear-gradient(160deg, var(--teal-dark), var(--teal));
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 32px;
  text-align: center;
  margin: 40px 0;
}

.lead-cta h2 { color: #fff; font-size: 1.45rem; margin-bottom: 10px; }
.lead-cta p { color: #dff0ef; max-width: 560px; margin: 0 auto 20px; }
.lead-cta .btn { background: #fff; color: var(--teal-dark); }
.lead-cta .btn:hover { background: #eef6f6; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #a9bccb;
  padding: 40px 0 30px;
  margin-top: 60px;
  font-size: 0.9rem;
}

.site-footer a { color: #d6e2ec; }
.site-footer .foot-links { margin-bottom: 14px; }
.site-footer .foot-links a { margin-right: 18px; text-decoration: none; }
.site-footer .foot-links a:hover { text-decoration: underline; }
.site-footer .legal { font-size: 0.82rem; color: #7e93a5; max-width: 820px; }

/* ---------- Utility ---------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.88rem; color: var(--muted); }
