:root {
  --kinetic-navy: #18365d;
  --kinetic-blue: #23608f;
  --kinetic-ink: #1f2933;
  --kinetic-copy: #3c4752;
  --kinetic-muted: #66717d;
  --kinetic-orange: #f59a17;
  --kinetic-orange-strong: #d97f05;
  --kinetic-orange-soft: #fff4df;
  --surface: #ffffff;
  --page: #f4f7f9;
  --panel: #eef4f7;
  --line: #d7e0e5;
  --error: #b42318;
  --shadow: 0 18px 42px rgba(24, 54, 93, 0.12);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--kinetic-ink);
}

button,
input {
  font: inherit;
}

a {
  color: var(--kinetic-navy);
  text-decoration-color: var(--kinetic-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.page-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #fdfefe 0, #f6fafb 240px, var(--page) 241px),
    var(--page);
}

.version-badge {
  position: fixed;
  left: 10px;
  bottom: 8px;
  z-index: 20;
  color: var(--kinetic-muted);
  font-size: 11px;
  font-weight: 800;
  opacity: 0.72;
  pointer-events: none;
}

.site-header {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 22px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: min(250px, 62vw);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.site-nav a {
  color: var(--kinetic-copy);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
}

.site-nav a:hover {
  border-color: var(--line);
  background: #fff;
  color: var(--kinetic-navy);
}

.estimator {
  width: min(calc(100% - 48px), 1160px);
  min-height: calc(100vh - 114px);
  margin: 0 auto 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.estimator__top {
  padding: 22px 26px 16px;
  background: var(--kinetic-navy);
  color: #fff;
}

.progress {
  height: 10px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.progress__bar {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--kinetic-orange);
  border-radius: inherit;
  position: absolute;
  top: 0;
  left: 0;
  transition: width 180ms ease;
}

.estimator__meta {
  min-height: 38px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.link-button {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 7px 12px;
}

.link-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.link-button--hidden {
  visibility: hidden;
}

.estimator__body {
  min-height: 0;
}

.netlify-hidden {
  display: none;
}

.step {
  width: 100%;
  min-height: 570px;
  padding: 58px clamp(26px, 5vw, 72px) 46px;
  display: none;
  text-align: left;
}

.step.is-active {
  display: grid;
  align-content: start;
}

.step:not(.result-step) {
  grid-template-columns: minmax(260px, 390px) minmax(320px, 1fr);
  column-gap: clamp(34px, 6vw, 86px);
}

.step:not(.result-step) > .eyebrow,
.step:not(.result-step) > h1,
.step:not(.result-step) > .lead,
.step:not(.result-step) > .lead--small,
.step:not(.result-step) > .learn-more,
.step:not(.result-step) > .step-visual {
  grid-column: 1;
}

.step:not(.result-step) > .number-row,
.step:not(.result-step) > .choice-grid,
.step:not(.result-step) > .support-grid,
.step:not(.result-step) > .contact-fields {
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: center;
}

.step:not(.result-step) > .field-error,
.step:not(.result-step) > .privacy-copy {
  grid-column: 2;
}

.eyebrow {
  color: var(--kinetic-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin: 0 0 18px;
  color: var(--kinetic-navy);
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  color: var(--kinetic-navy);
  font-size: 24px;
  line-height: 1.2;
}

h3 {
  color: var(--kinetic-navy);
  font-size: 17px;
  margin-bottom: 8px;
}

.lead {
  max-width: 560px;
  margin: 0 0 26px;
  color: var(--kinetic-copy);
  font-size: 18px;
  line-height: 1.55;
}

.lead--small {
  font-size: 15px;
  margin-top: -14px;
}

.learn-more {
  max-width: 500px;
  color: var(--kinetic-muted);
}

.learn-more summary {
  color: var(--kinetic-navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  list-style: none;
  font-weight: 800;
}

.learn-more summary::after {
  content: "?";
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--kinetic-blue);
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
}

.learn-more summary::-webkit-details-marker {
  display: none;
}

.learn-more p {
  margin: 14px 0 0;
  max-width: 460px;
  font-size: 15px;
  line-height: 1.55;
}

.step-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 24px 0 0;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(24, 54, 93, 0.02), rgba(24, 54, 93, 0.16)),
    var(--step-image) center / cover no-repeat;
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(24, 54, 93, 0.10);
}

.step-visual--dark {
  background:
    linear-gradient(180deg, rgba(24, 54, 93, 0.06), rgba(24, 54, 93, 0.24)),
    var(--step-image) center / cover no-repeat;
}

.number-row {
  width: min(100%, 420px);
  min-height: 180px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 12px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.number-field input {
  width: min(100%, 190px);
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--kinetic-navy);
  padding: 10px 14px;
  font-size: 34px;
  font-weight: 800;
  text-align: left;
}

.number-field input:focus,
.contact-fields input:focus {
  outline: 3px solid rgba(245, 154, 23, 0.34);
  outline-offset: 2px;
}

.unit-label {
  color: var(--kinetic-copy);
  font-size: 16px;
  font-weight: 800;
}

.field-note {
  margin: 0;
  color: var(--kinetic-muted);
  font-size: 14px;
  line-height: 1.45;
}

.choice-grid {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  max-width: 650px;
}

.choice-card {
  position: relative;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  text-align: left;
}

.choice-card:hover {
  border-color: #aebec9;
  background: #fbfdfe;
  box-shadow: 0 10px 24px rgba(24, 54, 93, 0.08);
}

.choice-card input {
  position: absolute;
  opacity: 0;
}

.choice-card:has(input:checked) {
  border-color: var(--kinetic-orange);
  background: var(--kinetic-orange-soft);
  box-shadow: inset 0 0 0 1px var(--kinetic-orange);
}

.choice-card:has(input:checked)::before {
  content: "";
  width: 13px;
  height: 13px;
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--kinetic-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(245, 154, 23, 0.2);
}

.choice-card:has(input:disabled),
.choice-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.choice-card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--panel);
}

.choice-card__icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--kinetic-blue);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.choice-card__icon .accent {
  fill: var(--kinetic-orange);
  stroke: var(--kinetic-blue);
}

