:root {
  --ink: #221b18;
  --muted: #6f625b;
  --paper: #fff7ee;
  --shell: #fbf1e7;
  --rose: #b84d63;
  --wine: #6f263d;
  --cinnabar: #a6422f;
  --jade: #4f877b;
  --sage: #8fa08b;
  --teal: #1f706a;
  --gold: #d8a74f;
  --line: rgba(34, 27, 24, 0.16);
  --shadow: 0 24px 70px rgba(42, 30, 24, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 92svh;
  color: #fffaf5;
  isolation: isolate;
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  z-index: -3;
}

.hero-scrim {
  background:
    radial-gradient(circle at 78% 24%, rgba(79, 135, 123, 0.24), transparent 26%),
    linear-gradient(90deg, rgba(22, 15, 14, 0.86) 0%, rgba(35, 20, 24, 0.64) 42%, rgba(22, 15, 14, 0.2) 100%),
    linear-gradient(0deg, rgba(22, 15, 14, 0.44), rgba(22, 15, 14, 0.12));
  z-index: -2;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand,
.nav-actions,
.trust-row,
.hero-actions,
.quiz-topline,
.quiz-controls,
.unlock-box {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 6px 14px rgba(22, 15, 14, 0.24));
}

.nav-actions {
  gap: 20px;
  font-size: 0.92rem;
  color: rgba(255, 250, 245, 0.84);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 430px);
  gap: 64px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(92svh - 82px);
  margin: 0 auto;
  padding: 46px 0 80px;
}

.hero-copy {
  max-width: 670px;
  padding-top: 34px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: 5.8rem;
  line-height: 0.94;
}

.hero-text {
  max-width: 560px;
  color: rgba(255, 250, 245, 0.86);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action,
.next-button,
.ghost-button,
.price-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
}

.primary-action,
.next-button,
.price-button {
  color: #fffaf5;
  background: var(--rose);
  box-shadow: 0 12px 28px rgba(184, 77, 99, 0.3);
}

.secondary-action,
.ghost-button {
  color: #fffaf5;
  border: 1px solid rgba(255, 250, 245, 0.38);
  background: rgba(255, 250, 245, 0.1);
}

.trust-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: rgba(255, 250, 245, 0.78);
  font-size: 0.88rem;
}

.trust-row span {
  border: 1px solid rgba(255, 250, 245, 0.24);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 250, 245, 0.08);
}

.quiz-panel {
  position: relative;
  width: 100%;
  padding: 24px;
  border: 1px solid rgba(255, 250, 245, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 245, 0.98), rgba(250, 238, 224, 0.94)),
    rgba(255, 247, 238, 0.94);
  box-shadow: 0 30px 90px rgba(24, 16, 14, 0.28);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.quiz-panel::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(79, 135, 123, 0.2);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(79, 135, 123, 0.2) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(79, 135, 123, 0.2) 50%, transparent 51%);
  opacity: 0.55;
  pointer-events: none;
}

.quiz-topline {
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.progress {
  height: 8px;
  margin: 14px 0 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(34, 27, 24, 0.11);
}

.progress span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose), var(--teal));
  transition: width 220ms ease;
}

.quiz-step {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.quiz-step.is-active {
  display: block;
}

legend {
  margin-bottom: 16px;
  color: var(--wine);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
}

.quiz-step label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf5;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.quiz-step label:hover {
  border-color: rgba(79, 135, 123, 0.45);
  box-shadow: 0 10px 24px rgba(34, 27, 24, 0.08);
  transform: translateY(-1px);
}

.quiz-step label:has(input:checked) {
  border-color: rgba(184, 77, 99, 0.5);
  background: linear-gradient(135deg, rgba(184, 77, 99, 0.1), rgba(79, 135, 123, 0.08)), #fffaf5;
}

input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--rose);
}

.date-grid {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 12px;
}

.date-grid label {
  display: grid;
  align-items: stretch;
  gap: 8px;
}

