:root {
  --forest:      #166534;
  --forest-mid:  #15803d;
  --forest-dark: #0a2918;
  --forest-deep: #061910;
  --accent:      #86efac;
  --cream:       #f7faf7;
  --ink:         #111c16;
  --muted:       #4b6056;
  --border:      #d4e4d9;
  --white:       #ffffff;
}

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

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

body {
  font-family: "Outfit", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

button, a { font: inherit; }

/* ── Shell ─────────────────────────────────────────── */
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(320px, 42%);
}

/* ── Quiz panel (left) ──────────────────────────────── */
.quiz-panel {
  position: relative;
  min-height: 100vh;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

/* Header */
.quiz-header {
  padding: 4px clamp(24px, 5vw, 72px) 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}

.logo-lockup img {
  height: clamp(130px, 21vh, 210px);
  width: auto;
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-left: 12px;
  border-left: 1px solid #c8d9ce;
}

.brand-copy strong {
  color: var(--forest-dark);
  font-size: clamp(13px, 1.5vw, 18px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.12;
  white-space: nowrap;
}

.brand-copy span {
  margin-top: 3px;
  color: #93312b;
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lang-pill {
  flex-shrink: 0;
  padding: 7px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.lang-pill:hover { background: var(--forest-dark); }

/* Progress */
.progress-wrap {
  padding: 8px clamp(24px, 5vw, 72px) 0;
}

.progress-bar-track {
  height: 3px;
  background: #e4ede7;
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--forest);
  border-radius: 99px;
  transition: width 300ms ease;
  width: 0%;
}

.progress-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Quiz body */
.quiz-body {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 12px clamp(24px, 5vw, 72px);
  overflow-y: auto;
}

.slides {
  width: 100%;
  max-width: 620px;
}

.slide { display: none; animation: rise 220ms ease-out; }
.slide.is-active { display: block; }

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

/* Intro slide */
.slide-intro h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.slide-intro .intro-sub {
  margin: 0 0 36px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
  line-height: 1.6;
  max-width: 480px;
}

/* Question slides */
.slide-question h2 {
  margin: 0 0 16px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.slide-question .q-sub {
  margin: -16px 0 24px;
  font-size: 14px;
  color: var(--muted);
}

/* Option buttons */
.options {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-width: 560px;
}

.options.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.opt-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms, background 140ms, transform 140ms;
}

.opt-btn::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  transition: border-color 140ms, background 140ms;
}

.opt-btn:hover {
  border-color: var(--forest);
  background: #f0faf3;
  transform: translateX(3px);
}

.opt-btn:hover::before {
  border-color: var(--forest);
  background: var(--forest);
}

.two-col .opt-btn {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.two-col .opt-btn::before { display: none; }

/* Back button */
.back-btn {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.back-btn:hover { color: var(--forest); }

/* Primary button */
.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 0;
  border-radius: 10px;
  background: var(--forest);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms, transform 160ms;
}

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

.primary-btn.dark {
  margin-top: 10px;
  background: var(--ink);
}

.primary-btn.dark:hover { background: #2d2d2d; }

/* Result slide */
.slide-result {
  text-align: center;
  max-width: 560px;
}

.result-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #14532d;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.result-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}

.result-score .num {
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 700;
  line-height: 1;
  color: var(--forest);
}

.result-score .unit {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 500;
  color: var(--muted);
}

.result-desc {
  margin: 0 auto 16px;
  max-width: 480px;
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.6;
  color: var(--muted);
}

/* Score bar */
.score-bar-wrap {
  width: 100%;
  max-width: 420px;
  margin: 4px auto 20px;
}

.score-bar-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(to right, #2d7a3a, #d97706, #dc2626);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}

.score-bar-needle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid currentColor;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.score-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Share row */
.share-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.share-btn {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 140ms, background 140ms;
}

.share-btn:hover {
  border-color: var(--forest);
  background: #f0faf3;
}

/* Footer (logo bar) */
.quiz-footer {
  padding: 8px clamp(24px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-top: 1px solid #edf2ee;
  background: var(--white);
}

.footer-lockup {
  gap: 12px;
}

.footer-lockup img {
  height: 36px;
  max-width: 140px;
  object-fit: contain;
}

.footer-lockup .vdivider {
  width: 1px;
  height: 32px;
  background: #c8d9ce;
  flex-shrink: 0;
}

.footer-lockup .dept {
  color: #93312b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.made-with {
  margin: 0;
  color: var(--muted);
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

.heart-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45em;
  height: 1.45em;
  color: #c1121f;
  font-size: 1.1em;
  line-height: 1;
  cursor: default;
  vertical-align: -0.12em;
  transition: transform 140ms ease, color 140ms ease;
}

.heart-wrap:hover,
.heart-wrap:focus {
  color: #e11d48;
  outline: none;
  transform: translateY(-1px) scale(1.08);
}

.heart-wrap::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(3px);
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--forest-dark);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 140ms ease, transform 140ms ease;
}

.heart-wrap:hover::after,
.heart-wrap:focus::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Info panel (right) ─────────────────────────────── */
.info-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--forest-dark);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.info-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.018) 40px,
    rgba(255,255,255,0.018) 41px
  );
  pointer-events: none;
}

