:root {
  --forest: #153d31;
  --forest-deep: #0d2c24;
  --forest-soft: #2d5c49;
  --olive: #8d9b58;
  --sage: #dbe2c8;
  --cream: #f7f3e8;
  --paper: #fffdf7;
  --gold: #c69b4d;
  --ink: #183029;
  --muted: #65736b;
  --line: #dce3d7;
  --shadow: 0 28px 70px rgba(22, 56, 43, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  padding: 0 clamp(20px, 5vw, 72px) 118px;
  color: white;
  background:
    radial-gradient(circle at 82% 28%, rgba(198, 155, 77, .18), transparent 29%),
    radial-gradient(circle at 13% 90%, rgba(141, 155, 88, .22), transparent 30%),
    linear-gradient(145deg, var(--forest-deep), var(--forest));
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before { width: 430px; height: 430px; right: -170px; top: 60px; }
.hero::after { width: 290px; height: 290px; right: -70px; top: 130px; }

.topbar {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  letter-spacing: .16em;
}

.brand-logo-image {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(198, 155, 77, .42);
  border-radius: 13px;
  background: #f8f5ee;
  box-shadow: 0 8px 20px rgba(0,0,0,.16);
}

.brand-url {
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: .08em;
}

.private-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  background: rgba(255,255,255,.05);
}

.private-badge span { width: 7px; height: 7px; border-radius: 50%; background: #a9c875; box-shadow: 0 0 0 4px rgba(169,200,117,.12); }

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 72px auto 0;
  text-align: center;
}

.hero-logo {
  width: 174px;
  height: 174px;
  margin: -22px auto 24px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(198, 155, 77, .45);
  border-radius: 24px;
  background: #f8f5ee;
  box-shadow: 0 22px 52px rgba(0, 0, 0, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.hero-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 58px rgba(0, 0, 0, .27);
}

.hero-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero h1,
.result-view h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.035em;
}

.hero h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.02; }

.hero-intro {
  max-width: 650px;
  margin: 24px auto 0;
  color: rgba(255,255,255,.76);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.hero-meta {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 28px;
  color: rgba(255,255,255,.66);
  font-size: 13px;
}

.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 17px; height: 17px; fill: none; stroke: #c9d7a3; stroke-width: 1.8; }

.quiz-shell {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 32px));
  margin: -74px auto 0;
}

.quiz-card {
  min-height: 530px;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid rgba(21, 61, 49, .08);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.progress-track {
  height: 5px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebdf;
}

.progress-track span { display: block; height: 100%; width: 25%; border-radius: inherit; background: linear-gradient(90deg, var(--olive), var(--gold)); transition: width .35s ease; }

.question-head {
  display: grid;
  grid-template-columns: 56px minmax(0,1fr);
  gap: 18px;
  align-items: start;
  margin: 34px 0 26px;
}

.question-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--forest);
  border-radius: 17px;
  background: #eaf0dc;
}

