@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
  --navy: #07122f;
  --navy-2: #101d43;
  --paper: #f8f7f4;
  --white: #fff;
  --ink: #111629;
  --muted: #5e6373;
  --line: #d9d8d3;
  --purple: #6c5ce7;
  --teal: #18c8b4;
  --teal-dark: #087c72;
  --coral: #ff5c66;
  --yellow: #ffd166;
  --blue: #4d8dff;
  --mint: #ddf8f3;
  --soft-coral: #ffe4e5;
  --lavender: #eae6ff;
  --shadow: 0 18px 60px rgba(7, 18, 47, .08);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
}
.skip-link:focus { top: 12px; }

.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: white;
  background: rgba(7, 18, 47, .97);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: "Space Grotesk", Manrope, sans-serif; font-size: 1.42rem; font-weight: 700; letter-spacing: -.045em; }
.brand-symbol { width: 39px; height: 30px; flex: 0 0 auto; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: .86rem; font-weight: 700; }
.main-nav a { color: rgba(255,255,255,.72); padding: 24px 0 20px; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: white; border-color: var(--teal); }
.locale { font-size: .78rem; font-weight: 800; color: rgba(255,255,255,.8); white-space: nowrap; }
.locale span { color: var(--teal); }
.menu-button { display: none; border: 1px solid rgba(255,255,255,.25); color: white; background: transparent; padding: 8px 10px; }

.hero { position: relative; overflow: hidden; background: var(--navy); color: white; padding: 76px 0 92px; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: radial-gradient(rgba(255,255,255,.38) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to right, black, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); gap: 70px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 800; }
.hero .eyebrow { color: var(--teal); }
h1, h2, h3, .number { font-family: "Space Grotesk", Manrope, sans-serif; }
h1 { margin: 0; font-size: clamp(3rem, 6vw, 5.5rem); line-height: .98; letter-spacing: -.055em; }
.hero h1 em { color: var(--teal); font-style: normal; position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 7px; background: var(--purple); z-index: -1; }
.hero-copy { max-width: 600px; margin: 25px 0 30px; color: rgba(255,255,255,.72); font-size: 1.02rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 19px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: white;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 5px 5px 0 var(--teal); }
.button-purple { background: var(--purple); border-color: var(--purple); }
.button-light { border-color: rgba(255,255,255,.5); background: transparent; }
.button-outline { background: white; color: var(--navy); }
.button-small { min-height: 38px; padding: 0 13px; font-size: .78rem; }
.button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.hero-calculator { position: relative; background: white; color: var(--ink); border: 1px solid rgba(255,255,255,.6); padding: 28px; box-shadow: 14px 14px 0 var(--teal); }
.hero-calculator::before { content: ""; position: absolute; width: 68px; height: 68px; border: 12px solid var(--coral); border-left-color: transparent; border-top-color: transparent; right: -34px; bottom: -34px; border-radius: 50%; }
.mini-label { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .63rem; font-weight: 800; }
.hero-values { display: grid; grid-template-columns: 1fr 36px 1fr; align-items: end; gap: 8px; margin: 18px 0 28px; }
.value-box { border-bottom: 2px solid var(--navy); padding: 8px 2px; }
.value-box strong { display: block; font: 700 1.7rem "Space Grotesk", sans-serif; }
.hero-result { position: relative; background: var(--teal); color: var(--navy); padding: 28px; text-align: center; }
.hero-result strong { display: block; font: 700 clamp(2.7rem, 5vw, 4.6rem)/1 "Space Grotesk", sans-serif; letter-spacing: -.06em; }
.hero-result small { font-weight: 800; }

.trust-strip { background: white; border-bottom: 1px solid var(--line); }
.trust-grid { min-height: 70px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: .78rem; font-weight: 800; border-right: 1px solid var(--line); }
.trust-item:last-child { border: 0; }
.trust-dot { width: 8px; height: 8px; background: var(--teal); }
.trust-item:nth-child(2) .trust-dot { background: var(--blue); }
.trust-item:nth-child(3) .trust-dot { background: var(--purple); }
.trust-item:nth-child(4) .trust-dot { background: var(--coral); }

