@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --accent: #850a1e;
  --accent-hover: #6e0819;
  --accent-active: #570614;
  --accent-soft: #fbf1f3;
  --text: #1e2326;
  --muted: #596168;
  --background: #f7f8fa;
  --surface: #fff;
  --divider: #e4e5e7;
  --control-border: #7b8189;
  --focus: #2563eb;
  --error: #b42318;
  --radius-control: 8px;
  --radius-panel: 12px;
  --content-width: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--text); background: var(--surface); font-family: "Manrope", system-ui, sans-serif; font-size: 16px; line-height: 1.6; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--accent); text-underline-offset: 3px; transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
a:active { color: var(--accent-active); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: #f4e1e6; color: var(--accent-active); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(40px, 4.55vw, 62px); font-weight: 800; letter-spacing: -.055em; line-height: 1.14; }
h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.04em; line-height: 1.24; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.025em; line-height: 1.35; }
.container { width: min(var(--content-width), calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: 8px; left: 16px; z-index: 10; padding: 12px 20px; background: var(--surface); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .13em; line-height: 1.5; }
.accent-dot { flex: 0 0 auto; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Header and in-page navigation. */
.site-header { border-bottom: 1px solid var(--divider); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
.brand { width: 260px; height: 76px; display: flex; align-items: center; flex-shrink: 0; }
.brand img { display: block; width: 100%; height: auto; }
nav { display: flex; align-items: center; gap: 32px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
nav a:hover { text-decoration: underline; color: var(--accent); }
nav .nav-contact { gap: 14px; color: var(--accent); }

/* Introduction. The oversized percent is decorative and hidden on small screens. */
.hero { position: relative; isolation: isolate; padding-block: 70px 64px; overflow: visible; }
.hero > .eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; }
.hero h1 { max-width: 850px; }
.hero h1 span { color: var(--accent); }
.hero-description { max-width: 555px; margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-bottom { display: flex; align-items: center; gap: 28px; margin-top: 30px; }
.hero-note { color: var(--muted); font-size: 12px; line-height: 1.7; }
.hero-note strong { color: var(--text); font-weight: 600; }
.hero-mark { position: absolute; right: 24px; top: 15px; z-index: -1; font-size: 330px; line-height: 1; font-weight: 800; letter-spacing: -.1em; color: var(--accent-soft); transform: rotate(-12deg); user-select: none; pointer-events: none; }

/* Shared action styles. */
.button { min-height: 48px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; border: 1px solid transparent; border-radius: var(--radius-control); font-size: 16px; font-weight: 700; line-height: 1.4; text-decoration: none; transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease; }
.button-primary { background: var(--accent); color: white; }
.button-primary:hover:not(:disabled) { color: white; background: var(--accent-hover); }
.button-primary:active:not(:disabled) { background: var(--accent-active); }
.button-secondary { background: white; border-color: var(--accent); color: var(--accent); }
.button-secondary:hover:not(:disabled) { background: var(--accent-soft); }
.button-secondary:active:not(:disabled) { background: #f4e1e6; }
.button:disabled { background: var(--divider); color: var(--muted); border-color: var(--divider); }
.button-secondary:disabled { background: #f1f2f4; }

/* Calculator fields and results. */
.calculator-section { padding-block: 52px 64px; background: var(--background); border-block: 1px solid var(--divider); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2 { font-size: clamp(25px, 2.6vw, 32px); }
.section-heading p:not(.eyebrow) { max-width: 690px; margin-top: 12px; color: var(--muted); font-size: 15px; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 6px 11px; border: 1px solid var(--divider); background: var(--surface); border-radius: 30px; font-size: 11px; font-weight: 600; color: var(--muted); }
.status-badge > span { width: 5px; height: 5px; background: var(--muted); border-radius: 50%; }
.calculator-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); border: 1px solid var(--divider); border-radius: var(--radius-panel); overflow: hidden; background: var(--surface); }
.calculator-inputs { padding: 30px; }
.panel-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.panel-heading h3 { font-size: 18px; }
.unit-label { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.panel-intro { color: var(--muted); font-size: 13px; margin-top: 10px; margin-bottom: 26px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.field { min-width: 0; }
.field label { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.field label > span { color: var(--muted); font-size: 12px; font-weight: 400; }
input, textarea { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 11px 12px; color: var(--text); background: var(--surface); border: 1px solid var(--control-border); border-radius: var(--radius-control); font-size: 16px; line-height: 1.5; transition: border-color 150ms ease; }
input:hover, textarea:hover { border-color: var(--text); }
input:focus, textarea:focus { border-color: var(--accent); outline: 3px solid var(--focus); outline-offset: 2px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border: 2px solid var(--error); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:disabled, textarea:disabled, input[readonly] { background: var(--background); }
textarea { resize: vertical; min-height: 128px; }
.input-unit { position: relative; }
.input-unit input { padding-right: 36px; }
.input-unit > span { position: absolute; right: 14px; top: 12px; color: var(--muted); pointer-events: none; }
.field-help { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.field-error { margin-top: 8px; color: var(--error); font-size: 13px; line-height: 1.5; }
.field-error::before { content: "! "; font-weight: 800; }
.form-actions { display: flex; gap: 12px; margin-top: 28px; }
.form-actions .button { font-size: 14px; gap: 14px; padding-inline: 16px; }
.example-action { min-height: 44px; border: 0; padding: 8px 0; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: none; color: var(--accent); }
.example-action:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
.example-action:active { color: var(--accent-active); }
.data-note { display: flex; gap: 8px; align-items: center; margin-top: 15px; padding-top: 18px; border-top: 1px solid var(--divider); color: var(--muted); font-size: 11px; }
.data-note svg { width: 15px; height: 15px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.results-preview { padding: 30px; border-left: 1px solid var(--divider); background: #fcf8f9; }
.result-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.result-heading .eyebrow { font-size: 9px; }
.example-badge { padding: 3px 8px; color: var(--accent); background: #f4e1e6; border-radius: 4px; font-size: 10px; font-weight: 600; }
.results-preview h3 { margin-top: 20px; font-size: 27px; font-weight: 800; letter-spacing: -.04em; }
.results-preview > p { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.results-preview .contribution-definition { font-size: 13px; }
.contribution-definition strong { color: var(--text); }
.results-empty { display: grid; justify-items: start; gap: 18px; padding-block: 36px 24px; }
.results-empty p { color: var(--muted); font-size: 15px; max-width: 32ch; }
.empty-symbol { color: #d5b8c0; font-size: 64px; font-weight: 800; line-height: 1; }
.comparison-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; margin-top: 22px; }
.comparison-table td, .comparison-table th { overflow-wrap: anywhere; }
.comparison-table th, .comparison-table td { padding-block: 12px; padding-inline: 4px; text-align: right; border-bottom: 1px solid #e8dce0; }
.comparison-table th:first-child { text-align: left; padding-left: 0; }
.comparison-table thead th { color: var(--muted); font-size: 10px; font-weight: 500; }
.comparison-table tbody th { font-size: 12px; font-weight: 500; }
.comparison-table .margin-row td { font-weight: 800; font-size: 19px; }
.comparison-table .margin-row td:last-child { color: var(--accent); }
.result-takeaway { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 22px; }
.takeaway-number { color: var(--accent); font-size: 38px; font-weight: 800; line-height: 1.15; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.takeaway-number > span { font-size: 24px; }
.result-takeaway p { font-size: 11px; color: var(--muted); line-height: 1.6; }
.result-takeaway strong { font-weight: 600; color: var(--text); }
.results-preview .result-footnote { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 16px; }
.variation-note { margin-top: 20px; font-size: 14px; font-weight: 600; }
.scenario-notice { margin-top: 20px; padding-left: 12px; border-left: 3px solid var(--error); color: var(--error); font-size: 14px; }
.comparison-table td.is-negative { color: var(--error); }
.takeaway-number { overflow-wrap: anywhere; max-width: 100%; }
[hidden] { display: none !important; }

/* Explanatory copy. */
.explanation { padding-block: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.explanation-heading h2 { margin-top: 16px; }
.explanation-heading > p:last-child { color: var(--muted); font-size: 15px; margin-top: 22px; max-width: 430px; }
.explanation-steps { display: grid; gap: 26px; }
.explanation-steps article { display: flex; gap: 18px; }
.step-number { padding-top: 2px; color: var(--accent); font-size: 12px; font-weight: 800; }
.explanation-steps h3 { font-size: 17px; }
.explanation-steps p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Contact preview. */
.contact-section { padding-block: 64px; border-top: 1px solid var(--divider); background: var(--background); }
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }
.contact-copy h2 { margin-top: 16px; }
.contact-copy > p:not(.eyebrow) { margin-top: 22px; color: var(--muted); font-size: 15px; }
.contact-copy > .contact-availability { display: flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 12px; }
.contact-form > .field { margin-top: 24px; }
.contact-submit { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.contact-submit .button { font-size: 14px; }
.contact-submit p { color: var(--muted); font-size: 11px; }
.contact-copy > .contact-availability { display: block; overflow-wrap: anywhere; }
.contact-privacy { margin-top: 16px; color: var(--muted); font-size: 12px; }
.contact-status { margin-top: 20px; font-size: 14px; }
.contact-status.is-success { color: #166534; }
.contact-status.is-error { color: var(--error); }
.contact-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.site-footer { padding-block: 24px; border-top: 1px solid var(--divider); color: var(--muted); font-size: 12px; }

@media (max-width: 1000px) {
  .hero-mark { right: 24px; font-size: 250px; top: 60px; }
  .calculator-inputs, .results-preview { padding: 24px; }
  .field-grid { gap: 24px 16px; }
  .explanation, .contact-layout { gap: 40px; }
  .form-actions { flex-wrap: wrap; }
  .comparison-table .margin-row td { font-size: 17px; }
}
@media (max-width: 767px) {
  .container { width: calc(100% - 32px); }
  .header-inner { flex-wrap: wrap; justify-content: center; gap: 0; padding-bottom: 10px; }
  .brand { width: 235px; height: 72px; }
  nav { width: 100%; justify-content: center; gap: 26px; }
  nav a { font-size: 12px; }
  nav .nav-contact { gap: 6px; }
  .hero { padding-block: 42px; }
  .hero h1 { font-size: clamp(32px, 7.5vw, 48px); }
  .hero-description { font-size: 16px; margin-top: 20px; }
  .hero-mark { display: none; }
  .hero-bottom { align-items: flex-start; flex-direction: column; gap: 16px; margin-top: 24px; }
  .hero-note br { display: none; }
  .hero-note strong::before { content: " "; }
  .hero .button { font-size: 15px; }
  .calculator-section { padding-block: 36px; }
  .section-heading { flex-direction: column; gap: 16px; margin-bottom: 22px; }
  .section-heading p:not(.eyebrow) { font-size: 14px; }
  .calculator-layout { grid-template-columns: 1fr; }
  .calculator-inputs, .results-preview { padding: 24px; }
  .results-preview { border-left: 0; border-top: 1px solid var(--divider); }
  .panel-intro { font-size: 14px; }
  .field-help { font-size: 13px; }
  .data-note { font-size: 12px; }
  .explanation, .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .explanation { padding-block: 44px; }
  .explanation-heading > p:last-child { max-width: none; }
  .contact-section { padding-block: 40px; }
  .contact-submit .button { width: 100%; }
  .site-footer { padding-block: 20px; }
}
@media (max-width: 420px) {
  nav { gap: 18px; }
  .calculator-inputs, .results-preview { padding: 20px 16px; }
  .field-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .form-actions .button { width: 100%; }
  .result-heading .eyebrow { letter-spacing: .06em; }
  .comparison-table .margin-row td { font-size: 16px; }
  .comparison-table { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
