/* ---------- tokens ---------- */
:root {
  --bg: #F4F2FA;          /* soft lilac-tinted porcelain */
  --surface: #FFFFFF;
  --ink: #001944;         /* brand navy */
  --ink-2: #5A6480;       /* slate, secondary text */
  --line: #DDD8EC;
  --lav: #CCABFF;         /* brand lavender */
  --lav-soft: #EFE6FF;    /* lavender tint for selected states */
  --teal: #4B24B0;        /* primary action (violet, AA on white) */
  --teal-deep: #35187E;
  --gold: #F4B942;        /* the unlock moment only */
  --gold-deep: #D99A1E;
  --tint: #FAF8FF;
  --radius: 18px;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --shadow: 0 10px 30px rgba(20, 33, 61, .08), 0 2px 6px rgba(20, 33, 61, .05);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--body); }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 50; }
code { font-size: .9em; background: var(--tint); padding: 1px 6px; border-radius: 6px; }

h1, h2, h3, .display, .card-title, .brand { font-family: var(--display); letter-spacing: -0.015em; }
h1.display { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; line-height: 1.02; margin: .2em 0 .35em; font-variation-settings: "opsz" 96; }
h1.display em { font-style: normal; color: var(--teal); }
h2 { font-size: 1.35rem; font-weight: 700; margin: 1.6em 0 .5em; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; margin: 0 0 1.2em; }
.eyebrow { font: 600 .78rem/1.3 var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--teal-deep); margin: 0 0 .6em; }
.eyebrow a { color: inherit; text-decoration: none; }
.muted { color: var(--ink-2); }
.tiny { font-size: .85rem; }
.center { text-align: center; }
.notice { background: #FFF6DB; border: 1px solid #F1D68A; padding: 10px 14px; border-radius: 10px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 32px 20px; }
.wrap.narrow { max-width: 680px; }

/* ---------- header / footer ---------- */
.top { display: flex; align-items: center; gap: 24px; padding: 14px 20px; max-width: 1080px; margin: 0 auto; }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand.small { font-size: 1.05rem; }
.brand.has-logo { padding: 2px 0; }
.brand.has-logo img { display: block; height: auto; max-height: 34px; width: auto; }
.brand-mark { width: 22px; height: 22px; border-radius: 7px 7px 7px 2px; background: linear-gradient(135deg, var(--teal) 0 55%, var(--lav) 55%); display: inline-block; }
.brand-mark-img { width: 26px; height: 26px; display: inline-block; vertical-align: -5px; }
.brand.small .brand-mark-img { width: 22px; height: 22px; vertical-align: -4px; }
.topnav { display: flex; gap: 4px; overflow-x: auto; margin-left: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: 999px; font-size: .95rem; white-space: nowrap; }
.topnav a[aria-current], .topnav a:hover { background: var(--surface); color: var(--ink); }

.foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 20px 40px; }
.foot-grid { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot .tiny { max-width: 1040px; margin: 18px auto 0; }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; } }

