:root {
  --paper: #f7f1e7;
  --paper-2: #efe6f5;
  --card: #fffdf9;
  --navy: #22305e;
  --ink: #2b2f45;
  --soft: #5d6178;
  --lav: #b9a9d6;
  --lav-deep: #7d68b3;
  --gold: #f2c14e;
  --gold-deep: #e0a82a;
  --line: #e4dccd;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(34, 48, 94, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lav-deep); }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.center { text-align: center; }
.soft { color: var(--soft); }
.fine { font-size: .85rem; color: var(--soft); margin-top: .8em; }

.view { display: none; min-height: 100vh; }
.view.active { display: block; }

/* buttons */
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 800;
  background: var(--gold); color: var(--navy); border-radius: 999px;
  padding: .8em 1.6em; box-shadow: 0 4px 0 var(--gold-deep); transition: transform .08s, box-shadow .08s;
  text-decoration: none; display: inline-block; text-align: center;
}
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--gold-deep); }
.btn:focus-visible, .opt:focus-visible, .back:focus-visible { outline: 3px solid var(--lav-deep); outline-offset: 3px; }
.btn-big { font-size: 1.15rem; padding: .95em 2em; }
.btn-small { font-size: .9rem; padding: .5em 1.1em; box-shadow: 0 3px 0 var(--gold-deep); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 1100px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Fraunces", serif; font-weight: 600; font-size: 1.3rem; color: var(--navy); text-decoration: none; }

/* sections */
section { padding: 56px 20px; }
section > * { max-width: 1000px; margin-left: auto; margin-right: auto; }
.band { background: var(--paper-2); }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; max-width: 1100px; margin: 0 auto; padding-top: 24px; }
.hero > * { max-width: none; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 800; color: var(--lav-deep); }
.lead { font-size: 1.15rem; color: var(--soft); }
.hero-img img { border-radius: 28px; box-shadow: var(--shadow); max-height: 560px; width: 100%; object-fit: cover; object-position: center 30%; }

.cards { display: grid; gap: 18px; margin-top: 24px; margin-bottom: 24px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--soft); }
.card-icon { font-size: 1.8rem; margin-bottom: 6px; }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 24px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps p { color: var(--soft); margin: 0; }
.num { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }

.inside-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.inside-imgs { position: relative; height: 420px; }
.inside-imgs img { position: absolute; width: 62%; border-radius: 10px; box-shadow: 0 10px 30px rgba(34,48,94,.18); background: #fff; }
.tilt-l { left: 0; top: 0; transform: rotate(-4deg); }
.tilt-r { right: 0; bottom: 0; transform: rotate(3deg); }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: .55em; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--lav-deep); font-weight: 800; }

.nimbu { display: flex; gap: 32px; align-items: center; max-width: 820px; margin: 0 auto; }
.nimbu > * { margin: 0; }
.nimbu img { width: 180px; flex: none; border-radius: 50%; }

.pricing { text-align: center; }
.price-card { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 30px; max-width: 420px; margin: 20px auto 0; text-align: left; }
.price-card .btn { width: 100%; }
.price-card .fine { text-align: center; }
.price { font-family: "Fraunces", serif; font-size: 3rem; color: var(--navy); font-weight: 600; text-align: center; margin-bottom: 10px; }

.faq details { background: var(--card); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; box-shadow: var(--shadow); max-width: 760px; }
.faq h2 { max-width: 760px; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--navy); }
.faq details p { margin: .7em 0 0; color: var(--soft); }
.final { text-align: center; background: var(--navy); }
.final h2 { color: #fff; }

.foot { text-align: center; padding: 30px 20px 40px; font-size: .9rem; color: var(--soft); }
.foot p { margin: .3em 0; }

/* quiz */
.quiz-top { display: flex; align-items: center; gap: 14px; padding: 16px 20px; max-width: 640px; margin: 0 auto; }
.back { appearance: none; border: 0; background: none; font-size: 1.5rem; color: var(--navy); cursor: pointer; width: 40px; height: 40px; border-radius: 50%; }
.back[disabled] { visibility: hidden; }
.bar { flex: 1; height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--lav-deep); border-radius: 99px; transition: width .3s; }
.count { font-size: .85rem; color: var(--soft); min-width: 40px; text-align: right; }
.quiz-body { max-width: 640px; margin: 0 auto; padding: 12px 20px 60px; }
.quiz-body h1 { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: .3em; }
.q-hint { color: var(--soft); margin-bottom: 1.2em; }
.opts { display: grid; gap: 12px; margin-top: 18px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opt {
  appearance: none; font: inherit; text-align: left; cursor: pointer; width: 100%;
  background: var(--card); border: 2px solid var(--line); border-radius: 16px;
  padding: 16px 18px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 12px;
  transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--lav); }
