:root {
  color-scheme: dark;
  font: 100%/1.5 "Segoe UI", Arial, sans-serif;
  --background: #121213;
  --surface: #1b1b1d;
  --option: #242425;
  --border: #3d3b3d;
  --text: #f7f5f0;
  --muted: #c1bdb8;
  --gold: #f6bd49;
  --on-gold: #211600;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse at 12% 0%, #211c16 0%, transparent 47%), var(--background);
}

h1, h2, h3, p { margin: 0; }

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

button, input { font: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.site-header, .layout {
  width: min(73rem, calc(100% - 4rem));
  margin-inline: auto;
}

.site-header {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: .75rem; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border: 1px solid #a77e36;
  border-radius: .45rem;
  background: #2d2416;
  color: var(--gold);
  font-weight: 850;
  font-size: 1.35rem;
  letter-spacing: -.075em;
  padding-right: .09em;
}

.brand-name { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name strong { font-weight: 850; font-size: 1.05rem; letter-spacing: .035em; }
.brand-name strong span { color: var(--gold); }
.brand-name > span { margin-top: .18rem; color: var(--muted); font-size: .875rem; }
.header-label { color: var(--muted); font-size: .875rem; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
}

.intro, .panel { border: 1px solid var(--border); border-radius: 1.15rem; }

.intro {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  background: #3b3227;
  overflow: hidden;
}

.intro-photo, .intro-photo img, .intro::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-photo { z-index: -2; }
.intro-photo img { object-fit: cover; object-position: 49% 38%; }

.intro::after {
  content: "";
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 10, 9, .04) 25%, rgba(12, 10, 9, .42) 52%, rgba(12, 10, 9, .88) 80%, #100d0a 100%);
}

.intro-copy { padding: clamp(1.65rem, 4vw, 3.2rem); }

.intro h1 {
  max-width: 11.5ch;
  font-size: clamp(2.65rem, 5vw, 4.2rem);
  letter-spacing: -.06em;
  line-height: .98;
  font-weight: 850;
  text-wrap: balance;
}

.intro em { display: block; color: var(--gold); font-style: normal; }

.intro p {
  max-width: 27ch;
  margin-top: 1.1rem;
  color: #e3dfd7;
  font-size: 1.04rem;
}

.panel {
  display: flex;
  align-items: center;
  min-height: 37rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--surface);
}

.question, .result { width: 100%; }

.step-meta {
  display: flex;
  align-items: center;
  gap: .65rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: .875rem;
}
.step-meta span:first-child, .eyebrow {
  color: var(--gold);
  font-weight: 750;
  font-size: .875rem;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.progress { display: flex; gap: .375rem; margin: .7rem 0 1.7rem; }
.progress span { height: .25rem; flex: 1 1 0; border-radius: 1rem; background: var(--border); }
.progress .filled { background: var(--gold); }

.panel h2 {
  font-size: clamp(1.8rem, 3.1vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.08;
  text-wrap: balance;
}
.panel h2:focus { outline: none; }

.hint, .result-copy { margin-top: .7rem; color: var(--muted); }

.options { display: grid; gap: .6rem; margin-top: 1.4rem; }

.option {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 3.35rem;
  padding: .7rem .9rem;
  border: 1px solid var(--border);
  border-radius: .58rem;
  background: var(--option);
  cursor: pointer;
  line-height: 1.3;
  transition: border-color .15s, background-color .15s;
}
.option:has(input:checked) { border-color: var(--gold); background: #352b1b; }
.option:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }

.option input {
  appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  flex: 0 0 auto;
  margin: 0;
  border: 1px solid #9b9795;
  border-radius: 50%;
}
.option input:focus-visible { outline: none; }
.option input:checked {
  border-color: var(--gold);
  background: radial-gradient(circle, var(--gold) 0 42%, transparent 48%);
}

.actions { display: flex; gap: .7rem; margin-top: 1.4rem; }
.actions .primary { flex: 1 1 auto; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.2rem;
  padding: .7rem 1.12rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  text-align: center;
  text-decoration: none;
  font-weight: 750;
  line-height: 1.3;
  cursor: pointer;
}

.primary { color: var(--on-gold); background: var(--gold); }
.primary:disabled {
  color: #e6d5b5;
  background: #53462f;
  cursor: default;
}
.secondary { color: var(--text); background: var(--option); border-color: var(--border); }

@media (hover: hover) {
  .option:hover, .secondary:hover { border-color: #9d8051; }
  .primary:not(:disabled):hover { background: #ffd37c; }
  .text-button:hover { color: var(--text); }
}

.eyebrow { margin-bottom: .72rem; }
.action-card {
  margin-top: 1.35rem;
  padding: .9rem 1rem;
  border: 1px solid #625238;
  border-left: 3px solid var(--gold);
  border-radius: .55rem;
  background: #29241d;
}
.action-card h3 { margin-bottom: .28rem; font-size: 1rem; color: var(--gold); }
.action-card p { line-height: 1.45; }
.action-card p + p { margin-top: .48rem; }

.offer-link { margin-top: 1.25rem; }
.offer-link p { color: var(--muted); }
.offer-link strong { color: var(--text); }
.offer-facts { margin-top: .45rem; font-size: .875rem; }
.result .primary { width: 100%; margin-top: .85rem; }
.text-button {
  display: block;
  min-height: 2.75rem;
  margin: .25rem auto -.4rem;
  padding: .35rem .75rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: .2em;
  font-weight: 600;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 840px) {
  .site-header, .layout { width: calc(100% - 2.5rem); }
  .layout { gap: .85rem; }
}

@media (max-width: 640px) {
  .site-header, .layout { width: calc(100% - 1.5rem); }
  .site-header { min-height: 4.6rem; padding-inline: .15rem; }
  .brand { gap: .55rem; }
  .brand-mark { width: 2.35rem; height: 2.35rem; font-size: 1.15rem; }
  .header-label { font-size: .875rem; text-align: right; }
  .layout { grid-template-columns: minmax(0, 1fr); margin-bottom: 1rem; }
  .intro, .panel { border-radius: .85rem; }
  .intro { min-height: 12.2rem; }
  .intro-photo img { object-position: 56% 45%; }
  .intro::after { background: linear-gradient(90deg, #100d0af5, #100d0ac4 47%, #100d0a45 85%); }
  .intro-copy { padding: 1.05rem 1.15rem; }
  .intro h1 { max-width: 14ch; font-size: clamp(1.92rem, 7vw, 2.55rem); text-wrap: initial; }
  .intro em { display: inline; }
  .intro p { margin-top: .58rem; font-size: 1rem; line-height: 1.35; }
  .layout:has(.result) .intro { min-height: 7rem; }
  .layout:has(.result) .intro h1 { font-size: clamp(1.65rem, 6vw, 2.2rem); }
  .layout:has(.result) .intro p { display: none; }
  .panel { padding: 1.2rem 1.05rem; min-height: auto; }
  .progress { margin-bottom: 1.2rem; }
  .panel h2 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .options { margin-top: 1.1rem; }
  .actions { margin-top: 1.1rem; }
}

@media (max-width: 350px) {
  .header-label { display: none; }
  .intro-copy, .panel { padding-inline: .9rem; }
}

@media (forced-colors: active) {
  .option input { appearance: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .option { transition: none; }
}
