/* ===========================
   Rice Purity Test — Global Styles
   =========================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800&display=swap');

/* --- CSS Variables (Design Tokens) --- */
:root {
  /* Colors */
  --color-bg: #fdf6e2;
  --color-bg-card: #ffffff;
  --color-bg-quiz: #fffdf5;
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #555555;
  --color-text-muted: #888888;
  --color-accent: #e07c24;
  --color-accent-hover: #c96a18;
  --color-accent-light: #ffecd2;
  --color-border: #e8e0d0;
  --color-border-light: #f0e8d8;

  /* Score Range Colors */
  --color-score-high: #2ecc71;
  --color-score-mid-high: #a8d648;
  --color-score-mid: #f1c40f;
  --color-score-mid-low: #e67e22;
  --color-score-low: #e74c3c;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Sizing */
  --max-width: 800px;
  --max-width-wide: 1100px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-accent-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-text-primary);
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--wide {
  max-width: var(--max-width-wide);
}

.section {
  padding: var(--space-2xl) 0;
}

.quiz-section,
.score-meaning,
.how-to,
.what-is,
.faq {
  scroll-margin-top: 96px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===========================
   Top Navigation
   =========================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 246, 226, 0.96);
  border-bottom: 1px solid rgba(232, 224, 208, 0.85);
  backdrop-filter: blur(8px);
}

.top-nav__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.top-nav__brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  white-space: nowrap;
}

.top-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  overflow-x: auto;
  scrollbar-width: none;
}

.top-nav__links::-webkit-scrollbar {
  display: none;
}

.top-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  color: var(--color-text-primary);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.top-nav__link:hover {
  color: var(--color-accent);
}

.top-nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transform: translateX(-50%);
  transition: width var(--transition-fast);
}

.top-nav__link:hover::after,
.top-nav__link:focus-visible::after {
  width: 100%;
}

.top-nav__link:focus-visible {
  outline: none;
  color: var(--color-accent);
}

/* ===========================
   Breadcrumb
   =========================== */
.breadcrumb {
  margin-bottom: var(--space-md);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: var(--space-xs);
  color: var(--color-text-muted);
}

.breadcrumb__item[aria-current="page"] {
  color: var(--color-text-secondary);
  font-weight: 600;
}

/* ===========================
   1. HERO SECTION
   =========================== */
.hero {
  padding: var(--space-xl) 0 var(--space-2xl);
  text-align: center;
  background-color: var(--color-bg);
}

.hero__banner {
  margin: 0 auto var(--space-lg);
  max-width: 880px;
}

.hero__banner-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero__title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===========================
   2. QUIZ SECTION
   =========================== */
.quiz-section {
  padding: var(--space-xl) 0;
}

.quiz-section.is-complete {
  display: none;
}

.quiz-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg) var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quiz-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-score-high));
}

/* Progress Bar */
.quiz-progress {
  margin-bottom: var(--space-md);
}

.quiz-progress__label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.quiz-progress__bar {
  width: 100%;
  height: 8px;
  background: var(--color-border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.quiz-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), #f7a541);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
  width: 0%;
}

