/* ==========================================================================
   Vigor Boost Quiz — stylesheet
   Edit color tokens in :root to re-theme the whole quiz.
   ========================================================================== */

:root{
  --color-bg: #0b0b0d;
  --color-bg-alt: #141416;
  --color-surface: #1c1c1f;
  --color-surface-hover: #262629;
  --color-border: #37282a;
  --color-text: #f5f2f0;
  --color-text-muted: #a8a09e;
  --color-accent: #e2202f;
  --color-accent-hover: #f2303f;
  --color-accent-text: #ffffff;
  --color-success: #35d074;
  --color-focus-ring: #ffffff;
  --radius-md: 12px;
  --radius-lg: 18px;
  --max-width: 560px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*{ box-sizing: border-box; }

html{ -webkit-text-size-adjust: 100%; }

body{
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  line-height: 1.45;
  display: flex;
  flex-direction: column;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: var(--color-accent-text);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus{ left: 0; }

img{ max-width: 100%; display: block; }

button{
  font-family: inherit;
  cursor: pointer;
}

a{ color: var(--color-focus-ring); }

/* Focus visibility everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible{
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header{
  padding: 14px 16px 10px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}
.logo{
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-mark{
  width: 26px;
  height: 26px;
  fill: var(--color-accent);
}
.logo-word{
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.03em;
  font-size: 19px;
  color: var(--color-text);
  transform: skewX(-4deg);
  display: inline-block;
}
.logo-word-accent{
  color: var(--color-accent);
  text-shadow: 0 0 14px rgba(226,32,47,0.55);
}

/* ---------- Progress bar ---------- */
.progress-track{
  height: 5px;
  background: var(--color-bg-alt);
  width: 100%;
}
.progress-fill{
  height: 100%;
  background: var(--color-accent);
  transition: width 0.35s ease;
}
@media (prefers-reduced-motion: reduce){
  .progress-fill{ transition: none; }
}

/* ---------- Main / screen ---------- */
.quiz-main{
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 24px 16px 40px;
}
.screen{
  width: 100%;
  max-width: var(--max-width);
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn{
  from{ opacity: 0; transform: translateY(6px); }
  to{ opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce){
  .screen{ animation: none; }
}

.eyebrow{
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 10px;
  text-align: center;
}
.question-title{
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 8px;
  text-align: center;
  font-weight: 800;
}
.question-sub{
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 22px;
}

/* ---------- Option list ---------- */
.options-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.option-btn{
  width: 100%;
  text-align: left;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.option-btn:hover{ background: var(--color-surface-hover); }
.option-btn:active{ transform: scale(0.99); }
.option-btn[aria-checked="true"],
.option-btn.is-selected{
  border-color: var(--color-accent);
  background: var(--color-surface-hover);
  box-shadow: inset 0 0 0 1px var(--color-accent);
}
.option-icon{
  width: 28px;
  height: 28px;
  flex: none;
  fill: var(--color-accent);
}
.option-check{
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.option-btn[aria-checked="true"] .option-check,
.option-btn.is-selected .option-check{
  border-color: var(--color-accent);
  background: var(--color-accent);
}
.option-btn[aria-checked="true"] .option-check::after,
.option-btn.is-selected .option-check::after{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-text);
}
[role="checkbox"] .option-check{ border-radius: 5px; }
[role="checkbox"] .option-check::after{ border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.btn-primary{
  background: var(--color-accent);
  color: var(--color-accent-text);
}
.btn-primary:hover{ background: var(--color-accent-hover); }
.btn-primary:disabled{
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-ghost{
  background: transparent;
  color: var(--color-text-muted);
  text-transform: none;
  font-weight: 500;
  letter-spacing: normal;
  font-size: 14px;
  text-decoration: underline;
}
.btn-row{
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Inputs (height / weight) ---------- */
.unit-toggle{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.unit-toggle button{
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}
.unit-toggle button.is-active{
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-text);
}
.input-row{
  display: flex;
  gap: 12px;
  justify-content: center;
}
.input-field{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.input-field label{
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.input-field input{
  width: 120px;
  text-align: center;
  font-size: 22px;
  padding: 14px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}
.input-field input:focus-visible{
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
}

/* ---------- Date field ---------- */
.date-field{
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.date-field input{
  font-size: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  width: 100%;
  max-width: 260px;
}

/* ---------- Loading screens ---------- */
.loading-wrap{
  text-align: center;
  padding: 20px 0;
}
.loading-spinner{
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 5px solid var(--color-border);
  border-top-color: var(--color-accent);
  animation: spin 0.9s linear infinite;
}
@media (prefers-reduced-motion: reduce){
  .loading-spinner{ animation: spin 2.4s linear infinite; }
}
@keyframes spin{ to{ transform: rotate(360deg); } }
.loading-title{
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
}
.loading-sub{
  color: var(--color-text-muted);
  font-size: 14px;
  margin: 0 0 26px;
}
.loading-steps{
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 320px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.loading-steps li{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: 14px;
  opacity: 0.5;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.loading-steps li.is-done{
  opacity: 1;
  color: var(--color-text);
}
.loading-steps li .dot{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  flex: none;
}
.loading-steps li.is-done .dot{
  background: var(--color-success);
  border-color: var(--color-success);
}

/* ---------- Interstitial ---------- */
.interstitial-card{
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 18px;
}
.interstitial-card p{ margin: 0 0 10px; }
.testimonial-card{
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--color-border);
}
.testimonial-quote{
  margin: 0 0 8px;
  font-style: italic;
}
.testimonial-attr{
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-text-muted);
}
.results-disclaimer{
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  margin: 10px 0 0;
}

/* ---------- Notice / intro ---------- */
.notice-card{
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--color-text-muted);
}
.notice-card strong{ color: var(--color-text); }

/* ---------- Results screen ---------- */
.profile-header{
  text-align: center;
  margin-bottom: 22px;
}
.axis-card{
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.axis-card-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.axis-name{ font-weight: 700; font-size: 15px; }
.axis-band{
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  color: var(--color-accent);
}
.axis-meter{
  display: flex;
  gap: 6px;
}
.axis-meter-seg{
  height: 8px;
  flex: 1;
  border-radius: 4px;
  background: var(--color-border);
}
.axis-meter-seg.is-filled{ background: var(--color-accent); }
.axis-note{
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---------- Plan / timeline ---------- */
.timeline{
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  border-left: 2px solid var(--color-border);
}
.timeline li{
  position: relative;
  padding: 0 0 22px 22px;
}
.timeline li::before{
  content: "";
  position: absolute;
  left: -7px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
}
.timeline-label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}
.timeline-text{ margin: 0; font-size: 14px; }

.profile-summary{
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  font-size: 13px;
}
.profile-summary dt{ color: var(--color-text-muted); }
.profile-summary dd{ margin: 2px 0 0; font-weight: 700; }

/* ---------- Offer screen ---------- */
.offer-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: var(--color-accent-text);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 999px;
  margin: 0 auto 18px;
}
.offer-product-img{
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto 18px;
  display: block;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.offer-benefits{
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.offer-benefits li{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 12px 14px;
  border-radius: var(--radius-md);
}
.offer-benefits svg{
  width: 20px;
  height: 20px;
  flex: none;
  fill: var(--color-success);
  margin-top: 1px;
}
.price-row{
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 4px;
}
.price-old{
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-size: 18px;
}
.price-new{
  font-size: 34px;
  font-weight: 800;
  color: var(--color-accent);
}
.price-note{
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0 0 18px;
}
.guarantee-row{
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 14px;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer{
  padding: 18px 16px 28px;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}
.fda-disclaimer{
  max-width: 720px;
  margin: 0 auto 12px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-text-muted);
  text-align: center;
}
.legal-links{
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}
.legal-links a{ color: var(--color-text-muted); text-decoration: underline; }

/* ---------- Utility ---------- */
.visually-hidden{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (min-width: 480px){
  .question-title{ font-size: 27px; }
}
