:root {
  --bg: #f7f1e7;
  --bg-soft: #fffaf1;
  --surface: #ffffff;
  --surface-warm: #fbf4e8;
  --text: #25221d;
  --muted: #70675e;
  --gold: #c8a85a;
  --gold-dark: #92743a;
  --line: #dfd3bd;
  --danger-soft: #c96b5a;
  --green-soft: #7e9b86;
  --dark: #111214;
  --shadow: 0 18px 54px rgba(37, 34, 29, 0.1);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 6%, rgba(200, 168, 90, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 20%, rgba(126, 155, 134, 0.18), transparent 22rem),
    linear-gradient(135deg, var(--bg), var(--bg-soft));
  font-family: var(--sans);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(146, 116, 58, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 116, 58, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

body::after {
  position: fixed;
  right: -150px;
  bottom: -180px;
  z-index: -1;
  width: min(58vw, 590px);
  aspect-ratio: 1;
  content: "";
  opacity: 0.16;
  background:
    radial-gradient(circle, transparent 0 38%, var(--gold) 38.4% 39%, transparent 39.3% 52%, var(--gold-dark) 52.2% 52.7%, transparent 53%),
    conic-gradient(from 0deg, transparent 0 11deg, rgba(146, 116, 58, 0.75) 12deg 13deg, transparent 14deg 56deg, rgba(146, 116, 58, 0.75) 57deg 58deg, transparent 59deg 100%);
  border-radius: 50%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(100% - 32px, 980px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 0 26px;
}

.quiz-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0 16px;
  backdrop-filter: blur(18px);
}

.brand,
.header-progress,
.progress-shell,
.answer-top,
.result-badge,
.audio-meta,
.checkout-meta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 9px;
  color: var(--dark);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.header-progress {
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-compass {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.mini-compass span {
  width: 2px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(var(--danger-soft) 0 50%, var(--gold-dark) 50% 100%);
  transform: rotate(var(--needle, -28deg));
  transition: transform 480ms ease;
}

.quiz-root {
  width: min(100%, 680px);
  margin: 0 auto;
}

.screen {
  animation: rise 420ms ease both;
}

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

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(200, 168, 90, 0.38);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.62), transparent 36%),
    radial-gradient(circle at 88% 10%, rgba(200, 168, 90, 0.16), transparent 16rem);
}

.panel-content {
  position: relative;
  padding: clamp(22px, 4vw, 34px);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--gold-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  letter-spacing: 0;
  text-align: center;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(30px, 5.4vw, 46px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3.9vw, 34px);
  line-height: 1.06;
}

h3 {
  margin-bottom: 9px;
  font-size: clamp(21px, 3.3vw, 28px);
  line-height: 1.04;
}

p,
li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.lead {
  color: #4f473d;
  font-size: clamp(15px, 2.2vw, 17px);
  line-height: 1.58;
  text-align: center;
}

.intro-proof {
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin: 18px auto 22px;
  text-align: center;
}

.intro-proof p {
  margin: 0;
}

.intro-proof strong {
  color: var(--text);
}

.intro-proof span {
  display: inline-flex;
  justify-content: center;
  width: max-content;
  margin: 2px auto 0;
  border: 1px solid rgba(200, 168, 90, 0.42);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--gold-dark);
  background: var(--surface-warm);
  font-size: 12px;
  font-weight: 900;
}

.panel-content > .eyebrow,
.micro-card > .eyebrow,
.audio-card > .eyebrow,
.lead-card > .eyebrow,
.result-hero > .result-badge {
  display: table;
  margin-right: auto;
  margin-left: auto;
}

.panel-content > p,
.micro-card > p,
.audio-card > p,
.lead-card > p {
  text-align: center;
}

.intro-list,
.feature-list,
.result-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 16px 0;
  list-style: none;
}

.intro-list li,
.feature-list li,
.result-list li {
  position: relative;
  padding-left: 18px;
}

.intro-list li::before,
.feature-list li::before,
.result-list li::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--gold);
}

.function-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.function-pill {
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-warm);
  padding: 11px 9px;
}

.function-pill strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 12px;
}

.function-pill span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--dark);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.option-button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--dark);
  box-shadow: 0 12px 30px rgba(17, 18, 20, 0.16);
}

.button.gold {
  color: var(--dark);
  background: linear-gradient(135deg, #e3cb83, var(--gold));
  box-shadow: 0 12px 30px rgba(146, 116, 58, 0.2);
}

.button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.button.full {
  width: 100%;
}

.progress-shell {
  gap: 10px;
  margin-bottom: 14px;
}

.compass-progress {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--surface) 0 48%, transparent 49%),
    conic-gradient(var(--gold) var(--progress, 0deg), rgba(223, 211, 189, 0.65) 0);
}