/* Question */
.quiz-question__number {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quiz-question__text {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
  min-height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Answer Buttons */
.quiz-answers {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

.quiz-btn {
  flex: 1;
  max-width: 180px;
  padding: 14px 32px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.quiz-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

.quiz-btn--yes:hover {
  background: #fff5ec;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.quiz-btn--no:hover {
  background: #f0f7f0;
  border-color: var(--color-score-high);
  color: var(--color-score-high);
}

/* Answer Stats */
.quiz-selected {
  display: none;
  margin-top: var(--space-md);
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.quiz-selected__item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.quiz-selected__count {
  color: var(--color-accent);
  font-weight: 700;
}

.quiz-selected__count--muted {
  color: var(--color-text);
}

/* Submit Button */
.quiz-submit {
  display: none;
  margin-top: var(--space-lg);
}

.quiz-submit.is-visible {
  display: block;
}

.btn-primary {
  display: inline-block;
  padding: 16px 48px;
  background: linear-gradient(135deg, var(--color-accent), #f7a541);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(224, 124, 36, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(224, 124, 36, 0.4);
}

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

/* ===========================
   3. RESULT SECTION
   =========================== */
.result {
  display: none;
  text-align: center;
  padding: var(--space-lg) 0;
}

.result.is-visible {
  display: block;
}

.result-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-score-low), var(--color-score-mid-low), var(--color-score-mid), var(--color-score-mid-high), var(--color-score-high));
}

.result__label {
  font-size: 1rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.result__score {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.result__score span {
  font-size: 2rem;
  color: var(--color-text-muted);
}

/* Score Gauge */
.gauge {
  margin: var(--space-lg) 0;
  position: relative;
}

.gauge__bar {
  width: 100%;
  height: 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg,
    var(--color-score-low) 0%,
    var(--color-score-mid-low) 30%,
    var(--color-score-mid) 50%,
    var(--color-score-mid-high) 70%,
    var(--color-score-high) 100%
  );
  position: relative;
}

.gauge__pointer {
  position: absolute;
  top: -8px;
  width: 32px;
  height: 32px;
  background: var(--color-bg-card);
  border: 3px solid var(--color-text-primary);
  border-radius: 50%;
  transform: translateX(-50%);
  transition: left 2s cubic-bezier(0.34, 1.56, 0.64, 1);
  left: 0%;
  box-shadow: var(--shadow-sm);
}

.gauge__labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xs);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.gauge__average {
  position: absolute;
  top: -30px;
  left: 61%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: var(--color-bg-card);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
  white-space: nowrap;
}

.gauge__average::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--color-border-light);
}

/* Result Message */
.result__message {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-md);
  line-height: 1.7;
  font-style: italic;
}

.result__cta {
  margin-top: var(--space-lg);
}

.btn-secondary {
  display: inline-block;
  padding: 12px 36px;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ===========================
   4. SCORE MEANING SECTION
   =========================== */
.score-meaning {
  padding: var(--space-2xl) 0;
  background: var(--color-bg);
}

.score-meaning__title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-sm);
}

.score-meaning__desc {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
}

.score-cards {
  display: grid;
  gap: var(--space-md);
}

.score-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-sm);
  border-left: 5px solid;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.score-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.score-card--high { border-left-color: var(--color-score-high); }
.score-card--mid-high { border-left-color: var(--color-score-mid-high); }
.score-card--mid { border-left-color: var(--color-score-mid); }
.score-card--mid-low { border-left-color: var(--color-score-mid-low); }
.score-card--low { border-left-color: var(--color-score-low); }

.score-card__range {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.score-card--high .score-card__range { color: var(--color-score-high); }
.score-card--mid-high .score-card__range { color: var(--color-score-mid-high); }
.score-card--mid .score-card__range { color: var(--color-score-mid); }
.score-card--mid-low .score-card__range { color: var(--color-score-mid-low); }
.score-card--low .score-card__range { color: var(--color-score-low); }

.score-card__text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===========================
   5. HOW TO USE SECTION
   =========================== */
.how-to {
  padding: var(--space-2xl) 0;
  background: linear-gradient(180deg, #fdf6e2, #fff9ed);
}

.how-to__title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-sm);
}

.how-to__desc {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
}

.how-to__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.how-to-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.how-to-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.how-to-card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
}

.how-to-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.how-to-card__text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

/* ===========================
   6. WHAT IS SECTION
   =========================== */
.what-is {
  padding: var(--space-2xl) 0;
  background: linear-gradient(180deg, #fdf6e2, #faf0d4);
}

.what-is__title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-lg);
}

.what-is__content {
  max-width: 700px;
  margin: 0 auto;
}