.date-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

select,
input[type="number"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fffaf5;
  color: var(--ink);
}

.quiz-controls {
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
}

.ghost-button {
  color: var(--wine);
  border-color: var(--line);
  background: transparent;
  box-shadow: none;
}

.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.report-band {
  position: relative;
  padding: 96px 20px 112px;
  background:
    linear-gradient(180deg, #fff7ee 0%, #f7eadb 100%);
}

.report-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 95%, rgba(34, 27, 24, 0.035) 95% 100%),
    linear-gradient(0deg, transparent 0 95%, rgba(34, 27, 24, 0.035) 95% 100%);
  background-size: 42px 42px;
  opacity: 0.4;
  pointer-events: none;
}

.section-heading,
.result-layout {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 40px;
  text-align: center;
}

.section-heading h2 {
  max-width: 760px;
  margin: 0;
  color: var(--wine);
  font-size: 4.35rem;
  line-height: 1;
}

.section-heading .eyebrow {
  margin-bottom: 0;
}

.section-intro {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  align-items: start;
  gap: 18px;
}

.result-column {
  display: grid;
  gap: 18px;
}

.portrait-card,
.analysis-card,
.unlock-box,
.preview-note,
.refinement-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf5;
}

.portrait-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.48fr) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 20px;
  box-shadow: 0 22px 60px rgba(42, 30, 24, 0.13);
}

.portrait-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: #e8ded1;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.portrait-card h3,
.analysis-card h3,
.unlock-box h3 {
  margin-bottom: 10px;
  color: var(--wine);
  font-size: 1.35rem;
  line-height: 1.18;
}

.portrait-card p,
.analysis-card p {
  color: var(--muted);
  line-height: 1.65;
}

#archetypeText {
  white-space: pre-line;
  font-size: 0.98rem;
  line-height: 1.68;
}

.element-seal {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(79, 135, 123, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(79, 135, 123, 0.12), rgba(166, 66, 47, 0.06)),
    #fffaf5;
}

.element-seal span {
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.element-seal small {
  color: var(--muted);
  line-height: 1.5;
}

.analysis-card {
  padding: 22px;
  box-shadow: 0 18px 45px rgba(42, 30, 24, 0.08);
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.analysis-grid div {
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(34, 27, 24, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(79, 135, 123, 0.08), transparent),
    #fffdf8;
}

.analysis-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--cinnabar);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.analysis-grid p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.preview-note {
  display: grid;
  align-content: center;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(216, 167, 79, 0.12), rgba(79, 135, 123, 0.08)),
    #fffaf5;
  box-shadow: 0 18px 45px rgba(42, 30, 24, 0.08);
}

.preview-note-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.preview-note-list li {
  display: grid;
  gap: 2px;
  min-height: 48px;
  padding: 10px;
  border: 1px solid rgba(34, 27, 24, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 245, 0.58);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.25;
}

.preview-note-list span {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.refinement-card {
  min-height: 204px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(79, 135, 123, 0.1), rgba(216, 167, 79, 0.1)),
    #fffaf5;
  box-shadow: 0 18px 45px rgba(42, 30, 24, 0.08);
}

.refinement-card h3 {
  max-width: 460px;
  margin-bottom: 10px;
  color: var(--wine);
  font-size: 1.35rem;
  line-height: 1.18;
}

.refinement-card p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.unlock-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at 92% 0%, rgba(216, 167, 79, 0.28), transparent 30%),
    linear-gradient(135deg, var(--wine), #351821);
  color: #fffaf5;
  box-shadow: 0 22px 60px rgba(53, 24, 33, 0.24);
}

.unlock-box .card-kicker,
.unlock-box h3 {
  color: #fffaf5;
}

.unlock-box h3 {
  max-width: 520px;
  font-size: 1.25rem;
}

.deep-signal-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: rgba(255, 250, 245, 0.82);
  font-size: 0.92rem;
  line-height: 1.45;
}

