/* Brand tokens: swap these to match kimspeed.com exactly. */
:root {
  --plum: #3B1E54;
  --plum-2: #5B2E7E;
  --violet: #7A4BB0;
  --gold: #C9962E;
  --gold-soft: #F3E3BE;
  --paper: #FBF7F1;
  --card: #FFFFFF;
  --ink: #221A2B;
  --muted: #6B6274;
  --line: #E7DED2;
  --error: #A3273A;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(34, 26, 43, .06), 0 8px 24px rgba(34, 26, 43, .06);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--plum-2); text-underline-offset: 3px; }
[hidden] { display: none !important; }

.site-header {
  max-width: 760px; margin: 0 auto; padding: 22px 20px 0;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--plum); text-decoration: none; letter-spacing: -.01em; }
.header-note { font-size: .82rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

main { max-width: 760px; margin: 0 auto; padding: 28px 20px 64px; }
.screen { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.display { font-family: var(--display); font-weight: 600; font-size: clamp(2.1rem, 6vw, 3.3rem); line-height: 1.08; letter-spacing: -.02em; color: var(--plum); margin: 0 0 18px; }
.display em { font-style: italic; color: var(--violet); }
.display-sm { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 4.5vw, 2.2rem); line-height: 1.15; color: var(--plum); margin: 0 0 12px; }
.lede { font-size: 1.12rem; color: var(--ink); max-width: 60ch; }
.note, .fineprint { color: var(--muted); font-size: .92rem; }
.fineprint { font-size: .85rem; max-width: 62ch; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin: 24px 0; }
.stack > * + * { margin-top: 16px; }

.field { display: block; }
.field-label { display: block; font-weight: 600; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: 4px; }
.field-hint { display: block; font-size: .85rem; color: var(--muted); margin-top: 6px; }
input[type=text], input[type=email], textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(122, 75, 176, .15); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--plum); flex: none; }
.form-error { color: var(--error); font-weight: 600; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border-radius: 999px; padding: 14px 26px; border: 2px solid transparent;
  transition: transform .12s, background .15s, color .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: var(--plum-2); }
