:root {
  --paper: #ffffff;
  --ink: #1c275c;
  --muted: #505c95;
  --accent: #fb3569;
  --purple: #6870e3;
  --mint: #dbf6e9;
  --line: #dce1f1;
  --accent-border: #e5195d;
  --accent-hover: #d11355;
  --display: "Libre Baskerville", Georgia, serif;
  --body: "Inter", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #e5195d;
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.site-shell {
  max-width: 1536px;
  padding: 0 5.55%;
  margin: auto;
}
.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.header-note {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  flex: 1;
}
.text-button {
  border: 0;
  background: none;
  padding: 9px 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.text-button:hover {
  color: #e5195d;
}
.hero {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  min-height: 640px;
  align-items: center;
  padding: 53px 0 60px;
  gap: 20px;
}
.edition {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.tiny-spark {
  color: #6870e3;
}
.edition-line {
  height: 1px;
  width: 39px;
  background: #c0c9e2;
  margin-left: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
}
.hero h1 {
  font-weight: 600;
  margin: 26px 0 26px;
  text-wrap: balance;
}
.spooky-word {
  position: relative;
  color: #1c275c;
}
.spooky-word svg {
  position: absolute;
  width: 101%;
  height: 11px;
  left: -2px;
  bottom: -2px;
  fill: none;
  stroke: #fb3569;
  stroke-width: 2.3;
  stroke-linecap: round;
}
.hero-description {
  color: var(--muted);
}
.button {
  border: 1.5px solid var(--ink);
  min-height: 53px;
  padding: 14px 23px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 29px;
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    background 0.18s;
}
.button span {
  font-weight: 400;
}
.button-primary {
  background: var(--accent);
  border-color: var(--accent-border);
  color: #ffffff;
  font-weight: 700;
}
.button-primary:hover:enabled {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 16px #fb356926;
}
.button-primary:active:enabled {
  transform: translateY(0);
  box-shadow: none;
}
.button-primary:disabled {
  background: #dce1f1;
  border-color: #dce1f1;
  color: #505c95;
}
.button-secondary {
  background: transparent;
}
.button-secondary:hover {
  background: #ecf0fb;
  transform: translateY(-2px);
}
.start-button {
  margin-top: 28px;
  min-width: 220px;
}
.start-button:hover:enabled {
  background: var(--accent-hover);
  box-shadow: 0 5px 16px #fb356926;
}
.quiz-facts {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
}
.quiz-facts i {
  height: 3px;
  width: 3px;
  border-radius: 50%;
  background: #8b95c6;
}
.mini-proof {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 33px;
  color: var(--muted);
}
.mini-avatars {
  display: flex;
  padding-left: 3px;
}
.mini-avatars img {
  width: 29px;
  height: 29px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--paper);
  margin-left: -3px;
}
.how-it-works {
  padding: 35px 0 40px;
  display: grid;
  grid-template-columns: 1.05fr 1.2fr 1.2fr 1.4fr;
  gap: 20px;
  align-items: start;
}
.eyebrow {
  font-weight: 700;
}
.how-heading > .eyebrow {
  color: var(--muted);
}
.how-heading h2 {
  margin-top: 9px;
  font-weight: 600;
}
.how-step {
  display: flex;
  gap: 13px;
  padding-top: 7px;
}
.step-number {
  width: 35px;
  height: 35px;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--display);
  border: 1px solid var(--ink);
  border-radius: 50%;
  transform: rotate(-7deg);
}
.mint {
  background: #dbf6e9;
}
.lilac {
  background: #eef0ff;
}
.peach {
  background: #fff0ed;
}
.how-step h3 {
  font-weight: 600;
  margin: 1px 0 8px;
}
.how-step p {
  color: var(--muted);
}
.view {
  animation: appear 0.35s ease-out;
}
.quiz-view {
  max-width: 1020px;
  margin: auto;
  min-height: 700px;
  padding: 36px 0 50px;
}
.quiz-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.quiz-topline > .eyebrow {
  color: var(--muted);
}
.question-count {
  font-family: var(--display);
}
.progress-track {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}
.progress-segment {
  height: 4px;
  flex: 1;
  border-radius: 3px;
  background: #ecf0fb;
  transition: background 0.2s;
}
.progress-segment.complete,
.progress-segment.current {
  background: var(--ink);
}
.question-layout {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 70px;
  padding-top: 54px;
  align-items: center;
}
.question-illustration {
  position: relative;
  padding: 30px 15px 25px;
}
.question-ghost-wrap {
  padding: 12px;
  background: #eef0ff;
  border: 1.5px solid var(--ink);
  border-radius: 26px;
  transform: rotate(-7deg);
  box-shadow: 5px 6px 0 #1c275c24;
}
.question-ghost-wrap img {
  border-radius: 16px;
  width: 100%;
}
.question-side-note {
  font-family: var(--display);
  text-align: center;
  margin-top: 32px;
  transform: rotate(-4deg);
  color: var(--muted);
}
.question-doodle {
  position: absolute;
  right: -8px;
  top: -8px;
}
.question-kicker {
  color: #505c95;
  display: block;
  margin-bottom: 12px;
}
.question-body h1 {
  max-width: 560px;
  min-height: calc(var(--page-title-size) * var(--leading-h1) * 2);
  text-wrap: balance;
  outline: none;
}
.question-hint {
  color: var(--muted);
  margin-top: 8px;
}
.answers {
  border: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 10px;
  min-width: 0;
}
.answer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1.2px solid #dce1f1;
  border-radius: 10px;
  padding: 13px 15px;
  background: #ffffff;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
  min-height: 65px;
}
.answer:hover {
  background: #f9faff;
  border-color: #adbbe3;
  transform: translateX(3px);
}
.answer:has(input:checked) {
  background: #ecf0fb;
  border-color: var(--ink);
  box-shadow: 0 0 0 0.4px var(--ink);
}
.answer input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.answer:has(input:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.answer-letter {
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  border: 1px solid #dce1f1;
  border-radius: 7px;
  background: var(--paper);
  flex: none;
}
.answer:has(input:checked) .answer-letter {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.answer-title {
  display: block;
  font-weight: 600;
}
.answer-subtitle {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.answer-check {
  margin-left: auto;
  width: 18px;
  flex: none;
  opacity: 0;
}
.answer:has(input:checked) .answer-check {
  opacity: 1;
}
.question-bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}
.question-bottom > span {
  color: var(--muted);
  max-width: 110px;
}
.question-bottom .button {
  min-height: 47px;
  padding: 12px 17px;
  gap: 20px;
}
.reveal-view {
  min-height: 700px;
  padding: 75px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}
.reveal-orbit {
  width: 180px;
  height: 180px;
  border: 1px dashed #8b95c6;
  border-radius: 50%;
  padding: 14px;
  margin-bottom: 33px;
  animation: bob 2.5s ease-in-out infinite;
}
.reveal-orbit img {
  border-radius: 50%;
  width: 100%;
}
.reveal-view h1 {
  margin: 16px 0;
  outline: none;
}
.reveal-view p {
  color: var(--muted);
}
.loading-dots {
  display: flex;
  gap: 7px;
  margin: 25px;
}
.loading-dots i {
  width: 7px;
  height: 7px;
  background: #fb3569;
  border-radius: 50%;
  animation: blink 1s infinite;
}
.loading-dots i:nth-child(2) {
  animation-delay: 0.2s;
}
.loading-dots i:nth-child(3) {
  animation-delay: 0.4s;
}
.result-view {
  padding: 36px 0 65px;
  max-width: 1060px;
  margin: auto;
  min-height: 700px;
}
.result-layout {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 40px;
}
.result-card {
  background: #eef0ff;
  border: 1.5px solid var(--ink);
  border-radius: 17px;
  padding: 23px 25px 16px;
  box-shadow: 5px 6px 0 #1c275c24;
  transform: rotate(-2deg);
  position: relative;
  overflow: hidden;
}
.card-topline,
.card-bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-topline {
  padding-bottom: 19px;
  border-bottom: 1px solid #1c275c35;
}
.result-avatar-stage {
  position: relative;
  padding: 30px 15px 20px;
}
.result-avatar-stage img {
  width: 100%;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}
.result-star {
  position: absolute;
}
.star-left {
  left: -5px;
  top: 25px;
  transform: rotate(15deg);
}
.star-right {
  right: -7px;
  bottom: 5px;
}
.card-caption {
  display: block;
  text-align: center;
  margin: 7px 0 12px;
  font-weight: 600;
}
.result-card h2 {
  text-align: center;
  margin-bottom: 26px;
}
.card-bottomline {
  border-top: 1px solid #1c275c35;
  padding-top: 13px;
}
.result-copy > .eyebrow {
  color: #505c95;
}
.result-copy h1 {
  margin: 15px 0;
  outline: none;
}
.result-copy h1 span {
  color: #1c275c;
}
.result-description {
  color: var(--muted);
}
.trait-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 19px 0 25px;
}
.trait-pill {
  border: 1px solid #dce1f1;
  border-radius: 25px;
  padding: 6px 11px;
  background: #ecf0fb;
}
.reason-box {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.reason-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}
.reason-label > span {
  color: #505c95;
}
.reason-box p {
  color: var(--muted);
  margin-top: 7px;
}
.result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.result-actions .button {
  gap: 16px;
  padding: 13px 17px;
  min-height: 49px;
}
.result-footnote {
  color: var(--muted);
  margin-top: 10px;
}
.gallery-dialog {
  border: 1.5px solid var(--ink);
  padding: 30px;
  border-radius: 19px;
  max-width: 940px;
  width: 90vw;
  max-height: 88dvh;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 6px 7px 0 #1c275c55;
  overscroll-behavior: contain;
}
.gallery-dialog::backdrop {
  background: #1c275c99;
  backdrop-filter: blur(7px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.gallery-header h2 {
  margin: 9px 0 7px;
}
.gallery-header p {
  color: var(--muted);
}
.close-button {
  width: 35px;
  height: 35px;
  flex: none;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.close-button:hover {
  background: #eef0ff;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 17px 15px;
  margin: 29px 0;
}
.gallery-item {
  margin: 0;
  text-align: center;
}
.gallery-item img {
  width: 100%;
  border-radius: 11px;
  border: 1px solid #1c275c;
  aspect-ratio: 1;
  transition: transform 0.2s;
}
.gallery-item:hover img {
  transform: rotate(-4deg);
}
.gallery-item figcaption {
  margin-top: 7px;
  font-weight: 500;
}
.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  gap: 20px;
}
.gallery-footer > span {
  color: var(--muted);
}
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  padding: 13px 20px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: 90vw;
  text-align: center;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.toast-action {
  width: min(440px, calc(100vw - 32px));
  max-width: none;
  padding: 18px 20px 18px 22px;
  border-radius: 16px;
  text-align: left;
}
.toast.toast-action.visible {
  pointer-events: auto;
}
.toast-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.toast-title .ui-icon {
  color: #9ee6b4;
}
.toast-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}
.toast-row > span {
  color: #c9cff0;
}
.toast-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}
.toast-button .ui-icon {
  width: 16px;
  height: 16px;
}
.toast-button:hover {
  background: #eef0ff;
}
.toast-button:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}
.noscript-note {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #eef0ff;
  border: 1px solid;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}
