:root {
  --ink: #1e1b16;
  --muted: #6b6258;
  --paper: #f7f3ec;
  --card: #fffdf9;
  --line: #e4ddd0;
  --accent: #7a5cff;
  --accent-deep: #4f3bcc;
  --angel: #2f9e72;
  --devil: #c0392b;
  --gold: #b8893b;
  --shadow: 0 10px 40px rgba(40, 30, 10, 0.08);
  --maxw: 760px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 18px;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.12; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-top: 2.6em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
a { color: var(--accent-deep); }
strong { font-weight: 600; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* Header / footer */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1040px; margin: 0 auto; padding: 18px 22px;
}
.brand { font-family: "Fraunces", serif; font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.site-header nav a { margin-left: 20px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.site-header nav a:hover { color: var(--ink); }
.site-footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 34px 22px 60px; text-align: center; }
.site-footer .disclaimer { max-width: 620px; margin: 0 auto 14px; color: var(--muted); font-size: 0.86rem; }
.foot-nav a { margin: 0 10px; color: var(--muted); font-size: 0.86rem; }
.copy { color: var(--muted); font-size: 0.8rem; margin-top: 10px; }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1.05rem; padding: 16px 30px; border-radius: 14px;
  border: none; cursor: pointer; box-shadow: var(--shadow); transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-lg { font-size: 1.15rem; padding: 19px 40px; }
.btn-block { display: block; width: 100%; }
.cta-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* Hero */
.hero { text-align: center; padding: 40px 0 10px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 600; color: var(--accent-deep); margin-bottom: 14px; }
.hero p.lede { font-size: 1.22rem; color: var(--muted); max-width: 620px; margin: 0 auto 26px; }
.trust-row { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin: 30px 0 0; color: var(--muted); font-size: 0.85rem; }
.trust-row span::before { content: "✓ "; color: var(--angel); font-weight: 700; }

/* Content sections */
.prose { padding-top: 10px; }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 20px 24px; margin: 1.6em 0; box-shadow: var(--shadow); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 1.8em 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-align: center; }
.stat .num { font-family: "Fraunces", serif; font-size: 2rem; color: var(--accent-deep); font-weight: 700; }
.stat .lbl { font-size: 0.86rem; color: var(--muted); }
.refs { font-size: 0.85rem; color: var(--muted); }
.refs li { margin-bottom: 0.7em; }
sup a { text-decoration: none; }

/* Quiz funnel */
.quiz { max-width: 640px; margin: 30px auto; padding: 0 18px; }
.quiz-h1 { font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; text-align: center; margin: 0 0 18px; line-height: 1.3; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.progress > span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .35s ease; }
.progress-label { text-align: center; font-size: 0.82rem; color: var(--muted); margin-bottom: 24px; }
.q-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; box-shadow: var(--shadow); }
.q-facet { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 600; color: var(--accent-deep); margin-bottom: 12px; }
.q-text { font-family: "Fraunces", serif; font-size: 1.45rem; line-height: 1.25; margin-bottom: 22px; }
.options { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 16px; font: inherit; font-size: 1rem; color: var(--ink); cursor: pointer; transition: border-color .1s, background .1s; }
.opt:hover { border-color: var(--accent); }
.opt.selected { border-color: var(--accent); background: #f1edff; }
.opt .dot { width: 18px; height: 18px; border-radius: 99px; border: 2px solid var(--line); flex: 0 0 auto; }
.opt.selected .dot { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #fff; }
.scale-ends { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); margin: 2px 2px 6px; }
.q-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.q-back { background: none; border: none; color: var(--muted); cursor: pointer; font: inherit; font-size: 0.9rem; }
.q-back:disabled { opacity: 0.3; cursor: default; }
/* Funnel step variants (info / reflection / multi-select) */
.q-pre { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }
.q-title { font-family: "Fraunces", serif; font-size: 1.5rem; line-height: 1.2; margin: 0 0 14px; }
.q-info p, .q-reflect p { font-size: 1.02rem; line-height: 1.55; color: var(--ink); margin: 0 0 14px; }
.q-info, .q-reflect { border-left: 4px solid var(--accent); }
.options-multi .opt-check .box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line); flex: 0 0 auto; }
.opt-check.selected .box { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #fff; }
.micro { font-size: 0.78rem; color: var(--muted); margin-top: 14px; }

/* Email gate */
.gate { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px; box-shadow: var(--shadow); text-align: center; }
.gate h2 { margin-top: 0; }
.gate .lock { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.gate input:not([type=checkbox]), .gate select, .gate textarea { width: 100%; padding: 15px 16px; font-size: 1.05rem; border: 1.5px solid var(--line); border-radius: 12px; margin: 8px 0; font-family: inherit; background: #fff; color: var(--ink); box-sizing: border-box; }
.gate input:focus, .gate select:focus, .gate textarea:focus { outline: none; border-color: var(--accent); }
.gate label { display: block; text-align: left; font-weight: 600; font-size: 0.9rem; margin-top: 10px; }
.gate label .muted { color: var(--muted); font-weight: 400; }
.gate .field-row { display: flex; gap: 10px; }
.gate .field-row select { flex: 2; }
.gate .field-row input[type=number] { flex: 1; }
.consent { font-size: 0.8rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; text-align: left; margin: 12px 0; }
.form-msg { font-size: 0.9rem; margin-top: 12px; min-height: 1.2em; }
.form-msg.err { color: var(--devil); }
.form-msg.ok { color: var(--angel); }
.hidden { display: none !important; }

/* Results / angel-devil scale */
.result-hero { text-align: center; padding-top: 20px; }
.confidential-tag { display: inline-block; background: #fbeee9; color: var(--devil); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; padding: 5px 12px; border-radius: 99px; }
.spectrum { position: relative; height: 64px; margin: 40px 0 12px; border-radius: 99px;
  background: linear-gradient(90deg, var(--angel) 0%, #e9d9a6 50%, var(--devil) 100%); box-shadow: var(--shadow); }
.spectrum .marker { position: absolute; top: -14px; transform: translateX(-50%); transition: left .6s cubic-bezier(.2,.8,.2,1); }
.spectrum .marker .pin { width: 4px; height: 92px; background: var(--ink); margin: 0 auto; border-radius: 4px; }
.spectrum .marker .bubble { background: var(--ink); color: #fff; font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 8px; white-space: nowrap; margin-bottom: 4px; }
.spectrum-ends { display: flex; justify-content: space-between; font-size: 1.6rem; }
.spectrum-ends .lbl { font-size: 0.8rem; color: var(--muted); font-family: "Inter"; }
.facet-bars { margin: 34px 0; }
.facet-bar { margin-bottom: 16px; }
.facet-bar .top { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 5px; }
.facet-bar .track { height: 12px; background: var(--line); border-radius: 99px; overflow: hidden; }
.facet-bar .fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width .6s ease; }

/* Result page: named result + offer box */
.result-hero .lock { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.result-h1 { font-family: "Fraunces", Georgia, serif; margin: .2em 0 .3em; }
.result-hero .lede { max-width: 620px; margin: 0 auto 8px; }
.offer-box { margin: 34px auto 0; max-width: 560px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; box-shadow: var(--shadow); text-align: center; }
.offer-box h2 { font-family: "Fraunces", Georgia, serif; margin: 6px 0 8px; }
.offer-badge:empty { display: none; }
.offer-badge { display: inline-block; background: #fbeee9; color: var(--devil); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; padding: 5px 12px; border-radius: 99px; margin: 0 0 6px; }
.offer-price { font-size: 1.4rem; margin: 14px 0 18px; }
.offer-price .was { color: var(--muted); text-decoration: line-through; margin-right: 8px; font-size: 1.05rem; }
.offer-price .now { color: var(--ink); font-weight: 700; font-size: 1.8rem; }

/* Segment picker grid (results / checkout fallback) */
.seg-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 28px 0; text-align: left; }
.seg-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .15s ease; }
.seg-card:hover { transform: translateY(-2px); }
.seg-card h3 { font-family: "Fraunces", Georgia, serif; margin: 0 0 6px; }
.seg-card p { color: var(--muted); margin: 0 0 10px; font-size: 0.92rem; }
.seg-cta { color: var(--accent); font-weight: 600; font-size: 0.9rem; }

/* Checkout page */
.checkout { text-align: center; padding-top: 20px; }
.checkout .lock { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.co-h1 { font-family: "Fraunces", Georgia, serif; margin: .2em 0 .3em; }
.pay-area { margin: 22px auto; max-width: 460px; }
.pay-pending { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; color: var(--muted); }

/* FAQ accordion */
.faq { margin: 18px 0 8px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; background: var(--card); }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; font-family: "Fraunces", Georgia, serif; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* Statistics page: animated per-question answer charts */
.stats-n { text-align: center; color: var(--muted); font-size: 0.95rem; margin: 6px auto 30px; max-width: 560px; }
.stat-facet { margin: 40px 0 8px; }
.stat-facet-title { font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; margin: 0 0 2px; }
.stat-facet-blurb { color: var(--muted); margin: 0 0 18px; font-size: 0.95rem; }
.stat-q { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 16px; background: var(--card); box-shadow: var(--shadow); }
.stat-qtext { font-family: "Fraunces", Georgia, serif; font-size: 1.04rem; line-height: 1.4; margin: 0 0 18px; }
.q-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 0.76rem; font-weight: 700; margin-right: 10px; vertical-align: middle; }
.stat-rows { display: flex; flex-direction: column; gap: 11px; }
.stat-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 5px; }
.stat-opt { font-size: 0.84rem; color: var(--muted); }
.stat-val { font-size: 0.84rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.stat-track { display: block; height: 12px; background: var(--line); border-radius: 99px; overflow: hidden; }
.stat-fill { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--accent); transition: width .85s cubic-bezier(.2,.8,.2,1); }
.stat-fill[data-facet="behavior"] { background: linear-gradient(90deg, #9b8cff, #7a5cff); }
.stat-fill[data-facet="attitude"] { background: linear-gradient(90deg, #f0b46a, #e0892f); }
.stat-fill[data-facet="desire"] { background: linear-gradient(90deg, #e07a6c, #c0392b); }
.stat-row.is-mode .stat-opt, .stat-row.is-mode .stat-val { color: var(--ink); font-weight: 700; }
.stat-row.is-empty { display: none; }
.stat-mode { font-size: 0.82rem; color: var(--accent-deep); margin: -8px 0 14px; font-weight: 600; }
.source-note { color: var(--muted); font-size: 0.82rem; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 18px; }

/* Blog / articles */
.blog-list { padding-top: 30px; }
.post-cards { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.post-card { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(30,27,22,0.10); }
.post-card-title { font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; margin: 0 0 6px; color: var(--ink); }
.post-card-desc { margin: 0 0 10px; color: var(--muted); font-size: 0.96rem; line-height: 1.5; }
.post-card-meta { font-size: 0.8rem; color: var(--accent-deep); font-weight: 600; }
.article { padding-top: 26px; }
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--accent-deep); text-decoration: none; }
.article-meta { color: var(--muted); font-size: 0.86rem; margin: -6px 0 28px; font-weight: 600; }

/* Auth (sign-in) + members area */
.auth-wrap, .members { max-width: 640px; }
.auth-form { margin: 22px 0 18px; }
.auth-form label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.auth-form input { width: 100%; padding: 15px 16px; font-size: 1.05rem; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 12px; font-family: inherit; background: #fff; color: var(--ink); box-sizing: border-box; }
.auth-form input:focus { outline: none; border-color: var(--accent); }
.members-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.members-email { color: var(--muted); font-size: 0.9rem; }
.program-list { display: grid; gap: 16px; margin-top: 22px; }
.program-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.program-card h2 { margin: 0 0 6px; font-size: 1.2rem; }
.program-meta { color: var(--accent-deep); font-weight: 600; font-size: 0.88rem; margin: 0 0 10px; }
.program-note { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Long-form program sales pages (program.html) */
.program-hero { padding-top: 38px; }
.program-body { margin-top: 8px; }
.program-science .cite { color: var(--muted); font-size: 0.86rem; font-style: italic; }
.program-inside .inside-meta { color: var(--muted); font-size: 0.95rem; margin-top: 0; }
.module-list { list-style: none; counter-reset: mod; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.module-list li { counter-increment: mod; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 16px 54px; position: relative; }
.module-list li::before { content: counter(mod); position: absolute; left: 16px; top: 16px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.module-title { display: block; font-weight: 600; font-family: "Fraunces", Georgia, serif; }
.module-blurb { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 3px; }
.value-stack { list-style: none; padding: 0; margin: 16px 0; }
.value-stack li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.value-stack .stack-value { color: var(--muted); white-space: nowrap; }
.stack-total { font-size: 1.05rem; margin-top: 14px; }
.stack-total .was { text-decoration: line-through; color: var(--muted); }
.program-final-cta { padding: 30px 0 44px; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .q-card, .gate { padding: 24px 20px; }
  .site-header nav a { margin-left: 14px; }
  .gate .field-row { flex-direction: column; gap: 0; }
}
