styles.css
* {
  box-sizing: border-box;
}

:root {
  --bg: #0b0b0b;
  --panel: #171717;
  --panel-2: #1f1f1f;
  --text: #ffffff;
  --muted: #aaaaaa;
  --line: #2d2d2d;
  --accent: #3aa9fe;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.quiz-app {
  max-width: 760px;
  margin: 0 auto;
  min-height: auto;
  padding: 20px 20px 36px;
  display: block;
}

.quiz-header {
  margin-bottom: 28px;
}

.quiz-brand {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.quiz-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.quiz-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.quiz-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 0.25s ease;
}

.quiz-progress-text {
  min-width: 42px;
  text-align: right;
  color: var(--muted);
  font-size: 14px;
}

.quiz-content {
  flex: none;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
}

h1 {
  font-size: 46px;
  line-height: 1.05;
  margin: 0 0 18px;
}

.subtext {
  color: var(--muted);
  margin: 0 0 22px;
  font-size: 18px;
}

.card-grid,
.image-card-grid {
  display: grid;
  gap: 16px;
}

.option-card,
.image-card {
  width: 100%;
  background: var(--panel);
  color: var(--text);
  border: 2px solid transparent;
  border-radius: 18px;
  cursor: pointer;
  transition: 0.2s ease;
}

.option-card {
  text-align: left;
  padding: 24px 22px;
  font-size: 26px;
  font-weight: 700;
}

.option-card:hover,
.image-card:hover,
.option-card.selected,
.image-card.selected {
  border-color: var(--accent);
  background: #23150e;
}

.image-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  text-align: left;
  gap: 16px;
}

.image-card img {
  width: 110px;
  height: 130px;
  object-fit: cover;
  border-radius: 14px;
}

.image-card span {
  flex: 1;
  padding-right: 20px;
  font-size: 26px;
  font-weight: 700;
}

.picker-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.picker-block {
  background: var(--panel);
  border-radius: 18px;
  padding: 18px;
}

.picker-block label {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 10px;
}

.picker {
  width: 100%;
  min-height: 58px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 22px;
  padding: 12px 14px;
}

.selected-preview {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

.form-stack {
  display: grid;
  gap: 16px;
}

.field-group {
  background: var(--panel);
  border-radius: 18px;
  padding: 18px;
}

.field-group label {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 10px;
}

.field-group input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 12px;
  min-height: 58px;
  font-size: 20px;
  padding: 12px 14px;
}

.results-card {
  background: var(--panel);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 20px;
}

.results-card h2,
.results-card h3,
.results-card p {
  margin-top: 0;
}

.result-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.result-item {
  padding: 14px 16px;
  background: var(--panel-2);
  border-radius: 12px;
  font-size: 16px;
  color: var(--text);
}

.quiz-footer {
  display: flex;
  gap: 14px;
  width: 100%;
  max-width: 760px;
  margin: 20px auto 0;
}

.quiz-footer > button {
  min-width: 0;
}

.primary-btn,
.secondary-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 58px;
  border: none;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.primary-btn {
  background: var(--accent);
  color: #fff;
}

.secondary-btn {
  background: #2b2b2b;
  color: #fff;
}

.primary-btn:disabled,
.secondary-btn:disabled,
.icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  h1 {
    font-size: 34px;
  }

  .picker-row {
    grid-template-columns: 1fr;
  }

  .option-card {
    font-size: 22px;
  }

  .image-card img {
    width: 90px;
    height: 110px;
  }

  .image-card span {
    font-size: 22px;
  }
}
.results-intro {
  font-size: 22px;
  line-height: 1.35;
  margin: 0 0 22px;
  color: var(--text);
}

.results-graph-card {
  background: var(--panel-2);
  border-radius: 18px;
  padding: 20px 18px 18px;
}

.graph-headline {
  font-size: 34px;
  line-height: 1.05;
  margin: 0 0 10px;
}

.graph-subtext {
  font-size: 18px;
  line-height: 1.4;
  color: var(--muted);
  margin: 0 0 18px;
}