.skip-link {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: -80px;
  left: 15px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 15px;
  border-radius: 8px;
}
.skip-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
  top: 15px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
#main:focus {
  outline: none;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bob {
  50% {
    transform: translateY(-12px) rotate(5deg);
  }
}
@keyframes blink {
  50% {
    opacity: 0.25;
    transform: translateY(-4px);
  }
}
@media (min-width: 1500px) {
  .hero {
    min-height: 700px;
  }
  .how-it-works {
    padding: 43px 0 48px;
  }
}
@media (max-width: 1100px) {
  .site-shell {
    padding: 0 5%;
  }
  .site-header {
    height: 80px;
  }
  .hero {
    min-height: 595px;
    padding: 45px 0 60px;
    gap: 10px;
  }
  .how-it-works {
    grid-template-columns: 0.85fr 1fr 1fr 1fr;
    gap: 15px;
  }
  .how-step {
    gap: 9px;
  }
  .how-step p br {
    display: none;
  }
  .step-number {
    height: 29px;
    width: 29px;
  }
  .question-layout {
    gap: 45px;
  }
  .result-layout {
    gap: 55px;
  }
}
@media (max-width: 760px) {
  .site-shell {
    padding: 0 6%;
  }
  .site-header {
    height: 72px;
    gap: 15px;
  }
  .brand-ghost {
    width: 25px;
    height: 29px;
  }
  .header-note {
    display: none;
  }
  .site-header > .text-button {
    margin-left: auto;
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 35px 0 42px;
  }
  .hero-copy {
    text-align: center;
  }
  .edition {
    justify-content: center;
  }
  .edition-line {
    width: 25px;
  }
  .hero h1 {
    margin: 20px 0;
  }
  .hero-description br {
    display: none;
  }
  .start-button {
    margin-top: 25px;
    min-width: 220px;
  }
  .quiz-facts {
    justify-content: center;
    margin-top: 24px;
  }
  .mini-proof {
    display: none;
  }
  .how-it-works {
    grid-template-columns: 1fr;
    gap: 23px;
    padding: 28px 7% 35px;
  }
  .how-heading {
    text-align: center;
    margin-bottom: 5px;
  }
  .how-heading h2 br {
    display: none;
  }
  .how-step {
    padding-top: 0;
    gap: 16px;
    align-items: start;
  }
  .step-number {
    width: 35px;
    height: 35px;
  }
  .how-step h3 {
    margin: 0 0 5px;
  }
  .quiz-view {
    padding: 22px 0 35px;
    min-height: 750px;
  }
  .progress-track {
    gap: 5px;
    margin-top: 13px;
  }
  .question-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 30px;
  }
  .question-illustration {
    padding: 0;
    max-width: 130px;
    align-self: center;
  }
  .question-ghost-wrap {
    padding: 5px;
    border-radius: 14px;
    box-shadow: 3px 3px 0 var(--ink);
  }
  .question-ghost-wrap img {
    border-radius: 9px;
  }
  .question-side-note {
    display: none;
  }
  .question-doodle {
    right: -27px;
    top: 7px;
  }
  .question-body {
    width: 100%;
    align-self: center;
  }
  .question-kicker {
    text-align: center;
    margin-bottom: 10px;
  }
  .question-body h1 {
    text-align: center;
    max-width: 480px;
    margin: auto;
  }
  .question-hint {
    text-align: center;
    margin-top: 8px;
  }
  .answers {
    margin: 22px 0;
    gap: 9px;
  }
  .answer {
    min-height: 64px;
    padding: 12px;
  }
  .question-bottom {
    gap: 12px;
  }
  .question-bottom > span {
    max-width: 130px;
  }
  .question-bottom .button {
    padding: 12px 15px;
    gap: 18px;
  }
  .reveal-view {
    min-height: 700px;
    padding: 55px 0;
  }
  .result-view {
    padding: 24px 0 40px;
  }
  .result-layout {
    grid-template-columns: 1fr;
    gap: 35px;
    margin-top: 28px;
  }
  .result-card {
    max-width: 335px;
    width: 85%;
    margin: auto;
    padding: 18px 21px 14px;
  }
  .result-avatar-stage {
    padding: 19px 20px 14px;
  }
  .result-card h2 {
    margin-bottom: 20px;
  }
  .card-caption {
    margin-top: 5px;
  }
  .card-topline {
    padding-bottom: 13px;
  }
  .result-copy {
    max-width: 440px;
    margin: auto;
    text-align: center;
  }
  .trait-pills {
    justify-content: center;
    margin: 16px 0 20px;
    gap: 6px;
  }
  .reason-box {
    text-align: left;
    padding: 16px 0 0;
  }
  .result-actions {
    justify-content: center;
    margin-top: 22px;
  }
  .result-actions .button {
    gap: 14px;
    padding: 13px 16px;
  }
  .gallery-dialog {
    padding: 22px 17px;
    border-radius: 14px;
    width: 94vw;
    max-height: 90dvh;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 10px;
    margin-top: 22px;
  }
  .gallery-footer .button {
    padding: 12px 14px;
    gap: 13px;
    min-height: 45px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Marvin branding: colors and assets sourced from heymarvin.com. */
.marvin-logo {
  width: 138px;
  height: auto;
}
.brand-edition {
  display: inline-flex;
  align-items: center;
  background: #fff5f8;
  border: 1px solid #f7bace;
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 10px;
  margin-right: 0;
  font-family: var(--display);
  font-style: italic;
}
.hero {
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 20px -2.5% 20px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 75% 25%, #ecf0fb 0, transparent 62%),
    radial-gradient(ellipse at 15% 90%, #fff5f8 0, transparent 66%);
}
.spooky-word,
.hero-alter {
  font-style: italic;
  font-weight: 400;
}
.ghost-tile > span,
.answer-letter,
.step-number,
.question-count {
  font-family: var(--body);
}
.card-bottomline > img {
  width: 94px;
  height: auto;
}
.card-topline,
.card-bottomline {
  border-color: #1c275c26;
}
.result-discover {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.result-discover > img {
  flex: none;
  width: 42px;
  height: 42px;
}
.result-discover-title {
  margin-bottom: 8px;
  font-weight: 600;
}
.marvin-text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 5px;
}
.marvin-text-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
.marvin-updates {
  margin: 32px 0 96px;
  padding: 72px 0 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
@media (max-width: 760px) {
  .marvin-updates {
    margin: 24px 0 64px;
    padding-top: 48px;
  }
}
.marvin-updates-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 28px;
}
.marvin-updates-header h2 {
  margin: 12px 0;
}
.marvin-updates-header p {
  color: var(--muted);
  max-width: 650px;
}
.marvin-updates-header > .marvin-text-link {
  flex: none;
  margin-bottom: 3px;
}
.marvin-updates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.marvin-update-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
}
.update-tour {
  background: #eef0ff;
}
.update-event {
  background: #fff5f8;
  border-color: #f7bace;
}
.update-interviews {
  background: #e4f9ff;
}
.marvin-update-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.marvin-update-topline > svg {
  flex: none;
}
.marvin-update-tag {
  font-weight: 600;
}
.tag-new {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
}
.marvin-update-card h3 {
  margin-bottom: 12px;
  font-weight: 600;
}
.marvin-update-card p {
  color: var(--muted);
  margin-bottom: 28px;
}
.marvin-update-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 16px 0 0;
  border-top: 1px solid #1c275c26;
  font-weight: 600;
  text-underline-offset: 5px;
}
.marvin-update-link:hover {
  color: var(--accent-hover);
}
.marvin-update-link:hover > span:first-child {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .marvin-updates-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .marvin-updates-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .marvin-logo {
    width: 119px;
  }
  .hero::before {
    inset: 18px -3% 10px;
    border-radius: 20px;
  }
}

