.ts-space {
  scroll-margin-top: 88px;
  padding: clamp(76px, 9vw, 132px) 0;
  color: #101820;
  background: #f4f6f3;
}

.ts-scroll-target {
  scroll-margin-top: 88px;
}

.ts-space-head,
.ts-business-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.65fr);
  gap: clamp(32px, 7vw, 112px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.ts-space-title,
.ts-business-title {
  max-width: 760px;
  margin: 12px 0 0;
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.ts-space-lead,
.ts-business-lead {
  max-width: 580px;
  margin: 0;
  color: #4c555d;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.72;
  word-break: keep-all;
}

.ts-space-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  min-height: 590px;
  overflow: hidden;
  background: #07121b;
}

.ts-space-media {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
}

.ts-space-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 58%, rgba(2, 8, 13, 0.8));
  pointer-events: none;
}

.ts-space-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ts-space-media figcaption {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 20px;
  left: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.5;
}

.ts-space-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(30px, 4.5vw, 64px);
  color: #fff;
}

.ts-space-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 44px;
  background: rgba(255, 255, 255, 0.16);
}

.ts-space-specs div {
  min-width: 0;
  padding: 16px 12px;
  background: #07121b;
}

.ts-space-specs dt {
  margin-bottom: 8px;
  color: #9eabb4;
  font-size: 11px;
}

.ts-space-specs dd {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.45;
  word-break: keep-all;
}

.ts-space-flow {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: demand-flow;
}

.ts-space-flow li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  counter-increment: demand-flow;
}

.ts-space-flow li::before {
  content: "0" counter(demand-flow);
  color: #b8ec35;
  font-size: 12px;
  font-weight: 800;
}

.ts-space-flow strong {
  display: block;
  margin-bottom: 3px;
  font-size: 17px;
}

.ts-space-flow span {
  color: #aeb8bf;
  font-size: 14px;
  line-height: 1.45;
}

.ts-space-action {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 34px;
}

.ts-space-action p {
  max-width: 430px;
  margin: 0;
  color: #9eabb4;
  font-size: 13px;
  line-height: 1.55;
  word-break: keep-all;
}

.ts-demand-lock {
  overflow: hidden !important;
}

.ts-demand-overlay {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 10, 15, 0.78);
  backdrop-filter: blur(10px);
}

.ts-demand-modal {
  position: relative;
  width: min(920px, 100%);
  max-height: min(900px, calc(100dvh - 40px));
  overflow: auto;
  overscroll-behavior: contain;
  color: #101820;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.ts-demand-close {
  position: sticky;
  z-index: 3;
  top: 16px;
  float: right;
  width: 44px;
  height: 44px;
  margin: 16px 16px -60px 0;
  border: 1px solid #d9dee1;
  border-radius: 50%;
  color: #101820;
  background: rgba(255, 255, 255, 0.94);
  font: inherit;
  font-size: 26px;
  cursor: pointer;
}

.ts-demand-modal-head {
  padding: 42px clamp(24px, 6vw, 72px) 30px;
  color: #fff;
  background: #07121b;
}

.ts-demand-modal-head > p {
  margin: 0 0 14px;
  color: #b8ec35;
  font-size: 12px;
  font-weight: 800;
}

.ts-demand-modal-head h2 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(31px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
  word-break: keep-all;
}

.ts-demand-progress {
  display: flex;
  gap: 18px;
  margin-top: 30px;
}

.ts-demand-progress span {
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  color: #82909a;
  font-size: 13px;
  font-weight: 700;
}

.ts-demand-progress .is-active {
  border-color: #b8ec35;
  color: #fff;
}

.ts-demand-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 36px clamp(24px, 6vw, 72px) 48px;
}

.ts-demand-form.is-notify {
  padding-top: 28px;
}

.ts-demand-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ts-demand-field.is-full,
.ts-demand-check,
.ts-demand-status,
.ts-demand-submit,
.ts-demand-final-actions {
  grid-column: 1 / -1;
}

.ts-demand-field label,
.ts-demand-field legend {
  display: block;
  margin-bottom: 9px;
  color: #222b32;
  font-size: 14px;
  font-weight: 760;
}

.ts-demand-field legend span {
  margin-left: 6px;
  color: #707b83;
  font-size: 11px;
  font-weight: 600;
}

.ts-demand-field input,
.ts-demand-field select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #cad1d5;
  border-radius: 4px;
  color: #101820;
  background: #fff;
  font: inherit;
  font-size: 16px;
}

