.cost-tool,
.cost-editorial {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.cost-tool { margin-bottom: 8rem; }
.cost-tool-heading { max-width: 760px; margin-bottom: 2rem; }
.cost-tool-heading > p:first-child,
.cost-results-head p {
  margin: 0 0 .65rem;
  color: var(--orange);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cost-tool-heading h2,
.cost-section-heading h2,
.cost-intro-section h2,
.cost-rent-bridge h2,
.cost-why h2 {
  margin: 0 0 1rem;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.cost-tool-heading > p:last-child,
.cost-section-heading p {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.cost-calculator {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
}
.cost-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: max-content;
  align-content: start;
  gap: .75rem 1rem;
  margin: 0;
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  border: 0;
  border-right: 1px solid var(--line);
}
.cost-fields-title {
  grid-column: 1 / -1;
  margin: 0 0 .2rem;
  font-family: "Manrope", sans-serif;
  font-size: 1.25rem;
  font-weight: 750;
}
.cost-fields label { display: grid; align-content: start; gap: .45rem; }
.cost-fields label > span:first-child { color: #cbd1da; font-size: .78rem; font-weight: 700; }
.cost-input {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0e14;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cost-input:focus-within {
  border-color: rgba(255, 102, 72, .75);
  box-shadow: 0 0 0 3px rgba(255, 102, 72, .1);
}
.cost-input input {
  min-width: 0;
  height: 44px;
  padding: 0 0 0 .9rem;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.cost-input b {
  padding: 0 .9rem;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}
.cost-results {
  padding: clamp(1.4rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 100% 0, rgba(72, 213, 173, .09), transparent 20rem),
    var(--surface-2);
}
.cost-results-head h3 {
  margin: 0 0 1.5rem;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.cost-results dl { margin: 0; }
.cost-results dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: .68rem 0;
  border-bottom: 1px solid var(--line);
}
.cost-results dt { font-size: .88rem; font-weight: 650; }
.cost-results dt small { display: block; margin-top: .15rem; color: var(--muted); font-size: .7rem; font-weight: 500; }
.cost-results dd {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.cost-results .cost-result-focus dd { color: var(--mint); font-size: 1.42rem; }
.cost-results dl > .cost-result-premium {
  margin-top: .8rem;
  padding: 1rem;
  border: 1px solid rgba(72, 213, 173, .28);
  border-radius: 14px;
  background: rgba(72, 213, 173, .06);
}
.cost-result-premium dt { color: var(--mint); font-size: 1rem; }
.cost-result-premium dd { color: var(--mint); font-size: 1.42rem; }
.cost-blurred-value {
  display: inline-block;
  filter: blur(7px);
  opacity: .82;
  user-select: none;
}
.cost-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;
}
.cost-next-step { margin-top: 1.25rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.cost-next-step strong { display: block; font-family: "Manrope", sans-serif; font-size: 1.15rem; }
.cost-next-step p { margin: .65rem 0 1.1rem; color: var(--muted); font-size: .86rem; }
.cost-next-step .seo-button { width: 100%; }
.cost-next-step small { display: block; margin-top: .65rem; color: var(--muted); text-align: center; }
.cost-disclaimer { max-width: 900px; margin: 1rem auto 0; color: var(--muted); font-size: .74rem; text-align: center; }

.cost-editorial > section { padding: 6.5rem 0; border-top: 1px solid var(--line); }
.cost-intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 6rem);
}
.cost-intro-section p,
.cost-example > p,
.cost-timeline > p,
.cost-rent-bridge p,
.cost-why p {
  max-width: 70ch;
  margin: 0;
  color: #b7bfcb;
  font-size: 1.05rem;
}
.cost-intro-section blockquote {
  margin: 0;
  padding: 0 0 .25rem 1.5rem;
  border-left: 1px solid var(--orange);
  color: #e5e8ed;
  font-family: "Manrope", sans-serif;
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.45;
}
.cost-section-heading { max-width: 840px; margin-bottom: 3rem; }

.cost-topic-list { border-top: 1px solid var(--line); }
.cost-topic-list article {
  display: grid;
  grid-template-columns: minmax(220px, .62fr) minmax(0, 1.38fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.cost-topic-list h3 { margin: 0; font-family: "Manrope", sans-serif; font-size: 1.15rem; line-height: 1.35; }
.cost-topic-list p { max-width: 68ch; margin: 0; color: var(--muted); }
.cost-links { margin: 1.5rem 0 0; color: var(--muted); font-size: .86rem; }
.cost-links a,
.cost-text-link { color: var(--orange); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.cost-example-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 2rem;
  border-block: 1px solid var(--line);
}
.cost-example-flow div { padding: 1.5rem; border-right: 1px solid var(--line); }
.cost-example-flow div:first-child { padding-left: 0; }
.cost-example-flow div:last-child { padding-right: 0; border-right: 0; }
.cost-example-flow strong { display: block; margin-bottom: .45rem; color: var(--orange); font-family: "Manrope", sans-serif; }
.cost-example-flow span { color: var(--muted); font-size: .86rem; }
.cost-example .cost-text-link { display: inline-block; margin-top: 1.5rem; }

.cost-scenario-table { margin-bottom: 1.8rem; border-block: 1px solid var(--line); }
.cost-scenario-table > div {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) 1fr 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.cost-scenario-table > div:last-child { border-bottom: 0; }
.cost-scenario-table strong { font-size: .86rem; }
.cost-scenario-table span { color: var(--muted); font-variant-numeric: tabular-nums; }
.cost-editorial > section > p { color: var(--muted); }

.cost-comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.cost-comparison-grid > div { min-height: 230px; padding: 2rem; background: var(--bg); }
.cost-comparison-grid h3 { margin: 0 0 2.2rem; font-family: "Manrope", sans-serif; font-size: 1.3rem; }
.cost-comparison-grid p { color: var(--muted); }
.cost-comparison-grid strong { display: block; margin-top: 2rem; color: var(--mint); font-family: "Manrope", sans-serif; }

.cost-timeline > div {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
}
.cost-timeline span { min-width: 110px; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 12px; text-align: center; font-weight: 750; }
.cost-timeline i { height: 1px; background: linear-gradient(90deg, var(--orange), var(--mint)); }

.cost-rent-bridge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 3rem;
}
.cost-rent-bridge .seo-button { white-space: nowrap; }

.cost-audiences { margin: 0; border-top: 1px solid var(--line); }
.cost-audiences > div { display: grid; grid-template-columns: .75fr 1.25fr; gap: 2rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.cost-audiences dt { font-family: "Manrope", sans-serif; font-weight: 750; }
.cost-audiences dd { margin: 0; color: var(--muted); }

.cost-why { text-align: center; }
.cost-why > div { max-width: 820px; margin: 0 auto 2rem; }
.cost-why p { margin-inline: auto; }
.cost-why ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.cost-why li { padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .8rem; }
.cost-why small { display: block; margin-top: .7rem; color: var(--muted); }

.cost-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 7rem;
  border-block: 1px solid var(--line);
  background: var(--line);
}
.cost-related a { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; padding: 1.5rem; background: var(--bg); transition: background .2s ease; }
.cost-related a:hover { background: var(--surface); }
.cost-related strong { font-family: "Manrope", sans-serif; font-size: 1.05rem; }
.cost-related span { color: var(--orange); font-size: .82rem; }

[data-theme="light"] .cost-fields label > span:first-child,
[data-theme="light"] .cost-intro-section p,
[data-theme="light"] .cost-example > p,
[data-theme="light"] .cost-timeline > p,
[data-theme="light"] .cost-rent-bridge p,
[data-theme="light"] .cost-why p { color: #3f485b; }
[data-theme="light"] .cost-input { background: #fff; }
[data-theme="light"] .cost-input input { color: var(--text); }
[data-theme="light"] .cost-intro-section blockquote { color: #273044; }
[data-theme="light"] .cost-comparison-grid > div,
[data-theme="light"] .cost-related a { background: var(--surface); }
[data-theme="light"] .cost-related a:hover { background: var(--surface-2); }

::selection { color: white; background: var(--orange); }
.cost-input input::selection { color: white; background: var(--orange); }

@media (max-width: 960px) {
  .cost-calculator { grid-template-columns: 1fr; }
  .cost-fields { border-right: 0; border-bottom: 1px solid var(--line); }
  .cost-example-flow { grid-template-columns: 1fr 1fr; }
  .cost-example-flow div:nth-child(2) { border-right: 0; }
  .cost-example-flow div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cost-example-flow div:nth-child(3) { padding-left: 0; }
  .cost-intro-section { grid-template-columns: 1fr; align-items: start; }
  .cost-rent-bridge { grid-template-columns: 1fr; align-items: start; }
  .cost-rent-bridge .seo-button { justify-self: start; }
}

@media (max-width: 680px) {
  .cost-tool { margin-bottom: 5rem; }
  .cost-tool-heading h2,
  .cost-section-heading h2,
  .cost-intro-section h2,
  .cost-rent-bridge h2,
  .cost-why h2 { font-size: clamp(1.85rem, 9vw, 2.7rem); }
  .cost-fields { grid-template-columns: 1fr; padding: 1.1rem; }
  .cost-fields-title { grid-column: auto; }
  .cost-results { padding: 1.2rem; }
  .cost-results dl > div { gap: .75rem; }
  .cost-results dt { font-size: .78rem; }
  .cost-results dd { font-size: .95rem; }
  .cost-results .cost-result-focus dd { font-size: 1.15rem; }
  .cost-editorial > section { padding: 4.5rem 0; }
  .cost-topic-list article { grid-template-columns: 1fr; gap: .7rem; }
  .cost-example-flow { grid-template-columns: 1fr; }
  .cost-example-flow div { padding: 1.2rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .cost-example-flow div:last-child { border-bottom: 0; }
  .cost-scenario-table > div { grid-template-columns: 1fr 1fr; }
  .cost-scenario-table strong { grid-column: 1 / -1; }
  .cost-comparison-grid { grid-template-columns: 1fr; }
  .cost-comparison-grid > div { min-height: auto; }
  .cost-timeline > div { grid-template-columns: 1fr; }
  .cost-timeline i { width: 1px; height: 22px; justify-self: center; background: linear-gradient(var(--orange), var(--mint)); }
  .cost-audiences > div { grid-template-columns: 1fr; gap: .45rem; }
  .cost-related { grid-template-columns: 1fr; }
  .cost-related a { min-height: 120px; }
}