/* Allow the shared, readable type scale to reflow without tiny text overrides. */
.how-it-works {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}
.how-heading {
  grid-column: 1 / -1;
}
.how-heading h2 br {
  display: none;
}
.how-step {
  gap: 16px;
}
.quiz-facts {
  flex-wrap: wrap;
  gap: 8px 14px;
}
.quiz-facts i {
  display: none;
}
.quiz-facts span {
  white-space: nowrap;
}
.quiz-facts span + span {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.text-button {
  min-height: 44px;
}
.question-bottom > span {
  max-width: none;
  flex: 1;
}
.answer {
  min-height: 74px;
}
.answer-letter {
  width: 32px;
  height: 32px;
}
.card-topline,
.card-bottomline {
  flex-wrap: wrap;
  gap: 12px;
}
.card-topline > span:last-child {
  margin-left: auto;
}
.result-actions .button {
  flex: 1 1 190px;
}
@media (max-width: 760px) {
  .site-header > .text-button {
    gap: 8px;
    white-space: nowrap;
  }
  .how-it-works {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .quiz-topline > .eyebrow {
    display: none;
  }
  .question-bottom {
    display: grid;
    grid-template-columns: 1fr;
  }
  .question-bottom .button {
    width: 100%;
  }
  .result-card {
    width: 94%;
  }
  .gallery-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .gallery-footer > span {
    text-align: center;
  }
}
@media (max-width: 360px) {
  .site-header > .text-button > span {
    display: none;
  }
}

/* The collage sizes itself from its cards; the caption gets its own flow row. */
.hero-art {
  display: flex;
  flex-direction: column;
  align-self: center;
  width: 100%;
  max-width: 520px;
  min-width: 0;
  margin-inline: auto;
}
.avatar-collage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 64px 24px;
  padding: 24px 32px 28px;
}
.art-orbit {
  position: absolute;
  z-index: -1;
  width: 96%;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  border: 1px dashed #c0c9e2;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(10deg);
  pointer-events: none;
}
.ghost-tile {
  position: relative;
  width: 100%;
  min-width: 0;
  border: 1.5px solid var(--ink);
  padding: 7px 7px 0;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 3px 4px 0 #1c275c24;
  transition: transform 0.3s;
  overflow: hidden;
}
.ghost-tile img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 7px;
}
.ghost-tile > span {
  display: block;
  padding: 8px 3px 9px;
  text-align: center;
  font-weight: 600;
}
.tile-witch {
  grid-column: 1;
  grid-row: 1;
  transform: rotate(-7deg);
}
.tile-cat {
  grid-column: 2;
  grid-row: 1;
  margin-top: 16px;
  transform: rotate(7deg);
}
.tile-star {
  grid-column: 1;
  grid-row: 2;
  transform: rotate(-4deg);
}
.tile-ghost {
  grid-column: 2;
  grid-row: 2;
  margin-top: 12px;
  transform: rotate(8deg);
}
.tile-witch:hover {
  transform: rotate(-3deg) translateY(-7px);
}
.tile-cat:hover {
  transform: rotate(3deg) translateY(-7px);
}
.tile-star:hover {
  transform: rotate(0deg) translateY(-7px);
}
.tile-ghost:hover {
  transform: rotate(4deg) translateY(-7px);
}
.art-sticker {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  width: 112px;
  height: 112px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fee3f0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--ink);
  text-align: center;
  font-weight: 600;
}
.art-sticker svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  margin-bottom: 2px;
}
.art-spark {
  position: absolute;
  z-index: 7;
  pointer-events: none;
}
.spark-one {
  top: 0;
  right: 4%;
  color: var(--ink);
  transform: rotate(15deg);
}
.spark-two {
  bottom: 8px;
  left: 0;
  color: #6870e3;
}
.art-caption {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 16px 0 0;
  padding: 0 20px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}
