/* ─── Reset & Base ───────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold: #CFB87C;
  --black: #000000;
  --white: #FFFFFF;
  --gold-dark: #b8a060;
  --transition: 300ms ease;
}

html, body {
  min-height: 100%;
  background: var(--black);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ─── Layout ─────────────────────────────────────────── */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#main-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 1rem 3rem;
}

/* ─── Header ─────────────────────────────────────────── */
#quiz-header {
  width: 100%;
  padding: 1.25rem 1.5rem 0;
}

#quiz-header.hidden {
  display: none;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 0.2rem;
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-transform: uppercase;
}

.tagline {
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.03em;
}

.progress-bar-wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gold);
  border-radius: 4px;
  transition: width 0.4s ease;
  width: 0%;
}

.step-label {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

/* ─── Screens ────────────────────────────────────────── */
.screen {
  width: 100%;
  max-width: 640px;
  animation: fadeIn var(--transition) both;
}

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

/* ─── Intro / Start Screen ───────────────────────────── */
.intro-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  gap: 1.25rem;
}

.intro-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.intro-tagline {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
  margin-top: -0.75rem;
}

.intro-headline {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
}

.intro-headline span {
  color: var(--gold);
}

.intro-sub {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  max-width: 440px;
}

.intro-meta {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.btn-start {
  width: 100%;
  max-width: 380px;
  padding: 1rem 2rem;
  background: var(--gold);
  color: var(--black);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition);
}

.btn-start:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.btn-start:active {
  transform: translateY(0);
}

/* ─── Question Screen ────────────────────────────────── */
.question-screen {
  padding: 1.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.question-text {
  font-size: clamp(1.05rem, 3.5vw, 1.3rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
  padding: 0 0.25rem;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.option-btn {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: var(--black);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  border: 1.5px solid var(--gold);
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.4;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.option-btn:hover {
  background: rgba(207,184,124,0.12);
}

.option-btn.selected {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.nav-row {
  display: flex;
  justify-content: flex-end;
  padding: 0 0.25rem;
}

.btn-next {
  padding: 0.75rem 2rem;
  background: var(--gold);
  color: var(--black);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), background var(--transition), transform var(--transition);
}

.btn-next.visible {
  opacity: 1;
  pointer-events: auto;
}

.btn-next:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.btn-next:active {
  transform: translateY(0);
}

/* ─── Result Screen ──────────────────────────────────── */
.result-screen {
  padding: 2rem 0.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.result-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.result-headline {
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
}

.result-accent-line {
  width: 3.5rem;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.result-subhead {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
}

.result-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.result-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}

.result-bullets li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23CFB87C'/%3E%3Cpath d='M4.5 8.5l2.5 2.5 4.5-5' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.result-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.btn-primary-cta {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--gold);
  color: var(--black);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary-cta:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.btn-secondary-cta {
  display: block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: transparent;
  color: var(--gold);
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid var(--gold);
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-secondary-cta:hover {
  background: rgba(207,184,124,0.1);
  transform: translateY(-1px);
}

.result-restart {
  text-align: center;
}

.btn-restart {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color var(--transition);
}

.btn-restart:hover {
  color: rgba(255,255,255,0.6);
}

/* ─── Provider Credit ────────────────────────────────── */
.result-provider {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  text-align: center;
  padding-top: 0.5rem;
  letter-spacing: 0.03em;
}

/* ─── Utility ────────────────────────────────────────── */
.hidden { display: none !important; }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 400px) {
  .intro-screen { padding: 2rem 1rem 1.5rem; }
  .question-text { font-size: 1rem; }
  .option-btn { font-size: 0.88rem; padding: 0.85rem 1rem; }
}
