:root {
  color-scheme: dark;
  --ink: #0b0b0a;
  --ink-soft: #121210;
  --paper: #eee9df;
  --muted: #aaa398;
  --gold: #c7a75b;
  --gold-bright: #e0c77b;
  --line: rgba(199, 167, 91, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% -20%, rgba(199, 167, 91, 0.10), transparent 34rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.018), transparent 38%),
    var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Inside Webflow the parent owns the viewport height. Removing viewport-based
   minimum heights prevents an iframe resize loop on mobile browsers. */
.is-embedded,
.is-embedded body {
  min-height: 0;
}

.is-embedded .app-shell {
  min-height: 0;
}

button,
input {
  font: inherit;
}

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

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.site-header,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(238, 233, 223, 0.11);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.wordmark img {
  display: block;
  width: 165px;
  height: auto;
}

.eyebrow,
.kicker,
.section-number,
.progress-meta,
label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.67rem;
  font-weight: 650;
}

.eyebrow {
  color: var(--muted);
}

.app-shell {
  width: min(920px, calc(100% - 48px));
  min-height: calc(100vh - 178px);
  margin-inline: auto;
  display: grid;
  align-items: center;
}

.screen {
  width: 100%;
  padding: 72px 0 88px;
  animation: enter 650ms var(--ease) both;
}

.screen[hidden] {
  display: none;
}

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

.intro-screen {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.sigil {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 32px;
}

.sigil-ring,
.sigil-diamond,
.sigil-core {
  position: absolute;
  inset: 0;
  margin: auto;
  border: 1px solid var(--gold);
}

.sigil-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  opacity: 0.72;
  animation: rotate 22s linear infinite;
}

.sigil-ring::before,
.sigil-ring::after {
  content: "";
  position: absolute;
  background: var(--gold);
}

.sigil-ring::before {
  width: 108px;
  height: 1px;
  left: -10px;
  top: 44px;
}

.sigil-ring::after {
  width: 1px;
  height: 108px;
  left: 44px;
  top: -10px;
}

.sigil-diamond {
  width: 58px;
  height: 58px;
  transform: rotate(45deg);
  opacity: 0.62;
}

.sigil-core {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 24px rgba(224, 199, 123, 0.6);
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.kicker {
  margin: 0 0 18px;
  color: var(--gold-bright);
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 6.7rem);
  line-height: 0.91;
  letter-spacing: -0.055em;
}

h1 em {
  color: var(--gold-bright);
  font-weight: 400;
}

.intro-screen h1 {
  font-size: clamp(3rem, 6vw, 4.8rem);
}

.lede {
  max-width: 640px;
  margin: 32px auto;
  color: #c8c2b8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  line-height: 1.7;
}

.lede span {
  display: block;
}

.lede-opening {
  margin-bottom: 10px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 28px;
  border: 1px solid var(--gold);
  border-radius: 0;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

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

.button-primary {
  color: var(--ink);
  background: var(--gold-bright);
}

.button-primary:hover {
  background: #ead795;
}

.time-note,
.preview-note {
  color: #807b73;
  font-size: 0.72rem;
}

.time-note {
  margin-top: 18px;
}

.progress-wrap {
  max-width: 760px;
  margin: 0 auto 52px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.progress-track {
  height: 1px;
  margin-top: 14px;
  background: rgba(238, 233, 223, 0.15);
}

.progress-bar {
  display: block;
  width: 12.5%;
  height: 100%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px rgba(224, 199, 123, 0.45);
  transition: width 500ms var(--ease);
}

.question-panel {
  max-width: 760px;
  margin: 0 auto;
}

.question-panel h2 {
  margin: 0 0 36px;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.answer-list {
  display: grid;
  gap: 10px;
}

.answer-option {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 34px 1fr 24px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  color: var(--paper);
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(238, 233, 223, 0.13);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.answer-option:hover,
.answer-option:focus-visible,
.answer-option[aria-checked="true"] {
  outline: none;
  border-color: var(--gold);
  background: rgba(199, 167, 91, 0.075);
  transform: translateX(4px);
}

.answer-letter {
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
}

.answer-copy {
  color: #d8d2c8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.42;
}

.answer-arrow {
  color: var(--gold);
  opacity: 0.55;
}

.text-button {
  padding: 0;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  font-size: 0.78rem;
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--paper);
  outline: none;
}

#back-button {
  display: block;
  margin: 28px auto 0;
}

.gate-screen {
  max-width: 740px;
  margin: auto;
}

.reveal-card {
  position: relative;
  padding: clamp(30px, 7vw, 68px);
  text-align: center;
  background: linear-gradient(145deg, rgba(199, 167, 91, 0.08), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
}

.reveal-card::before,
.reveal-card::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: var(--gold);
  opacity: 0.7;
}

.reveal-card::before {
  top: 12px;
  left: 12px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.reveal-card::after {
  right: 12px;
  bottom: 12px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.result-pretitle {
  margin: 24px 0 8px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
}

#teaser-name,
#result-name {
  margin: 0;
  color: var(--gold-bright);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.teaser-line {
  max-width: 530px;
  margin: 20px auto 0;
  color: #d4cec4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.6;
}

.gold-rule {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 32px 0;
  color: var(--gold);
}

.gold-rule::before,
.gold-rule::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.reveal-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.gate-copy {
  max-width: 510px;
  margin: 0 auto 26px;
  color: var(--muted);
  line-height: 1.6;
}

#lead-form {
  text-align: left;
}

#lead-form > label:first-child {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
}

input[type="email"] {
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  color: var(--paper);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(238, 233, 223, 0.25);
  border-right: 0;
  border-radius: 0;
  outline: none;
}

input[type="email"]:focus {
  border-color: var(--gold);
}

.consent-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  margin-top: 15px;
  color: #938d84;
  font-size: 0.66rem;
  font-weight: 450;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: none;
  cursor: pointer;
}

.consent-row input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--gold);
}

