/* Toolbelt Websites — Homepage Package Recommendation Wizard v1.1.2 */

.tb-plan-wizard-invite {
  width: min(760px, 100%);
  margin: 24px auto 0;
  padding: 22px 24px;
  border: 1px solid #2d3238;
  background: #111419;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  text-align: left;
}

.tb-plan-wizard-invite-copy h3 {
  margin: 0 0 5px;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.05;
}

.tb-plan-wizard-invite-copy p {
  margin: 0;
  color: #c5cbd1;
  font-size: .93rem;
  line-height: 1.55;
}

.tb-plan-wizard-launch {
  flex: 0 0 auto;
  white-space: nowrap;
}

.tb-plan-wizard-shell[hidden] {
  display: none !important;
}

.tb-plan-wizard-shell {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 24px;
}

.tb-plan-wizard-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 8, .84);
  backdrop-filter: blur(8px);
}

.tb-plan-wizard-dialog {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: min(820px, calc(100dvh - 48px));
  overflow: auto;
  border: 1px solid #d8d3c9;
  border-radius: 14px;
  background: #f7f4ee;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
  color: #101417;
  outline: none;
}

.tb-plan-wizard-topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 18px 22px 16px;
  border-bottom: 1px solid #ddd6c8;
  background: rgba(247, 244, 238, .98);
  backdrop-filter: blur(12px);
}

