:root {
  --est-indigo: #573df0;
  --est-indigo-dark: #182149;
  --est-cyan: #16abc8;
  --est-ink: #111a35;
  --est-muted: #59657e;
  --est-line: #dde3f0;
  --est-soft: #f6f7fc;
  --est-white: #fff;
  --est-danger: #b42318;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body.value-estimator-page {
  margin: 0;
  overflow-x: hidden;
  background: #fbfbfd;
  color: var(--est-ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.est-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.value-estimator-page a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: 10px;
  background: #111a35;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

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

.estimator-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(221, 227, 240, .86);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}

.estimator-header .header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 24px;
}

.estimator-header .brand-lockup {
  display: block;
  width: 160px;
  flex: 0 0 auto;
}

.estimator-header .brand-lockup-art {
  display: block;
  width: 100%;
  height: auto;
}

.estimator-header .site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.estimator-header .site-nav a {
  padding: 9px 11px;
  border-radius: 9px;
  color: #34415d;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.estimator-header .site-nav a:hover,
.estimator-header .site-nav a:focus-visible {
  background: #f0efff;
  color: var(--est-indigo);
  outline: none;
}

.estimator-header .nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: var(--est-indigo-dark);
  cursor: pointer;
}

.estimator-header .nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.est-hero {
  padding: clamp(54px, 8vw, 108px) 0 clamp(44px, 7vw, 86px);
  background:
    radial-gradient(circle at 88% 10%, rgba(22, 171, 200, .2), transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(87, 61, 240, .13), transparent 32%),
    linear-gradient(150deg, #fff 5%, #f7f8ff 70%, #eefcff);
}

.est-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .55fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: center;
}

.est-eyebrow,
.est-section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--est-indigo);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
}

.est-eyebrow::before,
.est-section-label::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--est-indigo), var(--est-cyan));
}

.est-hero h1 {
  max-width: 780px;
  margin: 18px 0;
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 1.07;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.est-lead {
  max-width: 760px;
  margin: 0 0 28px;
  color: var(--est-muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.85;
}

.est-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.est-button-primary {
  background: linear-gradient(135deg, var(--est-indigo), #6f4fff 55%, var(--est-cyan));
  box-shadow: 0 16px 34px -18px rgba(87, 61, 240, .7);
  color: #fff;
}

.est-button-secondary {
  border-color: var(--est-line);
  background: #fff;
  color: var(--est-ink);
}

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

.est-button:focus-visible,
.value-estimator-page input:focus-visible,
.value-estimator-page a:focus-visible {
  outline: 3px solid rgba(22, 171, 200, .35);
  outline-offset: 3px;
}

.est-scope {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 28px;
  background: linear-gradient(145deg, #17214a, #26376d 68%, #16768a);
  box-shadow: 0 32px 70px -40px rgba(17, 26, 53, .8);
  color: #fff;
}

.est-scope > span {
  color: #7de6ef;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
}

.est-scope ol {
  display: grid;
  gap: 16px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.est-scope li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  font-weight: 800;
}

.est-scope li b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  color: #7de6ef;
  font-size: 11px;
}

.est-scope p {
  margin: 0;
  color: #d9e5ff;
  font-size: 14px;
}

.est-context {
  padding: clamp(52px, 7vw, 88px) 0;
  border-block: 1px solid var(--est-line);
  background: #fff;
}

.est-context h2,
.est-form-head h2,
.est-results-head h2,
.est-close h2 {
  max-width: 820px;
  margin: 12px 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.est-context-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid var(--est-line);
  border-radius: 22px;
  background: var(--est-line);
}

.est-context-row p {
  margin: 0;
  padding: 26px;
  background: var(--est-soft);
  color: var(--est-muted);
  font-size: 15px;
}

.est-context-row b {
  display: block;
  margin-bottom: 8px;
  color: var(--est-ink);
  font-size: 17px;
}

.est-workspace {
  padding: clamp(56px, 8vw, 110px) 0;
}

.est-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.est-form {
  min-width: 0;
}

.est-form-head p {
  max-width: 780px;
  margin: 0;
  color: var(--est-muted);
}

.est-form fieldset {
  margin: 34px 0 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--est-line);
  border-radius: 22px;
  background: #fff;
}

.est-form legend {
  display: flex;
  max-width: 92%;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  color: var(--est-ink);
  font-weight: 850;
}

.est-form legend i {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--est-indigo-dark);
  color: #fff;
  font-size: 11px;
  font-style: normal;
}

.est-form legend span {
  font-size: 19px;
}

.est-form legend small {
  display: block;
  color: var(--est-muted);
  font-size: 13px;
  font-weight: 600;
}

.est-fields {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.est-fields.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.est-fields label {
  display: grid;
  gap: 8px;
  color: #34415d;
  font-size: 14px;
  font-weight: 800;
}

.est-fields input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfd6e6;
  border-radius: 12px;
  background: #fbfcff;
  color: var(--est-ink);
  font: inherit;
  font-size: 16px;
  padding: 11px 13px;
}

.est-fields input[aria-invalid="true"] {
  border-color: var(--est-danger);
  background: #fff8f7;
}

.est-field-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--est-line);
  color: var(--est-muted);
  font-size: 13px;
}

