:root {
  --navy-950: #04111d;
  --navy-900: #071b2b;
  --navy-800: #0b2a3d;
  --navy-700: #123e52;
  --teal-500: #1dd3b0;
  --teal-400: #57e7ca;
  --teal-100: #d9fff6;
  --gold-500: #f2b84b;
  --ink: #102432;
  --muted: #5f7180;
  --paper: #f4f8f9;
  --white: #ffffff;
  --danger: #c53f4e;
  --shadow: 0 22px 60px rgba(4, 27, 43, .13);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 13px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 880px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--navy-950);
  background: var(--teal-400);
  border-radius: 9px;
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  color: #e9fffa;
  background: rgba(4, 17, 29, .92);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: .01em;
}

.back-link > span:first-child {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--navy-950);
  background: var(--teal-400);
  border-radius: 50%;
  transition: transform .2s ease;
}

.back-link:hover > span:first-child {
  transform: translateX(-3px);
}

.language-switcher {
  display: inline-flex;
  padding: 4px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
}

.lang-btn {
  min-width: 42px;
  padding: 7px 9px;
  color: #b9c8cf;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 850;
}

.lang-btn.active {
  color: var(--navy-950);
  background: var(--teal-400);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 50%, rgba(29, 211, 176, .16), transparent 30%),
    linear-gradient(135deg, var(--navy-950), #08283b 58%, #0c3645);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(87, 231, 202, .13);
  border-radius: 50%;
}

.hero::before {
  width: 580px;
  height: 580px;
  right: -180px;
  top: -260px;
}

.hero::after {
  width: 350px;
  height: 350px;
  left: -210px;
  bottom: -220px;
}

.hero-grid {
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr);
  align-items: center;
  gap: 30px;
  padding-block: 64px 72px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.eyebrow,
.step-label {
  margin: 0 0 10px;
  color: #0c9c82;
  font-size: .78rem;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--teal-400);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.55rem, 5.2vw, 5rem);
  line-height: .98;
  letter-spacing: -.055em;
}

h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.4vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

h3 {
  line-height: 1.25;
}

.hero-lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: #c7d9df;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.hero-badges span {
  padding: 7px 12px;
  color: #ddfff7;
  background: rgba(87, 231, 202, .09);
  border: 1px solid rgba(87, 231, 202, .21);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 750;
}

.hero-badges span::before {
  content: "✓";
  margin-right: 6px;
  color: var(--teal-400);
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 51px;
  margin-top: 28px;
  padding: 13px 22px;
  color: var(--navy-950);
  background: var(--teal-400);
  border-radius: 13px;
  box-shadow: 0 12px 35px rgba(29, 211, 176, .23);
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.primary-cta::after {
  content: "↓";
  margin-left: 10px;
}

.primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(29, 211, 176, .31);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}

.hero-glow {
  position: absolute;
  width: 75%;
  aspect-ratio: 1;
  background: rgba(29, 211, 176, .18);
  filter: blur(55px);
  border-radius: 50%;
}

.hero-art img {
  position: relative;
  width: min(100%, 490px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 30px rgba(0, 0, 0, .35));
}

.calculator-section {
  position: relative;
  z-index: 3;
  padding: 82px 0;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(330px, .78fr);
  align-items: start;
  gap: 26px;
}

.calculator-card,
.results-card {
  min-width: 0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.calculator-card {
  padding: clamp(22px, 4vw, 42px);
  background: var(--white);
  border: 1px solid #e0eaed;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 32px;
}

.section-heading > p:last-child {
  margin: 13px 0 0;
  color: var(--muted);
}

fieldset {
  margin: 0;
  padding: 27px 0 30px;
  border: 0;
  border-top: 1px solid #e3eaed;
}

legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px 0 0;
  color: var(--navy-800);
  font-weight: 900;
}

.legend-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  color: var(--navy-950);
  background: var(--teal-400);
  border-radius: 9px;
  font-size: .9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  color: #344d5d;
  font-size: .9rem;
  font-weight: 750;
}

.field[hidden] {
  display: none;
}

.input-wrap {
  position: relative;
  min-width: 0;
}

input,
select {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 11px 14px;
  color: var(--ink);
  background: #f8fbfc;
  border: 1.5px solid #cfdde2;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

select {
  padding-right: 36px;
}

.input-wrap input {
  padding-right: 62px;
}

input:hover,
select:hover {
  border-color: #9db9c2;
}

input:focus,
select:focus {
  background: var(--white);
  border-color: #10a88d;
  box-shadow: 0 0 0 4px rgba(29, 211, 176, .13);
}

input.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(197, 63, 78, .1);
}

.suffix {
  position: absolute;
  top: 50%;
  right: 13px;
  max-width: 46px;
  overflow: hidden;
  color: #667c89;
  font-size: .82rem;
  font-weight: 850;
  text-overflow: ellipsis;
  transform: translateY(-50%);
  pointer-events: none;
}

.form-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 6px;
}

.calculate-button,
.reset-button {
  min-height: 52px;
  padding: 12px 20px;
  border-radius: 13px;
  font-weight: 900;
}

.calculate-button {
  flex: 1 1 auto;
  color: var(--navy-950);
  background: var(--teal-400);
  border: 1px solid var(--teal-400);
}

.calculate-button:hover {
  background: #72efd7;
}

.reset-button {
  flex: 0 1 auto;
  color: var(--navy-800);
  background: transparent;
  border: 1px solid #cbd9de;
}

