/* ==========================================================================
   GALA GLP-1 · ULTRA-MINIMAL, HIGH-CTR QUIZ BRIDGE
   Clean, Modern, Zero-Fluff Design (Optimized for Mobile & 35+)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --color-brand: #0f3d32;
  --color-brand-hover: #092c24;
  --color-brand-soft: #edf6f3;
  
  --color-accent: #e06841;
  --color-accent-hover: #cb5631;
  --color-accent-glow: rgba(224, 104, 65, 0.22);
  
  --color-bg-base: #f9f8f6;
  --color-bg-surface: #ffffff;
  --color-bg-track: #e8e5de;
  
  --color-text-main: #141f1c;
  --color-text-muted: #5b6864;
  --color-text-subtle: #8c9794;
  
  --color-border: #e2ded5;
  --color-border-hover: #0f3d32;
  
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --radius-card: 20px;
  --radius-btn: 12px;
  --radius-pill: 9999px;
  
  --shadow-card: 0 12px 32px -4px rgba(15, 61, 50, 0.06), 0 4px 12px -2px rgba(15, 61, 50, 0.02);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 16px 16px;
}

/* App Shell Container */
.app-shell {
  width: 100%;
  max-width: 440px;
  margin: auto;
}

/* Minimal Top Brand Badge */
.brand-masthead {
  text-align: center;
  margin-bottom: 20px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.brand-badge-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
}

.brand-badge-text {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-brand);
}

/* Main Card */
.quiz-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

@media (max-width: 480px) {
  .quiz-card {
    padding: 26px 18px;
    border-radius: 16px;
  }
}

/* Step Indicator & Progress */
.step-meta-row {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.step-indicator {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-subtle);
  letter-spacing: 0.04em;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: var(--color-bg-track);
  border-radius: 999px;
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 50%;
  background: var(--color-brand);
  border-radius: 999px;
  transition: width 0.35s ease;
}

/* Question Title */
.quiz-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-main);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

@media (max-width: 480px) {
  .quiz-title {
    font-size: 1.28rem;
    margin-bottom: 18px;
  }
}

/* Steps Display */
.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

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

/* Options Group */
.options-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Ultra-Clean Option Button */
.option-card {
  width: 100%;
  min-height: 58px;
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-btn);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.option-card:hover {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
  transform: translateY(-1px);
}

.option-card:active, .option-card.selected {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
  transform: translateY(0);
}

.option-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.arrow-indicator {
  font-size: 1.25rem;
  color: var(--color-text-subtle);
  transition: transform 0.15s ease, color 0.15s ease;
}

.option-card:hover .arrow-indicator,
.option-card.selected .arrow-indicator {
  color: var(--color-brand);
  transform: translateX(3px);
}

.option-card.subtle-option .arrow-indicator {
  font-size: 1.1rem;
}

/* Verification & Redirect Screen */
.verification-view {
  padding: 12px 0;
  text-align: center;
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 3.5px solid var(--color-brand-soft);
  border-top-color: var(--color-brand);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.75s linear infinite;
}

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

.verification-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-brand);
  margin-bottom: 6px;
}

.verification-sub {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 22px;
}

/* Direct Action Button (#cta-btn) */
.btn-cta-luxury {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: 0 6px 16px var(--color-accent-glow);
  transition: all 0.2s ease;
}

.btn-cta-luxury:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* Ineligible Notice */
.ineligible-panel {
  padding: 18px;
  background: #fdfaf6;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  color: #9a3412;
}

.btn-restart {
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

/* Clean Footer */
.app-footer {
  text-align: center;
  padding: 24px 0 12px;
  font-size: 0.75rem;
  color: var(--color-text-subtle);
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.footer-legal-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
}

.footer-legal-links a:hover {
  text-decoration: underline;
  color: var(--color-brand);
}

.footer-statutory-notice {
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.4;
  color: #9ba6a2;
}

/* ==========================================================================
   Legal Pages (Privacy, Terms, Disclaimers) Design System
   ========================================================================== */

.legal-page-wrap {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 16px 8px 32px;
}

/* Minimal Top Nav for Legal Pages */
.legal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px 20px;
  margin-bottom: 8px;
}

.legal-nav-brand {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legal-nav-brand-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
}

.legal-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.legal-nav-back:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: var(--color-brand-soft);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Legal Content Card */
.legal-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 44px 40px;
  box-shadow: var(--shadow-card);
}

@media (max-width: 600px) {
  .legal-card {
    padding: 28px 20px;
    border-radius: 16px;
  }
}

/* Legal Header */
.legal-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.legal-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--color-brand);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .legal-title {
    font-size: 1.65rem;
  }
}

.legal-date {
  font-size: 0.84rem;
  color: var(--color-text-subtle);
  font-weight: 500;
}

/* Legal Prose Body */
.legal-body {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.legal-body p {
  margin-bottom: 18px;
}

.legal-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-top: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal-body h2:first-of-type {
  margin-top: 24px;
}

.legal-body ul, .legal-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.legal-body li {
  margin-bottom: 10px;
  line-height: 1.65;
}

.legal-body strong {
  color: var(--color-text-main);
  font-weight: 700;
}

.legal-body code {
  background: #f1efe9;
  color: var(--color-brand);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-family: inherit;
}

.legal-body a {
  color: var(--color-brand);
  text-decoration: underline;
}

.legal-body a:hover {
  color: var(--color-accent);
}

/* Callout Box */
.legal-highlight-box {
  background: #fefcf9;
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--color-accent);
  padding: 16px 20px;
  border-radius: 8px;
  margin: 24px 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #7c2d12;
}

.legal-highlight-box strong {
  color: #9a3412;
}