.est-confirm {
  display: flex;
  gap: 12px;
  align-items: start;
  margin: 28px 0 0;
  padding: 18px;
  border-radius: 16px;
  background: #f1f9fb;
  color: #31405d;
  font-size: 14px;
  font-weight: 750;
}

.est-confirm input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 3px;
}

.est-form-actions,
.est-results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.est-errors {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid #f2b8b5;
  border-radius: 14px;
  background: #fff5f4;
  color: #7a271a;
  font-size: 14px;
}

.est-errors b {
  display: block;
  margin-bottom: 4px;
}

.est-side-note {
  position: sticky;
  top: 96px;
  padding: 25px;
  border: 1px solid var(--est-line);
  border-radius: 22px;
  background: var(--est-indigo-dark);
  color: #fff;
}

.est-side-note > span {
  color: #7de6ef;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
}

.est-side-note dl {
  display: grid;
  gap: 16px;
  margin: 20px 0;
}

.est-side-note dl div {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.est-side-note dt {
  color: #fff;
  font-size: 14px;
  font-weight: 850;
}

.est-side-note dd {
  margin: 5px 0 0;
  color: #cfd9f3;
  font-size: 12px;
  line-height: 1.65;
}

.est-side-note a {
  color: #7de6ef;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.est-results {
  padding: clamp(58px, 8vw, 108px) 0;
  background: linear-gradient(150deg, #131d46, #1c2c5d 68%, #126f83);
  color: #fff;
}

.est-results-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
}

.est-results-head h2 {
  color: #fff;
}

.est-results-head p {
  margin: 0;
  color: #d7e2fb;
  font-size: 14px;
}

.est-uncertain {
  max-width: 290px;
  padding: 8px 12px;
  border: 1px solid rgba(125, 230, 239, .45);
  border-radius: 999px;
  color: #7de6ef;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.est-result-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.est-result-cards article {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 22px;
  background: rgba(255, 255, 255, .08);
}

.est-result-cards span {
  color: #7de6ef;
  font-size: 12px;
  font-weight: 850;
}

.est-result-cards strong {
  display: block;
  margin: 9px 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
}

.est-result-cards p {
  margin: 0;
  color: #d7e2fb;
  font-size: 13px;
}

.est-sensitivity,
.est-result-formulas {
  margin-top: 22px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 22px;
  background: rgba(255, 255, 255, .06);
}

.est-sensitivity-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
}

.est-sensitivity h3,
.est-result-formulas h3 {
  margin: 0;
  font-size: 20px;
}

.est-sensitivity-head p {
  margin: 0;
  color: #d7e2fb;
  font-size: 13px;
}

.est-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.est-sensitivity table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}

.est-sensitivity th,
.est-sensitivity td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  text-align: left;
}

.est-sensitivity th {
  color: #7de6ef;
  font-weight: 850;
}

