:root {
  --ink: #12352f;
  --ink-deep: #0a2925;
  --ink-soft: #41635c;
  --paper: #f7faf6;
  --paper-warm: #f3f0e7;
  --white: #ffffff;
  --teal: #1f7a67;
  --teal-dark: #155f50;
  --mint: #b9ead9;
  --lime: #d9ff83;
  --lime-soft: #ecffc1;
  --amber: #f4c96b;
  --danger: #a73b2d;
  --border: rgba(18, 53, 47, 0.14);
  --shadow: 0 28px 80px rgba(13, 53, 45, 0.12);
  --shadow-small: 0 14px 34px rgba(13, 53, 45, 0.09);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Aptos, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
a,
summary,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
summary,
select {
  cursor: pointer;
}

a {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid #ecb63f;
  outline-offset: 3px;
}

::selection {
  background: var(--lime);
  color: var(--ink-deep);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 15px;
  transform: translateY(-160%);
  border-radius: 10px;
  background: var(--ink-deep);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(18, 53, 47, 0.09);
  background: rgba(247, 250, 246, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1200px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  min-width: max-content;
  text-decoration: none;
}

.brand > span:last-child {
  display: grid;
  line-height: 1.04;
}

.brand strong {
  color: var(--ink-deep);
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.brand small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 36px;
  height: 42px;
  place-items: center;
  transform: rotate(45deg);
  border-radius: 50% 50% 50% 8px;
  background: var(--ink);
  box-shadow: inset -7px -7px 0 rgba(217, 255, 131, 0.2);
}

.brand-mark span {
  width: 9px;
  height: 14px;
  transform: rotate(-45deg);
  border: 2px solid var(--lime);
  border-top-color: transparent;
  border-radius: 50%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a,
.site-footer nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.site-footer nav a:hover {
  color: var(--teal);
}

.support-link {
  justify-self: end;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 7px 20px rgba(13, 53, 45, 0.06);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.94fr);
  align-items: center;
  width: min(1200px, calc(100% - 40px));
  min-height: 680px;
  margin: 0 auto;
  padding: 88px 0 90px;
  gap: 72px;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 30px;
  left: -180px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 234, 217, 0.46), transparent 68%);
  content: "";
}

.eyebrow {
  display: flex;
  align-items: center;
  margin: 0 0 19px;
  gap: 10px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 28px;
  height: 2px;
  background: currentColor;
}

.hero h1,
.section-heading h2,
.ief-copy h2,
.limits-section h2,
.support-section h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.048em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(52px, 6.3vw, 88px);
}

.hero h1 em {
  position: relative;
  color: var(--teal);
  font-weight: inherit;
}

.hero h1 em::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 9px;
  transform: rotate(-1deg);
  border-radius: 50%;
  background: var(--lime);
  content: "";
  opacity: 0.7;
}

.hero-lede {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.58;
}

.hero-actions,
.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 34px;
  gap: 13px;
}

.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--ink-deep);
  background: var(--ink-deep);
  color: var(--white);
  box-shadow: 0 13px 28px rgba(10, 41, 37, 0.18);
}

.button-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 15px 34px rgba(10, 41, 37, 0.22);
}

.button-ghost {
  border-color: var(--border);
  background: var(--white);
  color: var(--ink);
}

.button-plain {
  min-height: 44px;
  padding-inline: 14px;
  color: var(--ink-soft);
}

.button-large {
  min-height: 56px;
  padding-inline: 28px;
  font-size: 17px;
}

.button-small {
  min-height: 42px;
  padding: 9px 15px;
  font-size: 13px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  margin: 28px 0 0;
  padding: 0;
  gap: 11px 20px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
  list-style: none;
}

.trust-row li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-row span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink-deep);
  font-size: 11px;
}

.hero-visual {
  position: relative;
  min-height: 500px;
}

.visual-glow {
  position: absolute;
  inset: 5% 0 0 2%;
  transform: rotate(-4deg);
  border-radius: 44% 56% 48% 52% / 56% 35% 65% 44%;
  background: linear-gradient(145deg, var(--mint), #e8f5c9 72%);
}

.cost-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.cost-card-main {
  z-index: 2;
  top: 80px;
  right: 2%;
  left: 2%;
  padding: 28px;
  transform: rotate(2.4deg);
  border-radius: 30px;
}

.cost-card-top,
.mock-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.live-dot {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--lime-soft);
  color: var(--teal-dark);
}

