.vh-calculator-page .vh-header {
  border-bottom-color: var(--vh-line);
  background: #f1f0ed;
}

.vh-calculator-page .vh-header.is-stuck {
  background: #ffffff;
}

.vh-calculator-hero {
  padding: 156px 32px 80px;
  background: #f1f0ed;
}

.vh-calculator-hero-inner {
  width: min(960px, 100%);
  margin-inline: auto;
  text-align: center;
}

.vh-calculator-hero h1,
.vh-calculator-hero p,
.vh-calculator-proof-band h2,
.vh-calculator-proof-band p,
.vh-calculator-heading h2,
.vh-calculator-heading p,
.vh-calculator-steps h3,
.vh-calculator-steps p,
.vh-calculator-example,
.vh-calculator-proof-list h3,
.vh-calculator-proof-list p,
.vh-calculator-disclaimer h2,
.vh-calculator-disclaimer p {
  margin: 0;
}

.vh-calculator-hero h1 {
  color: var(--vh-ink);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.vh-calculator-hero p {
  max-width: 760px;
  margin: 28px auto 0;
  color: var(--vh-secondary);
  font-size: 19px;
  line-height: 29px;
  text-wrap: pretty;
}

.vh-calculator-inner {
  width: min(1080px, calc(100% - 64px));
  margin-inline: auto;
}

.vh-calculator-tool,
.vh-calculator-how,
.vh-calculator-proof,
.vh-calculator-related,
.vh-calculator-faq {
  padding-block: 112px;
}

.vh-calculator-tool,
.vh-calculator-proof,
.vh-calculator-faq {
  background: #f7f8fa;
}

.vh-calculator-how,
.vh-calculator-related {
  background: #ffffff;
}

.vh-calculator-panel {
  padding: clamp(24px, 4vw, 48px);
  border-radius: 16px;
  background: #ffffff;
}

.vh-calculator-page .calc {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--vh-ink);
  font-family: var(--v3-font);
}

.vh-calculator-page .calc-controls,
.vh-calculator-page .calc-add {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.vh-calculator-page .calc-controls {
  grid-template-columns: minmax(0, 2fr) minmax(160px, 1fr);
}

.vh-calculator-page .calc-add {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
}

.vh-calculator-page .calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vh-calculator-page .calc-label {
  color: var(--vh-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.vh-calculator-page .calc-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--vh-line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--vh-ink);
  font: inherit;
  font-size: 16px;
  line-height: 22px;
}

.vh-calculator-page .calc-input:focus-visible {
  border-color: var(--vh-accent);
  outline: 2px solid var(--vh-accent);
  outline-offset: 2px;
}

.vh-calculator-page .calc .v2-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--vh-accent);
  border-radius: 8px;
  background: var(--vh-accent);
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--vh-motion), border-color 160ms var(--vh-motion);
}

.vh-calculator-page .calc .v2-btn:hover {
  border-color: var(--vh-accent-hover);
  background: var(--vh-accent-hover);
}

.vh-calculator-page .calc-add-btn {
  white-space: nowrap;
}

.vh-calculator-page .calc-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f1f0ed;
  color: var(--vh-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
}

.vh-calculator-page .calc-trips {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.vh-calculator-page .calc-trip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eef0f6;
}