.choice-card > span:last-child {
  color: var(--kinetic-ink);
  font-weight: 800;
  line-height: 1.35;
}

.option-card {
  grid-template-columns: 64px 1fr;
}

.option-card__copy {
  display: grid;
  gap: 7px;
}

.choice-card > .option-card__copy {
  font-weight: 400;
}

.option-card__copy strong {
  color: var(--kinetic-ink);
  font-weight: 800;
  line-height: 1.25;
}

.option-card__copy small {
  color: var(--kinetic-copy);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.choice-card--wide {
  grid-column: 1 / -1;
}

.step.support-step {
  grid-template-columns: minmax(260px, 340px) minmax(460px, 1fr);
}

.support-grid {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.support-card {
  min-height: 270px;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 18px;
  padding: 20px;
}

.support-card__image {
  min-height: 126px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(24, 54, 93, 0.02), rgba(24, 54, 93, 0.12)),
    var(--support-image) var(--support-position, center) / cover no-repeat,
    linear-gradient(180deg, #f4f8fa 0%, #eaf2f6 100%);
  overflow: hidden;
}

.support-card__image svg {
  display: none;
  width: min(100%, 160px);
  height: 118px;
  fill: none;
  stroke: var(--kinetic-blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-card__image .image-panel {
  fill: #fff;
  stroke: #c9d9e3;
}

.support-card__image .accent {
  fill: var(--kinetic-orange);
  stroke: var(--kinetic-blue);
}

.support-card__copy {
  display: grid;
  gap: 10px;
}

.choice-card > .support-card__copy {
  font-weight: 400;
}

.support-card__copy strong {
  color: var(--kinetic-navy);
  font-size: 24px;
  line-height: 1.1;
}

.support-card__copy small {
  color: var(--kinetic-copy);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

.contact-fields {
  width: min(100%, 560px);
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-fields label {
  display: grid;
  gap: 7px;
  color: var(--kinetic-navy);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-fields input {
  width: 100%;
  height: 48px;
  border: 1px solid #c9d5dc;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: var(--kinetic-navy);
  text-transform: none;
}

.privacy-copy {
  width: min(100%, 560px);
  margin: 12px 0 0;
  color: var(--kinetic-copy);
  font-size: 14px;
  line-height: 1.5;
}

.field-error {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--error);
  font-weight: 800;
}

.result-step {
  max-width: none;
  padding-top: 44px;
}

.result-step h1,
.result-step > .lead {
  max-width: 780px;
}

.breakdown {
  margin-top: 28px;
}

.breakdown-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}

.breakdown-row[hidden] {
  display: none;
}

.breakdown-row--top {
  grid-template-columns: 1fr;
  border-top: 0;
  background: var(--panel);
}

.breakdown-row small {
  display: block;
  color: var(--kinetic-muted);
  margin-bottom: 5px;
}

.estimate-value {
  color: var(--kinetic-navy);
  font-weight: 900;
}

.edit-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--kinetic-navy);
  cursor: pointer;
  font-weight: 800;
  padding: 6px 12px;
}

.edit-link:hover {
  border-color: var(--kinetic-orange);
  background: var(--kinetic-orange-soft);
}

.breakdown-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  background: var(--kinetic-navy);
  color: #fff;
  padding: 22px 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.breakdown-total strong {
  font-size: 28px;
}

.help-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 16px 0 28px;
  background: var(--kinetic-orange-soft);
}

.help-panel p {
  margin: 5px 0 0;
  color: var(--kinetic-copy);
}

.included {
  columns: 2;
  column-gap: 42px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  color: var(--kinetic-copy);
  line-height: 1.58;
}

.included h2,
.included h3 {
  break-after: avoid;
}

.included ul {
  margin: 0 0 22px;
  padding-left: 22px;
  break-inside: avoid;
}

.included li {
  margin-bottom: 8px;
}

.included li::marker {
  color: var(--kinetic-orange);
}

.payg-guidance {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  color: var(--kinetic-copy);
  line-height: 1.58;
}

.payg-guidance h2 {
  color: var(--kinetic-navy);
}

.payg-guidance p {
  margin: 0 0 12px;
}

.estimator__footer {
  border-top: 1px solid var(--line);
  padding: 16px 26px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fbfdfe;
}

.primary-button,
.secondary-button,
.testing-button {
  min-height: 46px;
  border-radius: 8px;
  padding: 11px 22px;
  cursor: pointer;
  font-weight: 900;
}

.primary-button {
  border: 1px solid var(--kinetic-orange);
  background: var(--kinetic-orange);
  color: var(--kinetic-navy);
}

.primary-button:hover {
  background: var(--kinetic-orange-strong);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--kinetic-navy);
}

.secondary-button:hover {
  border-color: var(--kinetic-navy);
  background: var(--kinetic-navy);
  color: #fff;
}

.testing-button {
  display: none;
  border: 1px solid var(--kinetic-navy);
  background: var(--kinetic-navy);
  color: #fff;
}

.testing-button.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.testing-button:hover {
  background: var(--kinetic-ink);
}

.secondary-button:disabled {
  visibility: hidden;
}

.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;
}

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .estimator {
    width: calc(100% - 32px);
  }

  .step:not(.result-step) {
    grid-template-columns: 1fr;
  }

  .step:not(.result-step) > .number-row,
  .step:not(.result-step) > .choice-grid,
  .step:not(.result-step) > .support-grid,
  .step:not(.result-step) > .contact-fields,
  .step:not(.result-step) > .field-error,
  .step:not(.result-step) > .privacy-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .choice-grid {
    margin-top: 8px;
  }

  .support-grid {
    grid-template-columns: 1fr;
    margin-top: 8px;
  }

  .support-card {
    min-height: 0;
    grid-template-columns: 126px 1fr;
    align-items: center;
  }

  .support-card__image {
    min-height: 116px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 20px 18px 14px;
  }

  .brand__logo {
    width: min(220px, 72vw);
  }

  .site-nav {
    display: none;
  }

  .estimator {
    width: 100%;
    min-height: calc(100vh - 78px);
    margin-bottom: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .estimator__top {
    padding: 18px;
  }

  .step {
    min-height: 0;
    padding: 36px 18px 28px;
  }

  h1 {
    font-size: 33px;
  }

  .lead {
    font-size: 16px;
  }

  .number-row,
  .contact-fields {
    width: 100%;
  }

  .contact-fields {
    grid-template-columns: 1fr;
  }

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

  .choice-card {
    min-height: 96px;
  }

  .support-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .support-card__image {
    min-height: 112px;
  }

  .support-card__copy strong {
    font-size: 21px;
  }

  .breakdown-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .included {
    columns: 1;
  }

  .estimator__footer {
    padding: 14px 18px;
  }

  .primary-button,
  .secondary-button,
  .testing-button {
    flex: 1;
    padding-inline: 12px;
  }
}