.compass-progress::before {
  position: absolute;
  width: 3px;
  height: 27px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(var(--danger-soft) 0 52%, var(--gold-dark) 52% 100%);
  transform: rotate(var(--needle, -25deg));
  transition: transform 460ms ease;
}

.progress-text strong {
  display: block;
  color: var(--text);
}

.progress-text span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.question-title {
  margin-bottom: 16px;
  text-align: center;
}

.question-intro,
.question-subtitle {
  max-width: 560px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.question-subtitle {
  margin-top: -6px;
  font-weight: 800;
}

.options {
  display: grid;
  gap: 10px;
}

.option-button {
  width: 100%;
  border: 1px solid rgba(146, 116, 58, 0.26);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(255, 250, 241, 0.78);
  text-align: left;
  transition: transform 180ms ease, border 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.option-button:focus-visible,
.button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(200, 168, 90, 0.4);
  outline-offset: 3px;
}

.option-button.selected {
  border-color: var(--gold-dark);
  background: #fff4d7;
  box-shadow: 0 10px 24px rgba(146, 116, 58, 0.14);
}

.answer-top {
  justify-content: space-between;
  gap: 11px;
}

.option-code {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 900;
}

.option-label {
  flex: 1;
  color: var(--text);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.44;
}

.question-next {
  margin-top: 14px;
}

.sticky-question-action {
  position: fixed;
  right: auto;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 999;
  width: min(680px, calc(100vw - 32px));
  padding: 6px;
  margin-top: 0;
  border: 1px solid rgba(200, 168, 90, 0.32);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.88);
  box-shadow: 0 14px 34px rgba(37, 34, 29, 0.14);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.has-fixed-action {
  padding-bottom: 112px;
}

.sticky-question-action .question-next {
  margin-top: 0;
}

.sticky-question-action .error-message {
  position: absolute;
  right: 12px;
  bottom: calc(100% + 6px);
  left: 12px;
  min-height: 0;
  margin: 0;
  text-align: center;
}

.micro-card,
.audio-card,
.lead-card,
.result-hero,
.cta-card {
  padding: clamp(22px, 4vw, 34px);
}

.micro-card {
  border-left: 4px solid var(--gold);
}

.audio-player {
  margin: 17px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-warm);
  padding: 14px;
}

.audio-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.play-button {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--dark);
  box-shadow: 0 12px 30px rgba(17, 18, 20, 0.18);
}

.play-button span {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid currentColor;
}

.play-button.is-playing span {
  width: 15px;
  height: 18px;
  margin-left: 0;
  border-top: 0;
  border-bottom: 0;
  border-left: 5px solid currentColor;
  border-right: 5px solid currentColor;
}

.speed-button {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(146, 116, 58, 0.32);
  border-radius: 50%;
  color: var(--gold-dark);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(146, 116, 58, 0.12);
}

.waveform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  width: 100%;
  height: 42px;
}

.waveform i {
  flex: 1 1 3px;
  max-width: 5px;
  min-width: 2px;
  height: 13px;
  border-radius: 999px;
  background: var(--gold);
  animation: wave 900ms ease-in-out infinite;
}

.waveform i:nth-child(2n) {
  animation-delay: 120ms;
}

.waveform i:nth-child(3n) {
  animation-delay: 240ms;
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1.55);
  }
}

.audio-status {
  min-height: 19px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.transcript {
  margin: 13px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
}

.transcript summary {
  cursor: pointer;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text);
  font-weight: 900;
}

.transcript p {
  padding: 0 14px 14px;
  margin-bottom: 0;
  white-space: pre-line;
}

.form-grid {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
}

.field input {
  min-height: 48px;
  padding: 0 13px;
}

.field textarea {
  min-height: 150px;
  padding: 13px;
  resize: vertical;
  line-height: 1.5;
}

.open-form {
  margin-top: 10px;
}

.error-message {
  min-height: 20px;
  margin: 8px 0 0;
  color: #9e3428;
  font-size: 12px;
  font-weight: 800;
}

.result-badge {
  width: max-content;
  gap: 8px;
  border: 1px solid rgba(200, 168, 90, 0.48);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--gold-dark);
  background: var(--surface-warm);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.result-name {
  margin-top: 13px;
}

.dominant-card,
.phrase-card,
.investigate-card,
.score-map,
.patterns-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 250, 241, 0.72);
  padding: 14px;
}

.dominant-card strong,
.phrase-card strong,
.investigate-card strong,
.patterns-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.result-summary {
  text-align: center;
}

.result-summary mark {
  color: var(--gold-dark);
  background: transparent;
  font-weight: 900;
}

