:root {
  --bg: #f5efe8;
  --bg-2: #efe2d4;
  --card: #fffaf5;
  --line: rgba(115, 79, 57, 0.14);
  --text: #2d2019;
  --muted: #6f5a4d;
  --accent: #8c5a3c;
  --accent-2: #caa07c;
  --shadow: 0 20px 40px rgba(63, 42, 30, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(202, 160, 124, 0.18), transparent 25%),
    linear-gradient(180deg, #fbf7f2 0%, #f2e9df 100%);
  overflow-x: hidden;
}

.page {
  position: relative;
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.page::before,
.page::after {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.36;
  content: "";
  pointer-events: none;
}

.page::before {
  top: 80px;
  right: -80px;
  background:
    radial-gradient(circle at 20% 30%, rgba(140, 90, 60, 0.18) 0 6px, transparent 7px),
    radial-gradient(circle at 55% 45%, rgba(202, 160, 124, 0.24) 0 5px, transparent 6px),
    radial-gradient(circle at 70% 18%, rgba(140, 90, 60, 0.22) 0 4px, transparent 5px),
    linear-gradient(120deg, transparent 39%, rgba(140, 90, 60, 0.12) 40%, transparent 41%),
    linear-gradient(148deg, transparent 54%, rgba(202, 160, 124, 0.14) 55%, transparent 56%);
}

.page::after {
  bottom: 90px;
  left: -90px;
  background:
    radial-gradient(circle at 24% 68%, rgba(202, 160, 124, 0.22) 0 6px, transparent 7px),
    radial-gradient(circle at 56% 40%, rgba(140, 90, 60, 0.2) 0 5px, transparent 6px),
    radial-gradient(circle at 74% 72%, rgba(140, 90, 60, 0.18) 0 4px, transparent 5px),
    linear-gradient(45deg, transparent 46%, rgba(140, 90, 60, 0.12) 47%, transparent 48%),
    linear-gradient(18deg, transparent 65%, rgba(202, 160, 124, 0.12) 66%, transparent 67%);
}

.hero {
  margin-bottom: 28px;
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
  padding: 34px 28px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    radial-gradient(circle at top, rgba(202, 160, 124, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 251, 247, 0.98), rgba(241, 229, 217, 0.94));
  box-shadow:
    0 30px 60px rgba(63, 42, 30, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  width: min(100%, 980px);
  min-height: 620px;
  display: grid;
  place-items: center;
}

.hero__copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  text-align: center;
}

.hero__frame {
  padding: 38px 34px;
  border: 1px solid rgba(140, 90, 60, 0.08);
  border-radius: 30px;
  background: rgba(255, 251, 247, 0.72);
  box-shadow:
    0 24px 40px rgba(77, 52, 37, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero__cta {
  margin-top: 24px;
}

.eyebrow,
.step-badge {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.lead {
  max-width: 44ch;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.85;
  margin-inline: auto;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.hero__meta span {
  padding: 10px 14px;
  border: 1px solid rgba(140, 90, 60, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero__mini {
  margin: -4px 0 16px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

.hero__note {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero__tree-bg {
  position: absolute;
  inset: 0;
  opacity: 0.18;
}

.tree-fade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(202, 160, 124, 0.3), transparent 22%),
    radial-gradient(circle at 50% 85%, rgba(202, 160, 124, 0.22), transparent 26%);
}

.tree-trunk {
  position: absolute;
  top: 140px;
  left: 50%;
  width: 18px;
  height: 140px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(140, 90, 60, 0.22), rgba(111, 71, 48, 0.16));
}

.tree-branches,
.tree-roots {
  position: absolute;
  inset: 0;
}

.tree-branches span,
.tree-roots span {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, rgba(140, 90, 60, 0.14), rgba(202, 160, 124, 0.12));
  transform-origin: left center;
}

.tree-branches span:nth-child(1) {
  left: 50%;
  top: 168px;
  width: 180px;
  transform: rotate(-28deg);
}

.tree-branches span:nth-child(2) {
  left: calc(50% - 168px);
  top: 178px;
  width: 170px;
  transform: rotate(24deg);
}

.tree-branches span:nth-child(3) {
  left: calc(50% - 56px);
  top: 124px;
  width: 118px;
  transform: rotate(-90deg);
}

.tree-roots span:nth-child(1) {
  left: 50%;
  top: 280px;
  width: 138px;
  transform: rotate(28deg);
}

.tree-roots span:nth-child(2) {
  left: calc(50% - 128px);
  top: 288px;
  width: 130px;
  transform: rotate(-26deg);
}

.tree-roots span:nth-child(3) {
  left: calc(50% - 24px);
  top: 304px;
  width: 48px;
  transform: rotate(90deg);
}

.flow {
  display: grid;
  gap: 28px;
  position: relative;
}

.step-card,
.content-block {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72vh;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 250, 245, 0.94);
  box-shadow: var(--shadow);
}

.step-card::before,
.content-block::before {
  position: absolute;
  top: -18px;
  left: 34px;
  width: 2px;
  height: 18px;
  background: linear-gradient(180deg, rgba(140, 90, 60, 0), rgba(140, 90, 60, 0.18));
  content: "";
}

.flow > :first-child::before {
  display: none;
}

.step-card h2,
.content-block h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 16ch;
  margin-bottom: 20px;
}

.step-card p,
.content-block p,
.content-block li {
  color: var(--muted);
  line-height: 1.8;
}

.step-card--intro,
.step-card--result {
  text-align: center;
}

.step-card--result {
  text-align: left;
  align-items: stretch;
}

.step-card--result .step-badge {
  display: block;
  margin-bottom: 18px;
  text-align: left;
}

.step-card--result h2 {
  max-width: 10ch;
  margin-bottom: 0;
}

.step-card__hint {
  max-width: 52ch;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1rem;
}

.step-card.is-complete {
  min-height: auto;
  padding-bottom: 20px;
  background: linear-gradient(180deg, rgba(255, 250, 245, 0.98), rgba(245, 236, 227, 0.96));
}

.step-card.is-complete .answers {
  display: none;
}

.picked-answer {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(140, 90, 60, 0.06);
  color: var(--text);
  font-weight: 600;
}

.step-card.is-complete .picked-answer {
  display: block;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 30px;
}

.result-main p,
.result-body p,
.result-closing {
  font-size: 1.02rem;
  line-height: 1.85;
}

.result-main {
  display: grid;
  gap: 22px;
}

.result-main p {
  max-width: 54ch;
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.9;
}

.result-highlight {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 28px 26px;
  border: 1px solid rgba(140, 90, 60, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(202, 160, 124, 0.12), transparent 40%),
    rgba(255, 249, 244, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 34px rgba(76, 51, 37, 0.05);
}

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

.result-highlight strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.result-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-bottom: 26px;
  padding-top: 26px;
  border-top: 1px solid rgba(140, 90, 60, 0.08);
}

.result-body p {
  max-width: 34ch;
  margin: 0;
}

.result-quote {
  margin: 0 0 28px;
  padding: 28px 30px;
  border: 1px solid rgba(140, 90, 60, 0.08);
  border-left: 4px solid rgba(140, 90, 60, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 251, 247, 0.95), rgba(247, 239, 230, 0.88));
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.result-closing {
  max-width: 50ch;
  margin: 0 0 28px;
  padding-top: 4px;
  font-size: 1.08rem;
}

.answers {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.answer,
.cta {
  appearance: none;
  border: none;
  border-radius: 18px;
  font: inherit;
  cursor: pointer;
}

.answer {
  width: 100%;
  padding: 18px 18px 18px 20px;
  border: 1px solid rgba(140, 90, 60, 0.14);
  background: linear-gradient(180deg, #fffdfb, #f5ebe1);
  color: var(--text);
  font-weight: 600;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.answer:hover {
  transform: translateY(-1px);
  border-color: rgba(140, 90, 60, 0.3);
  box-shadow: 0 10px 24px rgba(84, 56, 40, 0.08);
}

.answer.is-picked {
  border-color: rgba(140, 90, 60, 0.42);
  background: linear-gradient(180deg, #f9efe5, #f1dfd0);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--accent), #6f4730);
  color: #fffaf6;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(91, 58, 39, 0.16);
}

.cta--soft {
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent);
  border: 1px solid rgba(140, 90, 60, 0.14);
  box-shadow: none;
}

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

.after-result.is-hidden,
.is-hidden {
  display: none !important;
}

.content-block--accent {
  background:
    radial-gradient(circle at top, rgba(202, 160, 124, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 249, 242, 0.98), rgba(241, 229, 217, 0.96));
}

.content-block ul {
  margin: 18px 0 22px;
  padding-left: 18px;
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 18px, 920px);
    padding-top: 18px;
  }

  .page::before,
  .page::after {
    display: none;
  }

  .hero,
  .step-card,
  .content-block {
    padding: 22px;
    border-radius: 22px;
  }

  .step-card,
  .content-block {
    min-height: auto;
    justify-content: flex-start;
  }

  .hero__inner {
    min-height: 260px;
  }

  h1 {
    font-size: 2.6rem;
  }

  .hero__frame {
    padding: 24px;
  }

  .hero__note {
    max-width: none;
  }

  .step-card h2,
  .content-block h3 {
    font-size: 2rem;
    max-width: none;
  }

  .result-layout,
  .result-body {
    grid-template-columns: 1fr;
  }

  .step-card--result .step-badge {
    text-align: center;
  }

  .step-card--result h2,
  .result-main p,
  .result-body p,
  .result-closing {
    max-width: none;
  }

  .result-highlight {
    padding: 22px 20px;
  }

  .result-quote {
    font-size: 1.55rem;
    padding: 22px 20px;
  }

  .cta {
    width: 100%;
  }
}