.graph-wrap {
  position: relative;
  height: 340px;
  border-radius: 16px;
  overflow: hidden;
  padding: 24px 10px 48px;
  background:
    linear-gradient(to top, rgba(255, 90, 31, 0.06), rgba(255, 90, 31, 0));
}

#progressGraph {
  position: absolute;
  inset: 36px 0 48px 0;
  width: 100%;
  height: calc(100% - 84px);
  z-index: 2;
}

.graph-grid {
  position: absolute;
  inset: 36px 0 48px 0;
  z-index: 1;
}

.grid-line.vertical {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.grid-line.line-1 { left: 8%; }
.grid-line.line-2 { left: 36%; }
.grid-line.line-3 { left: 67%; }
.grid-line.line-4 { right: 8%; }

.graph-y-label {
  position: absolute;
  left: 8px;
  font-size: 14px;
  color: var(--muted);
  z-index: 3;
}

.graph-y-label.top {
  top: 8px;
}

.graph-y-label.bottom {
  bottom: 54px;
}

.graph-callout {
  position: absolute;
  z-index: 4;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  padding: 12px 14px;
  border-radius: 0;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.graph-callout.start {
  left: 18px;
  top: 66px;
}

.graph-callout.end {
  right: 18px;
  bottom: 78px;
}

.graph-x-axis {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
  z-index: 3;
}

.results-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.results-btn {
  flex: 0 0 auto;
  min-height: 64px;
  padding: 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 640px) {
  .results-intro {
    font-size: 18px;
  }

  .graph-headline {
    font-size: 24px;
  }

  .graph-subtext {
    font-size: 16px;
  }

  .graph-wrap {
    height: 290px;
  }

  .graph-callout {
    font-size: 13px;
    padding: 10px 12px;
  }

  .results-btn {
    padding: 0 28px;
  }
}

.testimonial-container {
  margin-top: 20px;
  margin-bottom: 30px;
  text-align: center;
}

.testimonial-image {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  display: block;
  margin: 0 auto;
}

.question-title {
  text-align: center;
  line-height: 1.3;
}

.analyzing-step {
  text-align: center;
  padding: 40px 10px 20px;
}

.analyzing-spinner {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 4px solid rgba(58, 169, 254, 0.15);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}

.analyzing-text {
  max-width: 460px;
  margin: 0 auto 24px;
}

.analyzing-point {
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s ease;
}

.analyzing-point.show {
  opacity: 1;
  transform: translateY(0);
}

.check {
  color: #3AA9FE;
  margin-right: 10px;
  font-weight: bold;
}

.testimonial-title {
  text-align: center;
  line-height: 1.2;
}

.testimonial-container {
  margin-top: 22px;
  text-align: center;
}

.testimonial-image {
  width: 100%;
  max-width: 420px;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.offer-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.offer-card {
  position: relative;
  background: var(--panel);
  border-radius: 20px;
  padding: 24px 20px 22px;
  border: 2px solid rgba(255,255,255,0.08);
}

.featured-offer {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(58, 169, 254, 0.12);
}

.offer-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.save-badge {
  background: #1f8f4e;
}

.offer-title {
  font-size: 30px;
  line-height: 1.1;
  margin: 0 0 12px;
}

.offer-price {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 6px;
}

.offer-price-small {
  font-size: 18px;
  font-weight: 700;
}

.offer-price-sub,
.offer-detail {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 16px;
}

.offer-list {
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--text);
}

.offer-list li {
  margin-bottom: 8px;
}

.offer-btn {
  width: 100%;
}

@media (min-width: 768px) {
  .offer-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .offer-card {
    height: 100%;
  }
}

.offer-card {
  display: flex;
  flex-direction: column;
}

.offer-card-content {
  flex: 1;
}

.offer-btn {
  margin-top: auto;
}

.promo-code {
  color: #4db8ff;
  font-weight: 700;
}

@media (max-width: 640px) {
  .quiz-app {
    padding: 16px;
  }

  .quiz-footer {
    width: 100%;
    max-width: 100%;
    gap: 12px;
    margin: 20px auto 0;
  }

  .primary-btn,
  .secondary-btn {
    min-height: 56px;
    font-size: 17px;
  }
}