:root {
  --ink: #17243b;
  --muted: #5e6b80;
  --primary: #2459c4;
  --primary-dark: #17449e;
  --mint: #e8f6f0;
  --line: #e3e8f0;
  --surface: #ffffff;
  --soft: #f5f8fc;
  --shadow: 0 22px 65px rgba(25, 49, 91, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 780px; }
.skip-link { position: absolute; top: -60px; left: 16px; background: #fff; padding: 10px 14px; z-index: 10; border: 1px solid var(--line); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid #edf0f5; background: rgba(255,255,255,.94); }
.nav-wrap { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 800; letter-spacing: -.35px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: white; background: var(--primary); border-radius: 11px; font-weight: 800; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a, .footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.site-header nav a:hover, .footer-links a:hover { color: var(--primary); }
.hero { background: radial-gradient(ellipse at 14% 8%, #e8f1ff 0, transparent 38%), linear-gradient(135deg, #f6f9ff 0%, #f4fbf8 100%); padding: 70px 0 76px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 470px); gap: clamp(38px, 7vw, 92px); align-items: center; }
.eyebrow { color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; margin: 0 0 16px; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; background: #28a77b; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.hero h1 { max-width: 600px; font-size: clamp(38px, 5vw, 60px); line-height: 1.08; letter-spacing: -2.5px; margin: 0; font-weight: 800; }
.hero h1 span { color: var(--primary); }
.hero-lede { max-width: 520px; color: var(--muted); font-size: 17px; line-height: 1.75; margin: 24px 0 28px; }
.trust-points { display: flex; flex-wrap: wrap; gap: 12px 18px; color: #3c4b60; font-size: 12px; font-weight: 650; }
.check { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #157754; background: #d9f3e8; margin-right: 5px; font-size: 11px; }
.calculator-card { background: var(--surface); border: 1px solid rgba(222,230,242,.9); border-radius: 22px; box-shadow: var(--shadow); padding: 29px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.card-kicker { color: #7a8799; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; margin: 0 0 4px; }
.card-heading h2 { font-size: 23px; letter-spacing: -.7px; margin: 0; }
.card-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--primary); background: #edf3ff; font-size: 24px; }
.field { margin-bottom: 16px; min-width: 0; }
.field > label { display: block; font-size: 12px; font-weight: 750; margin-bottom: 7px; color: #33425a; }
.label-unit { color: #8490a2; font-weight: 500; }
input, select { width: 100%; min-height: 45px; border: 1px solid #dce3ed; border-radius: 9px; padding: 10px 12px; color: var(--ink); background: #fff; font: inherit; font-size: 13px; outline: none; }
input:focus, select:focus { border-color: #5b83dc; box-shadow: 0 0 0 3px rgba(36,89,196,.12); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.height-grid { margin-top: 0; }
.sub-label { display: block; color: #8490a2; font-size: 11px; margin: 0 0 5px; }
#height-metric { position: relative; }
#height-metric input { padding-right: 44px; }
.input-suffix { position: absolute; right: 13px; top: 11px; color: var(--muted); font-size: 12px; }
.hidden { display: none !important; }
.primary-button { width: 100%; display: flex; justify-content: center; align-items: center; gap: 12px; border: 0; border-radius: 10px; min-height: 50px; padding: 13px 18px; margin-top: 6px; color: #fff; background: var(--primary); font: inherit; font-weight: 750; cursor: pointer; transition: background .15s, transform .15s; }
.primary-button:hover { background: var(--primary-dark); transform: translateY(-1px); }
.primary-button:focus-visible, .secondary-button:focus-visible { outline: 3px solid #91b1fa; outline-offset: 3px; }
.form-privacy { text-align: center; color: #7d899a; font-size: 10px; margin: 12px 0 0; }
.form-error { color: #a52626; background: #fff1f1; border: 1px solid #ffdada; border-radius: 8px; padding: 10px; font-size: 12px; margin-bottom: 0; }
.results { margin-top: 22px; border: 1px solid #dce9ff; background: #f7faff; border-radius: 15px; padding: 19px; }
.result-top { text-align: center; }
.calorie-number { margin: 4px 0 5px; color: var(--primary); font-weight: 850; letter-spacing: -1.5px; font-size: 34px; line-height: 1.2; }
.calorie-number span:last-child { font-size: 12px; letter-spacing: 0; color: var(--muted); font-weight: 650; }
.result-description { color: var(--muted); font-size: 12px; margin: 8px 0 15px; }
.result-metrics { border-top: 1px solid #e0e9f7; padding-top: 13px; display: grid; gap: 10px; }
.result-metrics div { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.result-metrics span { color: var(--muted); }
.result-metrics strong { font-size: 11px; }
.result-caveat { font-size: 10px; color: #6e7a8c; margin: 14px 0; }
.secondary-button { width: 100%; background: #fff; border: 1px solid #cdd9ed; border-radius: 8px; padding: 10px; color: var(--primary); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.explainer { padding-top: 74px; padding-bottom: 84px; }
.section-heading { max-width: 730px; margin: 0 auto 36px; text-align: center; }
.section-heading h2 { font-size: clamp(27px, 3vw, 38px); line-height: 1.2; letter-spacing: -1.2px; margin: 0 0 14px; }
.section-heading > p:last-child { color: var(--muted); margin: 0; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card { padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.info-number { display: inline-grid; place-items: center; width: 34px; height: 34px; background: #edf3ff; color: var(--primary); border-radius: 10px; font-size: 12px; font-weight: 800; }
.info-card h3 { font-size: 17px; margin: 17px 0 7px; }
.info-card p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.7; }
.notice { border: 1px solid #d9e8e0; background: #f4fbf7; border-radius: 12px; padding: 17px 19px; margin: 28px 0; color: #405b50; font-size: 13px; }
.content-links { max-width: 700px; margin: 42px auto 0; }
.content-links h2 { font-size: 21px; margin-bottom: 10px; }
.content-links a { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 650; }
.content-links a span { color: var(--primary); }
.page-hero { padding: 64px 0 50px; background: linear-gradient(135deg, #f4f8ff, #f1faf6); }
.page-hero h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.12; letter-spacing: -1.8px; margin: 0 0 18px; }
.page-hero p:not(.eyebrow) { color: var(--muted); font-size: 16px; }
.article { padding-top: 34px; padding-bottom: 78px; }
.article h2 { font-size: 22px; letter-spacing: -.5px; margin: 34px 0 10px; }
.article p, .article li { color: #526078; font-size: 15px; line-height: 1.85; }
.article ul { padding-left: 22px; }
.equation { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 15px 18px; margin: 12px 0; color: #34445d; line-height: 1.9; font-size: 14px; }
.site-footer { background: #f7f9fc; border-top: 1px solid #e9edf4; padding: 34px 0 18px; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.footer-brand { font-size: 15px; }
.footer-note { margin: 8px 0 0; color: #7b8798; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.copyright { border-top: 1px solid #e6ebf2; margin-top: 28px; padding-top: 15px; color: #8a95a5; font-size: 11px; }
@media (max-width: 850px) {
  .hero-grid { grid-template-columns: 1fr; max-width: 650px; }
  .hero { padding: 48px 0 56px; }
  .hero h1 { max-width: 640px; }
  .calculator-card { max-width: 560px; width: 100%; margin-inline: auto; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 28px, 1120px); }
  .nav-wrap { min-height: 66px; }
  .site-header nav { gap: 13px; }
  .site-header nav a { font-size: 11px; }
  .brand { gap: 7px; font-size: 14px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .hero h1 { font-size: 41px; letter-spacing: -1.8px; }
  .hero-lede { font-size: 15px; }
  .trust-points { gap: 10px 13px; }
  .calculator-card { padding: 20px 17px; border-radius: 17px; }
  .card-heading h2 { font-size: 21px; }
  .info-grid { grid-template-columns: 1fr; }
  .explainer { padding-top: 52px; padding-bottom: 58px; }
  .section-heading { text-align: left; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .footer-links { gap: 13px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