.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; background: var(--ink); color: #fff; padding: 12px 14px; border-radius: 14px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); max-width: 720px; margin: 0 auto; }
.cookie p { margin: 0; font-size: .88rem; }
.cookie a { color: var(--gold); }
.cookie button { background: var(--gold); color: var(--ink); border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 600; cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--teal); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.btn:hover { background: var(--teal-deep); color: #fff; transform: translateY(-1px); }
.btn.big { padding: 15px 28px; font-size: 1.05rem; }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.gold:hover { background: var(--gold-deep); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: var(--surface); }
button.link { background: none; border: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; padding: 8px 0; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 44px; }
.hero-sample { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.sample-q { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.25; margin: 0 0 14px; }
.sample-opts { display: grid; gap: 8px; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; } }

.band { padding-top: 12px; }
.band-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.band-head h2 { margin: 0; }
.band-head h2 a { color: var(--ink); text-decoration: none; }
.band-head p { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border-radius: var(--radius); padding: 18px 18px 20px; text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: transform .12s ease, border-color .12s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--line); color: var(--ink); }
.card .eyebrow { margin: 0; }
.card-title { font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.card-tag { color: var(--ink-2); font-size: .95rem; }

.how .steps { padding-left: 1.2em; }
.how .steps li { margin: .5em 0; }

/* ---------- quiz ---------- */
.quiz-head .btn { margin-top: 8px; }
.progress { display: flex; gap: 5px; margin: 8px 0 6px; }
.progress span { flex: 1; height: 6px; border-radius: 999px; background: var(--line); transition: background .25s ease; }
.progress span.done { background: var(--teal); }
.progress span:not(.done):not(.cur) { background: var(--line); }
.progress span.cur { background: var(--gold); }
.counter { margin: 0 0 18px; }
.q { border: 0; padding: 0; margin: 0 0 18px; }
.q-text { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 4.5vw, 1.8rem); line-height: 1.18; margin: 0 0 18px; padding: 0; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; text-decoration: none; color: var(--ink); font-size: 1.02rem; line-height: 1.35; transition: border-color .12s ease, transform .12s ease, background .12s ease; }
.opt:hover { border-color: var(--teal); transform: translateX(2px); color: var(--ink); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt.picked, .opt:has(input:checked) { border-color: var(--teal); background: var(--lav-soft); }
.opt:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.stepper-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.quiz-foot { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 6px; }
.q.enter { animation: slideIn .28s ease both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* ---------- result / locker : the sealed card ---------- */
.result-name { color: var(--teal); }
.seal-card { position: relative; background: var(--surface); border-radius: 22px; padding: 26px 26px 30px; box-shadow: var(--shadow); overflow: hidden; margin: 8px 0 22px; }
.seal-card p { margin: 0 0 1em; }
.seal-card h2 { margin-top: 1.4em; }
.seal-peek { max-height: 240px; overflow: hidden; }
.seal-band { position: absolute; left: 0; right: 0; bottom: 0; padding: 88px 26px 26px; background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.88) 30%, #fff 62%); text-align: center; transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .5s ease; }
.seal { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 12px; background: radial-gradient(circle at 35% 30%, #FBD879, var(--gold) 55%, var(--gold-deep)); box-shadow: 0 8px 22px rgba(217,154,30,.35), inset 0 0 0 6px rgba(255,255,255,.55), inset 0 0 0 8px rgba(20,33,61,.15); display: grid; place-items: center; transform: rotate(-8deg); font: 700 .78rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); transition: transform .5s ease, opacity .4s ease; }
.seal-msg { font-size: .98rem; color: var(--ink-2); max-width: 32em; margin: 0 auto !important; }
.seal-card.open .seal-band { transform: translateY(110%); opacity: 0; }
.seal-card.open .seal { transform: rotate(20deg) scale(1.15); opacity: 0; }
.seal-body h2 { font-size: 1.15rem; }
.traits, .tips { padding-left: 1.2em; }
.traits li, .tips li { margin: .35em 0; }
.report { border-left: 3px solid var(--lav); padding-left: 16px; background: var(--tint); padding: 14px 16px; border-radius: 0 12px 12px 0; }

.locker { background: var(--surface); border-radius: 22px; padding: 22px 24px 26px; margin-top: 8px; box-shadow: var(--shadow); }
.locker h2 { margin-top: 0; }
.disclosure { color: var(--ink-2); font-size: .97rem; }
.locker .btn.gold { margin: 8px 0 6px; }
.embed { margin: 10px 0; }
.waiting { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .92rem; margin: 16px 0 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(.7); opacity: .6; } 50% { transform: scale(1); opacity: 1; } }

.offerwall { display: grid; gap: 10px; }
.offer { display: flex; gap: 12px; align-items: center; background: var(--tint); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; text-decoration: none; color: var(--ink); transition: border-color .12s ease, transform .12s ease; }
.offer:hover { border-color: var(--teal); transform: translateX(2px); }
.offer img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: var(--line); }
.offer b { display: block; font-family: var(--display); font-size: 1.02rem; }
.offer span { color: var(--ink-2); font-size: .9rem; }
.offer .sp { margin-left: auto; font: 600 .7rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); flex: none; }

.share { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 20px; }
.emailbox { background: var(--surface); border-radius: 18px; padding: 18px 20px; margin: 10px 0 24px; }
.emailbox label { display: block; font-weight: 600; margin-bottom: 8px; }
.emailbox .row { display: flex; gap: 8px; }
.emailbox input { flex: 1; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 999px; min-width: 0; }
@media (max-width: 480px) { .emailbox .row { flex-direction: column; } }

/* ---------- prose pages ---------- */
.prose h2 { font-size: 1.2rem; }
.prose p { max-width: 42em; }

/* ---------- admin ---------- */
.admin .kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 10px 0 24px; }
.admin .kpis div { background: var(--surface); border-radius: 14px; padding: 14px 16px; color: var(--ink-2); font-size: .9rem; }
.admin .kpis span { display: block; font: 800 1.7rem/1.1 var(--display); color: var(--ink); margin-bottom: 4px; }
.tablewrap { overflow-x: auto; background: var(--surface); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 600; color: var(--ink-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.code { background: var(--ink); color: #fff; padding: 12px 14px; border-radius: 12px; overflow-x: auto; font-size: .82rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
