/* Hero art direction: keep the people visible and move decision controls below. */
.hero {
  min-height: clamp(620px, 35vw, 720px);
  background: #2c2544;
}

.hero::before { display: none; }

.hero-art {
  inset: 0;
  width: auto;
  background: #171326;
}

.hero-art::after {
  background: linear-gradient(90deg, #2c2544 0%, #2c2544 34%, rgba(44, 37, 68, .96) 39%, rgba(44, 37, 68, .72) 44%, rgba(44, 37, 68, .24) 50%, rgba(44, 37, 68, 0) 57%);
}

.hero-art img {
  object-position: 70% center;
}

.hero-grid {
  min-height: clamp(620px, 35vw, 720px);
  grid-template-columns: minmax(0, 48%) minmax(0, 52%);
  gap: 0;
  align-items: center;
}

.hero-copy {
  max-width: 470px;
  padding: 36px 36px 36px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.hero h1 {
  max-width: 460px;
  font-size: clamp(46px, 4.6vw, 70px);
  text-shadow: 0 3px 16px rgba(17, 12, 29, .45);
}

.hero .lead {
  max-width: 430px;
  text-shadow: 0 2px 12px rgba(17, 12, 29, .5);
}

/* A distinct editorial bridge between the emotional hero and the app list. */
.review-bridge {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 38px 54px;
  align-items: start;
  margin: 54px auto 0;
  padding: 46px 54px;
  border: 1px solid rgba(126, 83, 158, .18);
  border-radius: 30px;
  background: linear-gradient(120deg, #f7edff 0%, #fff0e6 48%, #e8f7f0 100%);
  box-shadow: 0 18px 46px rgba(50, 34, 73, .09);
}

.review-bridge::before,
.review-bridge::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.review-bridge::before {
  width: 230px;
  height: 230px;
  top: -145px;
  left: -65px;
  background: rgba(224, 101, 155, .16);
}

.review-bridge::after {
  width: 170px;
  height: 170px;
  right: 90px;
  bottom: -125px;
  background: rgba(87, 190, 178, .18);
}

.review-bridge-copy,
.review-findings,
.review-bridge-footer {
  position: relative;
  z-index: 1;
}

.review-bridge h2 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(34px, 3.5vw, 48px);
  line-height: .98;
  letter-spacing: -.045em;
}

.review-bridge-description {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.review-bridge-description + .review-bridge-description {
  margin-top: 13px;
}

.review-findings {
  display: grid;
  gap: 10px;
  padding: 23px;
  border: 1px solid rgba(90, 58, 115, .12);
  border-radius: 22px;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 12px 28px rgba(55, 37, 76, .06);
}

.review-findings-label {
  margin: 0 0 2px;
  color: #76509a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.review-finding {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid rgba(90, 58, 115, .11);
}

.review-finding > span {
  color: #a45a9c;
  font: 20px/1 Georgia, serif;
}

.review-finding h3 {
  margin: 0 0 3px;
  font-size: 15px;
}

.review-finding p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.review-bridge-footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding-top: 23px;
  border-top: 1px solid rgba(90, 58, 115, .13);
}

.review-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid rgba(90, 58, 115, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 6px 16px rgba(55, 37, 76, .06);
  font-size: 12px;
  font-weight: 800;
}

.review-trust li span {
  color: #92508d;
  font-size: 15px;
}

.review-stamp {
  position: absolute;
  top: 22px;
  right: 25px;
  z-index: 0;
  width: 76px;
  height: 76px;
  display: grid;
  place-content: center;
  transform: rotate(8deg);
  border: 2px solid rgba(126, 83, 158, .18);
  border-radius: 50%;
  color: rgba(91, 56, 119, .28);
  text-align: center;
  line-height: 1.05;
  letter-spacing: .08em;
}

.review-stamp span {
  font-size: 8px;
}

.review-stamp b {
  font-size: 11px;
}

/* Keep methodology distinct from the review card: this explains scoring and use. */
.method-expanded {
  padding: 76px 0 58px;
  background: linear-gradient(112deg, #f6edff 0%, #f9f5fc 51%, #e9f8f1 100%);
  color: var(--ink);
}

.method-expanded .method-grid {
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 52px;
}

.method-expanded .eyebrow {
  color: #7951a2;
}

.method-expanded h2 {
  max-width: 450px;
  font-size: clamp(38px, 4vw, 54px);
}

.method-expanded .method-lead {
  max-width: 470px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.score-usage {
  max-width: 470px;
  margin-top: 25px;
  padding: 17px 18px;
  border-left: 3px solid #a65d9e;
  border-radius: 0 15px 15px 0;
  background: rgba(255, 255, 255, .67);
}

.score-usage b {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.score-usage p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.method-expanded ol {
  gap: 22px 20px;
}

.method-expanded li {
  padding: 17px 0 0;
  border-top-color: rgba(102, 80, 124, .26);
}

.method-expanded li span {
  color: #9e5a9d;
}

.method-expanded li b {
  color: var(--ink);
}

.method-expanded li p {
  color: var(--muted);
  line-height: 1.5;
}

.quick-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 14px;
  align-items: start;
}

.quick-match-heading h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 3.2vw, 48px);
  white-space: nowrap;
}

.queer-word {
  background: linear-gradient(110deg, #7252a1 5%, #d15c9a 42%, #e7a83c 72%, #4f9f8b 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 500;
}

.quick-match-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  grid-row: 3;
  position: relative;
  padding-bottom: 18px;
}

.quick-match-actions::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8052a5, #df659b, #efbd4f, #72c6a0, #63b9d5);
  opacity: .68;
}

.quick-match .choice-row {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.quick-match .choice {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 14px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.quick-match .choice:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(69, 47, 99, .14);
}

.quick-match .choice.active {
  background: linear-gradient(120deg, #452f63, #8e477e);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(69, 47, 99, .2);
}

.choice-icon {
  font-size: 15px;
  line-height: 1;
}

.choice-count {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #eee7f3;
  color: #452f63;
  font-size: 10px;
  font-weight: 800;
}

.choice.active .choice-count {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.quick-match-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border-radius: 999px;
  background: #452f63;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.quick-match .filter-message {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0 0 2px;
  font-size: 14px;
}

.filter-reveal {
  animation: filterReveal .28s ease both;
}

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

/* Combine filters and comparison cards into one continuous section. */
.match-section {
  padding: 52px 0 24px;
  background: var(--paper);
}

.compare-section {
  padding-top: 12px;
}

.compare-section > .section-heading,
.quick-match-link {
  display: none;
}

/* Let the page finish with the same purple family used in the hero. */
.footer {
  background: linear-gradient(180deg, #faf7fc 0%, #f1eaf6 32%, #d8c9e5 66%, #756086 100%);
  border-top: 0;
}

.footer::before {
  display: none;
}

.footer-bottom {
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}

/* A quiet editorial checklist after the colorful guidance section. */
.decision-section {
  padding: 84px 0 90px;
  background: linear-gradient(112deg, #faf6ef 0%, #f8f4ee 56%, #f2edf7 100%);
}

.decision-layout {
  width: min(1320px, calc(100% - 64px));
  display: grid;
  grid-template-columns: minmax(390px, .8fr) minmax(600px, 1.2fr);
  gap: clamp(70px, 6vw, 82px);
  align-items: start;
}

.decision-intro {
  position: sticky;
  top: 112px;
}

.decision-intro h2 {
  margin: 0;
  font-size: clamp(40px, 4.5vw, 62px);
  line-height: .98;
  letter-spacing: -.05em;
}

.decision-intro > p:not(.eyebrow):not(.decision-summary) {
  max-width: 500px;
  margin: 24px 0 0;
  color: #655f70;
  font-size: 16px;
}

.decision-summary {
  max-width: 500px;
  margin: 30px 0 0;
  padding: 20px 0 0;
  border-top: 2px solid #281f3c;
  font: 600 18px/1.5 Georgia, serif;
  color: #281f3c;
}

.decision-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.decision-list::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 27px;
  bottom: 27px;
  width: 2px;
  background: #d8c9e5;
}

.decision-list li {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 26px;
  padding: 27px 0 29px;
  border-bottom: 1px solid #cfc5d2;
}

.decision-list li:first-child {
  border-top: 1px solid #cfc5d2;
}

.decision-list li > span {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  border: 5px solid #f8f4ee;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #352640;
  background: #ddc7ee;
  font: 700 16px/1 Arial, sans-serif;
}

.decision-list li:nth-child(2) > span { background: #cde7c5; }
.decision-list li:nth-child(3) > span { background: #f4dc91; }
.decision-list li:nth-child(4) > span { background: #bfe1e7; }

.decision-list li > div {
  padding-top: 5px;
}

.decision-list h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.2;
}

.decision-list h3 i {
  display: inline-block;
  width: 25px;
  color: #8053a1;
  font: normal 19px/1 Georgia, serif;
}

.decision-list p {
  max-width: 650px;
  margin: 0;
  color: #655f70;
  font-size: 14px;
  line-height: 1.65;
}

/* Give the closing FAQ enough width to follow the decision section naturally. */
.faq-section {
  padding: 84px 0 104px;
  background: linear-gradient(180deg, #fbf9fc 0%, #f5f0f8 100%);
}

.faq-section .faq.shell {
  width: min(1220px, calc(100% - 64px));
  max-width: none;
  padding: 0;
}

.faq-heading {
  margin-bottom: 42px;
}

.faq-heading .eyebrow {
  margin-bottom: 12px;
}

.faq-heading h2 {
  margin: 0;
  font-size: clamp(44px, 4vw, 54px);
}

.faq-list {
  border-top: 1px solid #d8cfdd;
}

.faq-section .faq details {
  padding: 0;
  border-top: 0;
  border-bottom: 1px solid #d8cfdd;
  transition: background-color .2s ease;
}

.faq-section .faq details:hover,
.faq-section .faq details[open] {
  background: rgba(255, 255, 255, .48);
}

.faq-section .faq summary {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 18px 66px 18px 18px;
  font-size: 18px;
}

.faq-section .faq summary::after {
  right: 18px;
  top: 50%;
  width: 32px;
  height: 32px;
  border: 1px solid #bba6ca;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  font-size: 20px;
  line-height: 1;
  background: #fff;
}

.faq-section .faq details p {
  max-width: 820px;
  margin: 0 66px 0 18px;
  padding: 0 0 24px 18px;
  border-left: 3px solid #a67ac2;
  color: #655f70;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .hero { min-height: auto; display: flex; flex-direction: column; }
  .hero-art { position: relative; inset: auto; order: -1; left: auto; width: 100%; height: 360px; }
  .hero-art::after { background: linear-gradient(0deg, rgba(44, 37, 68, .22), rgba(44, 37, 68, 0) 55%); }
  .hero-art img { object-position: 65% center; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; width: min(1140px, calc(100% - 40px)); }
  .hero-copy { max-width: 650px; padding: 58px 0 65px; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; }
  .review-bridge { grid-template-columns: 1fr; gap: 26px; padding: 40px; }
  .review-bridge-footer { align-items: flex-start; flex-direction: column; }
  .method-expanded .method-grid { grid-template-columns: 1fr; gap: 40px; }
  .quick-match { grid-template-columns: 1fr; gap: 16px; }
  .quick-match-actions, .quick-match .choice-row { justify-content: flex-start; }
  .decision-layout { width: min(100% - 48px, 760px); grid-template-columns: 1fr; gap: 44px; }
  .decision-intro { position: static; }
  .faq-section .faq.shell { width: min(100% - 48px, 760px); }
}

@media (max-width: 640px) {
  .hero-art { height: 280px; }
  .hero-grid { width: min(100% - 32px, 1140px); }
  .hero-copy { padding: 44px 0 52px; }
  .hero h1 { font-size: clamp(42px, 12vw, 54px); }
  .review-bridge { margin-top: 30px; padding: 32px 24px; border-radius: 23px; }
  .review-bridge h2 { font-size: 34px; }
  .review-stamp { display: none; }
  .method-expanded { padding: 56px 0 45px; }
  .method-expanded h2 { font-size: 38px; }
  .quick-match-heading h2 { white-space: normal; }
  .quick-match-actions { align-items: flex-start; flex-direction: column; }
  .quick-match .choice-row { flex-wrap: wrap; gap: 8px; }
  .quick-match .choice { padding: 10px 13px; font-size: 12px; }
  .decision-section { padding: 62px 0 68px; }
  .decision-layout { width: min(100% - 32px, 760px); }
  .decision-intro h2 { font-size: 39px; }
  .decision-list::before { left: 22px; }
  .decision-list li { grid-template-columns: 46px 1fr; gap: 14px; padding: 23px 0 25px; }
  .decision-list li > span { width: 46px; height: 46px; border-width: 4px; font-size: 13px; }
  .decision-list h3 { font-size: 18px; }
  .faq-section { padding: 62px 0 76px; }
  .faq-section .faq.shell { width: min(100% - 32px, 760px); }
  .faq-heading { margin-bottom: 30px; }
  .faq-heading h2 { font-size: 39px; }
  .faq-section .faq summary { min-height: 68px; padding: 16px 56px 16px 10px; font-size: 16px; }
  .faq-section .faq summary::after { right: 8px; width: 30px; height: 30px; }
  .faq-section .faq details p { margin-right: 12px; padding-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .quick-match .choice,
  .filter-reveal {
    transition: none;
    animation: none;
  }
}