.local-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.local-note > span:first-child {
  color: #11aa76;
  font-size: .62rem;
}

.results-card {
  position: sticky;
  top: 92px;
  overflow: hidden;
  padding: 30px;
  color: #ecfffb;
  background:
    radial-gradient(circle at 100% 0, rgba(29, 211, 176, .18), transparent 33%),
    linear-gradient(145deg, var(--navy-950), var(--navy-800));
  border: 1px solid rgba(87, 231, 202, .17);
}

.results-card .step-label {
  color: var(--teal-400);
}

.results-card h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.main-result {
  margin: 28px 0 20px;
  padding: 24px;
  background: rgba(255, 255, 255, .065);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
}

.main-result-label {
  display: block;
  color: #a9c7ce;
  font-size: .84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.main-result strong {
  display: block;
  margin-top: 3px;
  color: var(--teal-400);
  font-size: clamp(2.7rem, 6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.main-result p {
  margin: 14px 0 0;
  color: #d3e4e8;
  font-size: .98rem;
}

.comparison-meter {
  height: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, .1);
  border-radius: 999px;
}

.comparison-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--teal-400));
  border-radius: inherit;
  transition: width .45s ease;
}

.comparison-copy {
  min-height: 1.35em;
  margin: 8px 0 22px;
  color: #a9c7ce;
  font-size: .82rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.results-grid > div {
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 12px;
}

.results-grid dt {
  color: #9fbbc3;
  font-size: .75rem;
  line-height: 1.35;
}

.results-grid dd {
  margin: 5px 0 0;
  color: var(--white);
  font-size: 1.04rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.insight-box {
  margin-top: 17px;
  padding: 18px;
  color: #d6e8eb;
  background: rgba(29, 211, 176, .075);
  border-left: 3px solid var(--teal-400);
  border-radius: 10px;
}

.insight-box h3 {
  margin: 0;
  color: var(--teal-400);
  font-size: .9rem;
}

.insight-box p {
  margin: 7px 0 0;
  font-size: .87rem;
}

.disclaimer {
  margin: 18px 0 0;
  color: #8daab3;
  font-size: .75rem;
  line-height: 1.55;
}

.content-section {
  padding: 86px 0;
  background: var(--white);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  align-items: center;
  gap: clamp(36px, 7vw, 95px);
}

.content-grid article > p:not(.eyebrow) {
  color: var(--muted);
}

.formula-card {
  padding: clamp(24px, 5vw, 42px);
  color: var(--white);
  background: linear-gradient(145deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.formula-card > p:first-child {
  margin: 0 0 18px;
  color: var(--teal-400);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
}

.formula {
  display: grid;
  gap: 12px;
  padding: 20px;
  text-align: center;
  background: rgba(255, 255, 255, .06);
  border-radius: 14px;
  font-weight: 800;
}

.formula i {
  height: 2px;
  background: var(--teal-400);
  border-radius: 999px;
}

.formula-note {
  margin: 17px 0 0;
  color: #b5cdd3;
  font-size: .83rem;
}

.faq-section {
  padding: 86px 0 100px;
}

.faq-section h2 {
  margin-bottom: 28px;
}

details {
  background: var(--white);
  border: 1px solid #dce7ea;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(4, 27, 43, .04);
}

details + details {
  margin-top: 11px;
}

summary {
  position: relative;
  padding: 19px 56px 19px 21px;
  color: var(--navy-800);
  font-weight: 850;
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: var(--navy-950);
  background: var(--teal-400);
  border-radius: 8px;
  transform: translateY(-50%);
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 0;
  padding: 0 21px 21px;
  color: var(--muted);
}

footer {
  padding: 28px 0;
  color: #aec2c9;
  background: var(--navy-950);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: .87rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--teal-400);
  font-weight: 850;
  text-decoration: none;
}

.noscript {
  position: fixed;
  z-index: 100;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 14px;
  color: #fff;
  background: #8b1f2d;
  border-radius: 12px;
  text-align: center;
}

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero-grid {
    min-height: auto;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, .72fr);
  }

  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .results-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-inner {
    min-height: 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-block: 48px 36px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero .eyebrow {
    max-width: 94%;
    margin-inline: auto;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-badges {
    justify-content: center;
  }

  .primary-cta {
    width: min(100%, 390px);
  }

  .hero-art img {
    width: min(80vw, 380px);
  }

  .calculator-section,
  .content-section,
  .faq-section {
    padding-block: 58px;
  }

  .form-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .calculator-card,
  .results-card {
    border-radius: 20px;
  }

  .form-actions {
    flex-direction: column;
  }

  .calculate-button,
  .reset-button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(calc(100% - 22px), var(--container));
  }

  .back-link > span:last-child {
    max-width: 132px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .language-switcher {
    flex: 0 0 auto;
  }

  .lang-btn {
    min-width: 34px;
    padding-inline: 7px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.25rem);
  }

  .calculator-card,
  .results-card {
    padding: 20px 17px;
  }

  fieldset {
    padding-block: 22px 25px;
  }

  .form-grid {
    gap: 14px;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .main-result {
    padding: 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .hero,
  .form-actions,
  .content-section,
  .faq-section,
  footer {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .calculator-section {
    padding: 0;
  }

  .calculator-layout {
    display: block;
  }

  .calculator-card {
    box-shadow: none;
  }

  .results-card {
    position: static;
    margin-top: 20px;
    box-shadow: none;
    break-inside: avoid;
  }
}