.result-section {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.result-before-video {
  grid-template-columns: 1.05fr 0.8fr 0.8fr;
  align-items: stretch;
}

.result-before-video .score-map,
.result-before-video .phrase-card,
.result-before-video .investigate-card {
  padding: 10px;
}

.result-before-video p {
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.38;
}

.result-before-video strong {
  font-size: 13px;
}

.mini-score-map .score-row {
  grid-template-columns: 70px 1fr 34px;
  gap: 7px;
  margin-top: 7px;
}

.mini-score-map .score-row span {
  font-size: 10.5px;
}

.mini-score-map .score-track {
  height: 6px;
}

.score-row {
  display: grid;
  grid-template-columns: 92px 1fr 42px;
  gap: 9px;
  align-items: center;
  margin-top: 9px;
}

.score-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.score-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(223, 211, 189, 0.74);
}

.score-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}

.patterns-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.patterns-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--text);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.vsl-section {
  width: min(100%, 520px);
  margin: 10px auto 0;
  border: 1px solid rgba(200, 168, 90, 0.38);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
  text-align: center;
}

.vsl-section h2 {
  max-width: 430px;
  margin-right: auto;
  margin-left: auto;
}

.vsl-section p {
  max-width: 430px;
  margin-right: auto;
  margin-left: auto;
}

.vsl-frame {
  width: min(100%, 360px);
  aspect-ratio: 9 / 16;
  margin: 14px auto;
  overflow: hidden;
  border: 1px solid rgba(200, 168, 90, 0.44);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(17, 18, 20, 0.72), rgba(146, 116, 58, 0.32)),
    var(--dark);
  box-shadow: 0 20px 50px rgba(17, 18, 20, 0.18);
}

.vsl-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.vsl-placeholder {
  display: grid;
  height: 100%;
  place-content: center;
  gap: 8px;
  padding: 24px;
  color: #fff;
}

.vsl-placeholder span,
.vsl-placeholder small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.vsl-placeholder strong {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
}

.cta-card {
  margin-top: 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(17, 18, 20, 0.96), rgba(48, 42, 31, 0.94)),
    var(--dark);
  box-shadow: var(--shadow);
  text-align: center;
}

.cta-card .eyebrow,
.cta-card h2,
.cta-card h3,
.cta-card p,
.cta-card li {
  color: #fff;
}

.cta-card p,
.cta-card li {
  color: rgba(255, 255, 255, 0.76);
}

.pitch-lead {
  max-width: 560px;
  margin-right: auto;
  margin-left: auto;
  font-size: 16px;
}

.pitch-lead mark,
.pitch-box mark {
  color: #f4d989;
  background: transparent;
}

.pitch-box {
  max-width: 560px;
  margin: 18px auto;
  border: 1px solid rgba(244, 216, 137, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  padding: 18px;
}

.pitch-box strong,
.pitch-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #f4d989;
}

.pitch-box p {
  margin-bottom: 0;
}

.pitch-box.light {
  color: var(--text);
  background: rgba(255, 250, 241, 0.84);
}

.pitch-box.light strong {
  color: var(--text);
}

.pitch-box.light p {
  color: var(--muted);
}

.pitch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px auto;
  max-width: 640px;
}

.pitch-grid > div {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
}

.cta-card .feature-list {
  margin: 0;
  text-align: left;
}

.event-date {
  display: grid;
  gap: 4px;
  max-width: 420px;
  margin: 18px auto 10px;
  border: 1px solid rgba(244, 216, 137, 0.3);
  border-radius: 14px;
  background: rgba(244, 216, 137, 0.08);
  padding: 14px 16px;
}

.event-date span,
.event-date small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.event-date strong {
  color: #f4d989;
  font-family: var(--serif);
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.price span {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 800;
  text-decoration: line-through;
}

.price strong {
  color: #f2d88b;
  font-family: var(--serif);
  font-size: clamp(38px, 8vw, 58px);
  line-height: 0.9;
}

.checkout-meta {
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 16px, 1020px);
    padding-top: 8px;
  }

  .quiz-header {
    align-items: flex-start;
  }

  .brand {
    max-width: 178px;
  }

  .header-progress {
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
  }

  .function-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audio-meta {
    align-items: center;
  }

  .play-button {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 460px) {
  .function-grid {
    grid-template-columns: 1fr;
  }

  .panel-content,
  .micro-card,
  .audio-card,
  .lead-card,
  .result-hero,
  .cta-card {
    padding: 18px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
  }

  .score-row {
    grid-template-columns: 82px 1fr 38px;
  }

  .result-before-video {
    grid-template-columns: 1fr;
  }

  .sticky-question-action {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100vw - 18px);
  }

  .pitch-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