.mock-cost {
  margin: 22px 0 20px;
  color: var(--ink-deep);
  font-family: var(--display);
  font-size: 62px;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.mock-cost span {
  margin-left: 8px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.mock-chart {
  display: flex;
  height: 112px;
  align-items: end;
  padding: 0 6px 13px;
  gap: 11px;
  border-bottom: 1px solid var(--border);
}

.mock-chart i {
  display: block;
  width: 100%;
  height: 40%;
  border-radius: 8px 8px 2px 2px;
  background: var(--teal);
}

.mock-chart i:nth-child(2) { height: 54%; }
.mock-chart i:nth-child(3) { height: 72%; }
.mock-chart i:nth-child(4) { height: 89%; }
.mock-chart i:nth-child(5) { height: 68%; background: #75bfa9; }
.mock-chart i:nth-child(6) { height: 51%; background: #75bfa9; }
.mock-chart i:nth-child(7) { height: 38%; background: #75bfa9; }

.mock-legend {
  justify-content: flex-start;
  margin-top: 18px;
  gap: 20px;
  text-transform: none;
}

.mock-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mock-legend b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.mock-legend .dot-new {
  background: #75bfa9;
}

.cost-card-float {
  z-index: 3;
  right: 0;
  bottom: 32px;
  display: grid;
  width: 175px;
  padding: 20px;
  transform: rotate(-4deg);
  border-radius: 22px;
}

.cost-card-float span,
.cost-card-float small {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.cost-card-float strong {
  margin: 6px 0;
  font-family: var(--display);
  font-size: 27px;
  line-height: 1;
}

.drop {
  position: absolute;
  z-index: 4;
  width: 30px;
  height: 38px;
  transform: rotate(45deg);
  border-radius: 50% 50% 50% 8px;
  background: var(--teal);
  box-shadow: 0 10px 24px rgba(31, 122, 103, 0.28);
}

.drop-one {
  top: 24px;
  right: 22%;
}

.drop-two {
  bottom: 62px;
  left: 4px;
  width: 19px;
  height: 24px;
  background: var(--lime);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto 110px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-small);
}

.proof-strip article {
  display: flex;
  min-width: 0;
  padding: 24px;
  gap: 16px;
}

.proof-strip article + article {
  border-left: 1px solid var(--border);
}

.proof-strip article > span {
  color: var(--teal);
  font-family: var(--display);
  font-size: 25px;
  font-style: italic;
}

.proof-strip strong,
.proof-strip p {
  display: block;
}

.proof-strip strong {
  margin-bottom: 4px;
  color: var(--ink-deep);
  font-size: 15px;
}

.proof-strip p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.calculator-section {
  padding: 104px 20px 120px;
  background: var(--ink-deep);
  color: var(--white);
}

.section-heading {
  width: min(820px, 100%);
  margin: 0 auto 52px;
  text-align: center;
}

.section-heading .eyebrow {
  justify-content: center;
}

.section-heading h2,
.ief-copy h2,
.limits-section h2,
.support-section h2 {
  font-size: clamp(42px, 5vw, 66px);
}

.section-heading > p:last-child {
  max-width: 700px;
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.section-heading-light .eyebrow {
  color: var(--lime);
}

.section-heading-light > p:last-child {
  color: rgba(255, 255, 255, 0.67);
}

.tool-card {
  width: min(1120px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-xl);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.25);
}

#calculator-form {
  padding: 42px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.goal-picker > legend {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #e8efea;
}

.segmented-control input,
.method-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.segmented-control label {
  display: grid;
  min-height: 68px;
  align-content: center;
  padding: 11px 16px;
  border-radius: 14px;
  text-align: center;
}

.segmented-control label span {
  font-weight: 900;
}

.segmented-control label small {
  color: var(--ink-soft);
  font-size: 12px;
}

.segmented-control input:checked + label {
  background: var(--white);
  box-shadow: 0 5px 18px rgba(18, 53, 47, 0.1);
}

.segmented-control input:focus-visible + label,
.method-picker input:focus-visible + label {
  outline: 3px solid #ecb63f;
  outline-offset: 2px;
}

.form-section {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.form-section-heading {
  display: flex;
  align-items: flex-start;
  margin-bottom: 22px;
  gap: 13px;
}

.form-section-heading > span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink-deep);
  font-family: var(--display);
  font-size: 18px;
  font-style: italic;
  font-weight: 700;
}

.form-section-heading h3 {
  margin: 0;
  color: var(--ink-deep);
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.form-section-heading p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

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

.field-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-grid-five {
  grid-template-columns: 0.8fr 1.4fr repeat(3, 1fr);
}

.field-full {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 7px;
}

.field > span,
.method-picker legend {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.field > span small,
.advanced-fields summary span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.field > small {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.4;
}

.field input,
.field select {
  width: 100%;
  min-height: 49px;
  padding: 11px 13px;
  border: 1px solid rgba(18, 53, 47, 0.2);
  border-radius: 12px;
  background: #fbfdfb;
  color: var(--ink-deep);
  font-weight: 720;
  outline: 0;
}

.field input::placeholder {
  color: #829a94;
  font-weight: 500;
}

.field input:hover,
.field select:hover {
  border-color: rgba(31, 122, 103, 0.5);
}

.field input:focus,
.field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(31, 122, 103, 0.12);
}

.field input:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}

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

.unit-layout > .form-section:only-child,
.unit-layout > .form-section:first-child:last-child {
  grid-column: 1 / -1;
}

.unit-panel {
  position: relative;
  overflow: hidden;
}

.unit-panel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--teal);
  content: "";
}

.replacement-panel::before {
  background: var(--lime);
}

.unit-panel > .field {
  margin-bottom: 18px;
}

.method-picker {
  margin-bottom: 18px;
}

.method-picker legend {
  margin-bottom: 8px;
}

.method-picker > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.method-picker label {
  display: grid;
  min-height: 45px;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.method-picker input:checked + label {
  border-color: var(--teal);
  background: rgba(185, 234, 217, 0.35);
  color: var(--teal-dark);
}

.advanced-fields {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.advanced-fields summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 850;
  list-style: none;
}

.advanced-fields summary::-webkit-details-marker {
  display: none;
}

.advanced-fields summary::after {
  width: 9px;
  height: 9px;
  margin-left: auto;
  transform: rotate(45deg);
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transition: transform 150ms ease;
}

.advanced-fields[open] summary::after {
  transform: rotate(225deg) translate(-3px, -3px);
}

.advanced-fields .field-grid {
  margin-top: 16px;
}

.form-actions {
  margin-top: 30px;
}

.form-error {
  flex-basis: 100%;
  min-height: 1.5em;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
}

.status-line {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.results {
  scroll-margin-top: 110px;
  padding: 42px;
  border-top: 1px solid var(--border);
  background: #e9f4ed;
}

.results[data-tone="positive"] {
  background: #e7f6e8;
}

.results[data-tone="caution"] {
  background: #fbf3dd;
}

.result-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.result-eyebrow {
  margin: 0 0 7px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.result-heading h2 {
  margin: 0;
  color: var(--ink-deep);
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 54px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.result-heading p:last-child {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
}

.result-metrics article {
  display: grid;
  padding: 20px;
  gap: 6px;
}

.result-metrics article + article {
  border-left: 1px solid var(--border);
}

.result-metrics span,
.unit-result-card > div > span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-metrics strong {
  color: var(--ink-deep);
  font-family: var(--display);
  font-size: 29px;
  letter-spacing: -0.03em;
}

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

.unit-result-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.unit-result-card h3 {
  margin: 2px 0 14px;
  overflow-wrap: anywhere;
  color: var(--ink-deep);
  font-size: 17px;
}

.unit-result-card > strong {
  display: block;
  color: var(--ink-deep);
  font-family: var(--display);
  font-size: 36px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.unit-result-card > p {
  margin: 7px 0 18px;
  color: var(--ink-soft);
  font-size: 12px;
}

.unit-result-card dl {
  display: grid;
  margin: 0;
  gap: 8px;
}

.unit-result-card dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 8px;
  gap: 12px;
  border-top: 1px solid var(--border);
}

.unit-result-card dt {
  color: var(--ink-soft);
  font-size: 12px;
}

.unit-result-card dd {
  margin: 0;
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

.replacement-result {
  border-color: rgba(31, 122, 103, 0.35);
}

.comparison-bars {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
}

.comparison-bars h3,
.result-detail-grid h3 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 21px;
}

.bar-row + .bar-row {
  margin-top: 14px;
}

.bar-row > span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.bar-row > div {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 53, 47, 0.09);
}

.bar-row i {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal-dark);
  transition: width 300ms ease;
}

.replacement-bar i {
  background: #64b59f;
}

.result-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
  gap: 18px;
}

.result-detail-grid > section {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
}

.note-list,
.assumption-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.note-list li,
.assumption-list li {
  position: relative;
  padding-left: 21px;
  color: var(--ink-soft);
  font-size: 13px;
}

.note-list li::before,
.assumption-list li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #87a59d;
  content: "";
}

.note-list li[data-tone="positive"]::before {
  background: var(--teal);
}

.note-list li[data-tone="caution"]::before {
  background: #d08d19;
}

.result-boundary {
  margin: 20px 0 0;
  padding: 15px 17px;
  border-left: 4px solid var(--amber);
  border-radius: 4px 12px 12px 4px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink-soft);
  font-size: 12px;
}

.content-section {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.formula-card {
  position: relative;
  min-width: 0;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-small);
}

.formula-card-dark {
  border-color: transparent;
  background: var(--ink-deep);
  color: var(--white);
}

.card-number {
  color: var(--teal);
  font-family: var(--display);
  font-size: 24px;
  font-style: italic;
}

.formula-card-dark .card-number {
  color: var(--lime);
}

.formula-card h3 {
  margin: 34px 0 14px;
  font-family: var(--display);
  font-size: 27px;
  letter-spacing: -0.03em;
}

.formula-card p {
  margin: 0;
}

.formula-card code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--teal-dark);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.7;
}