.form-error {
  min-height: 1.1em;
  margin: 10px 0 0;
  color: #e5a992;
  font-size: 0.76rem;
}

.preview-note {
  margin: 8px 0 0;
  text-align: center;
}

.quiz-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.result-screen {
  max-width: 900px;
  margin: auto;
}

.result-hero {
  position: relative;
  padding: 38px 0 62px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.result-essence {
  max-width: 640px;
  margin: 24px auto 0;
  color: #cec8be;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.6;
  white-space: pre-line;
}

.result-symbol {
  width: 42px;
  height: 42px;
  margin: 34px auto 0;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.result-symbol::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin: 14px;
  border: 1px solid var(--gold-bright);
  border-radius: 50%;
}

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

.result-block {
  min-height: 260px;
  padding: 42px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-block:nth-child(3) {
  border-right: 0;
}

.result-block-wide {
  grid-column: 1 / -1;
  min-height: 0;
  border-right: 0;
}

.section-number {
  margin: 0 0 26px;
  color: var(--gold);
}

.result-block h3,
.collector-rules h3,
.recommendation h3 {
  margin: 0 0 16px;
  font-size: 1.55rem;
}

.result-block p:last-child,
.recommendation p {
  color: #aaa49b;
  line-height: 1.75;
  white-space: pre-line;
}

.secondary-block {
  padding: 44px 42px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg, rgba(199, 167, 91, 0.07), transparent 70%);
}

.secondary-block .section-number {
  margin-bottom: 14px;
}

.secondary-block h3 {
  margin: 0 0 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 400;
}

.secondary-block p:last-child {
  max-width: 680px;
  margin: 0;
  color: #aaa49b;
  line-height: 1.7;
}

.collector-rules {
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}

.collector-rules .kicker {
  text-align: center;
}

.collector-rules ol {
  max-width: 720px;
  margin: 30px auto 0;
  padding: 0;
  list-style: none;
  counter-reset: rules;
}

.collector-rules li {
  counter-increment: rules;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px 0;
  color: #cbc5bb;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.55;
  border-top: 1px solid rgba(238, 233, 223, 0.10);
}

.collector-rules li::before {
  content: "0" counter(rules);
  color: var(--gold);
  font-family: Inter, sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  padding-top: 6px;
}

.recommendation {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 0;
  text-align: center;
}

.recommendation h3 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.recommendation p:not(.section-number) {
  max-width: 610px;
  margin: 0 auto 28px;
}

.recommendation-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 44px auto 0;
  border: 1px solid var(--line);
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 30px;
}

footer {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #625e58;
  font-size: 0.68rem;
  border-top: 1px solid rgba(238, 233, 223, 0.08);
}

@media (max-width: 640px) {
  .site-header,
  footer,
  .app-shell {
    width: min(100% - 32px, 920px);
  }

  .site-header {
    min-height: 72px;
  }

  .eyebrow {
    display: none;
  }

  .wordmark img {
    width: 142px;
  }

  .screen {
    padding: 48px 0 64px;
  }

  .sigil {
    transform: scale(0.82);
    margin-bottom: 18px;
  }

  .intro-screen h1 {
    font-size: clamp(2.75rem, 12vw, 3.8rem);
  }

  .lede {
    margin: 24px auto 28px;
    font-size: 1.02rem;
  }

  .intro-screen .button {
    width: 100%;
  }

  .progress-wrap {
    margin-bottom: 38px;
  }

  .question-panel h2 {
    margin-bottom: 28px;
    font-size: 2rem;
  }

  .answer-option {
    min-height: 66px;
    grid-template-columns: 26px 1fr 14px;
    gap: 10px;
    padding: 12px 13px;
  }

  .answer-copy {
    font-size: 0.94rem;
  }

  .reveal-card {
    padding: 34px 20px 30px;
  }

  .input-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  input[type="email"] {
    border-right: 1px solid rgba(238, 233, 223, 0.25);
  }

  .input-row .button {
    width: 100%;
  }

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

  .result-block,
  .result-block-wide {
    grid-column: auto;
    min-height: 0;
    padding: 34px 12px;
    border-right: 0;
  }

  .secondary-block {
    padding: 34px 12px;
  }

  .collector-rules {
    padding: 46px 0;
  }

  .result-actions {
    align-items: center;
    flex-direction: column;
    gap: 18px;
  }

  footer {
    min-height: 110px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
  }
}

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