.btn-secondary { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-secondary:hover { background: var(--plum); color: #fff; }
.btn-ghost { background: transparent; color: var(--plum); border-color: var(--line); padding: 10px 18px; }
.btn-ghost:hover { border-color: var(--plum); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--plum-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* quiz */
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 26px; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--plum), var(--violet)); border-radius: 99px; transition: width .4s ease; }
.question { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 4.4vw, 2.05rem); line-height: 1.2; color: var(--plum); margin: 0 0 22px; outline: none; }
.options { display: grid; gap: 10px; }
.option {
  display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 16px 18px; font: inherit; color: var(--ink); cursor: pointer;
  transition: border-color .15s, transform .12s, box-shadow .15s, background .15s;
}
.option:hover { border-color: var(--violet); box-shadow: var(--shadow); transform: translateY(-1px); }
.option.chosen { border-color: var(--plum); background: #F5EEFA; }
.option-letter {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  background: var(--gold-soft); color: var(--plum);
}
.option.chosen .option-letter { background: var(--plum); color: #fff; }
.option-text { padding-top: 2px; }
.kbd-hint { margin-top: 18px; }
@media (hover: none) { .kbd-hint { display: none; } }

.thinking { display: flex; align-items: center; gap: 14px; color: var(--muted); padding: 48px 0; font-size: 1.05rem; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--violet); animation: bounce 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; background: var(--plum-2); }
.dots i:nth-child(3) { animation-delay: .3s; background: var(--gold); }
@keyframes bounce { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }
.alert { background: #FBEDEF; border: 1px solid #F1C9D0; border-radius: 12px; padding: 16px; }
.alert p { margin: 0 0 10px; }

/* gate */
.gate-mark {
  width: 64px; height: 64px; border-radius: 50%; margin-bottom: 22px;
  background: radial-gradient(circle at 68% 34%, var(--paper) 0 42%, transparent 43%), var(--plum);
  box-shadow: 0 0 0 8px var(--gold-soft);
}

/* results */
.result-hero {
  position: relative; border-radius: 22px; padding: 34px 28px; margin-bottom: 30px; overflow: hidden;
  background: var(--plum); color: #fff;
}
.result-hero::after {
  content: ''; position: absolute; inset: auto -60px -80px auto; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, var(--violet) 0, transparent 70%); opacity: .55;
}
.result-hero::before {
  content: ''; position: absolute; inset: -70px auto auto -50px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0, transparent 70%); opacity: .35;
}
.result-hero > * { position: relative; z-index: 1; }
.result-hero .eyebrow { color: var(--gold-soft); }
.result-name { color: #fff; margin-bottom: 8px; }
.result-tagline { margin: 0; color: #E9DDF3; font-size: 1.05rem; }

.block { margin: 34px 0; }
.block h2 { font-family: var(--display); font-weight: 600; font-size: 1.45rem; color: var(--plum); margin: 0 0 10px; }
.block h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.practice { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.practice-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.practice-item p { margin: 0; }
blockquote { margin: 10px 0 0; padding: 10px 14px; border-left: 3px solid var(--gold); background: #FFFBF2; font-style: italic; border-radius: 0 8px 8px 0; }

.callout { background: var(--gold-soft); border-radius: var(--radius); padding: 22px 24px; }
.callout p:last-child { margin-bottom: 0; }

.snapshot pre {
  white-space: pre-wrap; word-break: break-word; background: var(--card); border: 1px dashed var(--line);
  border-radius: 12px; padding: 16px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .86rem; line-height: 1.55;
}

.faces { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.face { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.face p { margin: 0; }
.face-name { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--plum); }
.face-type { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 2px 0 8px !important; font-weight: 700; }

.reflect { border-top: 1px solid var(--line); padding-top: 24px; }

.voice { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px; box-shadow: var(--shadow); }
.positioning { background: var(--plum); color: #fff; border-radius: 16px; padding: 22px 24px; margin-bottom: 20px; }
.positioning .eyebrow { color: var(--gold-soft); }
.positioning-line { font-family: var(--display); font-size: clamp(1.25rem, 3.6vw, 1.6rem); line-height: 1.3; margin: 0; }
.voice-out > * + * { margin-top: 18px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: #F2EAF8; color: var(--plum); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .92rem; }
.chips-muted li { background: #F1EEEA; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(107, 98, 116, .5); }
.two-col { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.bio { display: grid; gap: 12px; }
.muted { color: var(--muted); margin: 0; }
.bio-after { font-size: 1.1rem; margin: 0; }
.next-offer { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(59, 30, 84, .15); }
.next-title { font-family: var(--display); font-weight: 600; font-size: 1.4rem; color: var(--plum); margin: 0 0 4px; }

.ctas { text-align: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.skeleton { display: grid; gap: 10px; padding: 4px 0; }
.skeleton span { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, #EFE7DC, #F8F3EC, #EFE7DC); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.skeleton span:last-child { width: 62%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.site-footer { text-align: center; color: var(--muted); font-size: .82rem; padding: 0 20px 32px; }

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

.error-detail { display: block; margin-top: 4px; font-size: 0.75rem; font-weight: 400; opacity: 0.7; word-break: break-word; }

/* ---------- v2: landing, live commentary, richer results ---------- */
.get-list { list-style: none; padding: 0; margin: 18px 0 8px; display: grid; gap: 8px; }
.get-list li { position: relative; padding-left: 28px; }
.get-list li::before { content: '✦'; position: absolute; left: 4px; top: 0; color: var(--gold); }
.start-cue { font-weight: 700; color: var(--plum-2); margin: 22px 0 0; }
.question-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 18px; box-shadow: var(--shadow); margin: 14px 0 20px; scroll-margin-top: 16px; }
.question-card.swap { animation: rise .3s ease both; }
.quiz-top { scroll-margin-top: 12px; }
.insight { margin: -8px 0 6px; padding: 12px 16px 12px 40px; position: relative; background: #F5EEFA; border-radius: 12px; color: var(--plum); font-weight: 600; line-height: 1.45; }
.insight::before { content: '✦'; position: absolute; left: 15px; top: 11px; color: var(--violet); }
.insight.pop { animation: pop .45s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } }
.landing-fine { margin-top: 18px; }
.gate-teaser { font-size: 1.15rem; font-weight: 700; color: var(--plum-2); background: #F5EEFA; border-radius: 12px; padding: 12px 16px; }

.result-influence { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--gold-soft); margin: -8px 0 14px; }
.result-hero .lede { color: #fff; }
.result-hero .writing { color: var(--gold-soft); }
.type-block h2 { margin-bottom: 2px; }
.type-tagline { color: var(--violet); font-weight: 700; margin-top: 0; }
.bullets { padding-left: 20px; margin: 8px 0 0; }
.bullets li { margin: 6px 0; }
.sample-label { font-weight: 700; margin: 18px 0 0; }
.contrast { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.contrast-col { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.contrast-col p { margin: 0; }
.contrast-col .eyebrow { margin-bottom: 4px; }
.contrast-arrow { font-size: 1.6rem; color: var(--gold); }
@media (max-width: 520px) { .contrast { grid-template-columns: 1fr; } .contrast-arrow { transform: rotate(90deg); justify-self: center; } }
.sweet-spot { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 4.5vw, 1.9rem); letter-spacing: .04em; color: var(--plum); margin: 4px 0 10px; }
.voice-formula { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--plum); }
.says p { margin: 6px 0; }
.promise-label { margin-top: 20px; }
.promise { font-family: var(--display); font-size: 1.35rem; line-height: 1.35; color: var(--plum); margin-top: 0; }
.ctas { background: var(--plum); color: #fff; border-radius: var(--radius); padding: 28px 24px; }
.ctas h2 { color: #fff; }
.ctas .btn-primary { background: var(--gold); color: var(--plum); }
.ctas .btn-primary:hover { background: #DDAA45; }
.ctas .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