.formula-card-dark code {
  color: var(--lime-soft);
}

.formula-card small {
  display: block;
  margin-top: 19px;
  color: var(--ink-soft);
  font-size: 12px;
}

.formula-card-dark small {
  color: rgba(255, 255, 255, 0.62);
}

.ief-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  padding: 110px max(20px, calc((100vw - 1200px) / 2));
  gap: 80px;
  background: var(--paper-warm);
}

.ief-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.source-note {
  display: grid;
  margin-top: 30px;
  padding: 20px;
  gap: 5px;
  border-left: 4px solid var(--teal);
  border-radius: 4px 16px 16px 4px;
  background: var(--white);
  box-shadow: var(--shadow-small);
}

.source-note strong {
  font-size: 13px;
}

.source-note span {
  color: var(--ink-soft);
  font-size: 12px;
}

.source-note a {
  width: fit-content;
  margin-top: 7px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
}

.ief-visual {
  display: grid;
  justify-items: center;
  text-align: center;
}

.gauge {
  position: relative;
  display: grid;
  width: min(330px, 85vw);
  aspect-ratio: 1;
  place-content: center;
  overflow: hidden;
  border: 22px solid var(--white);
  border-radius: 50%;
  background: conic-gradient(var(--teal) 0 65%, var(--mint) 65% 82%, #dfe8df 82%);
  box-shadow: var(--shadow);
}

.gauge::before {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: var(--paper-warm);
  content: "";
}

.gauge > * {
  position: relative;
  z-index: 1;
}

.gauge > span,
.gauge > small {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gauge > strong {
  margin: 7px 0;
  font-family: var(--display);
  font-size: 72px;
  letter-spacing: -0.06em;
  line-height: 1;
}

.gauge i {
  position: absolute;
  top: 8px;
  right: 49%;
  width: 2px;
  height: 28px;
  transform-origin: 50% 145px;
  transform: rotate(230deg);
  background: var(--ink-deep);
}

.ief-visual > p {
  margin: 23px 0 0;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 21px;
  font-style: italic;
}

.worked-example .section-heading {
  max-width: 930px;
}

.example-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 70px;
}

.example-story {
  color: var(--ink-soft);
  font-size: 18px;
}

.example-story p {
  margin: 0 0 18px;
}

.text-button {
  padding: 0;
  border: 0;
  border-bottom: 2px solid var(--teal);
  background: transparent;
  color: var(--teal-dark);
  font-weight: 850;
}

.example-steps {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 16px;
  list-style: none;
}

.example-steps li {
  display: flex;
  padding: 19px;
  gap: 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
}

.example-steps li > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--lime-soft);
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
}