.tb-plan-wizard-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tb-plan-wizard-kicker {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.tb-plan-wizard-progress-copy {
  margin-top: 4px;
  color: #616c76;
  font-size: .78rem;
  font-weight: 700;
}

.tb-plan-wizard-close {
  width: 42px;
  height: 42px;
  border: 1px solid #cfd5db;
  border-radius: 50%;
  background: #ffffff;
  color: #182028;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.tb-plan-wizard-close:hover,
.tb-plan-wizard-close:focus-visible {
  border-color: var(--accent);
  color: #111;
  background: #fff5cf;
  outline: none;
}

.tb-plan-wizard-progress {
  height: 4px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #d7dce1;
}

.tb-plan-wizard-progress > span {
  display: block;
  width: 16.6667%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width .22s ease;
}

.tb-plan-wizard-stage {
  min-height: 430px;
  padding: 38px 40px 30px;
}

.tb-plan-wizard-question-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.tb-plan-wizard-question-head h2 {
  margin: 0 0 12px;
  color: #101417;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: .98;
}

.tb-plan-wizard-question-head p {
  margin: 0;
  max-width: 700px;
  color: #4c5660;
  font-size: 1rem;
  line-height: 1.65;
}

.tb-plan-wizard-note {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: #fffdf8;
  color: #4a5259;
  font-size: .9rem;
  line-height: 1.6;
  box-shadow: inset 0 0 0 1px #ebe3d2;
}

.tb-plan-wizard-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tb-plan-wizard-option-grid--single {
  grid-template-columns: 1fr;
}

.tb-plan-wizard-option {
  min-height: 62px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #d1d7dd;
  border-radius: 9px;
  background: #ffffff;
  color: #182028;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  font: inherit;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.tb-plan-wizard-option:hover {
  border-color: #9faab4;
  box-shadow: 0 10px 24px rgba(16, 20, 23, .06);
}

.tb-plan-wizard-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tb-plan-wizard-option[aria-pressed="true"],
.tb-plan-wizard-option.is-selected {
  border-color: var(--accent);
  background: #fff7dc;
  box-shadow: inset 0 0 0 1px rgba(233, 179, 0, .18);
}

.tb-plan-wizard-option[aria-disabled="true"] {
  cursor: default;
}

.tb-plan-wizard-option-mark {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 1px solid #8f9aa4;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: transparent;
  font-size: .8rem;
}

.tb-plan-wizard-option[aria-pressed="true"] .tb-plan-wizard-option-mark,
.tb-plan-wizard-option.is-selected .tb-plan-wizard-option-mark {
  border-color: var(--accent);
  background: var(--accent);
  color: #0b0d0f;
}

.tb-plan-wizard-onepage {
  margin-bottom: 18px;
}

.tb-plan-wizard-onepage .tb-plan-wizard-option {
  border-width: 2px;
}

.tb-plan-wizard-subheading {
  margin: 0 0 12px;
  color: #6f7a84;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tb-plan-wizard-counter-wrap {
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid #d1d7dd;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(12, 17, 22, .05);
}

.tb-plan-wizard-counter {
  display: grid;
  grid-template-columns: 64px minmax(100px, 1fr) 64px;
  align-items: center;
  gap: 10px;
}

.tb-plan-wizard-counter button {
  width: 64px;
  height: 58px;
  border: 1px solid #cfd5db;
  border-radius: 8px;
  background: #ffffff;
  color: #182028;
  font-size: 1.65rem;
  font-weight: 700;
  cursor: pointer;
}

.tb-plan-wizard-counter button:hover,
.tb-plan-wizard-counter button:focus-visible {
  border-color: var(--accent);
  color: #111;
  background: #fff8df;
  outline: none;
}

.tb-plan-wizard-counter-value {
  color: #101417;
  text-align: center;
  font-family: var(--heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
}

.tb-plan-wizard-unsure {
  margin-top: 14px;
}

.tb-plan-wizard-inline-reveal {
  margin-top: 20px;
}

.tb-plan-wizard-example-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: #4c5660;
  font-size: .9rem;
  line-height: 1.7;
}

.tb-plan-wizard-example-list li::before {
  content: "•";
  margin-right: 10px;
  color: var(--accent);
}

.tb-plan-wizard-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding: 18px 22px;
  border-top: 1px solid #ddd6c8;
  background: rgba(247, 244, 238, .98);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tb-plan-wizard-actions .btn,
.tb-plan-wizard-result-actions .btn {
  min-width: 150px;
  justify-content: center;
}

.tb-plan-wizard-actions .btn-ghost,
.tb-plan-wizard-result-actions .btn-ghost {
  border-color: #cfd5db;
  background: #ffffff;
  color: #182028;
}

.tb-plan-wizard-actions .btn-ghost:hover,
.tb-plan-wizard-actions .btn-ghost:focus-visible,
.tb-plan-wizard-result-actions .btn-ghost:hover,
.tb-plan-wizard-result-actions .btn-ghost:focus-visible {
  background: #eef2f5;
  color: #101417;
}

.tb-plan-wizard-actions [data-tb-plan-wizard-back][hidden],
.tb-plan-wizard-actions [data-tb-plan-wizard-next][hidden] {
  display: none !important;
}

.tb-plan-wizard-result {
  max-width: 760px;
  margin: 0 auto;
}

.tb-plan-wizard-result-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.tb-plan-wizard-result h2 {
  margin: 0;
  color: #101417;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: .92;
}

.tb-plan-wizard-result-price {
  margin-top: 16px;
  color: #111;
  font-family: var(--heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
}

.tb-plan-wizard-result-price span {
  color: #6c7680;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
}

.tb-plan-wizard-result-intro {
  margin: 22px 0 0;
  color: #414a53;
  font-size: 1rem;
  line-height: 1.7;
}

.tb-plan-wizard-reasons {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #ddd6c8;
}

.tb-plan-wizard-reasons li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid #ddd6c8;
  color: #182028;
  font-size: .93rem;
  line-height: 1.55;
}

.tb-plan-wizard-reasons li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 14px;
  color: var(--accent);
  font-weight: 900;
}

.tb-plan-wizard-result-trust {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: #fffdf8;
  color: #4d5660;
  font-size: .88rem;
  line-height: 1.55;
  box-shadow: inset 0 0 0 1px #ebe3d2;
}

.tb-plan-wizard-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.tb-plan-wizard-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.tb-plan-wizard-summary-item {
  padding: 12px 14px;
  border: 1px solid #d6dde3;
  border-radius: 8px;
  background: #ffffff;
}

.tb-plan-wizard-summary-item small {
  display: block;
  margin-bottom: 3px;
  color: #6f7a84;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tb-plan-wizard-summary-item strong {
  color: #101417;
  font-size: .9rem;
}

body.tb-plan-wizard-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .tb-plan-wizard-invite {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .tb-plan-wizard-launch {
    width: 100%;
    justify-content: center;
  }

  .tb-plan-wizard-shell {
    padding: 10px;
    align-items: end;
  }

  .tb-plan-wizard-dialog {
    width: 100%;
    height: calc(100dvh - 20px);
    max-height: none;
    border-radius: 12px 12px 0 0;
  }

  .tb-plan-wizard-stage {
    min-height: auto;
    padding: 30px 20px 24px;
  }

  .tb-plan-wizard-option-grid,
  .tb-plan-wizard-summary {
    grid-template-columns: 1fr;
  }

  .tb-plan-wizard-option {
    min-height: 60px;
  }

  .tb-plan-wizard-topbar,
  .tb-plan-wizard-actions {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tb-plan-wizard-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .tb-plan-wizard-actions[data-mode="first"],
  .tb-plan-wizard-actions[data-mode="result"] {
    grid-template-columns: 1fr;
  }

  .tb-plan-wizard-actions .btn {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding-left: 12px;
    padding-right: 12px;
  }

  .tb-plan-wizard-actions[data-mode="first"] [data-tb-plan-wizard-back],
  .tb-plan-wizard-actions[data-mode="result"] [data-tb-plan-wizard-next] {
    display: none !important;
  }

  .tb-plan-wizard-result-actions {
    flex-direction: column;
  }

  .tb-plan-wizard-result-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .tb-plan-wizard-question-head h2 {
    font-size: 2rem;
  }

  .tb-plan-wizard-counter-wrap {
    padding: 18px;
  }

  .tb-plan-wizard-counter {
    grid-template-columns: 56px minmax(82px, 1fr) 56px;
  }

  .tb-plan-wizard-counter button {
    width: 56px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tb-plan-wizard-progress > span,
  .tb-plan-wizard-option {
    transition: none;
  }
}
