@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap");
:root {
  font-family: "DM Sans", system-ui, sans-serif;
  color: #382b35;
  background: #fff8f5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #9355ae;
  outline-offset: 5px;
}
header {
  max-width: 1080px;
  margin: auto;
  padding: 27px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eadfdf;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #ca5679;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1px;
}
.brand-light {
  font-weight: 400;
  color: #49353f;
}
.header-note {
  font-size: 12px;
  color: #927d87;
}
main {
  max-width: 760px;
  margin: auto;
  padding: 0 24px;
}
.hero {
  text-align: center;
  padding-top: 58px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #ac6d83;
  font-weight: 700;
}
.heart {
  width: 84px;
  height: 84px;
  border-radius: 28px;
  margin: 25px auto;
  background: #fce1e7;
  display: grid;
  place-items: center;
  font-size: 43px;
  transform: rotate(-9deg);
  box-shadow: 8px 8px 0 #f4edee;
}
h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin: 24px 0 16px;
}
h1 em {
  font-style: normal;
  color: #c5577a;
}
p {
  line-height: 1.9;
  color: #806c77;
}
.subtitle {
  font-size: 14px;
}
.primary {
  border: 0;
  border-radius: 100px;
  padding: 17px 38px;
  background: #c65779;
  color: white;
  box-shadow: 0 6px 16px #c6577924;
  font-weight: 700;
}
.primary:hover {
  background: #ae4264;
}
.hero .primary {
  margin: 13px 0 12px;
  min-width: 220px;
}
.micro {
  font-size: 11px;
  color: #a38d96;
  letter-spacing: 0.5px;
}
.adbox {
  width: 300px;
  height: 250px;
  margin: 16px auto;
  position: relative;
}
.ad-slot {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.ad-slot:empty {
  color: #b7a9ae;
  font-size: 9px;
  letter-spacing: 2px;
}
.ad-slot:empty::after {
  content: "AD";
}
.info {
  border-top: 1px solid #eadfe1;
  padding: 32px 0 4px;
}
.section-number {
  font-size: 10px;
  letter-spacing: 2px;
  color: #b38796;
}
.info h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.6;
  margin: 10px 0 15px;
}
.info p {
  font-size: 14px;
  margin: 12px 0;
}
.note {
  background: #f6e9ed;
  border-radius: 16px;
  padding: 17px 20px;
  font-size: 12px;
  line-height: 1.9;
  color: #906479;
}
footer {
  text-align: center;
  color: #a08794;
  font-size: 12px;
  line-height: 2.4;
  margin: 36px 16px 100px;
}
.anchor {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  /* background: #fff8f5ed;
  border-top: 1px solid #ebdfe3; */
  z-index: 10;
  display: flex;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom);
}
.anchor .adbox {
  margin: 0;
  max-width: 320px;
  height: 60px;
}
.anchor .ad-slot {
  width: 300px;
  height: 60px;
}
.anchor .ad-close {
  position: absolute;
  right: 8px;
  top: 6px;
  border: 0;
  background: none;
  color: #715362;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  padding: 4px;
}
.quiz {
  padding-top: 35px;
  perspective: 1400px;
}
.quiz-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #a06e81;
}
.progress {
  height: 5px;
  background: #efdee4;
  border-radius: 10px;
  margin: 13px 0 28px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: #c65779;
  transition: width 0.3s;
}
.question-card {
  background: #fffdfb;
  border: 1px solid #ecdfe3;
  border-radius: 24px;
  padding: 26px 22px;
  box-shadow: 0 12px 40px #60334208;
  transition:
    transform 0.22s,
    opacity 0.22s;
}
.question-card.flipped {
  transform: rotateY(90deg);
  opacity: 0;
}
.question-card h2 {
  font-size: 24px;
  line-height: 1.6;
  min-height: 78px;
  margin: 12px 0 24px;
}
.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.option {
  text-align: left;
  border: 1px solid #eadce2;
  border-radius: 14px;
  background: #fff8f8;
  padding: 15px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #67505e;
  line-height: 1.6;
  font-size: 14px;
  min-height: 86px;
}
.option b {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  background: #f3e2e9;
  color: #b76584;
  font-size: 12px;
}
.option:hover,
.option.selected {
  background: #f7dfe9;
  border-color: #c65779;
}
.option:disabled {
  cursor: default;
}
.question-card .adbox {
  margin: 20px auto;
}
.question-card:focus {
  outline: none;
}
.result {
  text-align: center;
  padding-top: 40px;
}
.score {
  font-family: Georgia, serif;
  font-size: 70px;
  color: #bd5174;
  line-height: 1.3;
}
.result h1 {
  font-size: 36px;
}
.result-copy {
  font-size: 14px;
}
.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0;
}
.tags span {
  font-size: 11px;
  background: #f2e4ea;
  border-radius: 50px;
  padding: 7px 12px;
}
.breakdown {
  text-align: left;
  background: #fffdfb;
  border: 1px solid #ecdee3;
  border-radius: 20px;
  padding: 24px;
  margin: 28px 0;
}
.breakdown h2 {
  font-size: 18px;
}
.metric {
  margin: 20px 0;
}
.metric-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.metric .progress {
  margin: 9px 0;
}
.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.secondary {
  border: 1px solid #cf9bac;
  background: transparent;
  color: #af5373;
  border-radius: 50px;
  padding: 16px 28px;
}
.share-status {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.reference {
  text-align: left;
  font-size: 13px;
}
.reference summary {
  cursor: pointer;
  padding: 14px 0;
  color: #ad607c;
}
.reference h3 {
  font-size: 14px;
}
.ad-interstitial {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #382b3588;
  display: none;
  align-items: center;
  justify-content: center;
}
.ad-interstitial.show {
  display: flex;
}
.ad-interstitial .adbox {
  margin: 0;
}
.ad-interstitial .ad-slot {
  width: 300px;
  min-height: 250px;
  font-size: 10px;
  color: #b7a9ae;
}
.ad-interstitial .ad-close {
  position: absolute;
  right: 20px;
  top: 20px;
  border: 0;
  background: #fff;
  color: #382b35;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.loading {
  text-align: center;
  margin: 70px 0;
}
@media (max-width: 480px) {
  header {
    padding: 20px;
  }
  .header-note {
    font-size: 9px;
  }
  .brand {
    font-size: 23px;
  }
  main {
    padding: 0 12px;
  }
  .hero {
    padding-top: 36px;
  }
  .question-card {
    padding: 22px 10px;
  }
  .question-card h2 {
    font-size: 21px;
  }
  .option {
    padding: 12px 9px;
    font-size: 13px;
    gap: 7px;
  }
  .info {
    padding-left: 9px;
    padding-right: 9px;
  }
  .adbox {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  .question-card.flipped {
    transform: none;
  }
}