.vh-calculator-page .calc-trip > span {
  color: var(--vh-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.vh-calculator-page .calc-trip-del {
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: var(--vh-secondary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.vh-calculator-page .calc-trip-del:hover {
  color: var(--vh-ink);
}

.vh-calculator-page .calc-result {
  margin-bottom: 20px;
  padding: 28px;
  border-radius: 14px;
  background: #eef0f6;
}

.vh-calculator-page .calc-result-num {
  color: var(--vh-ink);
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.vh-calculator-page .calc-result-unit {
  color: var(--vh-secondary);
  font-size: 0.45em;
  font-weight: 500;
  letter-spacing: 0;
}

.vh-calculator-page .calc-result-msg {
  margin: 12px 0 18px;
  color: var(--vh-ink);
  font-size: 17px;
  line-height: 26px;
}

.vh-calculator-page .calc-result-note {
  margin: 16px 0 0;
  color: var(--vh-secondary);
  font-size: 13px;
  line-height: 21px;
}

.vh-calculator-page .calc-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(11, 40, 57, 0.14);
}

.vh-calculator-page .calc-bar-fill {
  width: 0;
  height: 100%;
  border-radius: 8px;
  background: var(--vh-accent);
  transition: width 350ms var(--vh-motion);
}

.vh-calculator-page .calc-bar-fill.is-over {
  background: var(--vh-ink);
}

.vh-calculator-page .calc-cta {
  padding: 28px;
  border-radius: 14px;
  background: var(--vh-ink);
}

.vh-calculator-page .calc-cta-lead {
  margin: 0 0 16px;
  color: #d7e0e5;
  font-size: 16px;
  line-height: 25px;
}

.vh-calculator-page .calc-cta-lead strong {
  color: #ffffff;
  font-weight: 500;
}

.vh-calculator-page .calc-email {
  margin-top: 24px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.vh-calculator-page .calc-email-lead {
  margin: 0 0 12px;
  color: #d7e0e5;
  font-size: 14px;
  line-height: 22px;
}

.vh-calculator-page .calc-email-row {
  display: flex;
  gap: 10px;
}

.vh-calculator-page .calc-email-field {
  flex: 1;
}

.vh-calculator-page .calc .calc-email-btn {
  border-color: rgba(255, 255, 255, 0.48);
  background: transparent;
}

.vh-calculator-page .calc .calc-email-btn:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--vh-ink);
}

.vh-calculator-page .calc-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  color: #b7c4cc;
  font-size: 12px;
  line-height: 19px;
}

.vh-calculator-page .calc-consent input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--vh-accent);
}

.vh-calculator-page .calc-consent a {
  color: #ffffff;
}

.vh-calculator-page .calc-email-success p {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 24px;
}

.vh-calculator-page .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;
}

.vh-calculator-proof-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  margin-top: 24px;
  padding: 40px 48px;
  border-radius: 16px;
  background: #eef0f6;
}

.vh-calculator-proof-band h2 {
  max-width: 720px;
  color: var(--vh-ink);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.vh-calculator-proof-band p {
  margin-top: 14px;
  color: var(--vh-secondary);
  font-size: 17px;
  line-height: 26px;
}

.vh-calculator-proof-band > a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--vh-accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  text-decoration: none;
  transition: background-color 160ms var(--vh-motion);
}

.vh-calculator-proof-band > a:hover {
  background: var(--vh-accent-hover);
}

.vh-calculator-heading {
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: center;
}