.section { padding: 92px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 40px; }
.section-head h2, .content-page h1 { margin: 0; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.045em; }
.section-head p { max-width: 520px; color: var(--muted); margin: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(12, 1fr); border-left: 1px solid var(--navy); border-top: 1px solid var(--navy); }
.tool-card { position: relative; min-height: 235px; padding: 28px; background: white; border-right: 1px solid var(--navy); border-bottom: 1px solid var(--navy); overflow: hidden; transition: background .2s ease; }
.tool-card:nth-child(1), .tool-card:nth-child(4) { grid-column: span 7; }
.tool-card:nth-child(2), .tool-card:nth-child(3) { grid-column: span 5; }
.tool-card:hover { background: var(--mint); }
.tool-card:nth-child(2):hover { background: var(--soft-coral); }
.tool-card:nth-child(3):hover { background: #fff4d3; }
.tool-card:nth-child(4):hover { background: var(--lavender); }
.tool-card h3 { margin: 34px 0 8px; font-size: 1.55rem; letter-spacing: -.03em; }
.tool-card p { margin: 0; max-width: 430px; color: var(--muted); font-size: .9rem; }
.tool-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid currentColor; color: var(--teal); font: 800 1.1rem "Space Grotesk", sans-serif; }
.tool-card:nth-child(2) .tool-icon { color: var(--coral); }
.tool-card:nth-child(3) .tool-icon { color: #b37a00; }
.tool-card:nth-child(4) .tool-icon { color: var(--blue); }
.mini-chart { position: absolute; right: 26px; bottom: 26px; width: 120px; height: 60px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mini-chart::before { content: ""; position: absolute; left: 12px; bottom: 14px; width: 82px; height: 3px; background: currentColor; transform: rotate(-17deg); transform-origin: left; }
.mini-chart::after { content: ""; position: absolute; right: 18px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }

.benefits { background: var(--navy); color: white; padding: 84px 0; position: relative; overflow: hidden; }
.benefits::before { content: "Δ"; position: absolute; right: -40px; top: -120px; color: rgba(77,141,255,.13); font: 700 470px/1 "Space Grotesk", sans-serif; }
.benefits h2 { position: relative; text-align: center; max-width: 700px; margin: 0 auto 54px; font-size: clamp(2.3rem, 4vw, 4.2rem); line-height: 1; letter-spacing: -.05em; }
.benefits h2 span { color: var(--blue); }
.benefit-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.25); border-left: 1px solid rgba(255,255,255,.25); }
.benefit { min-height: 190px; padding: 26px; border-right: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
.benefit b { display: block; color: var(--teal); font: 700 2rem "Space Grotesk", sans-serif; }
.benefit:nth-child(2) b { color: var(--purple); }
.benefit:nth-child(3) b { color: var(--coral); }
.benefit:nth-child(4) b { color: var(--blue); }
.benefit h3 { font-size: 1rem; margin: 22px 0 8px; }
.benefit p { margin: 0; color: rgba(255,255,255,.62); font-size: .78rem; }

.page-hero { background: var(--navy); color: white; padding: 48px 0 58px; border-bottom: 1px solid rgba(255,255,255,.1); }
.breadcrumb { margin: 0 0 14px; color: var(--teal); text-transform: uppercase; letter-spacing: .12em; font-size: .65rem; font-weight: 800; }
.breadcrumb ol { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 0; margin: 0; list-style: none; }
.breadcrumb a { color: rgba(255,255,255,.72); }
.breadcrumb a:hover { color: white; text-decoration: underline; text-underline-offset: 3px; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); text-align: center; }
.page-hero .breadcrumb, .page-hero > .container > p:last-child { text-align: center; }
.page-hero > .container > p:last-child { max-width: 690px; color: rgba(255,255,255,.68); margin: 15px auto 0; }