.info-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 48px clamp(24px, 4vw, 52px) 24px;
  color: rgba(255,255,255,0.88);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.info-scroll::-webkit-scrollbar { width: 4px; }
.info-scroll::-webkit-scrollbar-track { background: transparent; }
.info-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

.info-label {
  display: inline-block;
  margin-bottom: 32px;
  padding: 5px 12px;
  border: 1px solid rgba(134,239,172,0.35);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.info-scroll h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}

.info-scroll h3:not(:first-of-type) { margin-top: 32px; }

.info-scroll p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.75;
}

.info-tip-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-tip-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.info-tip-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.info-divider {
  width: 40px;
  height: 2px;
  background: rgba(134,239,172,0.3);
  margin: 28px 0;
  border: 0;
}

/* Bottom links */
.info-footer {
  padding: 16px clamp(24px, 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  gap: 6px;
  font-size: 13px;
}

.lang-switch a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-weight: 600;
}

.lang-switch a:hover { color: var(--white); }
.lang-switch span { color: rgba(255,255,255,0.25); }

.page-links {
  display: flex;
  gap: 10px;
}

.page-links a {
  padding: 5px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: border-color 140ms, color 140ms;
}

.page-links a:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .quiz-panel {
    min-height: 100svh;
  }

  .info-panel {
    position: static;
    height: auto;
    min-height: 520px;
  }

  .info-scroll {
    padding: 36px 24px 20px;
  }

  .info-footer {
    padding: 14px 24px;
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .quiz-header {
    padding: 18px 20px 0;
  }
  .progress-wrap { padding: 16px 20px 0; }
  .quiz-body { padding: 24px 20px; }
  .quiz-footer {
    padding: 14px 18px;
    gap: 8px;
  }

  .quiz-header .logo-lockup {
    max-width: 100%;
  }

  .quiz-header .logo-lockup img { height: 96px; }
  .lang-pill {
    padding: 7px 12px;
    font-size: 12px;
  }
  .footer-lockup img { height: 30px; }
  .footer-lockup .vdivider { height: 28px; }
  .footer-lockup .dept { font-size: 9px; }

  .made-with {
    max-width: 330px;
    font-size: 11px;
  }
  .brand-copy {
    padding-left: 9px;
  }

  .brand-copy strong {
    font-size: 11px;
    letter-spacing: 0.04em;
    white-space: normal;
  }

  .brand-copy span {
    font-size: 9px;
  }

  .options.two-col {
    grid-template-columns: 1fr;
  }

  .slide-intro h1 { font-size: clamp(28px, 9vw, 36px); }

  .result-score .num { font-size: clamp(56px, 16vw, 80px); }

  .info-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
