:root {
  --plum-900: #35143b;
  --plum-800: #54204f;
  --plum-700: #6c2d64;
  --coral: #e97765;
  --coral-soft: #fce7e1;
  --gold: #dda94b;
  --gold-soft: #fbf1d9;
  --sage: #718d75;
  --sage-soft: #e5eee5;
  --ink: #2e2830;
  --muted: #706971;
  --cream: #fbf8f4;
  --paper: #ffffff;
  --line: #e9e1e7;
  --shadow: 0 24px 70px rgba(53, 20, 59, 0.11);
  --radius-lg: 32px;
  --radius-md: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }

button, input { font: inherit; }

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 16px;
  transform: translateY(-180%);
  padding: 10px 16px;
  border-radius: 10px;
  color: white;
  background: var(--plum-900);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

.brand-mark svg {
  width: 100%;
  fill: var(--coral);
  stroke: none;
}

.brand-mark .brand-spark {
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--plum-900);
  letter-spacing: -0.4px;
}

.brand-name span { color: var(--coral); }

.header-note {
  font-size: 13px;
  font-weight: 600;
  color: var(--plum-700);
  padding: 7px 12px;
  background: rgba(84, 32, 79, 0.06);
  border-radius: 999px;
}

.hero {
  min-height: 590px;
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 72px;
  padding: 70px 72px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 12% 5%, rgba(233, 119, 101, 0.22), transparent 26%),
    linear-gradient(135deg, #401842 0%, #5d2354 53%, #381535 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='.1'%3E%3Ccircle cx='6' cy='6' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-copy,
.hero-visual { position: relative; z-index: 1; }

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f8c4b8;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.08;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(42px, 5vw, 67px);
  letter-spacing: -0.045em;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.button {
  min-height: 52px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:focus-visible, .text-button:focus-visible, .answer-option:has(input:focus-visible) { outline: 3px solid rgba(233, 119, 101, 0.45); outline-offset: 3px; }

.button svg,
.text-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  color: white;
  background: var(--coral);
  box-shadow: 0 13px 30px rgba(233, 119, 101, 0.25);
}

.button-primary:hover { background: #df6c5a; box-shadow: 0 15px 34px rgba(233, 119, 101, 0.32); }

.hero-meta { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.67); font-size: 13px; }
.hero-meta i { width: 3px; height: 3px; border-radius: 50%; background: #f5b5a8; }

.hero-visual { min-height: 380px; display: grid; place-items: center; }

.orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-one { width: 330px; height: 330px; background: rgba(233, 119, 101, 0.13); }
.orb-two { width: 230px; height: 230px; right: -34px; bottom: -10px; border: 1px solid rgba(255,255,255,.13); }

.visual-card {
  width: min(390px, 100%);
  min-height: 382px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(20, 4, 20, 0.19);
  backdrop-filter: blur(13px);
}

.visual-label { margin-bottom: 22px; color: rgba(255,255,255,.72); font-size: 13px; font-weight: 600; }

.visual-ring {
  width: 174px;
  height: 174px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  background: conic-gradient(var(--coral) 0 31%, var(--gold) 31% 67%, #8dab91 67% 100%);
  border-radius: 50%;
  padding: 11px;
  transform: rotate(-35deg);
}

.visual-ring::before {
  content: "";
  position: absolute;
  width: 137px;
  height: 137px;
  border-radius: 50%;
  background: #54204f;
}

.visual-ring div { z-index: 1; display: flex; flex-direction: column; align-items: center; transform: rotate(35deg); }
.visual-ring strong { font-family: "Fraunces", serif; font-size: 47px; line-height: 1; }
.visual-ring span { color: rgba(255,255,255,.65); font-size: 12px; }

.visual-themes { width: 100%; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 18px; color: rgba(255,255,255,.82); font-size: 12px; }
.visual-themes span { display: flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-coral { background: var(--coral); }
.dot-gold { background: var(--gold); }
.dot-sage { background: #8dab91; }

.scan-shell {
  margin-top: 32px;
  padding: 64px 72px;
  background: var(--paper);
  border: 1px solid rgba(53,20,59,.06);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 55px rgba(53,20,59,.07);
}

.scan-intro { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: start; }
.section-kicker { margin-bottom: 14px; color: var(--coral); }
.scan-intro h2, .about h2, .results-heading h2 { margin-bottom: 0; color: var(--plum-900); font-size: clamp(32px, 4vw, 46px); letter-spacing: -.025em; }

.intro-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.intro-points p { margin: 0; color: var(--muted); font-size: 14px; }
.intro-points span { display: block; margin-bottom: 7px; color: var(--coral); font-size: 12px; font-weight: 700; }

.question-panel { max-width: 890px; margin: 0 auto; }
.question-panel[hidden], .results[hidden] { display: none; }

.progress-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 10px; }
.progress-row > div { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.progress-label, .progress-percent { color: var(--muted); font-size: 13px; }
.progress-label b { color: var(--plum-900); }
.theme-pill { padding: 4px 9px; border-radius: 999px; background: var(--coral-soft); color: #b34f43; font-size: 11px; font-weight: 700; }

.progress-track { width: 100%; height: 6px; overflow: hidden; margin-bottom: 54px; background: #f0e9ee; border-radius: 999px; }
.progress-track span { display: block; width: 12.5%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), #f09b73); transition: width 300ms ease; }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { max-width: 820px; color: var(--plum-900); font-family: "Fraunces", Georgia, serif; font-size: clamp(28px, 4vw, 40px); font-weight: 600; line-height: 1.2; letter-spacing: -.022em; }
.scale-hint { margin: 16px 0 30px; color: var(--muted); }

.answer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.answer-option { position: relative; display: block; cursor: pointer; }
.answer-option input { position: absolute; opacity: 0; pointer-events: none; }
.answer-content {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 18px 12px;
  color: var(--muted);
  background: #fcfafb;
  border: 1.5px solid var(--line);
  border-radius: 17px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.answer-option:hover .answer-content { transform: translateY(-2px); border-color: #d5bdcf; }
.answer-number { width: 34px; height: 34px; display: grid; place-items: center; color: var(--plum-700); background: #f0e8ef; border-radius: 50%; font-weight: 700; }
.answer-text { font-size: 13px; font-weight: 600; text-align: center; }
.answer-option input:checked + .answer-content { color: var(--plum-900); background: #fff7f4; border-color: var(--coral); box-shadow: 0 9px 24px rgba(233,119,101,.12); }
.answer-option input:checked + .answer-content .answer-number { color: white; background: var(--coral); }

.validation-message { margin: 14px 0 0; color: #a23b3b; font-size: 13px; font-weight: 600; }
.form-actions { display: flex; justify-content: space-between; gap: 15px; margin-top: 40px; }
.button-ghost { color: var(--plum-800); background: transparent; border: 1px solid var(--line); box-shadow: none; }
.button-ghost:disabled { visibility: hidden; }

.results-heading { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 48px; margin-bottom: 42px; }
.results-heading h2 { margin-bottom: 15px; }
.results-heading p:not(.section-kicker) { max-width: 710px; margin-bottom: 0; color: var(--muted); font-size: 17px; }

.score-gauge {
  --score-angle: 0deg;
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 9px;
  border-radius: 50%;
  background: conic-gradient(var(--coral) var(--score-angle), #f0e8ed var(--score-angle));
}
.score-gauge > div { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: white; }
.score-gauge strong { color: var(--plum-900); font-family: "Fraunces", serif; font-size: 39px; line-height: 1; }
.score-gauge span { margin-top: 4px; color: var(--muted); font-size: 11px; }

.theme-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.theme-result { padding: 21px; border-radius: 17px; background: #faf7f9; }
.theme-result-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.theme-result h3 { margin: 0; color: var(--plum-900); font-family: "DM Sans", sans-serif; font-size: 14px; }
.theme-result strong { color: var(--plum-700); font-size: 13px; }
.theme-bar { height: 7px; overflow: hidden; background: #e9e1e7; border-radius: 999px; }
.theme-bar span { display: block; height: 100%; background: var(--theme-color, var(--coral)); border-radius: inherit; }

.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.insight-card { padding: 30px; border-radius: var(--radius-md); }
.strength-card { background: var(--sage-soft); }
.opportunity-card { background: var(--gold-soft); }
.insight-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 12px; background: rgba(255,255,255,.62); }
.insight-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.strength-card .insight-icon { color: #58745d; }
.opportunity-card .insight-icon { color: #a27019; }
.insight-card h3 { margin-bottom: 7px; color: var(--plum-900); font-size: 23px; }
.insight-card > p { margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.insight-card ul { margin: 0; padding: 0; list-style: none; }
.insight-card li { position: relative; margin-top: 11px; padding-left: 20px; font-size: 14px; }
.insight-card li::before { content: ""; position: absolute; left: 1px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5; }

.next-step { display: grid; grid-template-columns: 1.25fr auto; align-items: center; gap: 42px; margin-top: 24px; padding: 37px 39px; color: white; background: linear-gradient(120deg, var(--plum-900), var(--plum-700)); border-radius: var(--radius-md); }
.next-label { display: block; margin-bottom: 10px; color: #f3b4a7; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 700; }
.next-step h3 { max-width: 650px; margin-bottom: 9px; font-size: clamp(23px, 3vw, 31px); }
.next-step p { max-width: 660px; margin-bottom: 0; color: rgba(255,255,255,.7); font-size: 14px; }
.button-light { color: var(--plum-900); background: white; white-space: nowrap; }

.result-actions { display: flex; justify-content: center; margin-top: 28px; }
.text-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px; color: var(--plum-700); background: none; border: 0; cursor: pointer; font-weight: 700; }

.about { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; padding: 96px 72px; }
.about > div > p:not(.section-kicker) { max-width: 680px; color: var(--muted); font-size: 17px; }
.disclaimer { display: flex; align-items: flex-start; gap: 14px; margin-top: 26px; padding: 19px 21px; background: rgba(84,32,79,.05); border-left: 3px solid var(--coral); border-radius: 0 13px 13px 0; }
.disclaimer svg { width: 21px; flex: 0 0 auto; margin-top: 2px; fill: none; stroke: var(--plum-700); stroke-width: 1.8; stroke-linecap: round; }
.disclaimer p { margin: 0; color: var(--muted); font-size: 13px; }
.disclaimer strong { color: var(--plum-900); }

footer { min-height: 85px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer a { color: var(--plum-700); font-weight: 700; text-decoration: none; }
footer a:hover { text-decoration: underline; }

[hidden] { display: none !important; }

body.embed-mode {
  min-width: 0;
  background: #ffffff;
}

body.embed-mode .site-header,
body.embed-mode .hero,
body.embed-mode .about,
body.embed-mode footer {
  display: none !important;
}

body.embed-mode main {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.embed-mode .scan-shell {
  margin: 0;
  padding: 54px clamp(24px, 6vw, 72px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.embed-mode .question-panel,
body.embed-mode .results {
  max-width: 1000px;
  margin-inline: auto;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 44px; padding: 58px 48px; }
  .hero-visual { min-height: 310px; }
  .visual-card { min-height: 310px; }
  .visual-ring { width: 145px; height: 145px; }
  .visual-ring::before { width: 112px; height: 112px; }
  .scan-shell { padding: 54px 48px; }
  .scan-intro, .about { grid-template-columns: 1fr; gap: 30px; }
  .intro-points { gap: 18px; }
  .theme-results { grid-template-columns: 1fr; }
  .next-step { grid-template-columns: 1fr; gap: 24px; }
  .button-light { justify-self: start; }
  .about { padding: 76px 48px; }
}

@media (max-width: 640px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 76px; }
  .header-note { display: none; }
  .brand-name { font-size: 19px; }
  .brand-mark { width: 34px; height: 34px; }
  .hero { gap: 32px; padding: 42px 24px 34px; border-radius: 24px; }
  h1 { font-size: clamp(38px, 12vw, 52px); }
  .hero-lead { font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-meta { flex-wrap: wrap; }
  .hero-visual { min-height: 268px; }
  .visual-card { min-height: 268px; padding: 25px 18px; }
  .visual-label { margin-bottom: 15px; }
  .visual-ring { width: 128px; height: 128px; margin-bottom: 20px; padding: 9px; }
  .visual-ring::before { width: 99px; height: 99px; }
  .visual-ring strong { font-size: 38px; }
  .scan-shell { margin-top: 16px; padding: 38px 22px; border-radius: 24px; }
  .scan-intro h2, .about h2, .results-heading h2 { font-size: 34px; }
  .intro-points { grid-template-columns: 1fr; gap: 18px; }
  .intro-points p { display: grid; grid-template-columns: 33px 1fr; gap: 5px; }
  .intro-points span { margin: 0; }
  .progress-track { margin-bottom: 38px; }
  legend { font-size: 29px; }
  .scale-hint { font-size: 14px; }
  .answer-grid { grid-template-columns: 1fr 1fr; }
  .answer-content { min-height: 98px; }
  .form-actions { margin-top: 30px; }
  .form-actions .button { padding-inline: 17px; }
  .results-heading { grid-template-columns: 1fr; gap: 25px; }
  .score-gauge { width: 122px; height: 122px; }
  .score-gauge strong { font-size: 34px; }
  .insight-grid { grid-template-columns: 1fr; }
  .insight-card { padding: 24px; }
  .next-step { padding: 29px 24px; }
  .button-light { width: 100%; white-space: normal; text-align: center; }
  .about { padding: 64px 7px; }
  footer { min-height: 78px; }
  body.embed-mode .scan-shell { padding: 34px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