.art-caption > span {
  position: static;
  display: inline-block;
  flex: none;
  width: 32px;
  transform: rotate(-20deg);
}
@media (max-width: 760px) {
  .hero-art {
    max-width: 430px;
    margin-top: 8px;
  }
  .avatar-collage {
    gap: 64px 24px;
    padding: 16px 12px 24px;
  }
  .tile-cat {
    margin-top: 12px;
  }
  .tile-ghost {
    margin-top: 8px;
  }
  .art-sticker {
    width: 112px;
    height: 112px;
  }
  .art-caption {
    margin-top: 12px;
    padding: 0 4px;
  }
}

/* Consistent, crisp arrows and a single clear primary action on results. */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.ui-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  pointer-events: none;
}
.button.button-primary {
  padding: 8px 10px 8px 22px;
  gap: 20px;
}
.button-primary > .ui-icon {
  width: 36px;
  height: 36px;
  padding: 7px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent);
}
.button-primary > .button-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent);
}
.button-icon > .ui-icon {
  width: 22px;
  height: 22px;
}
.art-sticker > span {
  display: block;
  white-space: nowrap;
}
.hero-art {
  max-width: 460px;
}
.art-caption {
  display: block;
  margin-top: 20px;
}
.result-view {
  min-height: 0;
  padding: 28px 0 48px;
}
.result-layout {
  grid-template-columns: min(42%, 480px) minmax(0, 1fr);
  gap: 48px;
  margin-top: 0;
}
.result-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: none;
  transform: none;
}
.card-topline {
  padding: 0;
  border: none;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  color: var(--muted);
}
.card-topline > img {
  width: 110px;
  height: auto;
}
.result-avatar-stage {
  padding: 24px 0 0;
}
.result-avatar-stage img {
  width: 100%;
  aspect-ratio: 1;
  border: none;
  border-radius: 14px;
}
.avatar-download-button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 4px 12px #1c275c1f;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}
.avatar-download-button:hover:enabled {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.avatar-download-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.avatar-download-button:disabled {
  opacity: 0.6;
}
.result-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.result-copy .result-title-row h1 {
  margin: 0;
}
.retake-button {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.retake-button .ui-icon {
  transition: transform 0.3s ease;
}
.retake-button:hover {
  border-color: var(--ink);
}
.retake-button:hover .ui-icon {
  transform: rotate(-120deg);
}
.retake-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.result-copy {
  width: 100%;
  max-width: 560px;
  min-width: 0;
}
.result-copy h1 {
  margin: 0 0 16px;
}
.reason-box {
  margin-top: 24px;
  padding: 0;
  border: none;
}
.reason-label {
  font-weight: 600;
}
.reason-box p + p {
  margin-top: 8px;
}
.result-actions {
  margin-top: 28px;
  align-items: center;
  gap: 12px 24px;
}
.result-actions .button {
  flex: none;
  min-height: 54px;
}
.result-actions .result-card-button {
  padding: 12px 20px;
  gap: 12px;
  font-weight: 500;
}
.result-marvin-link {
  margin-top: 28px;
  padding-left: 23px;
}
.marvin-jump-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
}
.marvin-jump-link:hover > span:first-child,
.marvin-jump-link:focus-visible > span:first-child {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.scroll-cue-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.scroll-cue-icon .ui-icon {
  width: 18px;
  height: 18px;
}
.hero-scroll-link {
  position: fixed;
  z-index: 10;
  left: 45%;
  bottom: clamp(24px, 8vh, 72px);
  transform: translateX(-50%);
  justify-content: center;
  width: 48px;
  height: 48px;
}
.hero-scroll-link .scroll-cue-icon {
  width: 44px;
  height: 44px;
  background: #ffffff80;
  border-color: #c0c9e2;
  color: var(--ink);
}
.hero-scroll-link .ui-icon {
  width: 22px;
  height: 22px;
  animation: scroll-cue 2s ease-in-out infinite;
}
.hero-scroll-link:hover .scroll-cue-icon {
  background: var(--paper);
  border-color: var(--ink);
}
.share-dialog {
  width: calc(100% - 32px);
  max-width: 960px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 24px 80px #1c275c33;
}
.share-dialog::backdrop {
  background: #1c275c80;
  backdrop-filter: blur(5px);
}
.share-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.share-header .close-button {
  flex: none;
}
.share-header p {
  margin-top: 8px;
  color: var(--muted);
}
.share-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.share-formats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0;
  margin: 0 0 12px;
  border: 0;
}
.share-formats label {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 3px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
}
.share-formats input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.share-formats label:has(input:checked) {
  background: #eef0ff;
  border-color: var(--ink);
}
.share-formats label:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.share-formats label > span:last-child {
  color: var(--muted);
  font-weight: 400;
}
.share-preview {
  height: 320px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f6f7fc;
  text-align: center;
  color: var(--muted);
}
.share-preview img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.share-copy > label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
#share-caption {
  width: 100%;
  min-height: 180px;
  padding: 14px 54px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  resize: vertical;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
}
.share-caption-wrap {
  position: relative;
}
.caption-copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
.caption-copy-button:hover {
  background: #eef0ff;
  border-color: var(--ink);
}
#share-caption:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.share-social-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 16px;
}
.share-social-actions .button {
  min-height: 54px;
  gap: 12px;
}
.button-linkedin {
  padding: 12px 20px;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  font-weight: 600;
}
.button-linkedin:hover {
  background: #000b29;
  border-color: #000b29;
}
.button-linkedin .linkedin-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  line-height: 1;
}
.share-help {
  color: var(--muted);
  margin-top: 8px;
}
@media (max-width: 760px) {
  .share-dialog {
    padding: 20px;
  }
  .share-layout {
    grid-template-columns: 1fr;
  }
  .share-preview {
    height: 240px;
  }
}
@keyframes scroll-cue {
  0%,
  100% {
    transform: translateY(-1px);
  }
  50% {
    transform: translateY(2px);
  }
}
@media (max-width: 760px) {
  .hero-art {
    max-width: 430px;
  }
  .result-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .result-card {
    width: 100%;
    max-width: 420px;
    padding: 20px;
  }
  .result-copy {
    width: 100%;
    max-width: 480px;
    text-align: left;
  }
  .result-actions .button {
    width: 100%;
    justify-content: space-between;
  }
}