.est-result-formulas ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.est-result-formulas li {
  color: #d7e2fb;
  font-size: 13px;
}

.est-disclaimer {
  margin: 22px 0 0;
  padding: 18px;
  border-left: 4px solid #7de6ef;
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, .08);
  color: #e8efff;
  font-size: 14px;
}

.est-close {
  padding: clamp(58px, 8vw, 100px) 0;
  background: #fff;
}

.est-close-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
}

.est-close p {
  margin: 0;
  color: var(--est-muted);
}

.est-close-grid > div:last-child {
  display: grid;
  gap: 10px;
}

.est-close-grid > div:last-child a {
  color: var(--est-indigo);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.est-footer {
  padding: 42px 0 26px;
  background: #111a35;
  color: #fff;
}

.est-footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.est-footer .brand-lockup {
  display: block;
  width: 158px !important;
  min-width: 0;
}

.est-footer .brand-lockup-art {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
}

.est-footer p {
  margin: 10px 0 0;
  color: #cdd8f2;
}

.est-footer nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: end;
}

.est-footer-grid > div {
  min-width: 0;
}

.est-footer nav a {
  color: #dce5fb;
  font-size: 13px;
  text-decoration: none;
}

.est-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #9eaccb;
  font-size: 12px;
}

.est-footer-bottom i {
  font-style: normal;
}

.est-footer-bottom a {
  color: #9eaccb;
}

@media (max-width: 980px) {
  .estimator-header .nav-toggle {
    display: block;
  }

  .estimator-header .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    padding: 8px 20px 18px;
    border-bottom: 1px solid var(--est-line);
    background: #fff;
    box-shadow: 0 18px 34px rgba(17, 26, 53, .14);
  }

  .estimator-header .site-nav.open {
    display: grid;
  }

  .estimator-header .site-nav a {
    min-height: 46px;
    padding: 11px 12px;
  }

  .est-hero-grid,
  .est-workspace-grid {
    grid-template-columns: 1fr;
  }

  .est-context-row {
    grid-template-columns: 1fr;
  }

  .est-side-note {
    position: static;
  }

  .est-fields.three-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body.value-estimator-page {
    font-size: 16px;
  }

  .est-shell {
    width: min(100% - 28px, 1180px);
  }

  .est-hero h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .est-fields.two-cols,
  .est-fields.three-cols,
  .est-result-cards,
  .est-result-formulas ul,
  .est-close-grid {
    grid-template-columns: 1fr;
  }

  .est-results-head,
  .est-sensitivity-head,
  .est-footer-grid {
    display: block;
  }

  .est-uncertain {
    display: inline-block;
    margin-top: 18px;
  }

  .est-sensitivity-head p {
    margin-top: 6px;
  }

  .est-close-grid > div:last-child,
  .est-footer nav {
    margin-top: 24px;
    justify-content: start;
  }
}

@media (max-width: 420px) {
  .est-hero,
  .est-context,
  .est-workspace,
  .est-results,
  .est-close {
    padding-block: 48px;
  }

  .est-hero h1 {
    font-size: 42px;
  }

  .est-form fieldset,
  .est-side-note,
  .est-scope {
    padding: 18px;
    border-radius: 18px;
  }

  .est-form legend {
    max-width: 100%;
    align-items: start;
  }

  .est-form legend span {
    font-size: 17px;
  }

  .est-form-actions .est-button,
  .est-results-actions .est-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

@media print {
  .estimator-header,
  .est-footer,
  .est-form-actions,
  .est-results-actions,
  .est-close {
    display: none !important;
  }

  body.value-estimator-page {
    background: #fff;
    color: #111;
  }

  .est-results {
    background: #fff;
    color: #111;
  }

  .est-result-cards article,
  .est-sensitivity,
  .est-result-formulas {
    border-color: #aaa;
    background: #fff;
    color: #111;
  }

  .est-results h2,
  .est-results p,
  .est-result-cards span,
  .est-result-cards p,
  .est-sensitivity th,
  .est-sensitivity-head p,
  .est-result-formulas li,
  .est-disclaimer {
    color: #111;
  }
}
