:root {
  --navy-950: #071725;
  --navy-900: #0c2236;
  --navy-800: #153a56;
  --ink: #102130;
  --body: #40515e;
  --muted: #687985;
  --line: #d9e3e8;
  --line-strong: #bccbd2;
  --cloud: #f3f7f8;
  --white: #ffffff;
  --mint: #68e0d1;
  --mint-light: #d9faf4;
  --mint-dark: #08756c;
  --amber: #ffd166;
  --error: #b42318;
  --error-soft: #fff2f0;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow: 0 22px 60px rgba(7, 23, 37, 0.12);
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--navy-800);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

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

button,
input { font: inherit; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy-950);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.6rem, 8vw, 5.35rem);
  font-weight: 860;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.75rem, 4.2vw, 2.65rem);
  font-weight: 820;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-shell,
.hero-shell,
.content-shell,
.article-page,
.footer-shell {
  width: min(calc(100% - 2rem), 74rem);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--navy-950);
}

.nav-shell {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand:hover { color: var(--white); }

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(104, 224, 209, 0.5);
  border-radius: 0.65rem;
  color: var(--navy-950);
  background: var(--mint);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  color: #d9e6ec;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover { color: var(--mint); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 2.75rem 0 4.5rem;
  background:
    radial-gradient(circle at 86% 5%, rgba(104, 224, 209, 0.2), transparent 29rem),
    linear-gradient(180deg, var(--navy-950) 0 38%, var(--cloud) 38% 100%);
}

.hero::before {
  position: absolute;
  top: 7.5rem;
  left: -8rem;
  width: 19rem;
  height: 19rem;
  border: 1px solid rgba(104, 224, 209, 0.15);
  border-radius: 50%;
  content: "";
}

.hero-shell { position: relative; }

.hero-heading {
  max-width: 58rem;
  margin: 0 auto 2rem;
  color: var(--white);
  text-align: center;
}

.hero-heading h1 { color: var(--white); }

.eyebrow,
.panel-kicker,
.result-kicker,
.comparison-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow { color: var(--mint); }

.hero-deck {
  max-width: 45rem;
  margin: 1.15rem auto 0;
  color: #c9d8df;
  font-size: clamp(1rem, 2.3vw, 1.18rem);
  line-height: 1.6;
}

.calculator-shell {
  display: grid;
  gap: 1rem;
  max-width: 71rem;
  margin-inline: auto;
}

.calculator-form,
.results {
  border-radius: var(--radius-lg);
  padding: 1.35rem;
}

.calculator-form {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.calculator-heading {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.calculator-heading p { margin: 0; }
.calculator-heading .panel-kicker { margin-bottom: 0.25rem; color: var(--mint-dark); }
.calculator-heading p:last-child { color: var(--body); font-size: 0.9rem; }

.form-grid { display: grid; gap: 0.75rem; }

.field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 780;
}

.field small {
  display: block;
  min-height: 1.25rem;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.4;
}

.input-wrap {
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #93a3ac;
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 0 0.85rem;
  color: var(--navy-800);
  font-weight: 750;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.input-wrap:focus-within {
  border-color: var(--mint-dark);
  box-shadow: 0 0 0 3px rgba(104, 224, 209, 0.3);
}

.input-wrap.suffix input { order: 0; }
.input-wrap.suffix > span { order: 1; color: var(--muted); font-size: 0.82rem; }

input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy-950);
  font-weight: 760;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.text-button {
  flex: none;
  margin: 0 0 0.35rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0;
  color: var(--mint-dark);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 780;
  cursor: pointer;
}

.field:has(input[aria-invalid="true"]) .input-wrap {
  border-color: var(--error);
  background: var(--error-soft);
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.1);
}

.field small.field-error {
  min-height: 0;
  margin-top: 0;
  color: var(--error);
  font-weight: 700;
}

.field small.field-error:not(:empty) { margin-top: 0.25rem; }

.privacy-note {
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--body);
  font-size: 0.77rem;
}

.privacy-note span { margin-right: 0.35rem; color: var(--mint-dark); font-weight: 900; }

.form-error {
  min-height: 0;
  margin: 0;
  color: var(--error);
  font-size: 0.8rem;
  font-weight: 700;
}

