@font-face { font-family: Lato; src: url('assets/Lato-Regular.ttf'); font-display: swap; }
@font-face { font-family: Lato; src: url('assets/Lato-Bold.ttf'); font-weight: 700; font-display: swap; }
:root {
  font-family: Lato, Arial, sans-serif;
  color: #25202d;
  background: #fff;
  --purple: #883fce;
  --ink: #25202d;
  --muted: #6e6379;
  --line: #dfd7e8;
  --pale: #f6f1fc;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: 5px; }
button:focus-visible, a:focus-visible { outline: 3px solid #ab65e5; outline-offset: 5px; }
button:disabled { cursor: default; opacity: .4; }
.shell { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding-block: 24px; border-bottom: 1px solid var(--line); gap: 24px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; text-decoration: none; letter-spacing: -1px; }
.site-header nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { color: var(--purple); }
.intro { padding-block: 42px; text-align: center; }
h1 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.15; letter-spacing: -1.5px; margin: 0; }
h1 em { font-family: Georgia, serif; font-weight: 400; color: var(--purple); }
h2 { font-size: 32px; line-height: 1.15; letter-spacing: -.8px; margin: 0; }
.tour-section { background: var(--pale); border-block: 1px solid #ebe3f3; padding-block: 24px 32px; }
.steps { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.steps button { border: 1px solid transparent; border-radius: 30px; background: transparent; color: #675473; padding: 12px 18px; font-size: 14px; white-space: nowrap; }
.steps button:hover { background: #ebe0f5; }
.steps button[aria-current=step] { background: var(--ink); color: #fff; }
.tour-heading { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 22px; }
#tour-progress { font-size: 14px; color: var(--muted); white-space: nowrap; }
.device-stage { position: relative; margin: 0; display: flex; align-items: center; flex-direction: column; isolation: isolate; }
.stage-halo { position: absolute; z-index: -1; width: 520px; height: 520px; max-width: 100%; border-radius: 50%; background: #e8d9f6; top: 70px; }
.stage-halo::after { content: ''; position: absolute; inset: -20px; border: 1px solid #ded0eb; border-radius: 50%; }
.device { --phone-scale: .77; position: relative; width: calc(374px * var(--phone-scale) + 16px); height: calc(844px * var(--phone-scale) + 16px); background: #fff; border: 8px solid #2a2133; border-radius: 32px; overflow: hidden; box-shadow: 0 22px 44px #3c20501c, 0 1px 2px #0005; }
.device-viewport { position: relative; width: 374px; height: 844px; transform: scale(var(--phone-scale)); transform-origin: top left; overflow: hidden; }
.device iframe { width: 374px; height: 844px; border: 0; display: block; pointer-events: none; }
.device-stage figcaption { font-size: 13px; color: var(--muted); margin-top: 17px; }
.tour-controls { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.button { min-width: 120px; border: 1px solid var(--purple); padding: 13px 22px; border-radius: 8px; font-weight: 700; font-size: 15px; line-height: 1.3; }
.primary { background: var(--purple); color: #fff; }
.primary:hover { background: #7434b4; }
.secondary { background: transparent; color: var(--purple); }
.noscript { font-size: 16px; padding: 20px; background: white; }
.matching-section { background: #271c34; color: #fff; padding-block: 48px; }
.matching-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.candidates { display: flex; gap: 9px; margin-block: 24px; }
.candidates button { padding: 12px 19px; border-radius: 28px; border: 1px solid #786187; color: #e4d8ec; background: transparent; font-size: 15px; }
.candidates button[aria-pressed=true] { background: #e7cff9; color: #34233f; border-color: #e7cff9; font-weight: 700; }
.candidates button:hover { border-color: white; }
.text-link { font-weight: 700; font-size: 14px; color: #ddbcf5; }
.score-panel { border-left: 1px solid #63506f; padding-left: 50px; }
.score-pair { font-size: 25px; font-weight: 700; margin: 0 0 24px; letter-spacing: -.5px; }
.score-pair > span:first-child { font-family: Georgia, serif; font-style: italic; font-weight: 400; color: #c9acdd; margin-inline: 10px; }
.score-values { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.score-values p { font-size: 15px; color: #d1c4dc; margin: 0 0 7px; }
.score-values strong { font-size: 48px; line-height: 1.2; font-weight: 400; letter-spacing: -1px; }
.score-values strong span { font-size: 22px; letter-spacing: 0; color: #c6b4d2; margin-left: 3px; }
.meter { height: 5px; background: #493854; border-radius: 5px; overflow: hidden; margin-top: 15px; }
.meter span { display: block; height: 100%; width: 0; transition: width .3s; }
.similarity span { background: #f15d89; }
.complementarity span { background: #a1d88e; }
.score-caveat { font-size: 13px; color: #baabc6; margin: 18px 0 0; }
.site-footer { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding-block: 28px; }
.site-footer p { font-size: 14px; color: var(--muted); margin: 0; }
.site-footer > a:last-child { font-size: 14px; }
.skip-link { position: absolute; top: 10px; left: 10px; padding: 12px; z-index: 5; background: #fff; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  .steps { gap: 2px; }
  .steps button { padding: 11px 13px; }
  .matching-layout { gap: 30px; }
  .score-panel { padding-left: 30px; }
  .score-values { gap: 22px; }
  .score-values strong { font-size: 42px; }
}
@media (max-width: 660px) {
  :root { scroll-padding-top: 15px; }
  .shell { width: calc(100% - 40px); }
  .site-header { padding-block: 19px; gap: 16px; }
  .wordmark { font-size: 24px; }
  .site-header nav { gap: 18px; font-size: 14px; }
  .intro { padding-block: 30px; }
  h1 { font-size: 34px; letter-spacing: -1px; }
  h2 { font-size: 28px; }
  .tour-section { padding-top: 17px; }
  .steps { justify-content: flex-start; flex-wrap: nowrap; overflow: auto; padding: 5px 3px 13px; margin: 0 -3px 17px; scrollbar-width: thin; }
  .steps button { font-size: 14px; padding: 11px 14px; }
  .tour-heading { margin-bottom: 20px; gap: 16px; }
  .stage-halo { width: 350px; height: 350px; top: 120px; max-width: 94%; }
  .stage-halo::after { inset: -10px; }
  .matching-section { padding-block: 32px; }
  .matching-layout { grid-template-columns: 1fr; gap: 28px; }
  .matching-intro { text-align: center; }
  .candidates { justify-content: center; margin-block: 20px; }
  .score-panel { padding: 25px 0 0; border-left: 0; border-top: 1px solid #63506f; }
  .score-values { gap: 28px; }
  .score-values strong { font-size: 46px; }
  .site-footer { flex-wrap: wrap; gap: 16px; padding-block: 25px; }
  .site-footer p { order: 3; width: 100%; }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 32px); }
  .site-header nav { gap: 12px; }
  .wordmark { font-size: 22px; gap: 8px; }
  .wordmark img { width: 30px; height: 30px; }
  .device { --phone-scale: .69; }
  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  .score-values strong { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
