@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Manrope:wght@400;600;700;800&display=swap");

:root {
  --bg: #12090d;
  --bg-a: #3d1520;
  --bg-b: #231216;
  --card: #f2ede7;
  --card-soft: #fbf4eb;
  --text: #321421;
  --muted: #695d57;
  --line: rgba(74, 38, 28, 0.18);
  --accent: #9e671f;
  --accent-strong: #5a1d2d;
  --accent-soft: rgba(158, 103, 31, 0.14);
  --error: #9f2c24;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  --shell: min(724px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 0%, rgba(114, 69, 30, 0.46), transparent 26rem),
    radial-gradient(circle at 82% 6%, rgba(104, 27, 48, 0.58), transparent 30rem),
    linear-gradient(90deg, #190d11 0%, var(--bg-a) 50%, #11080c 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

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

.app-shell {
  width: var(--shell);
  margin: 0 auto;
  padding: 22px 0 48px;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.brand-logo {
  width: 260px;
  max-width: 78vw;
  height: auto;
  margin: 0 0 36px;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.brand-pill,
.eyebrow {
  display: block;
  margin: 0 0 18px;
  padding: 9px 14px;
  border: 1px solid rgba(158, 103, 31, 0.42);
  border-radius: 999px;
  background: rgba(158, 103, 31, 0.12);
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  line-height: 0.9;
  color: #f7eee6;
}

.hero .lead {
  max-width: 45rem;
  margin: 22px 0 0;
  color: rgba(247, 238, 230, 0.86);
  font-size: 1.08rem;
  line-height: 1.75;
}

.lead.small {
  max-width: 42rem;
  margin: 14px 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.promise-card,
.question-card,
.capture,
.result-card,
.bridge-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.promise-card {
  margin: 26px 0 24px;
  padding: 26px;
  color: #f4eae0;
  background: rgba(60, 30, 35, 0.78);
  border-color: rgba(158, 103, 31, 0.28);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.promise-card p {
  margin: 0 0 12px;
}

.promise-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.55;
}

.primary,
.secondary,
.ghost,
.text-button,
.answer {
  cursor: pointer;
  border: 0;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 20px 42px rgba(90, 29, 45, 0.28);
}

.primary:hover,
.primary:focus-visible,
.secondary:hover,
.secondary:focus-visible {
  transform: translateY(-1px);
}

.secondary {
  border: 1px solid rgba(90, 29, 45, 0.18);
  background: #fff7ee;
  color: var(--accent-strong);
}

.microcopy {
  margin: 16px 0 0;
  color: rgba(247, 238, 230, 0.68);
  font-size: 0.94rem;
  line-height: 1.6;
}

.quiz-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 0 0 18px;
}

.quiz-header .eyebrow {
  margin: 0 0 12px;
}

.progress {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 180ms ease;
}

.ghost,
.text-button {
  color: rgba(247, 238, 230, 0.78);
  background: transparent;
  font-weight: 800;
}

.capture .text-button {
  color: rgba(90, 29, 45, 0.76);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.ghost {
  min-height: 42px;
  padding: 0 12px;
}

.question-card,
.capture,
.result-card,
.bridge-card {
  padding: clamp(26px, 5vw, 44px);
}

.question-card h2,
.capture h2,
.result-card h2 {
  font-size: clamp(2.5rem, 7vw, 4.9rem);
  line-height: 0.92;
}

.answers {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

.answer {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 70px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card-soft);
  color: var(--text);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.answer:hover,
.answer:focus-visible,
.answer.is-selected {
  transform: translateY(-1px);
  border-color: rgba(158, 103, 31, 0.48);
  background: #fff8ee;
}

.answer-letter {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.answer-copy {
  line-height: 1.45;
}

.capture .brand-logo,
.result .brand-logo {
  margin-bottom: 26px;
}

form {
  display: grid;
  gap: 15px;
  margin: 24px 0 0;
}

label,
.form-group legend {
  font-weight: 800;
}

label {
  display: grid;
  gap: 8px;
}

input,
select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff9f0;
  color: var(--text);
}

input:focus,
select:focus {
  outline: 3px solid rgba(158, 103, 31, 0.18);
  border-color: rgba(158, 103, 31, 0.58);
}

.form-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.option-checkbox,
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.option-checkbox input,
.checkbox input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 2px;
}

.error {
  min-height: 1.2em;
  margin: 0;
  color: var(--error);
  font-weight: 800;
}

.result-card {
  margin-top: 0;
}

.result-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-card p,
.bridge-card p {
  color: #4e4540;
  line-height: 1.68;
}

.dominant,
.signals {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff8ef;
  line-height: 1.55;
}

.signals ul {
  margin: 10px 0 0;
  padding-left: 1.2rem;
}

.bridge-card {
  margin: 36px 0 26px;
}

.bridge-card h3 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.result .text-button {
  display: block;
  margin: 0 auto;
  color: rgba(90, 29, 45, 0.74);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 680px) {
  .app-shell {
    padding-top: 16px;
  }

  .brand-logo {
    width: 220px;
    margin-bottom: 28px;
  }

  h1 {
    max-width: 10ch;
  }

  .quiz-header,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .ghost {
    justify-self: start;
    padding-left: 0;
  }

  .primary,
  .secondary {
    width: 100%;
  }

  .question-card,
  .capture,
  .result-card,
  .bridge-card,
  .promise-card {
    border-radius: 22px;
  }
}
