:root {
  --bg: #0b0d10;
  --bg-soft: #12161b;
  --card: #151a20;
  --card-2: #1b222b;
  --text: #f5f7fa;
  --muted: #a9b3bf;
  --line: #28313b;
  --accent: #17c784;
  --accent-dark: #11a86e;
  --danger: #ff5c5c;
  --success: #39d98a;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #090b0e 0%, #0d1116 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.page {
  min-height: 100vh;
}

.hero {
  padding: 52px 0 28px;
}

.hero__content {
  text-align: center;
  max-width: 860px;
}

.eyebrow,
.section-heading__eyebrow,
.step__eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 5.2vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 980px;
  margin-inline: auto;
}

.hero__text {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.hero__actions {
  margin-top: 28px;
}

.hero__disclaimer {
  max-width: 760px;
  margin: 18px auto 0;
  color: #8d98a5;
  font-size: 13px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: #07110c;
}

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.btn--full {
  width: 100%;
}

.trust-strip {
  padding: 0 0 12px;
}

.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.trust-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 11px 14px;
  text-align: center;
  color: #b4bec9;
  font-size: 14px;
}

.calculator-section {
  padding: 8px 0 80px;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
}

.section-heading--left {
  text-align: left;
  max-width: none;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 12px 0 0;
  color: var(--muted);
}

.progress {
  max-width: 760px;
  margin: 0 auto 18px;
}

.progress__bar {
  width: 100%;
  height: 10px;
  background: #1a2027;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.progress__fill {
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #3ce6a8 100%);
  transition: width 0.25s ease;
}

.progress__text {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.calculator-card,
.result-card,
.lead-form-card {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.calculator-card {
  padding: 26px;
}

.result-card,
.lead-form-card {
  margin-top: 24px;
  padding: 26px;
}

.step {
  display: none;
}

.step--active {
  display: block;
}

.step__header h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.step__header p {
  margin: 10px 0 0;
  color: var(--muted);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.option-grid--norwood {
  grid-template-columns: repeat(3, 1fr);
}

.option-card {
  min-height: 88px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 16px;
  text-align: left;
  transition: 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.option-card:hover {
  border-color: #3b4957;
  transform: translateY(-1px);
}

.option-card.is-selected {
  border-color: var(--accent);
  background: rgba(23, 199, 132, 0.10);
  box-shadow: 0 0 0 1px rgba(23, 199, 132, 0.15), 0 12px 30px rgba(23, 199, 132, 0.08);
}

.norwood-card {
  min-height: 190px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 14px;
}

.norwood-card__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.norwood-card__content strong {
  font-size: 18px;
  line-height: 1;
}

.norwood-card__content small {
  font-size: 13px;
  color: var(--muted);
}

.norwood-card__icon {
  position: relative;
  width: 82px;
  height: 96px;
  border-radius: 40px 40px 34px 34px;
  background: #d8b28f;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.norwood-card__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #232a32;
}

.norwood-card__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #d8b28f;
}

.nw2::after {
  top: 10px;
  width: 48px;
  height: 20px;
  border-radius: 0 0 18px 18px;
}

.nw3::after {
  top: 8px;
  width: 34px;
  height: 28px;
  border-radius: 0 0 16px 16px;
}

.nw4::after {
  top: 8px;
  width: 24px;
  height: 40px;
  border-radius: 0 0 14px 14px;
}

.nw5::after {
  top: 22px;
  width: 48px;
  height: 32px;
  border-radius: 18px;
}

.nw6::after {
  top: 24px;
  width: 58px;
  height: 36px;
  border-radius: 18px;
}

.upload-box {
  margin-top: 22px;
  background: var(--card);
  border: 1px dashed #42505e;
  border-radius: var(--radius-sm);
  padding: 20px;
}

.upload-box__label {
  display: inline-block;
  background: var(--accent);
  color: #08120d;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
}

.upload-box__label input {
  display: none;
}

.upload-box__filename {
  margin: 14px 0 6px;
  color: var(--text);
}

.upload-box__help {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.calculator-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.result-highlight {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(23, 199, 132, 0.08);
  border: 1px solid rgba(23, 199, 132, 0.25);
}

.result-highlight span {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1;
}

.result-why {
  margin-top: 22px;
}

.result-why h3,
.similar-cases h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.result-why ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.similar-cases {
  margin-top: 26px;
}

.similar-cases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.case-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.case-card__visual {
  height: 120px;
  background:
    radial-gradient(circle at center, rgba(23,199,132,0.18), transparent 60%),
    linear-gradient(180deg, #1a232c 0%, #11161d 100%);
  position: relative;
}

.case-card__visual::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}

.case-card__visual--one::before,
.case-card__visual--two::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  width: 56px;
  height: 74px;
  border-radius: 32px 32px 28px 28px;
  background: #d8b28f;
}

.case-card__visual--one::after {
  box-shadow: inset 0 0 0 999px rgba(0,0,0,0.08);
}

.case-card__visual--one::before {
  clip-path: inset(10px 0 0 0 round 28px);
}

.case-card__visual--two::before {
  clip-path: ellipse(42% 34% at 50% 44%);
}

.case-card__content {
  padding: 14px;
}

.case-card__content strong {
  display: block;
  margin-bottom: 4px;
}

.case-card__content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.result-note {
  margin-top: 18px;
  color: #98a4b0;
  font-size: 14px;
}

.lead-form {
  margin-top: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 14px;
  color: var(--muted);
}

.form-group input,
.form-group select {
  min-height: 50px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  padding: 0 14px;
}

.checkbox-group {
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
}

.checkbox-label input {
  margin-top: 3px;
}

.form-status {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  border: 1px solid var(--line);
}

.form-status.is-success {
  color: var(--success);
  background: rgba(57, 217, 138, 0.08);
  border-color: rgba(57, 217, 138, 0.25);
}

.form-status.is-error {
  color: #ffb4b4;
  background: rgba(255, 92, 92, 0.08);
  border-color: rgba(255, 92, 92, 0.25);
}

.form-disclaimer {
  margin: 12px 0 0;
  color: #8c97a3;
  font-size: 13px;
  text-align: center;
}

.footer {
  padding: 24px 0 40px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 44px;
  }

  .hero__text {
    font-size: 16px;
  }

  .trust-strip__inner,
  .option-grid,
  .option-grid--norwood,
  .form-grid,
  .similar-cases__grid {
    grid-template-columns: 1fr;
  }

  .calculator-card,
  .result-card,
  .lead-form-card {
    padding: 20px;
  }

  .step__header h3 {
    font-size: 24px;
  }

  .calculator-actions {
    flex-direction: column;
  }

  .calculator-actions .btn {
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}