:root {
  --cream: #fff9ed;
  --sage: #b4d0cd;
  --lilac: #beacc2;
  --pink: #e088b7;
  --ink: #29242a;
  --muted: #686068;
  --paper: #fffdf8;
  --line: rgba(41, 36, 42, 0.16);
  --soft-line: rgba(41, 36, 42, 0.09);
  --display: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--cream);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(255, 249, 237, 0.93), rgba(255, 249, 237, 0.93)),
    radial-gradient(circle at 20% 20%, var(--sage), transparent 38%);
  color: var(--ink);
  font-family: var(--sans);
}

button,
a,
input {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible + label {
  outline: 3px solid rgba(41, 36, 42, 0.72);
  outline-offset: 4px;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.ambient--one {
  top: -280px;
  right: -220px;
  width: 640px;
  height: 640px;
  background: rgba(190, 172, 194, 0.24);
}

.ambient--two {
  bottom: -260px;
  left: -260px;
  width: 580px;
  height: 580px;
  background: rgba(180, 208, 205, 0.24);
}

.site-header,
.hero,
.recognition,
.site-footer,
.quiz,
.result {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand__placeholder {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px dashed rgba(41, 36, 42, 0.48);
  background: rgba(255, 255, 255, 0.28);
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.17em;
  text-align: center;
}

.brand__copy {
  display: grid;
  gap: 2px;
}

.brand__copy strong {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand__copy span {
  color: var(--muted);
  font-family: var(--display);
  font-size: 14px;
  font-style: italic;
}

.header-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.72fr);
  gap: clamp(56px, 8vw, 116px);
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  min-height: 695px;
  margin: 0 auto;
  padding: 84px 0 90px;
}

.eyebrow {
  display: block;
  margin-bottom: 23px;
  color: #77566d;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.hero h1,
.quiz__intro h1,
.result__identity h1,
.appointment h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(49px, 5.8vw, 82px);
  line-height: 0.99;
}

.hero h1 em,
.appointment h2 em {
  color: #8e526f;
  font-weight: 400;
}

.hero__lead {
  max-width: 680px;
  margin: 30px 0 0;
  color: #514951;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 56px;
  padding: 15px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.065em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--pink);
  box-shadow: 7px 7px 0 rgba(190, 172, 194, 0.6);
  color: var(--ink);
}

.button--primary:hover {
  background: #d97aad;
  box-shadow: 4px 4px 0 rgba(190, 172, 194, 0.75);
}

.button--primary:disabled {
  background: #ded6dc;
  box-shadow: none;
  color: #8c848b;
  cursor: not-allowed;
  transform: none;
}

.button--quiet {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button--quiet:hover {
  background: rgba(180, 208, 205, 0.24);
}

.button--dark {
  background: var(--ink);
  color: var(--cream);
}

.button--dark:hover {
  background: #463941;
}

.hero__microcopy {
  max-width: 210px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.diagnostic-card {
  position: relative;
  padding: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 22px 22px 0 rgba(180, 208, 205, 0.42);
  backdrop-filter: blur(8px);
}

.diagnostic-card::before {
  position: absolute;
  top: -15px;
  right: 32px;
  width: 72px;
  height: 30px;
  background: rgba(224, 136, 183, 0.62);
  content: "";
  transform: rotate(2deg);
}

.diagnostic-card__number {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.diagnostic-card > p {
  max-width: 300px;
  margin: 20px 0 31px;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.15;
}

.energy-map {
  border-top: 1px solid var(--line);
}

.energy-map__row {
  display: grid;
  grid-template-columns: 27px 1fr minmax(110px, auto);
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--soft-line);
}

.energy-map__row span {
  color: var(--muted);
  font-size: 9px;
}

.energy-map__row div {
  height: 3px;
  background: linear-gradient(90deg, var(--sage), var(--lilac));
  transform-origin: left;
}

.energy-map__row:nth-child(2) div,
.energy-map__row:nth-child(5) div {
  transform: scaleX(0.67);
}

.energy-map__row:nth-child(3) div {
  transform: scaleX(0.84);
}

.energy-map__row:nth-child(4) div {
  transform: scaleX(0.5);
}

.energy-map__row:nth-child(6) div {
  transform: scaleX(0.76);
}

.energy-map__row strong {
  font-size: 10px;
  font-weight: 600;
  text-align: right;
}

.diagnostic-card__foot {
  display: flex;
  justify-content: space-between;
  margin-top: 27px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.diagnostic-card__foot strong {
  color: var(--ink);
}

.recognition {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 96px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.recognition__label {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.recognition__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.recognition article {
  min-height: 170px;
  padding: 28px;
  background: rgba(255, 253, 248, 0.75);
}

.recognition article span {
  color: #8e526f;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.recognition article p {
  max-width: 290px;
  margin: 42px 0 0;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.3;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
}

.site-footer p,
.site-footer span {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.site-footer p {
  color: var(--ink);
  font-family: var(--display);
  font-size: 14px;
  font-style: italic;
}

.quiz {
  width: min(1000px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 60px;
}

.quiz__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 21px;
}

.quiz__progress-copy {
  display: grid;
  gap: 5px;
  text-align: right;
}

.quiz__progress-copy span {
  color: #77566d;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quiz__progress-copy strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.progress {
  height: 5px;
  overflow: hidden;
  background: rgba(41, 36, 42, 0.1);
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--pink));
  transition: width 260ms ease;
}

.quiz__body {
  padding: 64px 0 25px;
}

.quiz__intro {
  max-width: 760px;
  margin-bottom: 46px;
}

.quiz__intro h1 {
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
}

.quiz__intro > p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.35;
}

.scale-note {
  display: inline-block;
  margin-top: 20px;
  padding: 9px 13px;
  background: rgba(180, 208, 205, 0.34);
  color: #4f5f5d;
  font-size: 11px;
  font-weight: 600;
}

.questions {
  display: grid;
  gap: 18px;
}

.question {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.82);
}

.question legend {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.36;
}

.question legend > span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--lilac);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 750;
}

.answers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-left: 41px;
}

