:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --ink: #0f1a33;
  --muted: #6a7a95;
  --line: #d7deea;
  --accent: #18b57f;
  --accent-soft: #e6f7f1;
  --cta: #0a1633;
  --disabled: #8f97a5;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(10, 22, 51, 0.06);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.quiz-shell {
  width: min(760px, calc(100vw - 2rem));
  margin: 40px auto;
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.hero {
  text-align: center;
  margin-bottom: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  background: #d6efe7;
  border-radius: 999px;
  padding: 8px 18px;
}

.hero h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 14px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.quiz-card {
  background: var(--surface);
  border: 1px solid #dce4ef;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 26px 22px;
}

.progress-wrap {
  margin-bottom: 20px;
}

.progress-segments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.progress-segment {
  height: 10px;
  border-radius: 999px;
  background: #e6eaf1;
}

.progress-segment.active {
  background: var(--accent);
}

.step-label {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.step-panel h2,
#results-view h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.step-panel[data-step="useCase"] h2,
.step-panel[data-step="apps"] h2 {
  margin-bottom: 15px;
}

.title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.icon-mask {
  width: 20px;
  height: 20px;
  display: inline-block;
  background-color: currentColor;
  flex: 0 0 auto;
  -webkit-mask-image: var(--icon-url);
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-image: var(--icon-url);
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
}

.icon-arrow-right {
  --icon-url: url('https://licensecorner.com/wp-content/uploads/2026/02/arrow-right.svg');
}

.icon-arrow-left {
  --icon-url: url('https://licensecorner.com/wp-content/uploads/2026/02/arrow-left.svg');
}

.icon-sparkles {
  --icon-url: url('https://licensecorner.com/wp-content/uploads/2026/02/sparkles.svg');
}

.icon-monitor-down {
  --icon-url: url('https://licensecorner.com/wp-content/uploads/2026/02/monitor-down.svg');
}

.icon-accent {
  color: var(--accent);
}

.help-text {
  margin: 10px 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.ghost-link {
  appearance: none;
  background: none;
  border: 0;
  color: var(--accent);
  font: inherit;
  padding: 0;
  margin-bottom: 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}

.instructions {
  background: #f2f5f9;
  border: 1px solid #e1e8f2;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}

.instructions p {
  margin: 0 0 10px;
  color: #25354f;
  font-size: 14px;
  line-height: 1.45;
}

.instructions p:last-child {
  margin-bottom: 0;
}

.option-list {
  display: grid;
  gap: 12px;
}

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

.option-card {
  appearance: none;
  border: 2px solid #d1dae7;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.option-card:hover {
  border-color: #9db0cd;
}

.option-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.radio-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #6f84a3;
  position: relative;
  flex: 0 0 auto;
}

.option-card.selected .radio-dot {
  border-color: var(--accent);
}

.option-card.selected .radio-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.option-copy {
  min-width: 0;
}

.option-title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.option-note {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

.actions.single {
  margin-top: 20px;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 16px;
  min-height: 50px;
  text-align: center;
}

.btn-secondary {
  background: #f5f7fb;
  border-color: #cdd6e4;
  color: #111e3e;
  min-width: 120px;
}

.btn-primary {
  background: var(--cta);
  color: #fff;
  flex: 1;
}

.btn-primary:disabled {
  background: var(--disabled);
  cursor: not-allowed;
}

#next-btn .results-icon {
  display: none;
}

#next-btn.is-results-step .next-icon {
  display: none;
}

#next-btn.is-results-step .results-icon {
  display: inline-block;
}

.btn.full {
  width: 100%;
}

.result-notes {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.notice {
  padding: 10px 12px;
  border-radius: 12px;
  background: #eff4ff;
  color: #25354f;
  border: 1px solid #d8e2f3;
  font-size: 14px;
}

.result-list {
  display: grid;
  gap: 14px;
}

.result-card {
  position: relative;
  border: 1px solid #d6deea;
  border-radius: 14px;
  padding: 14px;
  background: #f8fbff;
}

.result-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.result-header.no-badge {
  margin-bottom: 0;
}

.badge {
  display: inline-block;
  background: #f59f0a;
  color: #fff;
  font-weight: 500;
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 999px;
}

#office-quiz .price {
  margin: 0 0 0 auto;
  line-height: 1.1;
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

#office-quiz .price.price-muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.result-card.no-badge .result-name {
  padding-right: 0;
}

.result-name {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}

.result-description {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.result-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 14px;
}

.result-link:hover {
  filter: brightness(0.95);
}

.status-inline {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .quiz-shell {
    margin: 20px auto;
  }

  .quiz-card {
    padding: 20px 16px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .subtitle {
    font-size: 15px;
  }

  .step-panel h2,
  #results-view h2 {
    font-size: clamp(24px, 7vw, 30px);
  }

  .option-list.compact {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .btn,
  .btn-secondary {
    width: 100%;
  }

  .result-header {
    align-items: flex-start;
    flex-direction: column;
  }

  #office-quiz .price {
    margin-left: 0;
  }
}