.example-steps strong {
  font-size: 14px;
}

.example-steps p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.limits-section {
  padding: 105px max(20px, calc((100vw - 1200px) / 2));
  background: var(--ink-deep);
  color: var(--white);
}

.limits-section > div:first-child {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  align-items: end;
  gap: 50px;
}

.limits-section .eyebrow {
  color: var(--lime);
}

.limits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.13);
}

.limits-grid article {
  padding: 28px;
  background: var(--ink-deep);
}

.limits-grid strong {
  color: var(--lime-soft);
}

.limits-grid p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 0;
  gap: 20px;
  color: var(--ink-deep);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 650;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.faq-list summary span::before,
.faq-list summary span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  transform: translate(-50%, -50%);
  background: var(--teal);
  content: "";
}

.faq-list summary span::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 150ms ease;
}

.faq-list details[open] summary span::after {
  transform: translate(-50%, -50%) rotate(0);
}

.faq-list details p {
  max-width: 760px;
  margin: -4px 0 25px;
  color: var(--ink-soft);
}

.support-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 85px max(20px, calc((100vw - 1200px) / 2));
  gap: 40px;
  background: var(--lime);
}

.support-section > div {
  max-width: 820px;
}

.support-section h2 {
  font-size: clamp(38px, 4.4vw, 58px);
}

