:root {
  --ink: #231f24;
  --muted: #6f6671;
  --soft: #f8f4ec;
  --paper: #fffaf2;
  --line: rgba(47, 24, 61, 0.13);
  --accent: #c79a35;
  --accent-dark: #5a276c;
  --eggplant: #2f183d;
  --purple: #6f3a86;
  --rose: #a95b77;
  --gold: #c79a35;
  --shadow: 0 24px 70px rgba(47, 24, 61, 0.16);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(199, 154, 53, 0.18), transparent 30rem),
    radial-gradient(circle at 100% 0%, rgba(111, 58, 134, 0.12), transparent 28rem),
    linear-gradient(135deg, #fffaf2 0%, #f8f4ec 100%);
  font-family: "Manrope", sans-serif;
  letter-spacing: 0;
}

button, input, textarea, select {
  font: inherit;
}

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

.progress-bar-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(255, 250, 240, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(47, 24, 61, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity 240ms ease, transform 240ms ease;
}

body.in-assessment .progress-bar-wrap {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.progress-bar-track {
  width: min(620px, 100%);
  height: 7px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: rgba(47, 24, 61, 0.1);
  overflow: hidden;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--accent));
  transition: width 300ms ease;
}

.progress-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.step-dot {
  width: 9px;
  height: 9px;
  overflow: hidden;
  color: transparent;
  border-radius: 999px;
  background: rgba(47, 24, 61, 0.22);
  transition: width 220ms ease, background 220ms ease;
}

.step-dot.active {
  width: 32px;
  background: var(--eggplant);
}

.screen {
  display: none;
  min-height: 100vh;
  padding: 96px 18px 64px;
}

.screen.active {
  display: block;
  animation: rise 420ms ease both;
}

#screen-0 {
  position: relative;
  padding-top: 52px;
  overflow: hidden;
}

.screen-inner {
  width: min(980px, 100%);
  margin: 0 auto;
}

.hero-inner {
  min-height: calc(100vh - 124px);
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 26px;
}

.hero-bg,
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  right: clamp(18px, 8vw, 110px);
  top: 16vh;
  width: min(38vw, 360px);
  aspect-ratio: 1;
  border: 1px solid rgba(90, 39, 108, 0.18);
  border-radius: 44% 56% 52% 48%;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.52), rgba(255,255,255,0.08)),
    radial-gradient(circle at 34% 32%, rgba(199, 154, 53, 0.3), transparent 34%),
    radial-gradient(circle at 70% 68%, rgba(111, 58, 134, 0.2), transparent 38%);
  box-shadow: var(--shadow);
}