.answer {
  position: relative;
}

.answer input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.answer label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.answer label:hover {
  border-color: rgba(41, 36, 42, 0.42);
  color: var(--ink);
}

.answer label > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 9px;
}

.answer input:checked + label {
  border-color: var(--ink);
  background: var(--pink);
  color: var(--ink);
}

.answer input:checked + label > span {
  background: var(--ink);
  color: var(--cream);
}

.quiz__navigation {
  position: sticky;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 249, 237, 0.92);
  box-shadow: 0 12px 38px rgba(41, 36, 42, 0.12);
  backdrop-filter: blur(12px);
}

.result-header {
  margin-bottom: 0;
}

.result {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0 90px;
}

.result__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.62fr);
  gap: 60px;
  align-items: stretch;
}

.result__identity {
  padding: 52px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.8);
}

.result__identity h1 {
  max-width: 760px;
  color: #6f445c;
  font-size: clamp(52px, 6vw, 82px);
  line-height: 0.98;
}

.result__identity > p {
  max-width: 700px;
  margin: 28px 0 0;
  color: #514951;
  font-size: 18px;
  line-height: 1.6;
}

.tie-note {
  margin-top: 28px;
  padding: 15px 17px;
  border-left: 3px solid var(--pink);
  background: rgba(224, 136, 183, 0.12);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.tie-note strong {
  color: var(--ink);
}

.result__level {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 36px;
  background: var(--sage);
}

.result__level > span {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.result__level > strong {
  margin-top: 16px;
  font-family: var(--display);
  font-size: 74px;
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.result__level > strong small {
  color: #596967;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
}

.result__level h2 {
  margin: 28px 0 0;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 400;
}

.result__level p {
  margin: 13px 0 0;
  color: #40504e;
  font-size: 13px;
  line-height: 1.6;
}

.result__details {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 25px;
  margin-top: 25px;
}

.profile-reading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.reading-card {
  min-height: 225px;
  padding: 31px;
}

.reading-card--signal {
  background: rgba(190, 172, 194, 0.4);
}

.reading-card--open {
  background: rgba(255, 253, 248, 0.86);
}

.reading-card span,
.profile-reading blockquote span,
.score-map__header span {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reading-card p {
  margin: 45px 0 0;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.32;
}

.profile-reading blockquote {
  grid-column: 1 / -1;
  margin: 0;
  padding: 34px 32px;
  background: var(--ink);
  color: var(--cream);
}

.profile-reading blockquote span {
  color: var(--pink);
}

.profile-reading blockquote p {
  max-width: 690px;
  margin: 17px 0 0;
  font-family: var(--display);
  font-size: 25px;
  font-style: italic;
  line-height: 1.35;
}

.score-map {
  padding: 32px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.82);
}

.score-map__header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 31px;
}

.score-map__header small {
  color: var(--muted);
  font-size: 10px;
}

.score-row + .score-row {
  margin-top: 23px;
}

.score-row__copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
}

.score-row__copy strong {
  color: var(--ink);
}

.score-row__track {
  height: 7px;
  overflow: hidden;
  background: rgba(41, 36, 42, 0.1);
}

.score-row__track span {
  display: block;
  width: var(--bar-width);
  height: 100%;
  background: var(--sage);
}

.score-row--dominant .score-row__copy span {
  color: #7a4161;
  font-weight: 750;
}

.score-row--dominant .score-row__track span {
  background: var(--pink);
}

.appointment {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 45px;
  margin-top: 92px;
  padding: 68px;
  overflow: hidden;
  background: var(--lilac);
}

.appointment::after {
  position: absolute;
  right: -150px;
  bottom: -190px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(41, 36, 42, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 35px rgba(255, 249, 237, 0.08),
    0 0 0 70px rgba(255, 249, 237, 0.07);
  content: "";
}

.appointment__number {
  color: rgba(41, 36, 42, 0.38);
  font-family: var(--display);
  font-size: 145px;
  letter-spacing: -0.1em;
  line-height: 0.72;
}

.appointment__copy {
  position: relative;
  z-index: 1;
  max-width: 730px;
}

.appointment h2 {
  font-size: clamp(38px, 4.4vw, 61px);
  line-height: 1.02;
}

.appointment__copy > p {
  max-width: 680px;
  margin: 25px 0 31px;
  font-size: 16px;
  line-height: 1.65;
}

.appointment__copy > small {
  display: block;
  margin-top: 13px;
  color: rgba(41, 36, 42, 0.7);
  font-size: 10px;
}

.result__footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin-top: 30px;
}

.result__footer p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

.text-button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 55px;
    padding: 70px 0 88px;
  }

  .diagnostic-card {
    max-width: 620px;
  }

  .recognition__grid,
  .result__details {
    grid-template-columns: 1fr;
  }

  .recognition article {
    min-height: 140px;
  }

  .recognition article p {
    margin-top: 25px;
  }

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

  .result__hero {
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--line);
  }

  .appointment {
    grid-template-columns: 110px 1fr;
    padding: 54px 44px;
  }

  .appointment__number {
    font-size: 100px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .recognition,
  .site-footer,
  .quiz,
  .result {
    width: min(100% - 30px, 1180px);
  }

  .site-header {
    padding: 18px 0;
  }

  .header-note {
    display: none;
  }

  .brand__placeholder {
    width: 44px;
    height: 44px;
  }

  .brand__copy strong {
    font-size: 10px;
  }

  .brand__copy span {
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding: 61px 0 70px;
  }

  .hero h1 {
    font-size: clamp(43px, 13vw, 59px);
  }

  .hero__lead {
    font-size: 16px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__microcopy {
    max-width: none;
    text-align: center;
  }

  .button {
    width: 100%;
  }

  .diagnostic-card {
    padding: 26px 21px;
    box-shadow: 10px 10px 0 rgba(180, 208, 205, 0.42);
  }

  .diagnostic-card > p {
    font-size: 26px;
  }

  .energy-map__row {
    grid-template-columns: 24px 1fr minmax(100px, auto);
  }

  .recognition {
    margin-bottom: 64px;
  }

  .recognition__grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .quiz {
    width: min(100% - 24px, 1000px);
  }

  .quiz__header {
    padding: 16px 0;
  }

  .quiz__header .brand__copy {
    display: none;
  }

  .quiz__body {
    padding-top: 44px;
  }

  .quiz__intro {
    margin-bottom: 32px;
  }

  .quiz__intro h1 {
    font-size: 43px;
  }

  .quiz__intro > p {
    font-size: 18px;
  }

  .question {
    padding: 20px 15px;
  }

  .question legend {
    gap: 11px;
    font-size: 17px;
  }

  .answers {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-left: 0;
  }

  .answer label {
    gap: 7px;
    padding: 8px;
    font-size: 10px;
  }

  .quiz__navigation {
    bottom: 8px;
    padding: 9px;
  }

  .quiz__navigation .button {
    width: auto;
    min-height: 50px;
    padding: 12px 14px;
    font-size: 10px;
  }

  .result {
    padding: 45px 0 68px;
  }

  .result__identity {
    padding: 35px 24px;
  }

  .result__identity h1 {
    font-size: 50px;
  }

  .result__identity > p {
    font-size: 15px;
  }

  .result__level {
    padding: 34px 25px;
  }

  .profile-reading {
    grid-template-columns: 1fr;
  }

  .reading-card {
    min-height: 200px;
    padding: 26px 23px;
  }

  .reading-card p {
    margin-top: 30px;
  }

  .profile-reading blockquote {
    grid-column: auto;
    padding: 29px 23px;
  }

  .score-map {
    padding: 28px 23px;
  }

  .appointment {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 62px;
    padding: 42px 25px;
  }

  .appointment__number {
    font-size: 65px;
  }

  .appointment h2 {
    font-size: 40px;
  }

  .result__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .result__footer p {
    text-align: left;
  }
}

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