.form-error:not(:empty) { margin-top: 0.75rem; }

.results {
  color: var(--white);
  background: var(--navy-900);
  box-shadow: 0 22px 60px rgba(7, 23, 37, 0.18);
}

.results-intro {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.results-intro p { margin: 0; }
.result-kicker { color: var(--mint); }
.result-label { color: #bdd0da; font-size: 0.82rem; }

.primary-result {
  color: var(--mint);
  font-size: clamp(2.55rem, 12vw, 4.3rem);
  font-weight: 880;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0;
  padding: 1rem 0;
}

.result-card {
  min-width: 0;
  min-height: 6.1rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
}

.result-card dt { color: #abc0ca; font-size: 0.72rem; line-height: 1.35; }
.result-card dd { margin: 0.4rem 0 0; color: var(--white); font-size: 1rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }

.fit-card {
  padding: 1rem;
  border: 1px solid rgba(104, 224, 209, 0.24);
  border-radius: 1rem;
  background: rgba(104, 224, 209, 0.09);
}

.fit-card h2 {
  margin: 0.65rem 0 0.45rem;
  color: var(--white);
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.fit-card p { margin: 0; color: #d8e5ea; font-size: 0.8rem; line-height: 1.55; }

.fit-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.32rem 0.65rem;
  color: var(--navy-950);
  background: var(--mint);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
}

.result-disclaimer {
  margin: 0.85rem 0 0;
  color: #96acb7;
  font-size: 0.7rem;
  line-height: 1.45;
}

.result-term-warning {
  margin: 0.15rem 0 1rem;
  border: 1px solid rgba(104, 224, 209, 0.45);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  color: var(--white);
  background: rgba(104, 224, 209, 0.12);
  font-size: 0.82rem;
  font-weight: 800;
}

.content-shell { padding: 0 0 5rem; }

.editorial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin: 0;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.79rem;
}

.editorial-meta p { margin: 0; }
.editorial-meta strong { color: var(--ink); }

.content-shell > section {
  position: relative;
  margin: 0;
  padding: 3.2rem 0;
  border-bottom: 1px solid var(--line);
}

.content-shell > section:last-child { border-bottom: 0; }

.section-index {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--mint-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.content-shell section > p,
.content-shell section > aside,
.content-shell section > .comparison-grid {
  max-width: 47rem;
}

.content-shell section > p { margin: 0; color: var(--body); }
.content-shell section > p + p { margin-top: 1rem; }
.content-shell section a { font-weight: 700; }

.key-note {
  margin-top: 1.35rem;
  border-left: 4px solid var(--mint-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.1rem;
  color: var(--body);
  background: var(--cloud);
  font-size: 0.9rem;
}

.key-note strong { color: var(--navy-900); }

.comparison-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.4rem 0;
}

.comparison-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  background: var(--cloud);
}

.comparison-grid article:first-child { border-top: 4px solid var(--mint-dark); }
.comparison-grid article:last-child { border-top: 4px solid var(--navy-800); }
.comparison-grid h3 { margin-bottom: 0.55rem; }
.comparison-grid p { margin: 0; color: var(--body); font-size: 0.9rem; }
.comparison-grid .comparison-label { margin-bottom: 0.55rem; color: var(--mint-dark); font-size: 0.66rem; }

.faq-list { display: grid; gap: 0.75rem; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cloud);
  overflow: clip;
}

.faq-item summary {
  position: relative;
  padding: 1.15rem 3.2rem 1.15rem 1.15rem;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; top: 50%; right: 1.15rem; content: "+"; color: var(--mint-dark); font-size: 1.35rem; transform: translateY(-50%); }
.faq-item[open] summary::after { content: "−"; }
.faq-item h3 { display: inline; margin: 0; font-size: 1rem; }
.faq-item p { margin: 0; border-top: 1px solid var(--line); padding: 1rem 1.15rem 1.15rem; color: var(--body); font-size: 0.91rem; }

.site-disclaimer {
  padding: 1.15rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--cloud);
  text-align: center;
}

.site-disclaimer p { max-width: 58rem; margin: 0 auto; color: var(--body); font-size: 0.78rem; }

.site-footer { color: #bdccd3; background: var(--navy-950); }

.footer-shell {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2.4rem 0;
  font-size: 0.8rem;
}

.footer-shell nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-shell nav a { color: #d9e6ec; font-weight: 700; text-decoration: none; }
.footer-shell nav a:hover { color: var(--mint); }
.footer-shell p { margin: 0; }
.footer-brand { width: fit-content; }

/* Shared article-page styles for the site's supporting guides. */
.article-page { padding: 2rem 0 5rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; margin-bottom: 2.5rem; color: var(--muted); font-size: 0.82rem; }
.article-hero { max-width: 58rem; margin-bottom: 4rem; }
.article-hero h1 { margin-bottom: 1.5rem; }
.lead { max-width: 51rem; margin: 0; color: var(--body); font-size: clamp(1.05rem, 2.5vw, 1.25rem); }
.article-body { max-width: 52rem; }
.article-body section { margin-bottom: 4.5rem; }
.article-body p { margin-top: 0; color: var(--body); font-size: 1.02rem; }
.article-body p + p { margin-top: 1.1rem; }
.article-body section:not(.example-panel):not(.faq-section) { border-left: 2px solid var(--line); padding-left: 1.35rem; }
.article-body h3 { margin: 2rem 0 0.75rem; color: var(--navy-900); font-size: 1.12rem; }
.contact-script { margin: 1.1rem 0 2rem; border-left: 4px solid var(--mint-dark); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1rem 1.15rem; background: var(--mint-light); }
.contact-script p { margin: 0; color: var(--navy-900); font-weight: 650; }
.example-panel { border: 1px solid #a9ded6; border-radius: var(--radius-lg); padding: 1.75rem; background: var(--mint-light); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
table { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: 0.92rem; }
th, td { border-bottom: 1px solid var(--line); padding: 0.85rem 1rem; text-align: left; vertical-align: top; }
thead th { color: var(--white); background: var(--navy-900); }
tbody th { background: var(--cloud); }
.steps { display: grid; gap: 0.85rem; padding-left: 1.4rem; color: var(--body); }

@media (min-width: 42rem) {
  .nav-shell,
  .hero-shell,
  .content-shell,
  .article-page,
  .footer-shell { width: min(calc(100% - 4rem), 74rem); }

  .calculator-form,
  .results { padding: 1.75rem; }
  .form-grid { grid-template-columns: 1fr 1fr; gap: 0.85rem 1rem; }
  .field-wide { grid-column: 1 / -1; }
  .results-intro { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .primary-result { text-align: right; }
  .comparison-grid { grid-template-columns: 1fr 1fr; }
  .footer-shell { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 58rem) {
  .hero { padding-top: 3.3rem; }
  .calculator-shell { grid-template-columns: minmax(0, 1.02fr) minmax(23rem, 0.98fr); align-items: stretch; }
  .results { display: flex; flex-direction: column; }
  .fit-card { margin-top: auto; }

  .content-shell > section {
    display: grid;
    grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.28fr);
    column-gap: 5rem;
    align-items: start;
    padding: 4.5rem 0;
  }

  .content-shell > section > h2 { grid-column: 1; grid-row: 1 / span 12; }
  .content-shell > section > p,
  .content-shell > section > aside,
  .content-shell > section > .comparison-grid { grid-column: 2; }
  .content-shell .faq-section { display: block; }
  .faq-list { grid-template-columns: 1fr 1fr; }
  .article-body { margin-left: clamp(4rem, 8vw, 8rem); }
}

@media (max-width: 36rem) {
  .nav-links a:first-child { display: none; }
  .hero { padding-top: 2.1rem; background: linear-gradient(180deg, var(--navy-950) 0 30rem, var(--cloud) 30rem 100%); }
  .hero-heading { text-align: left; }
  .hero-deck { margin-left: 0; }
  .calculator-form,
  .results { padding: 1.1rem; border-radius: 1.25rem; }
  .result-grid { grid-template-columns: 1fr; }
  .result-card { min-height: 4.8rem; }
  .label-row { align-items: flex-start; }
  .label-row label { max-width: 13rem; }
  .content-shell > section { padding: 2.5rem 0; }
  .content-shell p { font-size: 0.96rem; line-height: 1.62; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