.hero-grain {
  opacity: 0.24;
  background-image: linear-gradient(rgba(47,24,61,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(47,24,61,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
}

.eyebrow,
.bridge-eyebrow,
.cta-eyebrow,
.result-block-label {
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-title,
h2 {
  margin: 0;
  max-width: 820px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-title {
  font-size: clamp(4.2rem, 14vw, 9.8rem);
}

.hero-title span {
  display: inline-block;
  color: var(--purple);
  font-style: italic;
}

.hero-sub,
.step-intro {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 2.5vw, 1.42rem);
  line-height: 1.55;
}

.hero-card,
.form-field,
.scores-card,
.result-block,
.result-bridge,
.cta-block {
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.8);
  box-shadow: 0 18px 50px rgba(47, 24, 61, 0.08);
  backdrop-filter: blur(16px);
}

.hero-card {
  width: min(760px, 100%);
  border-radius: 28px;
  padding: 18px;
}

.hero-card-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}

.hero-card-item {
  display: grid;
  gap: 6px;
}

.hero-card-num {
  color: var(--accent-dark);
  font-weight: 800;
}

.hero-card-label {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.hero-card-divider {
  width: 1px;
  background: var(--line);
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  min-height: 58px;
  border-radius: 999px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn-primary {
  color: #fffaf0;
  background: var(--eggplant);
  box-shadow: 0 18px 36px rgba(47, 24, 61, 0.22);
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 250, 240, 0.82);
  border: 1px solid var(--line);
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(47, 24, 61, 0.14);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.hero-note,
.site-footer,
.cta-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-footer,
.site-footer {
  position: relative;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.step-header,
.results-header {
  display: grid;
  gap: 16px;
  margin-bottom: 34px;
}

h2 {
  font-size: clamp(3.2rem, 9vw, 6.6rem);
}

.form-stack,
.scores-grid {
  display: grid;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 14px;
  border-radius: 28px;
  padding: clamp(22px, 5vw, 40px);
}

.field-coach {
  max-width: 720px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.situation-intro {
  max-width: 780px;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.scenario-section {
  display: grid;
  gap: 12px;
}

.scenario-section-label {
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.scenario-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(47, 24, 61, 0.16);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.56);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.scenario-card:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 39, 108, 0.42);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(47, 24, 61, 0.08);
}

.scenario-card[aria-pressed="true"] {
  transform: scale(1.012);
  border: 2px solid var(--purple);
  padding: 15px;
  background: linear-gradient(135deg, rgba(111, 58, 134, 0.11), rgba(199, 154, 53, 0.13));
  box-shadow: 0 12px 28px rgba(47, 24, 61, 0.12);
}

.scenario-card-heading {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 20px;
  gap: 9px;
  align-items: center;
}

.scenario-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--accent-dark);
  background: rgba(199, 154, 53, 0.16);
}

.scenario-icon svg {
  width: 18px;
  height: 18px;
}

.scenario-title {
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.25;
}

.scenario-check {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 24, 61, 0.2);
  border-radius: 50%;
  color: transparent;
  font-size: 0.75rem;
  font-weight: 900;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.scenario-card[aria-pressed="true"] .scenario-check {
  border-color: var(--accent-dark);
  color: #fffaf0;
  background: var(--accent-dark);
}

.scenario-description {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.48;
}

.field-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-divider::before,
.field-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

label {
  font-weight: 800;
  font-size: clamp(1.25rem, 4vw, 2rem);
  line-height: 1.18;
}

.required {
  color: var(--accent);
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid rgba(47, 24, 61, 0.14);
  border-radius: 20px;
  padding: 18px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  outline: none;
}

textarea:focus,
input:focus,
select:focus,
.rating-btn:focus-visible,
button:focus-visible,
a:focus-visible {
  box-shadow: 0 0 0 4px rgba(111, 58, 134, 0.18);
}

.scenario-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(90, 39, 108, 0.2);
}

.field-error {
  display: none;
  color: #9b3d31;
  font-weight: 700;
  font-size: 0.94rem;
}

.field-error.show {
  display: block;
}

.pull-quote {
  margin: 28px 0;
  padding: clamp(26px, 6vw, 46px);
  border-radius: 32px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(47, 24, 61, 0.08), rgba(199, 154, 53, 0.12));
}

.pull-quote span {
  display: block;
  max-width: 760px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.3rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 0.98;
}

.pull-quote small {
  display: block;
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
}

.scores-letter {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fffaf0;
  background: var(--eggplant);
  font-weight: 900;
}

.scores-name {
  font-size: 1.3rem;
  font-weight: 900;
}

.scores-question,
.rating-labels,
.result-explanation,
.bridge-text,
.cta-body {
  color: var(--muted);
  line-height: 1.55;
}

.scores-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.transition-inner {
  min-height: calc(100vh - 180px);
  display: grid;
  align-items: center;
}

.transition-card {
  display: grid;
  gap: 18px;
  border-radius: 34px;
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.92), rgba(248, 242, 231, 0.82)),
    var(--paper);
  box-shadow: var(--shadow);
}

.transition-reminder {
  margin-top: 8px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  color: var(--eggplant);
  background: rgba(199, 154, 53, 0.13);
  font-weight: 800;
  line-height: 1.55;
}

.scores-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  border-radius: 28px;
  padding: 22px;
}

.scores-content {
  display: grid;
  gap: 14px;
}

.rating-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.rating-btn {
  min-height: 48px;
  border: 1px solid rgba(47, 24, 61, 0.14);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  cursor: pointer;
  font-weight: 900;
}

.rating-btn.selected {
  color: #fffaf0;
  background: var(--eggplant);
}

.rating-labels,
.scores-total-preview {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.82rem;
}

.scores-total-preview {
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: 22px;
  background: rgba(47, 24, 61, 0.06);
  font-weight: 900;
}

.results-inner {
  display: grid;
  gap: 20px;
  width: min(1040px, 100%);
}

.result-block,
.result-bridge,
.cta-block {
  border-radius: 30px;
  padding: clamp(22px, 5vw, 40px);
}

.results-header {
  position: relative;
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid rgba(47, 24, 61, 0.12);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.94), rgba(248, 244, 236, 0.86)),
    var(--paper);
  box-shadow: var(--shadow);
}

.results-header h2 {
  max-width: 900px;
  font-size: clamp(3.2rem, 8vw, 6.1rem);
}

.report-intro {
  display: grid;
  gap: 14px;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  line-height: 1.68;
}

.report-intro p,
.interpretation-block p,
.reflection-block p {
  margin: 0;
}

.report-intro strong,
.interpretation-block strong {
  color: var(--eggplant);
}

.scores-bar-chart {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.score-bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 34px;
  gap: 12px;
  align-items: center;
}

.score-bar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(47, 24, 61, 0.1);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--accent));
}

.result-scores-summary {
  margin-top: 18px;
  color: var(--eggplant);
  font-weight: 900;
}

.report-section-title {
  margin: 14px 0 10px;
  color: var(--eggplant);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1;
}

.interpretation-block,
.reflection-block {
  display: grid;
  gap: 14px;
}