.support-section p:last-child {
  margin: 18px 0 0;
  color: var(--ink-soft);
}

.button-support {
  flex: 0 0 auto;
  border-color: var(--ink-deep);
  background: var(--ink-deep);
  color: var(--white);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  padding: 58px max(20px, calc((100vw - 1200px) / 2));
  gap: 35px;
  background: #071e1b;
  color: var(--white);
}

.brand-footer strong {
  color: var(--white);
}

.brand-footer small,
.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
}

.footer-brand p {
  margin: 16px 0 0;
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 18px;
}

.site-footer nav a {
  color: rgba(255, 255, 255, 0.65);
}

.copyright {
  grid-column: 1 / -1;
  margin: 15px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-header-inner {
  grid-template-columns: 1fr auto;
}

.legal-header-nav {
  display: flex;
  gap: 22px;
}

.legal-header-nav a {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.legal-header-nav a:hover {
  color: var(--teal);
}

.legal-main {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0 120px;
}

.legal-hero {
  max-width: 860px;
}

.legal-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 78px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.legal-hero > p:not(.eyebrow) {
  max-width: 730px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
}

.legal-date {
  display: inline-block;
  margin-top: 24px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink-deep);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  margin-top: 70px;
  gap: 70px;
}

.legal-nav {
  position: sticky;
  top: 105px;
  display: grid;
  padding: 16px;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
}

.legal-nav a {
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.legal-nav a:hover {
  background: rgba(185, 234, 217, 0.28);
  color: var(--teal-dark);
}

.legal-content {
  min-width: 0;
}

.legal-content section {
  scroll-margin-top: 105px;
  padding: 0 0 44px;
}

.legal-content section + section {
  padding-top: 44px;
  border-top: 1px solid var(--border);
}

.legal-content h2 {
  margin: 0 0 16px;
  color: var(--ink-deep);
  font-family: var(--display);
  font-size: 34px;
  letter-spacing: -0.035em;
}

.legal-content h3 {
  margin: 26px 0 8px;
  color: var(--ink-deep);
  font-size: 15px;
}

.legal-content p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.legal-content a {
  color: var(--teal-dark);
  font-weight: 750;
}

.legal-footer {
  grid-template-columns: 1fr auto;
}

@media (max-width: 1020px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr);
    gap: 35px;
  }

  .field-grid-five {
    grid-template-columns: repeat(3, 1fr);
  }

  .field-grid-five .field-wide {
    grid-column: span 2;
  }

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

  .formula-card h3 {
    margin-top: 18px;
  }

  .ief-section {
    gap: 38px;
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 68px;
  }

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

  .hero .eyebrow,
  .hero-actions,
  .trust-row {
    justify-content: center;
  }

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

  .hero-visual {
    width: min(520px, 100%);
    min-height: 440px;
    margin: -10px auto 0;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .proof-strip article + article {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .unit-layout,
  .result-detail-grid,
  .ief-section,
  .example-layout {
    grid-template-columns: 1fr;
  }

  .field-grid-five,
  .field-grid-three {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-grid-five .field-wide {
    grid-column: auto;
  }

  .ief-visual {
    grid-row: 1;
  }

  .limits-section > div:first-child {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .support-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .legal-nav {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 620px) {
  .header-inner,
  .hero,
  .proof-strip,
  .content-section {
    width: min(100% - 28px, 1200px);
  }

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

  .brand strong {
    font-size: 20px;
  }

  .brand-mark {
    width: 31px;
    height: 36px;
  }

  .support-link {
    padding: 9px 11px;
    font-size: 0;
  }

  .support-link::before {
    font-size: 12px;
    content: "Support ↗";
  }

  .support-link span {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 50px 0 60px;
  }

  .hero h1 {
    font-size: clamp(45px, 14.2vw, 64px);
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 355px;
  }

  .cost-card-main {
    top: 50px;
    padding: 20px;
  }

  .mock-cost {
    font-size: 47px;
  }

  .mock-chart {
    height: 85px;
    gap: 7px;
  }

  .cost-card-float {
    right: -2%;
    bottom: 2px;
    width: 150px;
    padding: 16px;
  }

  .proof-strip {
    margin-bottom: 78px;
  }

  .calculator-section,
  .limits-section,
  .ief-section,
  .support-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .calculator-section {
    padding-top: 76px;
    padding-bottom: 80px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2,
  .ief-copy h2,
  .limits-section h2,
  .support-section h2 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .tool-card {
    border-radius: 24px;
  }

  #calculator-form,
  .results {
    padding: 20px;
  }

  .segmented-control label {
    min-height: 63px;
    padding: 8px;
  }

  .segmented-control label small {
    display: none;
  }

  .form-section {
    padding: 20px;
    border-radius: 17px;
  }

  .field-grid,
  .field-grid-five,
  .field-grid-three,
  .result-metrics,
  .unit-results {
    grid-template-columns: 1fr;
  }

  .field-grid-five .field-wide {
    grid-column: auto;
  }

  .result-heading {
    flex-direction: column;
  }

  .result-heading .button {
    width: 100%;
  }

  .result-metrics article + article {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .content-section {
    padding: 84px 0;
  }

  .formula-card {
    padding: 24px;
  }

  .gauge {
    width: min(290px, 82vw);
  }

  .gauge i {
    transform-origin: 50% 126px;
  }

  .faq-list summary {
    font-size: 19px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding-right: 20px;
    padding-left: 20px;
  }

  .legal-main {
    width: calc(100% - 28px);
    padding: 62px 0 84px;
  }

  .legal-hero h1 {
    font-size: 48px;
  }

  .legal-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 390px) {
  .header-inner,
  .hero,
  .proof-strip,
  .content-section {
    width: calc(100% - 22px);
  }

  .brand small {
    display: none;
  }

  .hero h1 {
    font-size: 44px;
  }

  .trust-row {
    gap: 9px;
  }

  .trust-row li {
    font-size: 11px;
  }

  .calculator-section,
  .limits-section,
  .ief-section,
  .support-section {
    padding-right: 10px;
    padding-left: 10px;
  }

  #calculator-form,
  .results,
  .form-section {
    padding: 16px;
  }

  .method-picker label {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .hero,
  .proof-strip,
  #calculator-form,
  .content-section,
  .ief-section,
  .limits-section,
  .support-section,
  .site-footer,
  #copy-button {
    display: none !important;
  }

  .calculator-section {
    padding: 0;
    background: white;
  }

  .tool-card,
  .results {
    border: 0;
    box-shadow: none;
  }

  .results {
    display: block !important;
  }
}

/* zoy:brand-tokens
 * Appended to this tool's stylesheet by the site build. The tool's own source
 * file is never modified — rebuilding the standalone site still produces the
 * original design.
 *
 * DryCost already used a teal, just a different one. Remapping the two brand
 * tokens pulls it onto the logo's exact teal. The functional colours (lime for
 * the recommended option, amber, danger) are deliberately untouched.
 */
:root {
  --teal: #08606a;
  --teal-dark: #04434a;
  --paper-warm: #f7f5f0;
}
