:root {
  --ink: #18231f;
  --muted: #66746c;
  --paper: #fbf7ed;
  --surface: rgba(255, 253, 248, 0.9);
  --line: #dfd5c0;
  --brand: #0f6b5f;
  --brand-deep: #093f39;
  --accent: #e8a23a;
  --accent-soft: #fde8bc;
  --shadow: 0 24px 70px rgba(34, 43, 36, 0.14);
  font-family: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(232, 162, 58, 0.26), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(15, 107, 95, 0.18), transparent 32rem),
    linear-gradient(135deg, #fbf7ed 0%, #f4ead8 48%, #eef3e7 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero,
.progress-card,
.wizard-step,
.internal-panel,
.wizard-nav {
  border: 1px solid rgba(223, 213, 192, 0.82);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: stretch;
  border-radius: 34px;
  margin-bottom: 20px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -120px;
  top: -150px;
  border-radius: 999px;
  background: repeating-linear-gradient(45deg, rgba(15, 107, 95, 0.1) 0 8px, transparent 8px 18px);
  pointer-events: none;
}

.eyebrow {
  color: var(--brand);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  max-width: 800px;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin-bottom: 10px;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.hero-copy,
.step-header p,
.choice small,
.plan-card small,
.plan-card__summary,
.bundle-choice small,
.quote-columns li,
.quote-header p,
.quote-prices span,
.internal-summary span,
label {
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.hero-copy,
.step-header p,
.quote-header p {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.65;
  max-width: 760px;
}

.hero-card {
  align-self: end;
  border-radius: 28px;
  background: var(--brand-deep);
  color: #fffdf8;
  min-height: 220px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.hero-card__label {
  color: rgba(255, 253, 248, 0.72);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-card strong {
  color: var(--accent);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.hero-card small {
  color: rgba(255, 253, 248, 0.74);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  line-height: 1.5;
  margin-top: 16px;
}

.progress-card {
  border-radius: 24px;
  margin-bottom: 18px;
  padding: 14px;
}

.progress-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.progress-list li {
  align-items: center;
  border-radius: 999px;
  color: var(--muted);
  display: flex;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 8px;
  padding: 10px 12px;
}

.progress-list span {
  align-items: center;
  background: rgba(15, 107, 95, 0.1);
  border-radius: 999px;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.progress-list li.is-active,
.progress-list li.is-complete {
  background: rgba(15, 107, 95, 0.1);
  color: var(--brand-deep);
}

.progress-list li.is-active span,
.progress-list li.is-complete span {
  background: var(--brand);
  color: #fffdf8;
}

.wizard {
  display: grid;
  gap: 18px;
}

.wizard-step,
.internal-panel {
  border-radius: 30px;
  display: none;
  padding: clamp(22px, 4vw, 36px);
}

.wizard-step.is-active,
.internal-panel:not([hidden]) {
  display: block;
  animation: reveal 240ms ease-out;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-header {
  margin-bottom: 24px;
}

.question-grid,
.path-grid,
.plans-grid,
.quote-columns {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.question-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 18px;
}

.question-card legend {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.choice,
.path-card,
.plan-card,
.bundle-choice,
.module-row {
  border: 1px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.choice {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  padding: 15px;
}

.choice:hover,
.path-card:hover,
.plan-card:hover,
.bundle-choice:hover,
.module-row:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.choice:has(input:checked),
.path-card:has(input:checked),
.plan-card.is-selected,
.bundle-choice:has(input:checked),
.module-row:has(input:checked) {
  background: rgba(15, 107, 95, 0.09);
  border-color: var(--brand);
}

.choice input,
.path-card input,
.plan-card input,
.bundle-choice input,
.module-row input {
  accent-color: var(--brand);
  margin-top: 3px;
}

.path-card {
  align-items: flex-start;
  background: rgba(255, 250, 240, 0.78);
  display: grid;
  gap: 16px;
  grid-template-columns: 22px minmax(0, 1fr);
  padding: 24px;
  position: relative;
}

.path-card strong {
  display: block;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 10px;
  padding-right: 140px;
}

.path-card small {
  color: var(--muted);
  display: block;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  line-height: 1.55;
}

.path-card em {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--brand-deep);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  padding: 7px 11px;
  position: absolute;
  right: 18px;
  top: 18px;
  text-transform: uppercase;
}

.choice strong {
  display: block;
  margin-bottom: 5px;
}

.choice small,
.plan-card small,
.bundle-choice small {
  color: var(--muted);
  display: block;
  line-height: 1.45;
}

.slider-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.slider-field {
  background: rgba(244, 234, 216, 0.54);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  gap: 14px;
  padding: 22px;
}

.slider-field span {
  color: var(--muted);
  font-weight: 800;
}

.slider-field strong {
  color: var(--brand);
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
}

input[type="range"] {
  accent-color: var(--brand);
  width: 100%;
}

.recommendation {
  background: rgba(232, 162, 58, 0.18);
  border: 1px solid rgba(232, 162, 58, 0.55);
  border-radius: 20px;
  color: var(--brand-deep);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  line-height: 1.5;
  margin-bottom: 18px;
  padding: 16px 18px;
}

.instant-recommendation {
  align-items: flex-start;
  background: rgba(15, 107, 95, 0.08);
  border: 1px solid rgba(15, 107, 95, 0.2);
  border-radius: 20px;
  color: var(--ink);
  display: flex;
  gap: 16px;
  margin-top: 24px;
  padding: 20px;
  transition: background 300ms ease;
}

.recommendation-icon {
  color: var(--brand);
  flex-shrink: 0;
  height: 24px;
  width: 24px;
  margin-top: 2px;
}

.recommendation-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recommendation-content strong {
  color: var(--brand-deep);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.recommendation-content p {
  color: var(--muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  max-width: 600px;
}

.plan-card {
  background: rgba(255, 250, 240, 0.78);
  display: grid;
  gap: 14px;
  padding: 22px;
  position: relative;
}

.plan-card.is-recommended {
  box-shadow: inset 0 0 0 2px rgba(232, 162, 58, 0.65);
}

.plan-card input {
  position: absolute;
  right: 18px;
  top: 18px;
}

.plan-card em {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--brand-deep);
  display: inline-block;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  padding: 6px 10px;
  text-transform: uppercase;
}

.plan-card__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.plan-card__top strong {
  display: block;
  font-size: 1.6rem;
  letter-spacing: -0.035em;
}

.plan-card__price strong {
  color: var(--brand);
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.plan-card__monthly,
.bundle-choice em {
  color: var(--brand-deep);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 900;
}

.plan-card__summary {
  color: var(--muted);
  line-height: 1.5;
}

.plan-card__details {
  display: grid;
  gap: 12px;
}

.plan-card__detail {
  background: rgba(244, 234, 216, 0.42);
  border: 1px solid rgba(223, 213, 192, 0.9);
  border-radius: 18px;
  padding: 14px 16px;
}

.plan-card__detail > strong {
  color: var(--brand-deep);
  display: block;
  font-size: 0.88rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.plan-card__detail ul {
  margin: 0;
  padding-left: 18px;
}

.plan-card__detail li {
  color: var(--muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  line-height: 1.45;
  margin: 6px 0;
}

.bundle-panel {
  background: rgba(244, 234, 216, 0.54);
  border: 1px solid var(--line);
  border-radius: 24px;
  margin-top: 20px;
  padding: 18px;
}

.bundle-panel summary {
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 900;
}

.bundle-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.bundle-choice {
  align-items: flex-start;
  display: grid;
  gap: 12px;
  grid-template-columns: 20px minmax(0, 1fr);
  padding: 16px;
}

.bundle-choice.is-included {
  background: rgba(232, 162, 58, 0.13);
}

.bundle-choice strong {
  display: block;
  margin-bottom: 5px;
}

.bundle-choice em {
  display: block;
  font-size: 0.84rem;
  font-style: normal;
  margin-top: 10px;
}

.prebuilt-note,
.quote-section {
  background: rgba(244, 234, 216, 0.54);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(20px, 4vw, 30px);
}

.prebuilt-note p {
  color: var(--muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  line-height: 1.6;
  max-width: 780px;
}

.package-monthly-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.matrix-wrap {
  overflow-x: auto;
}

.matrix-table {
  border-collapse: collapse;
  min-width: 620px;
  width: 100%;
}

.matrix-table th,
.matrix-table td {
  border: 1px solid var(--line);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  padding: 12px 14px;
  text-align: center;
}

.matrix-table th {
  background: rgba(244, 234, 216, 0.72);
  color: var(--brand-deep);
  font-size: 0.85rem;
  font-weight: 900;
}

.matrix-table td {
  background: rgba(255, 250, 240, 0.76);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.matrix-table td.is-active {
  background: rgba(15, 107, 95, 0.12);
  box-shadow: inset 0 0 0 2px rgba(15, 107, 95, 0.25);
  color: var(--brand-deep);
}

.option-group {
  background: rgba(255, 250, 240, 0.76);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
}

.option-group__header {
  margin-bottom: 14px;
}

.option-group__header h3 {
  margin-bottom: 6px;
}

.option-group__header p {
  color: var(--muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  line-height: 1.5;
  margin: 0;
}

.quote-section + .quote-section {
  margin-top: 18px;
}

.section-title {
  align-items: baseline;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title h3 {
  margin-bottom: 0;
}

.section-title span {
  color: var(--muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.module-list {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.module-row {
  align-items: flex-start;
  background: rgba(255, 250, 240, 0.76);
  display: grid;
  gap: 14px;
  grid-template-columns: 20px minmax(0, 1fr) max-content;
  padding: 16px;
}

.module-row strong {
  display: block;
  margin-bottom: 5px;
}

.module-row small {
  color: var(--muted);
  display: block;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  line-height: 1.45;
}

.module-row em {
  color: var(--brand-deep);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.module-row--note em {
  color: var(--muted);
  max-width: 180px;
  white-space: normal;
}

.empty-note {
  color: var(--muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  line-height: 1.5;
  margin: 10px 0 0;
}

.quote-sheet {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(20px, 4vw, 34px);
}

.quote-header {
  align-items: start;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.quote-total {
  background: var(--brand-deep);
  border-radius: 24px;
  color: #fffdf8;
  min-width: 230px;
  padding: 22px;
  text-align: right;
}

.quote-total span,
.quote-prices span {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.quote-total span {
  color: rgba(255, 253, 248, 0.72);
}

.quote-total strong {
  color: var(--accent);
  font-size: 2rem;
}

.quote-prices {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.quote-prices article,
.quote-columns section,
.internal-summary article {
  background: rgba(244, 234, 216, 0.54);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}

.quote-prices strong,
.internal-summary strong {
  font-size: 1.35rem;
}

.quote-columns ul {
  margin: 0;
  padding-left: 20px;
}

.quote-columns li {
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0;
}

.quote-columns--wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quote-columns--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.cost-list {
  list-style: none;
  padding-left: 0 !important;
}

.cost-list li {
  align-items: start;
  border-bottom: 1px solid rgba(223, 213, 192, 0.72);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 8px;
}

.cost-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cost-list strong {
  color: var(--brand-deep);
  flex: 0 0 auto;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.88rem;
  text-align: right;
}

.quote-actions {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 18px;
}

.button {
  background: var(--brand);
  border: 0;
  border-radius: 999px;
  color: #fffdf8;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 900;
  padding: 13px 20px;
}

.button--ghost {
  background: rgba(15, 107, 95, 0.1);
  color: var(--brand-deep);
}

.wizard-nav {
  align-items: center;
  border-radius: 24px;
  bottom: 16px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px;
  position: sticky;
  z-index: 5;
}

.floating-estimate {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.floating-estimate span {
  color: var(--muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 800;
}

.floating-estimate strong {
  color: var(--brand);
  font-size: 1.5rem;
}

.internal-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.internal-grid label {
  font-size: 0.86rem;
  font-weight: 800;
}

.internal-grid input {
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  display: block;
  margin-top: 8px;
  outline: 0;
  padding: 11px 12px;
  width: 100%;
}

.internal-grid input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(15, 107, 95, 0.12);
}

.internal-summary {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

code {
  background: rgba(15, 107, 95, 0.1);
  border-radius: 6px;
  padding: 2px 5px;
}

@media (max-width: 980px) {
  .hero,
  .path-grid,
  .question-grid,
  .plans-grid,
  .package-monthly-grid,
  .quote-columns,
  .quote-columns--wide,
  .quote-columns--two,
  .module-list {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 180px;
  }

  .quote-header {
    flex-direction: column;
  }

  .quote-total {
    text-align: left;
    width: 100%;
  }

  .internal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1220px);
    padding-top: 10px;
  }

  .hero,
  .wizard-step,
  .internal-panel {
    border-radius: 22px;
  }

  .progress-list,
  .slider-grid,
  .bundle-grid,
  .quote-prices,
  .internal-grid,
  .internal-summary {
    grid-template-columns: 1fr;
  }

  .progress-list li {
    font-size: 0;
    justify-content: center;
  }

  .progress-list span {
    font-size: 0.86rem;
  }

  .wizard-nav {
    align-items: stretch;
    flex-direction: column;
    position: static;
  }

  .instant-recommendation {
    align-items: flex-start;
    flex-direction: column;
  }

  .instant-recommendation em {
    text-align: left;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-row {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .module-row em {
    grid-column: 2;
    text-align: left;
    white-space: normal;
  }

  .floating-estimate {
    justify-content: space-between;
    order: -1;
  }
}

@media print {
  body {
    background: #fff;
  }

  .hero,
  .progress-card,
  .wizard-step:not(.is-active),
  .wizard-nav,
  .internal-panel,
  .quote-actions {
    display: none !important;
  }

  .shell {
    padding: 0;
    width: 100%;
  }

  .wizard-step.is-active,
  .quote-sheet {
    border: 0;
    box-shadow: none;
    display: block;
    padding: 0;
  }
}
