:root {
  --bg-page: #f5f3ee;
  --bg-card: #ffffff;
  --border-subtle: #e4dfd5;
  --text-main: #2f3437;
  --text-muted: #7b8286;

  --primary: #7c9a92;      /* sage */
  --primary-dark: #5d7b73;
  --accent: #c79ab3;       /* mauve */

  --radius-lg: 22px;
  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.12);
}

/* HERO / LANDING AREA INSIDE CARD – REFINED LOOK */

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 20px;
  margin-bottom: 22px;
  padding: 16px 18px 18px;
  border-radius: 18px;
  background: radial-gradient(circle at top left, #f7f0e7 0, #f4f5f4 40%, #f2f3f6 100%);
  border: 1px solid rgba(228, 223, 213, 0.9);
}

.hero-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #33373b;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.hero-badge {
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f8f3ea;
  color: #555b60;
  border: 1px solid rgba(124, 154, 146, 0.4);
}

/* Mode summary pills – clearer hierarchy */

.hero-modes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-mode-pill {
  border-radius: 14px;
  padding: 9px 11px;
  background: #ffffff;
  border: 1px solid #e4dfd5;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.hero-mode-paid {
  background: #f7f2f9;
  border: 1px solid rgba(199, 154, 179, 0.8);
}

.hero-mode-pill:first-child {
  border: 1px solid rgba(124, 154, 146, 0.9);
  background: #edf3ef;
}

.hero-mode-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #2f3437;
}

.hero-mode-text {
  font-size: 12px;
  line-height: 1.45;
  color: #6f767b;
}

/* Mobile tweaks */

@media (max-width: 640px) {
  .hero-intro {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px 12px 14px;
    margin-bottom: 18px;
  }

  .hero-modes {
    margin-top: 4px;
  }
}

/* Mobile tweaks */

@media (max-width: 640px) {
  .hero-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-modes {
    margin-top: 4px;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: radial-gradient(circle at top, #f7efe6 0, #f1f5f4 50%, #edeff1 100%);
  color: var(--text-main);
}

.page {
  max-width: 960px;
  margin: 32px auto;
  padding: 0 16px 32px;
}

/* Header */
.top-header {
  margin-bottom: 18px;
  text-align: left;
}

.brand-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 4px;
  background: linear-gradient(120deg, #4f5a55, #7c9a92, #c79ab3);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-subtitle {
  margin: 0;
  font-size: 15px;
  color: #6f7579;
}

/* Main card */
.app-card {
  margin-top: 14px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 22px 22px 18px;
  border: 1px solid var(--border-subtle);
}

/* Controls */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  align-items: flex-end;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 180px;
}

.control-group label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.control-group select {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-size: 14px;
  color: var(--text-main);
  background: #faf7f2;
}

.control-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(124, 154, 146, 0.25);
}

#startBtn {
  flex: 0 0 auto;
}

/* Buttons */

.btn,
.nav-button,
.generate-btn {
  border-radius: 999px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
}

.btn.primary {
  padding: 11px 20px;
  background: linear-gradient(130deg, var(--primary), var(--accent));
  color: #fdfcfb;
  border: 1px solid rgba(124, 154, 146, 0.7);
}

.btn.primary:disabled {
  opacity: 0.6;
  cursor: default;
}

.nav-button {
  padding: 9px 14px;
}

.nav-button.secondary {
  background: #f0ece6;
  color: #3a4144;
}

.nav-button.ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid #e5dfd6;
}

.nav-button.primary-small {
  background: linear-gradient(130deg, var(--primary), var(--accent));
  color: #fdfcfb;
  border: 1px solid rgba(124, 154, 146, 0.7);
}

.generate-btn {
  background: linear-gradient(130deg, var(--primary), var(--accent));
  color: #fdfcfb;
  padding: 11px 14px;
  width: 100%;
}