.ts-demand-field input:focus,
.ts-demand-field select:focus,
.ts-demand-options input:focus-visible + span,
.ts-demand-check input:focus-visible {
  outline: 3px solid rgba(74, 121, 18, 0.28);
  outline-offset: 2px;
  border-color: #4a7912;
}

.ts-demand-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ts-demand-options label {
  min-width: 0;
  margin: 0;
}

.ts-demand-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ts-demand-options span {
  display: grid;
  min-height: 50px;
  place-items: center;
  padding: 10px 8px;
  border: 1px solid #cad1d5;
  border-radius: 4px;
  color: #374149;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
}

.ts-demand-options input:checked + span {
  border-color: #355d0d;
  color: #173000;
  background: #e7f3ce;
}

.ts-demand-check {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 0;
  color: #4c565d;
  font-size: 14px;
  line-height: 1.55;
}

.ts-demand-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #355d0d;
}

.ts-demand-check.is-emphasis {
  padding: 14px;
  color: #24311a;
  background: #f0f5e6;
}

.ts-demand-check a {
  color: inherit;
  text-underline-offset: 3px;
}

.ts-demand-check b {
  color: #24311a;
  font-size: 12px;
}

.ts-demand-check small {
  display: inline-block;
  margin-left: 4px;
  color: #69736d;
  font-size: 11px;
}

.ts-demand-honeypot {
  position: absolute;
  left: -10000px;
}

.ts-demand-status {
  min-height: 20px;
  margin: -5px 0;
  color: #a32b25;
  font-size: 13px;
  font-weight: 700;
}

.ts-demand-submit {
  justify-self: stretch;
}

.ts-demand-submit[disabled] {
  cursor: wait;
  opacity: 0.65;
}

.ts-demand-notify-intro {
  display: flex;
  gap: 16px;
  margin: 36px clamp(24px, 6vw, 72px) 0;
  padding: 20px;
  background: #f0f5e6;
}

.ts-demand-notify-intro > span {
  color: #4a7912;
  font-size: 13px;
  font-weight: 900;
}

.ts-demand-notify-intro strong,
.ts-demand-notify-intro p {
  display: block;
  margin: 0;
}

.ts-demand-notify-intro p {
  margin-top: 5px;
  color: #59635e;
  font-size: 14px;
  line-height: 1.5;
}

.ts-demand-final-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.ts-demand-complete {
  padding: clamp(58px, 10vw, 100px) clamp(24px, 8vw, 92px);
  text-align: center;
}

.ts-demand-complete-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 26px;
  place-items: center;
  border-radius: 50%;
  color: #173000;
  background: #b8ec35;
  font-size: 24px;
  font-weight: 900;
}

.ts-demand-complete h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: 0;
}

.ts-demand-complete p {
  max-width: 560px;
  margin: 18px auto;
  color: #59635e;
  line-height: 1.7;
}

.ts-demand-complete strong {
  display: block;
  margin: 24px 0;
  color: #8a3b1f;
}

.ts-demand-preview-note {
  color: #4a7912 !important;
  font-size: 13px;
  font-weight: 700;
}

.ts-business {
  scroll-margin-top: 88px;
  padding: clamp(76px, 9vw, 132px) 0;
  color: #101820;
  background: #f4f6f3;
}

.ts-business-status {
  display: inline-flex;
  margin-top: 20px;
  padding: 7px 10px;
  border: 1px solid #bfcbc2;
  color: #38521e;
  font-size: 12px;
  font-weight: 800;
}

.ts-validation-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 clamp(46px, 7vw, 80px);
  padding: 0;
  list-style: none;
  background: #cdd4d0;
}

.ts-validation-path li {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
}

.ts-validation-path span {
  display: block;
  margin-bottom: 18px;
  color: #4a7912;
  font-size: 12px;
  font-weight: 850;
}

.ts-validation-path strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.3;
  word-break: keep-all;
}

.ts-validation-path p {
  margin: 0;
  color: #626c72;
  font-size: 14px;
  line-height: 1.55;
  word-break: keep-all;
}

.ts-calculator {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.75fr);
  gap: 1px;
  border: 1px solid #cbd3ce;
  background: #cbd3ce;
}

.ts-calculator-controls,
.ts-calculator-results {
  padding: clamp(26px, 4vw, 52px);
  background: #fff;
}

.ts-calculator-controls h3,
.ts-calculator-results h3 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.8vw, 34px);
  letter-spacing: 0;
}