.vh-calculator-heading h2 {
  color: var(--vh-ink);
  font-size: clamp(36px, 4.5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-wrap: balance;
}

.vh-calculator-heading p {
  max-width: 700px;
  margin: 20px auto 0;
  color: var(--vh-secondary);
  font-size: 18px;
  line-height: 29px;
}

.vh-calculator-heading strong,
.vh-calculator-example strong {
  color: var(--vh-ink);
  font-weight: 500;
}

.vh-calculator-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vh-calculator-steps li {
  min-width: 0;
  padding: 32px;
  border-radius: 14px;
  background: #f3f4f6;
}

.vh-calculator-steps li > span {
  color: var(--vh-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.vh-calculator-steps h3 {
  margin-top: 16px;
  color: var(--vh-ink);
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
}

.vh-calculator-steps p {
  margin-top: 12px;
  color: var(--vh-secondary);
  font-size: 16px;
  line-height: 25px;
}

.vh-calculator-example {
  max-width: 860px;
  margin: 32px auto 0;
  padding: 28px 32px;
  border-radius: 14px;
  background: #eef0f6;
  color: var(--vh-secondary);
  font-size: 17px;
  line-height: 27px;
}

.vh-calculator-proof-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.vh-calculator-proof-list article {
  min-width: 0;
  padding: 32px;
  border-radius: 14px;
  background: #ffffff;
}

.vh-calculator-proof-list .vh-calculator-proof-positive {
  background: var(--vh-ink);
}

.vh-calculator-proof-list h3 {
  color: var(--vh-ink);
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
}

.vh-calculator-proof-list p {
  margin-top: 12px;
  color: var(--vh-secondary);
  font-size: 16px;
  line-height: 25px;
}

.vh-calculator-proof-positive h3 {
  color: #ffffff;
}

.vh-calculator-proof-positive p {
  color: #d7e0e5;
}

.vh-calculator-action {
  margin-top: 40px;
  text-align: center;
}

.vh-calculator-action a {
  color: var(--vh-accent);
  font-size: 16px;
  font-weight: 500;
  text-underline-offset: 4px;
}

.vh-calculator-related-list {
  max-width: 960px;
  display: grid;
  gap: 8px;
  margin-inline: auto;
}

.vh-calculator-related-list a {
  display: grid;
  grid-template-columns: minmax(250px, 0.45fr) minmax(0, 1fr);
  gap: 40px;
  padding: 28px 32px;
  border-radius: 14px;
  color: var(--vh-ink);
  text-decoration: none;
}

.vh-calculator-related-list a:nth-child(odd) {
  background: #f3f4f6;
}

.vh-calculator-related-list strong {
  font-size: 19px;
  font-weight: 500;
  line-height: 26px;
}

.vh-calculator-related-list span {
  color: var(--vh-secondary);
  font-size: 16px;
  line-height: 25px;
}

.vh-calculator-related-list a:hover strong {
  color: var(--vh-accent);
}

.vh-calculator-reading {
  width: min(800px, calc(100% - 40px));
  margin-inline: auto;
}

.vh-calculator-faq-list details {
  padding: 28px;
  border-radius: 14px;
}

.vh-calculator-faq-list details:nth-child(odd) {
  background: #eef0f6;
}

.vh-calculator-faq-list summary {
  color: var(--vh-ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  cursor: pointer;
}

.vh-calculator-faq-list details p {
  margin: 14px 0 0;
  color: var(--vh-secondary);
  font-size: 17px;
  line-height: 27px;
}

.vh-calculator-disclaimer {
  margin-top: 64px;
  padding: 32px;
  border-radius: 14px;
  background: #f1f0ed;
}

.vh-calculator-disclaimer h2 {
  color: var(--vh-ink);
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
}

.vh-calculator-disclaimer p {
  margin-top: 14px;
  color: var(--vh-secondary);
  font-size: 15px;
  line-height: 24px;
}

.vh-calculator-disclaimer p:last-child {
  color: var(--vh-ink);
  font-weight: 500;
}

@media (max-width: 820px) {
  .vh-calculator-proof-band,
  .vh-calculator-related-list a {
    grid-template-columns: 1fr;
  }

  .vh-calculator-proof-band {
    gap: 24px;
  }

  .vh-calculator-proof-band > a {
    justify-self: start;
  }

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

@media (max-width: 680px) {
  .vh-calculator-hero {
    padding: 96px 20px 72px;
  }

  .vh-calculator-tool,
  .vh-calculator-how,
  .vh-calculator-proof,
  .vh-calculator-related,
  .vh-calculator-faq {
    padding-block: 80px;
  }

  .vh-calculator-inner {
    width: calc(100% - 32px);
  }

  .vh-calculator-page .calc-controls,
  .vh-calculator-page .calc-add {
    grid-template-columns: 1fr;
  }

  .vh-calculator-page .calc-add-btn {
    width: 100%;
  }

  .vh-calculator-proof-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .vh-calculator-hero {
    padding: 72px 16px 64px;
  }

  .vh-calculator-hero h1 {
    font-size: clamp(40px, 12vw, 48px);
  }

  .vh-calculator-hero p,
  .vh-calculator-heading p {
    font-size: 16px;
    line-height: 25px;
  }

  .vh-calculator-tool,
  .vh-calculator-how,
  .vh-calculator-proof,
  .vh-calculator-related,
  .vh-calculator-faq {
    padding-block: 64px;
  }

  .vh-calculator-panel {
    padding: 20px 16px;
  }

  .vh-calculator-page .calc-email-row {
    flex-direction: column;
  }

  .vh-calculator-page .calc .calc-email-btn {
    width: 100%;
  }

  .vh-calculator-proof-band {
    padding: 32px 24px;
  }

  .vh-calculator-proof-band > a {
    width: 100%;
  }

  .vh-calculator-heading {
    margin-bottom: 32px;
  }

  .vh-calculator-heading h2 {
    font-size: 34px;
  }

  .vh-calculator-steps li,
  .vh-calculator-proof-list article,
  .vh-calculator-disclaimer {
    padding: 24px;
  }

  .vh-calculator-example {
    padding: 24px;
    font-size: 16px;
    line-height: 25px;
  }

  .vh-calculator-related-list a {
    gap: 8px;
    padding: 24px;
  }

  .vh-calculator-reading {
    width: calc(100% - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vh-calculator-page .calc-bar-fill,
  .vh-calculator-page .vh-guides-card-image img {
    transition-duration: 0.01ms;
  }
}