/* Progress */
.progress {
  margin-bottom: 10px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.progress-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.progress-count {
  font-weight: 500;
  color: #444b50;
}

.progress-bar-wrapper {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e8e1d9;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.2s ease-out;
}

/* Question card */
.question-card {
  margin-top: 10px;
  border-radius: 16px;
  border: 1px solid #ede4da;
  background: #fbf8f3;
  padding: 16px 14px 14px;
}

.question-top-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.question-index {
  font-size: 13px;
  color: var(--text-muted);
}

.question-text {
  font-size: 16px;
  line-height: 1.4;
  color: #313638;
  margin-bottom: 14px;
}

/* Choices */
.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid #e6ded3;
  background: #ffffff;
  padding: 10px 12px;
  cursor: pointer;
  transition: border 0.15s ease, background 0.15s ease, transform 0.08s ease;
}

.choice:hover {
  border-color: rgba(124, 154, 146, 0.7);
  background: #f6f3ef;
}

.choice.selected {
  border-color: var(--primary);
  background: #edf2ee;
}

.choice-label {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fdfcfb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.choice-text {
  font-size: 14px;
  color: #313638;
}

/* Navigation row */
.nav-row {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

/* Summary & report */
.summary-box,
.report-box {
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid #e4dfd5;
  padding: 16px 16px 14px;
  background: #ffffff;
}

.report-box h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.report-sub {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Tier details */
.tier-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.45;
  color: #5f666b;
}
.tier-list li { margin: 4px 0; }
.tier-list strong { color: #2f3437; font-weight: 600; }

.tier-note {
  margin-top: 8px;
  font-size: 11px;
  color: #4b5256;
  background: rgba(124, 154, 146, 0.14);
  border: 1px solid rgba(124, 154, 146, 0.35);
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-block;
}

/* Report banner */
.report-banner {
  margin: 10px 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(124, 154, 146, 0.35);
  background: linear-gradient(130deg, rgba(124, 154, 146, 0.18), rgba(199, 154, 179, 0.14));
  color: #2f3437;
  font-size: 13px;
  line-height: 1.35;
}
.report-banner .rb-title {
  font-weight: 700;
  margin-bottom: 2px;
}
.report-banner .rb-meta {
  font-size: 12px;
  color: #5f666b;
}

/* Make the report itself easier to read */
.report-content {
  margin-top: 4px;
  max-height: 320px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  color: #2f3437;
  white-space: normal;
}

/* Optional: subtle scrollbar on desktop */
.report-content::-webkit-scrollbar {
  width: 6px;
}
.report-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
}

/* Footer */
.footer {
  margin-top: 12px;
  font-size: 12px;
  text-align: center;
  color: #a3a5a8;
}

/* Report heading styling (mobile-friendly, consistent spacing) */
.report-content .report-h {
  font-weight: 700;
  font-size: 15px;
  margin: 14px 0 8px;
  color: #1f2933;
}

/* Reduce spacing if headings feel too far apart on mobile */
@media (max-width: 640px) {
  .report-content .report-h {
    margin: 12px 0 6px;
    font-size: 14px;
  }
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: #313638;
  color: #fdfcfb;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
  z-index: 20;
}

.report-disclaimer {
  margin-top: 24px;
  font-size: 12px;
  color: #777;
  line-height: 1.4;
}

/* Utility */
.hidden {
  display: none;
}

/* Mobile */
@media (max-width: 640px) {
  .page {
    margin-top: 18px;
  }
  .app-card {
    padding: 18px 12px 12px;
  }
  .question-text {
    font-size: 15px;
  }
}

.paywall-box {
  margin-top: 32px;
  padding: 20px;
  border-radius: 16px;
  background: #f6f5f9;
  text-align: center;
}

.paywall-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.paywall-text {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
}

.legal-footer{
  margin: 20px auto 28px;
  text-align: center;
  font-size: 12px;
  opacity: 0.8;
}
.legal-footer a{
  text-decoration: underline;
}
.legal-footer .dot{
  margin: 0 8px;
  opacity: 0.6;
}