.ts-calculator-copy {
  margin: 0 0 32px;
  color: #667078;
  line-height: 1.6;
}

.ts-calculator-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 22px;
}

.ts-calculator-field {
  min-width: 0;
}

.ts-calculator-field label {
  display: flex;
  gap: 14px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #4f5a61;
  font-size: 13px;
}

.ts-calculator-field output {
  color: #101820;
  font-size: 14px;
  font-weight: 820;
  white-space: nowrap;
}

.ts-calculator-field input[type="range"] {
  width: 100%;
  accent-color: #4a7912;
}

.ts-calculator-hint {
  display: block;
  margin-top: 6px;
  color: #717a80;
  font-size: 12px;
  line-height: 1.45;
}

.ts-calculator-results {
  color: #fff;
  background: #07121b;
}

.ts-calculator-results h3,
.ts-calculator-results .ts-calculator-copy {
  color: inherit;
}

.ts-calculator-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: rgba(255, 255, 255, 0.16);
}

.ts-calculator-metrics div {
  min-width: 0;
  padding: 20px 16px;
  background: #07121b;
}

.ts-calculator-metrics dt {
  margin-bottom: 9px;
  color: #91a0aa;
  font-size: 12px;
}

.ts-calculator-metrics dd {
  margin: 0;
  color: #fff;
  font-size: clamp(21px, 2.7vw, 31px);
  font-weight: 820;
  line-height: 1.1;
  word-break: break-word;
}

.ts-calculator-status {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-left: 3px solid #b8ec35;
  color: #dbe4e9;
  background: #111e27;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.ts-calculator-status[data-state="danger"] {
  border-color: #f4786b;
}

.ts-calculator-status[data-state="caution"] {
  border-color: #f0b84d;
}

.ts-business-disclaimer {
  margin: 20px 0 0;
  color: #687278;
  font-size: 13px;
  line-height: 1.65;
}

.ts-business-price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 52px;
  background: #cbd3ce;
}

.ts-business-price-grid article {
  min-width: 0;
  padding: 24px 20px;
  background: #fff;
}

.ts-business-price-grid small,
.ts-business-price-grid strong,
.ts-business-price-grid span {
  display: block;
}

.ts-business-price-grid small {
  color: #4a7912;
  font-size: 11px;
  font-weight: 850;
}

.ts-business-price-grid strong {
  margin: 9px 0 13px;
  font-size: 20px;
}

.ts-business-price-grid span {
  color: #5c676e;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .ts-space-stage,
  .ts-calculator {
    grid-template-columns: 1fr;
  }

  .ts-space-media {
    min-height: min(68vw, 560px);
  }

  .ts-validation-path,
  .ts-business-price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ts-space-head,
  .ts-business-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ts-space-title,
  .ts-business-title {
    font-size: clamp(38px, 12vw, 56px);
    line-height: 1.02;
  }

  .ts-space-stage {
    min-height: 0;
  }

  .ts-space-media {
    min-height: 74vw;
  }

  .ts-space-details {
    padding: 28px 22px 32px;
  }

  .ts-space-specs {
    grid-template-columns: 1fr;
    margin-bottom: 30px;
  }

  .ts-space-action {
    align-items: stretch;
    flex-direction: column;
  }

  .ts-space-action .btn {
    width: 100%;
  }

  .ts-demand-overlay {
    align-items: end;
    padding: 0;
  }

  .ts-demand-modal {
    width: 100%;
    max-height: 94dvh;
    border-radius: 8px 8px 0 0;
  }

  .ts-demand-close {
    top: 10px;
    margin: 10px 10px -54px 0;
  }

  .ts-demand-modal-head {
    padding: 32px 22px 24px;
  }

  .ts-demand-modal-head h2 br {
    display: none;
  }

  .ts-demand-form {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 22px 38px;
  }

  .ts-demand-options,
  .ts-demand-options.is-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ts-demand-notify-intro {
    margin: 28px 22px 0;
  }

  .ts-demand-final-actions {
    grid-template-columns: 1fr;
  }

  .ts-calculator-controls,
  .ts-calculator-results {
    padding: 28px 22px;
  }

  .ts-calculator-fields,
  .ts-calculator-metrics,
  .ts-validation-path,
  .ts-business-price-grid {
    grid-template-columns: 1fr;
  }

  .ts-business-price-grid {
    margin-top: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ts-demand-overlay {
    backdrop-filter: none;
  }
}
