:root {
  --background: #120d18;
  --card: rgba(35, 22, 31, .9);
  --text: #ffe5d0;
  --muted: #dec9bd;
  --accent: #ff9a48;
  --accent-light: #ffba78;
  --border: rgba(255, 174, 94, .24);
}

* { box-sizing: border-box; }

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

.app-shell {
  isolation: isolate;
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 40px 20px 70px;
}

.atmosphere {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 12, 22, .76), rgba(30, 17, 27, .18) 50%, rgba(37, 16, 19, .68)), url("spiral-hero.png") center / cover no-repeat;
}

.atmosphere::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(ellipse at 51% 68%, rgba(255, 126, 43, .17), rgba(72, 27, 31, .26) 38%, rgba(10, 8, 18, .72));
}

.assessment-card,
.policy-content {
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 208, 157, .12);
}

.assessment-card {
  width: min(100%, 720px);
  min-height: 600px;
  padding: 48px clamp(25px, 6vw, 64px);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(42, 29, 37, .79), rgba(17, 16, 26, .78));
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 10px; color: #ffe0c2; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.brand-mark, .eyebrow { color: #ffad61; }
.brand-mark { font-size: 22px; }
.view { display: none; padding-top: 70px; }
.view.active { display: block; }
.eyebrow { margin: 0 0 16px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.035em; }
h1 { font-size: clamp(40px, 6vw, 58px); line-height: 1.04; }
h1 em { color: var(--accent-light); font-weight: 400; }
.lead { max-width: 525px; margin: 28px 0 36px; color: #d8c2b7; line-height: 1.65; }
.view-heading h2 { font-size: 36px; }
.view-heading > p:not(.eyebrow) { margin: 10px 0 26px; color: #d8c2b7; }

.primary-button, .secondary-button { cursor: pointer; border-radius: 12px; padding: 15px 20px; font: 600 14px inherit; transition: .2s ease; }
.primary-button { min-width: 220px; border: 0; background: var(--accent); color: #29140e; }
.primary-button:hover { transform: translateY(-2px); background: #ffc07e; }
.primary-button span { margin-left: 12px; font-size: 20px; line-height: 0; }
.secondary-button { border: 1px solid var(--border); background: transparent; color: var(--text); }

.fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 18px; }
.field { display: grid; gap: 7px; }
.field:nth-child(8), .field:nth-child(9), .field:nth-child(10) { grid-column: 1 / -1; }
.field label { color: #e5cfc2; font-size: 12px; }
.field input { width: 100%; border: 1px solid var(--border); border-radius: 9px; outline: none; padding: 12px; background: rgba(10, 8, 18, .38); color: #fff; font: 14px inherit; }
.field input:focus { border-color: var(--accent-light); box-shadow: 0 0 0 3px rgba(255, 154, 72, .13); }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; color: #e5cfc2; font-size: 12px; line-height: 1.45; }
.consent input { margin: 3px 0 0; accent-color: var(--accent); }
.consent a, .policy-content a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 2px; }
.form-error { margin: 0 0 15px; color: #ffc2b4; font-size: 13px; }

.quiz-meta, .quiz-controls { display: flex; align-items: center; justify-content: space-between; color: #d8c2b7; font-size: 12px; }
.quiz-meta .eyebrow { margin: 0; }
.progress-track { height: 2px; margin: 16px 0 48px; background: rgba(255, 255, 255, .12); }
.progress-bar { height: 100%; background: var(--accent); transition: width .25s ease; }
.question-number { margin: 0 0 12px; color: var(--accent-light); font: 28px Georgia, serif; }
.question-text { min-height: 145px; font-size: clamp(27px, 4vw, 39px); line-height: 1.18; }
.answer-list { display: grid; gap: 9px; margin: 35px 0 25px; }
.answer { display: flex; align-items: center; gap: 12px; width: 100%; cursor: pointer; border: 1px solid var(--border); border-radius: 10px; padding: 13px 15px; background: rgba(10, 8, 18, .28); color: #f5ded0; font: 14px inherit; text-align: left; transition: .18s; }
.answer:hover, .answer.selected { border-color: var(--accent-light); background: rgba(255, 125, 50, .17); }
.answer-key { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid var(--border); border-radius: 50%; font-size: 11px; }
.answer.selected .answer-key { background: var(--accent); color: #2b160f; }
.text-button { cursor: pointer; border: 0; padding: 0; background: transparent; color: #f0c99f; font: inherit; }
.text-button:disabled { cursor: not-allowed; opacity: .35; }
.result-status { margin: 14px 0 30px; color: #ffbd80; font: 20px Georgia, serif; }
.result-note { margin: 0 0 24px; color: #d8c2b7; font-size: 13px; line-height: 1.55; }
footer { position: absolute; bottom: 25px; color: rgba(255, 224, 194, .57); font-size: 11px; letter-spacing: .08em; }

.policy-page { min-height: 100vh; padding: 42px 20px; background: var(--background); }
.policy-content { width: min(100%, 840px); margin: auto; border-radius: 22px; padding: 42px clamp(24px, 5vw, 64px); line-height: 1.65; }
.policy-content h1, .policy-content h2 { font-family: Georgia, serif; font-weight: 400; line-height: 1.15; }
.policy-content h1 { margin: 16px 0 24px; font-size: 42px; }
.policy-content h2 { margin: 34px 0 10px; font-size: 24px; }
.policy-content p, .policy-content li { color: var(--muted); }
.policy-content .back { display: inline-block; font-size: 14px; }

@media (max-width: 560px) {
  .app-shell { align-items: start; padding: 15px 12px 55px; }
  .assessment-card { min-height: calc(100svh - 70px); border-radius: 17px; padding: 30px 22px; }
  .view { padding-top: 48px; }
  .fields-grid { grid-template-columns: 1fr; }
  .field:nth-child(n) { grid-column: auto; }
  .question-text { min-height: 0; }
  .answer-list { margin-top: 28px; }
}