.question-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.55; }
.question-kicker { margin: 2px 0 5px; color: var(--olive); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.question-head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(27px, 5vw, 37px); font-weight: 500; line-height: 1.1; letter-spacing: -.025em; outline: none; }
.question-help { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.answer-options { display: grid; gap: 11px; }

.answer-option {
  width: 100%;
  min-height: 76px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: 43px minmax(0,1fr) 28px;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  text-align: left;
  background: #fffefb;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.answer-option:hover,
.answer-option:focus-visible { transform: translateY(-1px); border-color: #9eae77; box-shadow: 0 9px 24px rgba(21,61,49,.08); outline: none; }
.answer-option[aria-pressed="true"] { border-color: var(--forest-soft); background: #f0f3e7; }
.answer-option.is-selected { transform: scale(.992); }

.option-symbol {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--forest-soft);
  background: #f0f3e7;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
}

.option-copy strong, .option-copy small { display: block; }
.option-copy strong { font-size: 15px; }
.option-copy small { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.option-arrow { color: #9ca89d; font-size: 19px; transition: transform .16s ease; }
.answer-option:hover .option-arrow { transform: translateX(3px); color: var(--forest); }

.quiz-actions { min-height: 38px; margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.quiz-actions p { margin: 0; color: #8b968e; font-size: 11px; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.button:hover { transform: translateY(-1px); }
.button-quiet { min-height: 36px; padding: 0; color: var(--muted); background: transparent; }
.button-quiet:disabled { opacity: 0; pointer-events: none; }
.button-primary { color: white; background: var(--forest); box-shadow: 0 12px 25px rgba(21,61,49,.18); }
.button-primary:hover { background: var(--forest-deep); }
.button-secondary { color: var(--forest); border-color: #cad3c3; background: transparent; }
.button-secondary:hover { background: #f0f3e7; }

.result-view { text-align: center; }
.result-view[hidden], #quiz-view[hidden] { display: none; }

.result-celebration {
  width: 76px;
  height: 76px;
  margin: -4px auto 20px;
  display: grid;
  place-items: center;
  color: var(--forest);
  border: 1px solid #d5debf;
  border-radius: 50%;
  background: #edf2df;
}

.result-celebration svg { width: 58px; height: 58px; fill: none; stroke: currentColor; stroke-width: 1.25; }
.result-view h2 { color: var(--forest-deep); font-size: clamp(36px, 7vw, 52px); line-height: 1.05; }
.result-subtitle { max-width: 560px; margin: 14px auto 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.result-specs {
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

.result-specs div { padding: 17px 12px; }
.result-specs div + div { border-left: 1px solid var(--line); }
.result-specs span, .result-specs strong { display: block; }
.result-specs span { margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.result-specs strong { color: var(--forest); font-size: 16px; }

.match-panel { padding: 24px; border-radius: 17px; text-align: left; background: #f0f3e7; }
.match-panel h3 { margin: 0 0 17px; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.match-panel ul { margin: 0; padding: 0; display: grid; gap: 13px; list-style: none; }
.match-panel li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.match-panel li span { width: 22px; height: 22px; display: grid; place-items: center; margin-top: 1px; border-radius: 50%; color: white; background: var(--forest-soft); font-size: 11px; font-weight: 800; }
.match-panel li p { margin: 0; color: #4f6259; font-size: 13px; line-height: 1.6; }

.result-caveat { margin: 15px 0 0; padding: 13px 15px; border-left: 3px solid var(--gold); border-radius: 7px; color: #6b5731; text-align: left; background: #faf3df; font-size: 12px; line-height: 1.55; }
.result-actions { margin-top: 24px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; }
.data-note { margin: 20px 0 0; color: #8a958e; font-size: 10px; }

footer {
  width: min(760px, calc(100% - 32px));
  margin: 46px auto 0;
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(21,61,49,.14);
  color: #7a877f;
  font-size: 11px;
}

footer p { margin: 0; }
footer a { color: var(--forest); font-weight: 700; text-decoration: none; }

@media (max-width: 600px) {
  .hero { min-height: 470px; padding-inline: 18px; padding-bottom: 104px; }
  .topbar { min-height: 76px; }
  .brand-logo-image { width: 46px; height: 46px; border-radius: 11px; }
  .brand-url { font-size: 10px; letter-spacing: .035em; }
  .private-badge { padding: 7px 9px; font-size: 10px; }
  .hero-copy { margin-top: 58px; }
  .hero-logo { width: 140px; height: 140px; margin-top: -18px; margin-bottom: 22px; border-radius: 20px; }
  .hero h1 { font-size: 45px; }
  .hero-intro { font-size: 15px; }
  .hero-meta { gap: 10px 18px; font-size: 11px; }
  .quiz-shell { width: min(100% - 20px, 760px); margin-top: -64px; }
  .quiz-card { min-height: 510px; padding: 22px 18px; border-radius: 19px; }
  .question-head { grid-template-columns: 47px minmax(0,1fr); gap: 13px; margin: 29px 0 22px; }
  .question-icon { width: 47px; height: 47px; border-radius: 14px; }
  .question-icon svg { width: 27px; height: 27px; }
  .question-head h2 { font-size: 28px; }
  .question-help { font-size: 13px; }
  .answer-option { min-height: 72px; grid-template-columns: 39px minmax(0,1fr) 22px; gap: 11px; padding: 11px 12px; }
  .option-symbol { width: 39px; height: 39px; }
  .option-copy strong { font-size: 14px; }
  .option-copy small { font-size: 11px; }
  .quiz-actions p { display: none; }
  .result-specs { margin: 24px 0; }
  .result-specs div { padding: 14px 6px; }
  .result-specs strong { font-size: 14px; }
  .match-panel { padding: 19px 16px; }
  .result-actions { grid-template-columns: 1fr; }
  footer { display: block; text-align: center; }
  footer p + p { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
