:root {
  --plum: #3B2A45;        /* text */
  --plum-soft: #6A5876;   /* secondary text */
  --lilac: #C9B2E3;
  --lilac-deep: #9C82C2;
  --lilac-mist: #F3ECFA;
  --pink: #F5C6D6;
  --pink-deep: #D98BA8;
  --blush: #FCEFF4;
  --white: #FFFFFF;
  --line: #E8DDF3;
  --radius: 22px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  color: var(--plum);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  -webkit-font-smoothing: antialiased;
}
.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(60vmax 60vmax at 0% 0%, #EFE3FA 0%, transparent 60%),
    radial-gradient(55vmax 55vmax at 100% 100%, #FCE4EE 0%, transparent 60%),
    #FAF5FB;
}

/* Header */
.top { width: 100%; max-width: 600px; padding: 22px 4px 14px; }
.brand { display: flex; align-items: center; gap: 10px; }
.mono {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--lilac); color: #fff;
  font-family: var(--serif); font-size: 17px; font-weight: 600;
  display: grid; place-items: center; letter-spacing: .5px;
}
.brand-name { font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--plum-soft); font-weight: 600; }
.progress { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.progress-bar { flex: 1; height: 6px; background: var(--white); border-radius: 99px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lilac), var(--pink-deep)); border-radius: 99px; transition: width .4s ease; }
.progress-text { font-size: 13px; color: var(--plum-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Card */
.card {
  width: 100%; max-width: 600px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(59,42,69,.04), 0 18px 50px -18px rgba(156,130,194,.35);
  padding: 36px 28px 32px;
  outline: none;
}
@media (min-width: 640px) { .card { padding: 48px 52px 44px; } }

.screen { animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
  .progress-bar span { transition: none; }
}

.pill {
  display: inline-block;
  background: var(--blush); color: #A4557A;
  border: 1px solid #F6D3E0;
  font-size: 11.5px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 99px; margin-bottom: 18px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; margin: 0 0 14px; color: var(--plum); }
h1 { font-size: clamp(32px, 7vw, 44px); }
h2 { font-size: clamp(25px, 5.4vw, 31px); }
h3 { font-size: 23px; }
.sub { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--lilac-deep); margin: -4px 0 22px; }
p { margin: 0 0 14px; }
.lede p { font-size: 17.5px; }
.stack-lines p { margin: 0 0 4px; }
.stack-lines { margin-bottom: 18px; }
.muted { color: var(--plum-soft); }
.small { font-size: 14px; }
.hint { font-size: 14px; color: var(--plum-soft); font-style: italic; margin-top: -4px; }

/* Buttons */
.btn {
  appearance: none; border: 0; cursor: pointer;
  font: 600 16.5px/1.2 var(--sans); letter-spacing: .2px;
  color: var(--plum);
  background: linear-gradient(100deg, #DCC9F2 0%, #F7CADB 100%);
  padding: 17px 28px; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; text-decoration: none; text-align: center;
  box-shadow: 0 10px 24px -12px rgba(217,139,168,.9);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: saturate(1.15); box-shadow: 0 14px 28px -12px rgba(217,139,168,.95); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .opt:focus-visible, .link:focus-visible, input:focus-visible { outline: 3px solid var(--lilac-deep); outline-offset: 3px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
@media (min-width: 640px) { .btn { width: auto; min-width: 300px; } }
.btn-row { margin-top: 26px; }

.link {
  background: none; border: 0; padding: 6px 2px; cursor: pointer;
  font: 500 15px var(--sans); color: var(--plum-soft);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--lilac);
}
.link:hover { color: var(--plum); }
.nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 12px; }

/* Answer options */
.opts { display: grid; gap: 12px; margin-top: 24px; }
.opt {
  appearance: none; cursor: pointer; text-align: left;
  font: 400 16.5px/1.4 var(--sans); color: var(--plum);
  background: var(--white);
  border: 1.5px solid var(--line); border-radius: 16px;
  padding: 15px 18px;
  display: flex; gap: 14px; align-items: flex-start;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.opt:hover { border-color: var(--lilac); background: #FCFAFE; }
.opt .dot { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--lilac); margin-top: 1px; display: grid; place-items: center; }
.opt b { font-weight: 600; }
.opt[aria-pressed="true"] { border-color: var(--pink-deep); background: var(--blush); }
.opt[aria-pressed="true"] .dot { border-color: var(--pink-deep); background: var(--pink-deep); }
.opt[aria-pressed="true"] .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }

.qnum { font-size: 12.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--lilac-deep); font-weight: 600; margin-bottom: 10px; }
.qsub { color: var(--plum-soft); font-size: 17px; }

/* Scale legend on the instructions screen */
.legend { list-style: none; padding: 0; margin: 18px 0 20px; display: grid; gap: 8px; }
.legend li { background: var(--lilac-mist); border-radius: 12px; padding: 10px 14px; font-size: 15.5px; }

/* Lead form */
.field { display: grid; gap: 6px; margin-top: 16px; }
.field label { font-size: 14px; font-weight: 600; }
.field input {
  font: 400 17px var(--sans); color: var(--plum);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #FDFBFE;
}
.field input:focus { border-color: var(--lilac-deep); background: #fff; }
.error { color: #B4426F; font-size: 14px; margin-top: 10px; min-height: 1em; }

/* Result */
.result-greet { font-size: 15px; color: var(--plum-soft); margin-bottom: 6px; }
.start-box {
  background: linear-gradient(135deg, var(--lilac-mist), var(--blush));
  border-radius: 18px; padding: 20px 22px; margin: 22px 0;
}
.start-box .label { display: block; font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 600; color: #A4557A; margin-bottom: 6px; }
.start-box p:last-child { margin-bottom: 0; }
.note { font-size: 14.5px; color: var(--plum-soft); border-left: 3px solid var(--lilac); padding: 2px 0 2px 14px; margin: 18px 0; }
.cta-q { font-family: var(--serif); font-size: 22px; margin: 26px 0 6px; }
.dm-help { font-size: 14px; color: var(--plum-soft); margin-top: 12px; }
.invite {
  margin-top: 36px; padding: 30px 24px; border-radius: 20px;
  background: linear-gradient(160deg, #F6EEFC 0%, #FDEFF5 100%);
  text-align: center;
}
.invite h3 { font-size: 24px; }
.tagline { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--lilac-deep); margin: 22px 0 0; }
.disclaimer { font-size: 13px; color: var(--plum-soft); margin-top: 26px; text-align: center; }
.retake { text-align: center; margin-top: 16px; }

/* Footer */
.foot { width: 100%; max-width: 600px; padding: 22px 4px 40px; text-align: center; }
.foot p { font-size: 12.5px; color: var(--plum-soft); margin: 0; }
.noscript { text-align: center; padding: 20px; }