.price-button {
  white-space: nowrap;
  background: var(--gold);
  color: var(--ink);
  box-shadow: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff7ee;
}

.footer-inner {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(560px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 38px;
  text-align: center;
}

.footer-brand,
.footer-links {
  display: flex;
  align-items: center;
}

.footer-brand {
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}

.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
  filter: none;
}

.footer-tagline,
.footer-support,
.footer-copyright {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.footer-tagline {
  font-size: 0.95rem;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  color: var(--teal);
  font-size: 0.95rem;
  font-weight: 800;
}

.footer-support {
  font-size: 0.95rem;
}

.footer-support a {
  color: var(--teal);
  font-weight: 800;
}

.footer-copyright {
  color: rgba(111, 98, 91, 0.72);
  font-size: 0.9rem;
}

.cookie-consent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(720px, calc(100% - 40px));
  padding: 18px;
  border: 1px solid rgba(34, 27, 24, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 245, 0.97);
  box-shadow: 0 24px 70px rgba(42, 30, 24, 0.22);
  color: var(--ink);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-title {
  margin-bottom: 6px;
  color: var(--wine);
  font-weight: 800;
}

.cookie-copy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.legal-page {
  background: linear-gradient(180deg, #fff7ee 0%, #f7eadb 100%);
}

.legal-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 247, 238, 0.92);
}

.legal-topbar,
.legal-content {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.92rem;
}

.legal-content {
  padding: 64px 0 84px;
}

.legal-kicker {
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-content h1 {
  max-width: 760px;
  color: var(--wine);
  font-size: 3.7rem;
}

.legal-updated {
  margin-bottom: 36px;
  color: var(--muted);
  font-weight: 700;
}

.legal-section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin-bottom: 12px;
  color: var(--wine);
  font-size: 1.8rem;
  line-height: 1.12;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-section ul {
  margin: 0;
  padding-left: 22px;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .topbar {
    width: min(100% - 28px, 720px);
  }

  .nav-actions a {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 720px);
    min-height: auto;
    padding: 18px 0 48px;
    gap: 28px;
  }

  .hero-copy {
    max-width: none;
    padding-top: 10px;
  }

  h1 {
    font-size: 4.1rem;
  }

  .hero-text {
    max-width: 620px;
  }

  .section-heading,
  .result-layout,
  .portrait-card {
    display: block;
  }

  .section-heading h2 {
    margin-top: 8px;
  }

  .portrait-frame {
    margin-bottom: 18px;
  }

  .result-column + .result-column {
    margin-top: 18px;
  }

  .unlock-box {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .price-button {
    width: 100%;
  }

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

  .preview-note-list {
    grid-template-columns: 1fr 1fr;
  }

  .deep-signal-list {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: 3rem;
  }

  .legal-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-nav {
    justify-content: flex-start;
  }

  .cookie-consent {
    right: 14px;
    bottom: 14px;
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding-top: 16px;
  }

  .hero-content {
    padding-top: 12px;
  }

  h1 {
    font-size: 3.2rem;
    line-height: 0.98;
  }

  .hero-text {
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-actions {
    display: grid;
  }

  .primary-action,
  .secondary-action,
  .next-button,
  .ghost-button,
  .price-button {
    width: 100%;
    min-height: 48px;
  }

  .quiz-panel {
    padding: 16px;
  }

  legend {
    font-size: 1.34rem;
  }

  .quiz-step label {
    min-height: 52px;
  }

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

  .report-band {
    padding: 64px 14px 76px;
  }

  .section-heading h2,
  .legal-content h1 {
    font-size: 2.35rem;
  }

  .portrait-card,
  .analysis-card,
  .unlock-box,
  .preview-note {
    padding: 16px;
  }

  .preview-note-list {
    grid-template-columns: 1fr;
  }

  .legal-content {
    padding: 46px 0 66px;
  }

  .cookie-actions {
    grid-template-columns: 1fr;
  }
}