.calculator-section { padding: 74px 0; }
.calculator-grid { display: grid; grid-template-columns: 5fr 7fr; border: 1px solid var(--navy); background: white; box-shadow: var(--shadow); }
.input-panel { padding: 34px; border-right: 1px solid var(--navy); }
.result-panel { position: relative; padding: 34px; background: var(--mint); overflow: hidden; }
.result-panel.coral-panel { background: var(--soft-coral); }
.result-panel.blue-panel { background: #e7efff; }
.result-panel.yellow-panel { background: #fff4d3; }
.panel-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; text-transform: uppercase; letter-spacing: .11em; font-size: .66rem; font-weight: 800; color: var(--muted); }
.panel-kicker::before { content: ""; width: 8px; height: 8px; background: var(--purple); }
.field { display: block; margin-bottom: 24px; }
.field label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; height: 56px; border: 1px solid var(--line); border-bottom: 2px solid var(--navy); border-radius: 0; background: var(--paper); padding: 0 48px 0 14px; color: var(--navy); font: 700 1.45rem "Space Grotesk", sans-serif; }
.input-wrap span { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.field-help { display: block; color: var(--muted); font-size: .72rem; margin-top: 7px; }
.error-message { min-height: 24px; margin: 12px 0; color: #9a1520; font-size: .78rem; font-weight: 700; }
.result-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.result-number { margin: 6px 0 8px; font: 700 clamp(3.6rem, 7vw, 6.5rem)/.92 "Space Grotesk", sans-serif; letter-spacing: -.065em; color: var(--navy); }
.result-sub { margin: 0; font-weight: 700; color: #263450; }
.result-actions { display: flex; gap: 8px; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(7,18,47,.35); background: rgba(255,255,255,.55); color: var(--navy); cursor: pointer; font-weight: 900; }
.icon-button:hover { background: white; }
.chart { margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(7,18,47,.18); }
.value-track { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: end; min-height: 100px; }
.value-track::before { content: ""; position: absolute; left: 8%; right: 8%; top: 51px; height: 4px; background: var(--teal); transform: rotate(-5deg); }
.node { position: relative; z-index: 2; text-align: center; }
.node::before { content: ""; display: block; width: 15px; height: 15px; border-radius: 50%; background: var(--navy); margin: 0 auto 8px; box-shadow: 0 0 0 7px rgba(255,255,255,.7); }
.node:last-child::before { background: var(--teal); }
.node strong { display: block; font: 700 1.35rem "Space Grotesk", sans-serif; }
.node small { color: var(--muted); }
.recovery-track { grid-template-columns: repeat(3, 1fr); }
.recovery-track::before { display: none; }
.recovery-path { position: absolute; left: 15%; right: 15%; top: 45px; height: 3px; background: linear-gradient(165deg, var(--coral) 0 49%, transparent 49%), linear-gradient(15deg, transparent 0 49%, var(--teal) 49%); background-size: 50% 100%, 50% 100%; background-position: left, right; background-repeat: no-repeat; }
.recovery-track .node:nth-of-type(2)::before { background: var(--coral); transform: translateY(25px); }
.recovery-track .node:nth-of-type(2) { transform: translateY(25px); }
.bars { display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 100px 1fr 66px; align-items: center; gap: 12px; font-size: .76rem; font-weight: 800; }
.bar { height: 18px; background: rgba(255,255,255,.7); border: 1px solid rgba(7,18,47,.18); }
.bar i { display: block; height: 100%; background: var(--purple); }
.bar-row:nth-child(2) .bar i { background: var(--coral); }
.bar-row:nth-child(3) .bar i { background: var(--teal); }
.composition { margin-top: 34px; }
.composition-bar { display: flex; height: 58px; border: 1px solid var(--navy); }
.composition-cost, .composition-profit { display: grid; place-items: center; color: var(--navy); font-size: .72rem; font-weight: 900; }
.composition-cost { background: var(--yellow); }
.composition-profit { background: var(--teal); }
.composition-legend { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: .72rem; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--line); border-top: 1px solid var(--line); margin-top: 50px; }
.info-card { padding: 32px; background: white; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info-card h2, .info-card h3 { margin-top: 0; letter-spacing: -.03em; }
.info-card p { color: var(--muted); }
.formula { overflow-x: auto; padding: 14px; background: var(--paper); border-left: 4px solid var(--purple); font: 700 .95rem "Space Grotesk", monospace; }
.related { margin-top: 58px; }
.related h2 { font-size: 1.8rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--navy); border-top: 1px solid var(--navy); }
.related a { padding: 22px; background: white; border-right: 1px solid var(--navy); border-bottom: 1px solid var(--navy); font-weight: 800; }
.related a:hover { background: var(--lavender); }

.content-page { padding: 72px 0 100px; }
.content-page .lead { max-width: 760px; font-size: 1.2rem; color: var(--muted); }
.prose { max-width: 820px; margin-top: 50px; }
.prose h2 { margin-top: 44px; font-size: 1.7rem; }
.prose p, .prose li { color: var(--muted); }

.site-footer { background: var(--navy); color: white; padding: 56px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; }
.footer-copy { max-width: 330px; color: rgba(255,255,255,.56); font-size: .8rem; }
.footer-links h3 { margin: 0 0 14px; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal); }
.footer-links a { display: block; margin: 7px 0; color: rgba(255,255,255,.7); font-size: .82rem; }
.footer-links a:hover { color: white; }
.copyright { margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.5); font-size: .72rem; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; padding: 12px 17px; background: var(--navy); color: white; box-shadow: var(--shadow); transform: translateY(100px); opacity: 0; transition: .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 900px) {
  .container { width: min(100% - 32px, var(--max)); }
  .header-inner { min-height: 64px; }
  .menu-button { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; padding: 16px 24px 24px; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.15); }
  .main-nav.open { display: grid; gap: 0; }
  .main-nav a { padding: 14px 0; }
  .locale { margin-left: auto; }
  .hero { padding: 54px 0 74px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-calculator { box-shadow: 8px 8px 0 var(--teal); }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { min-height: 54px; border-bottom: 1px solid var(--line); }
  .trust-item:nth-child(2) { border-right: 0; }
  .section { padding: 70px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 16px; }
  .tool-card:nth-child(n) { grid-column: span 6; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .calculator-grid { grid-template-columns: 1fr; }
  .input-panel { border-right: 0; border-bottom: 1px solid var(--navy); }
  .result-number { font-size: clamp(3rem, 12vw, 5.5rem); }
}

@media (max-width: 600px) {
  .locale { display: none; }
  h1 { font-size: 3.25rem; }
  .hero h1 { max-width: 11ch; }
  .hero-values { grid-template-columns: 1fr 24px 1fr; }
  .hero-calculator { padding: 20px; }
  .trust-grid { grid-template-columns: 1fr; padding: 8px 0; }
  .trust-item { justify-content: flex-start; border-right: 0; padding: 0 10px; }
  .tool-card:nth-child(n) { grid-column: span 12; min-height: 210px; }
  .mini-chart { width: 90px; opacity: .55; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit { min-height: 150px; }
  .page-hero { padding: 38px 0 44px; }
  .calculator-section { padding: 42px 0; }
  .input-panel, .result-panel { padding: 24px 20px; }
  .result-top { display: block; }
  .result-actions { margin-top: 18px; }
  .bar-row { grid-template-columns: 76px 1fr 54px; gap: 7px; font-size: .65rem; }
  .info-grid, .related-grid, .footer-grid { grid-template-columns: 1fr; }
  .info-card { padding: 24px 20px; }
  .footer-grid { gap: 30px; }
}

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