:root {
  --bg: #120f14;
  --panel: rgba(255, 250, 244, 0.94);
  --panel-2: #fff8ef;
  --ink: #211a16;
  --muted: #71655f;
  --gold: #c99048;
  --gold-dark: #9f682d;
  --wine: #70313c;
  --wine-dark: #421923;
  --cream: #fff4e4;
  --line: rgba(33, 26, 22, 0.13);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  --radius: 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 144, 72, 0.26), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(112, 49, 60, 0.42), transparent 34%),
    linear-gradient(145deg, #181117 0%, #2b141b 46%, #140e12 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.app-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
}

.screen {
  display: none;
  width: 100%;
  animation: rise .32s ease both;
}
.screen.is-active { display: block; }

.hero, .capture, .result-card, .bridge-card, .question-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 46px);
  backdrop-filter: blur(18px);
}

.brand-logo {
  display: block;
  width: min(260px, 72vw);
  max-height: 54px;
  height: auto;
  object-fit: contain;
  margin: 0 0 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(33, 26, 22, .08);
}
.brand-logo.center { margin-left: auto; margin-right: auto; }
.product-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  margin: 18px 0;
  box-shadow: 0 18px 44px rgba(66, 25, 35, .18);
  border: 1px solid rgba(255,255,255,.52);
}
.brand-pill, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-dark);
  background: rgba(201, 144, 72, 0.14);
  border: 1px solid rgba(201, 144, 72, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin: 20px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 11vw, 76px);
  line-height: .91;
  letter-spacing: -0.055em;
  color: var(--wine-dark);
}
h2 {
  margin: 14px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 7vw, 52px);
  line-height: .98;
  letter-spacing: -0.04em;
  color: var(--wine-dark);
}
h3 {
  font-size: 22px;
  line-height: 1.12;
  color: var(--wine-dark);
}
.lead {
  color: #473934;
  font-size: clamp(18px, 4.2vw, 23px);
  line-height: 1.35;
  margin-bottom: 22px;
}
.lead.small { font-size: 17px; }
.microcopy { color: var(--muted); font-size: 14px; text-align: center; margin: 16px 0 0; }

.promise-card, .dominant, .signals {
  background: linear-gradient(180deg, #fffaf4, #f7eadb);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  margin: 24px 0;
}
ul { padding-left: 20px; margin-bottom: 0; }
li { margin: 8px 0; color: #493c35; }

button, .link {
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease;
}
button:active, .link:active { transform: translateY(1px) scale(.99); }
.primary {
  width: 100%;
  min-height: 58px;
  padding: 17px 22px;
  color: white;
  background: linear-gradient(135deg, var(--wine), var(--wine-dark));
  box-shadow: 0 14px 34px rgba(66, 25, 35, .32);
}
.primary:hover { box-shadow: 0 18px 44px rgba(66, 25, 35, .42); }
.secondary {
  width: 100%;
  min-height: 58px;
  padding: 17px 22px;
  color: var(--wine-dark);
  background: #fff6ea;
  border: 1px solid rgba(112, 49, 60, .22);
  text-align: center;
}
.ghost, .text-button {
  color: var(--wine-dark);
  background: transparent;
}
.ghost { padding: 10px 2px 10px 14px; }
.text-button { width: 100%; margin-top: 18px; padding: 12px; text-decoration: underline; text-underline-offset: 4px; }

.quiz-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  color: white;
}
.quiz-header .eyebrow { color: #ffe1ad; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); }
.progress {
  width: min(56vw, 360px);
  height: 9px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
}
.progress span { display: block; height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, #f3d096, #c99048); transition: width .28s ease; }
.question-card { padding-bottom: 20px; }
.answers { display: grid; gap: 12px; margin-top: 22px; }
.answer {
  width: 100%;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 15px;
  color: var(--ink);
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.answer:hover, .answer.is-selected { background: #fff1dc; border-color: rgba(201, 144, 72, .5); transform: translateY(-1px); }
.answer-letter {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(112, 49, 60, .1);
  color: var(--wine-dark);
  font-weight: 900;
}
.answer-copy { line-height: 1.32; }

form { display: grid; gap: 14px; margin-top: 22px; }
label { display: grid; gap: 7px; color: #473934; font-weight: 800; }
label span { color: var(--muted); font-weight: 650; }
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf9;
  color: var(--ink);
  font: inherit;
  padding: 15px 14px;
  outline: none;
}
input:focus { border-color: rgba(201,144,72,.75); box-shadow: 0 0 0 4px rgba(201,144,72,.15); }
.checkbox {
  grid-template-columns: 22px 1fr;
  align-items: start;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
}
.checkbox input { width: 18px; height: 18px; margin-top: 1px; }
.error { min-height: 18px; color: #9b1c31; font-size: 14px; margin: 0; }

.result { display: none; gap: 18px; }
.result.is-active { display: grid; }
.result-card { position: relative; overflow: hidden; }
.result-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -34% 30%;
  height: 220px;
  background: radial-gradient(circle, rgba(201,144,72,.24), transparent 70%);
  pointer-events: none;
}
.result-kicker { color: var(--gold-dark); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
#result-copy { position: relative; z-index: 1; color: #443731; font-size: 17px; line-height: 1.55; }
.dominant, .signals { position: relative; z-index: 1; margin: 16px 0 0; }
.dominant strong, .signals strong { color: var(--wine-dark); }
.signals ul { margin-top: 6px; }
.bridge-card { margin-top: 18px; background: rgba(255,248,239,.96); }
.cta-grid { display: grid; gap: 12px; margin-top: 20px; }
.link { display: inline-flex; align-items: center; justify-content: center; }

@media (min-width: 680px) {
  .cta-grid { grid-template-columns: 1fr 1fr; }
  .hero, .capture, .result-card, .bridge-card, .question-card { padding: 44px; }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