.interpretation-block {
  border-color: rgba(199, 154, 53, 0.34);
  background:
    linear-gradient(135deg, rgba(199, 154, 53, 0.11), rgba(111, 58, 134, 0.07)),
    rgba(255, 250, 242, 0.82);
}

#strongestConditionCard,
#priorityConditionCard {
  margin-top: 18px;
}

.priority-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(47, 24, 61, 0.12);
  border-radius: 22px;
  background: rgba(255, 250, 242, 0.72);
}

.priority-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.priority-card h3,
.priority-card h4 {
  margin: 0;
}

.priority-card h3 {
  color: var(--eggplant);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.95;
}

.priority-card h4 {
  color: var(--accent-dark);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.priority-card span {
  min-width: 64px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fffaf2;
  background: var(--eggplant);
  font-weight: 900;
  text-align: center;
}

.priority-card p,
.priority-card li,
.report-list li {
  color: var(--muted);
  line-height: 1.58;
}

.priority-card p {
  margin: 0;
}

.priority-card ul,
.report-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.cta-block {
  background:
    linear-gradient(135deg, rgba(47, 24, 61, 0.97), rgba(35, 31, 36, 0.94)),
    var(--eggplant);
  color: #fffaf0;
}

.cta-block .cta-eyebrow,
.cta-block .cta-body,
.cta-block .cta-note,
.cta-block a {
  color: rgba(255, 250, 240, 0.78);
}

.cta-title {
  max-width: 760px;
  margin: 14px 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.98;
}

.cta-body {
  margin: 0 0 12px;
  max-width: 780px;
}

.feedback-cta,
.next-step-card {
  display: grid;
  gap: 12px;
}

.feedback-cta {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 250, 240, 0.18);
}

.next-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.next-step-card {
  align-content: space-between;
  min-height: 230px;
  padding: 22px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.08);
}

.next-step-card .btn-cta {
  justify-self: start;
  margin-top: 8px;
}

.feedback-title {
  margin: 0;
  color: #fffaf0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.feedback-cta .btn-cta {
  justify-self: start;
  margin-top: 8px;
}

.feedback-cta .cta-note {
  margin-top: 2px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.coach-prompt-block {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.16);
}

.coach-prompt-block label {
  color: #fffaf0;
  font-size: 1rem;
}

.coach-prompt-block textarea {
  min-height: 220px;
  color: #fffaf0;
  background: rgba(35, 31, 36, 0.5);
  border-color: rgba(255, 250, 240, 0.18);
  resize: vertical;
}

.btn-copy {
  justify-self: start;
}

.cta-block .btn-primary {
  color: var(--eggplant);
  background: #fffaf0;
}

.cta-block .btn-secondary {
  color: #fffaf0;
  background: transparent;
  border-color: rgba(255, 250, 240, 0.26);
}

.restart-row {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  flex-direction: column;
  justify-content: flex-start;
}

.site-footer p {
  max-width: 880px;
  margin: 0;
  line-height: 1.55;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .screen {
    padding: 82px 16px 46px;
  }

  #screen-0 {
    padding-top: 34px;
  }

  .hero-bg::before {
    right: -60px;
    top: 12vh;
    width: 260px;
    opacity: 0.72;
  }

  .hero-inner {
    min-height: calc(100vh - 102px);
    gap: 22px;
  }

  .hero-card-row,
  .scenario-grid,
  .scores-grid,
  .scores-card,
  .next-step-grid {
    grid-template-columns: 1fr;
  }

  #screen-1 .step-header {
    gap: 10px;
    margin-bottom: 20px;
  }

  #screen-1 h2 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  #screen-1 .form-field {
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
  }

  .scenario-grid {
    gap: 8px;
  }

  .scenario-card {
    min-height: 0;
    gap: 6px;
    padding: 11px 12px;
    border-radius: 15px;
  }

  .scenario-card[aria-pressed="true"] {
    padding: 10px 11px;
  }

  .scenario-card-heading {
    grid-template-columns: 24px minmax(0, 1fr) 18px;
    gap: 8px;
  }

  .scenario-icon {
    width: 24px;
    height: 24px;
  }

  .scenario-icon svg {
    width: 15px;
    height: 15px;
  }

  .scenario-title {
    font-size: 0.9rem;
  }

  .scenario-description {
    font-size: 0.78rem;
    line-height: 1.38;
  }

  #q-situation {
    min-height: 112px;
    padding: 14px;
  }

  .hero-card-divider {
    width: 100%;
    height: 1px;
  }

  .nav-row,
  .cta-buttons {
    flex-direction: column-reverse;
  }

  .btn-primary,
  .btn-secondary,
  .btn-ghost,
  .btn-cta {
    width: 100%;
  }

  .score-bar-row {
    grid-template-columns: 82px 1fr 28px;
    font-size: 0.88rem;
  }

  .progress-steps {
    display: none;
  }
}