/* Review refinements: compact hero, quiet links, and compact quiz navigation. */
.hero {
  max-width: 1120px;
  min-height: 0;
  margin-inline: auto;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  padding: 32px;
}
.hero::before {
  inset: 0 auto;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  border-radius: 0;
  background:
    linear-gradient(#ffffff 0%, #ffffff00 14%, #ffffff00 82%, #ffffff 100%),
    radial-gradient(ellipse at 75% 25%, #ecf0fb 0, transparent 62%),
    radial-gradient(ellipse at 15% 90%, #fff5f8 0, transparent 66%);
}
.hero-copy {
  max-width: 480px;
}
.hero .edition {
  color: var(--muted);
  font-weight: 600;
}
.hero-art {
  max-width: 500px;
  margin-inline: auto;
  justify-self: center;
}
.art-sticker {
  width: max-content;
  height: auto;
  max-width: calc(100% - 24px);
  padding: 8px 12px;
  border-radius: 999px;
  flex-direction: row;
  gap: 6px;
  transform: translate(-50%, -50%) rotate(-3deg);
}
.art-sticker svg {
  margin: 0;
}
.art-sticker > span + span::before {
  content: " ";
}
.text-button:hover,
.marvin-text-link:hover,
.marvin-update-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.marvin-update-card:hover {
  color: var(--ink);
}
.marvin-update-card:hover .marvin-update-link > span:first-child,
.marvin-update-card:focus-visible .marvin-update-link > span:first-child {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.marvin-update-card:focus-visible {
  outline-color: var(--ink);
}
.question-bottom .button-next {
  min-height: 44px;
  min-width: 176px;
  padding: 8px 20px;
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
  font-weight: 500;
}
.question-bottom .button-next:hover:enabled {
  background: #000b29;
  border-color: #000b29;
}
.question-bottom .button-next:disabled {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  opacity: 0.65;
}
.result-copy h1 {
  margin-bottom: 24px;
}
/* One shared 1280px container for navigation, content, quiz, and discovery. */
.site-shell {
  width: calc(100% - 48px);
  max-width: 1280px;
  padding: 0;
  margin-inline: auto;
}
.hero {
  width: 100%;
  max-width: none;
  padding-inline: 24px;
}
.quiz-view,
.result-view {
  width: 100%;
  max-width: none;
}
.quiz-view {
  padding: 20px 0 40px;
}
.question-layout {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  padding-top: 24px;
  align-items: start;
}
.question-illustration {
  width: 100%;
  max-width: 440px;
  justify-self: center;
}
.question-body {
  width: 100%;
  max-width: 640px;
  min-width: 0;
}
.result-card {
  width: 100%;
  max-width: 480px;
}
@media (max-width: 760px) {
  .site-shell {
    width: calc(100% - 32px);
  }
  .hero {
    padding: 28px 16px 80px;
    gap: 24px;
  }
  .hero-scroll-link {
    left: 50%;
  }
  .hero-copy {
    align-self: center;
  }
  .hero-art {
    max-width: 420px;
    margin-inline: auto;
  }
  .avatar-collage {
    padding-inline: 8px;
  }
  .question-layout {
    gap: 24px;
    padding-top: 28px;
  }
  .question-illustration {
    max-width: 144px;
  }
}