.opt.sel { border-color: var(--lav-deep); background: #f3eefb; }
.opt .emo { font-size: 1.5rem; }
.opt .box { width: 22px; height: 22px; border: 2px solid var(--lav); border-radius: 6px; flex: none; display: grid; place-items: center; font-size: .8rem; color: #fff; }
.opt.sel .box { background: var(--lav-deep); border-color: var(--lav-deep); }
.q-next { margin-top: 22px; width: 100%; }
.q-next[disabled] { opacity: .45; cursor: not-allowed; }
.field { width: 100%; font: inherit; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); margin-top: 10px; }
.field:focus { outline: none; border-color: var(--lav-deep); }
.interlude { text-align: center; padding-top: 30px; }
.interlude img { margin: 0 auto 20px; width: 150px; }
.interlude p { font-size: 1.15rem; }

/* loading */
.loading { max-width: 480px; margin: 0 auto; padding: 80px 20px; text-align: center; }
.loading img { margin: 0 auto 30px; width: 160px; }
.breathe { animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: translateY(6px) scale(.97); } 50% { transform: translateY(-8px) scale(1.04); } }
#load-steps { list-style: none; padding: 0; text-align: left; display: inline-block; }
#load-steps li { padding: 6px 0 6px 32px; position: relative; color: var(--soft); opacity: .35; transition: opacity .3s; }
#load-steps li.on { opacity: 1; color: var(--ink); }
#load-steps li.done::before { content: "✓"; position: absolute; left: 4px; color: var(--lav-deep); font-weight: 800; }
#load-steps li.on:not(.done)::before { content: ""; position: absolute; left: 4px; top: 13px; width: 14px; height: 14px; border: 2px solid var(--lav); border-top-color: var(--lav-deep); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .breathe, #load-steps li::before { animation: none !important; } }

/* results */
.results { max-width: 720px; margin: 0 auto; padding: 10px 20px 40px; }
.r-head { text-align: center; }
.r-head img { width: 120px; margin: 0 auto 10px; border-radius: 50%; }
.interlude img, .loading img { border-radius: 50%; }
.r-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin: 18px 0; }
.r-card h2 { font-size: 1.35rem; }
.profile { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.profile div { font-size: .95rem; }
.profile span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); font-weight: 800; }
.quote { font-family: "Fraunces", serif; font-size: 1.15rem; color: var(--navy); border-left: 4px solid var(--gold); padding-left: 14px; margin: .6em 0 1em; }
.routine { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.routine li { padding: 12px 0 12px 46px; position: relative; border-top: 1px solid var(--line); }
.routine li:first-child { border-top: 0; }
.routine li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--lav); color: var(--navy); display: grid; place-items: center; font-weight: 800; }
.routine b { color: var(--navy); }
.routine .min { color: var(--soft); font-size: .85rem; margin-left: 6px; }
.locked { filter: blur(5px); user-select: none; pointer-events: none; }
.lock-note { text-align: center; font-weight: 700; color: var(--lav-deep); margin-top: 6px; }
.chart-prev { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; }
.chart-prev img { border-radius: 8px; box-shadow: 0 6px 20px rgba(34,48,94,.15); }
.buy { text-align: center; background: var(--navy); color: #fff; border-radius: 24px; padding: 28px 22px; margin: 24px 0; }
.buy h2 { color: #fff; }
.buy .price { color: #fff; margin: 0; }
.buy .ticks { display: inline-block; text-align: left; margin: 14px 0 18px; }
.buy .ticks li::before { color: var(--gold); }
.buy .btn { width: 100%; max-width: 420px; }
.buy .fine { color: #c8cbe0; }
.retake { text-align: center; }
.retake button { background: none; border: 0; color: var(--lav-deep); text-decoration: underline; font: inherit; cursor: pointer; }

@media (max-width: 800px) {
  body { font-size: 16px; }
  section { padding: 40px 16px; }
  .top { padding: 12px 16px; }
  .hero { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero-img { order: -1; }
  .hero-img img { max-height: 300px; }
  .hero .btn-big { width: 100%; }
  .cards.three, .steps { grid-template-columns: 1fr; }
  .inside-grid { grid-template-columns: 1fr; }
  .inside-imgs { height: 300px; max-width: 360px; margin: 0 auto; width: 100%; }
  .nimbu { flex-direction: column; text-align: center; }
  .nimbu img { width: 140px; }
  .quiz-top, .quiz-body, .results { padding-left: 16px; padding-right: 16px; }
  .opts.two { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; }
  .chart-prev { grid-template-columns: 1fr; }
  .chart-prev img { max-width: 220px; margin: 0 auto; }
}

/* cookie banner */
#wk-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin: 0 auto; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(34,48,94,.22); padding: 16px 18px; font-size: .95rem; }
#wk-cookie p { margin: 0 0 12px; }
.wk-cookie-btns { display: flex; gap: 10px; }
.wk-cookie-btns button { flex: 1; font: inherit; font-weight: 800; padding: 10px 14px; border-radius: 999px; cursor: pointer; border: 2px solid var(--navy); background: #fff; color: var(--navy); }
.wk-cookie-btns button[data-c="yes"] { background: var(--navy); color: #fff; }
.tax-note { text-align: center; font-size: .85rem; color: var(--soft); margin: 4px 0 10px; }
.buy .tax-note { color: #c8cbe0; }
/* free lead-magnet box on the results page */
.freebie { text-align: center; background: var(--paper-2); }
.freebie p { margin-bottom: 12px; }
.freebie [data-reach-form] { min-height: 150px; }
.btn-ghost { background: #fff; color: var(--navy); border: 2px solid var(--navy); box-shadow: 0 3px 0 var(--navy); }
.btn-ghost:active { box-shadow: 0 1px 0 var(--navy); }