.what-is__content p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.what-is__list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.what-is__list li {
  padding: var(--space-xs) 0;
  padding-left: var(--space-md);
  position: relative;
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.what-is__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.what-is__list li strong {
  color: var(--color-text-primary);
}

/* ===========================
   7. FAQ SECTION
   =========================== */
.faq {
  padding: var(--space-2xl) 0;
  background: var(--color-bg);
}

.faq__title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border-light);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-md) 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-primary);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-question__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal), background var(--transition-fast);
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 700;
}

.faq-item.is-open .faq-question__icon {
  transform: rotate(45deg);
  background: var(--color-accent);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-md);
}

.faq-answer p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* ===========================
   7. FOOTER
   =========================== */
.footer {
  background: var(--color-text-primary);
  color: #ccc;
  padding: var(--space-lg) 0;
  text-align: center;
}

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  margin-bottom: var(--space-sm);
  list-style: none;
}

.footer__links a {
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: #fff;
}

.footer__copy {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: var(--space-xs);
}

.footer__disclaimer {
  font-size: 0.75rem;
  color: #666;
  font-style: italic;
}

/* ===========================
   8. AD PLACEHOLDERS
   =========================== */
.ad-slot {
  max-width: var(--max-width);
  margin: var(--space-lg) auto;
  padding: var(--space-md);
  text-align: center;
  min-height: 90px;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Question transition */
.quiz-question--exit {
  animation: fadeOutLeft 0.25s ease forwards;
}

.quiz-question--enter {
  animation: fadeInRight 0.3s ease forwards;
}

@keyframes fadeOutLeft {
  to {
    opacity: 0;
    transform: translateX(-30px);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===========================
   RESPONSIVE — TABLET
   =========================== */
@media (max-width: 768px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }

  .top-nav__inner {
    min-height: 64px;
    gap: var(--space-sm);
  }

  .top-nav__brand {
    font-size: 1rem;
  }

  .top-nav__link {
    padding: 8px 0;
    font-size: 0.92rem;
  }

  .hero__banner {
    margin-bottom: var(--space-md);
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .quiz-card {
    padding: var(--space-md);
    margin: 0 var(--space-sm);
  }

  .quiz-question__text {
    font-size: 1.15rem;
  }

  .result__score {
    font-size: 4rem;
  }

  .result-card {
    padding: var(--space-lg);
    margin: 0 var(--space-sm);
  }

  .score-meaning__title,
  .how-to__title,
  .what-is__title,
  .faq__title {
    font-size: 1.7rem;
  }

  .score-card {
    padding: var(--space-sm) var(--space-md);
  }

  .how-to-card {
    padding: var(--space-sm) var(--space-md);
  }
}

/* ===========================
   RESPONSIVE — MOBILE
   =========================== */
@media (max-width: 480px) {
  :root {
    --space-xl: 2rem;
    --space-2xl: 3rem;
  }

  .top-nav__inner {
    min-height: 60px;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }

  .top-nav__brand {
    text-align: center;
  }

  .top-nav__links {
    width: 100%;
    padding-bottom: 2px;
    gap: var(--space-sm);
  }

  html {
    font-size: 15px;
  }

  .hero {
    padding: var(--space-lg) 0 var(--space-xl);
  }

  .hero__banner {
    margin-bottom: var(--space-sm);
  }

  .hero__title {
    font-size: 1.65rem;
    padding: 0 var(--space-xs);
  }

  .hero__subtitle {
    font-size: 0.95rem;
    padding: 0 var(--space-xs);
  }

  .quiz-card {
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-sm);
  }

  .quiz-answers {
    flex-direction: column;
    align-items: center;
  }

  .quiz-btn {
    max-width: 100%;
    width: 100%;
  }

  .quiz-question__text {
    font-size: 1.1rem;
    min-height: 2.5em;
  }

  .result__score {
    font-size: 3.5rem;
  }

  .gauge__average {
    font-size: 0.7rem;
  }

  .score-meaning__title,
  .how-to__title,
  .what-is__title,
  .faq__title {
    font-size: 1.5rem;
  }

  .how-to__grid {
    grid-template-columns: 1fr;
  }

  .footer__links {
    flex-direction: column;
    gap: var(--space-xs);
  }
}
