:root {
  --ink: #162744;
  --ink-soft: #4d5e76;
  --blue: #244f82;
  --blue-deep: #173a67;
  --blue-pale: #dce9f5;
  --cream: #f7f1e7;
  --paper: #fffdf8;
  --gold: #bd9654;
  --gold-deep: #8c6b33;
  --gold-pale: #ead7ad;
  --line: rgba(28, 63, 101, 0.14);
  --shadow: 0 28px 80px rgba(20, 47, 82, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cream);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 12%, rgba(189, 150, 84, 0.17), transparent 28rem),
    radial-gradient(circle at 92% 82%, rgba(36, 79, 130, 0.15), transparent 32rem),
    linear-gradient(145deg, #fbf7ef 0%, #f4eee4 48%, #edf3f7 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid rgba(36, 79, 130, 0.35);
  outline-offset: 4px;
}

h1,
h2,
h3,
p,
li,
blockquote {
  text-wrap: pretty;
}

.site-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 40px 20px;
  overflow: hidden;
}

.site-shell::before,
.site-shell::after {
  position: fixed;
  content: "";
  pointer-events: none;
  border-radius: 50%;
}

.site-shell::before {
  top: 7vh;
  left: -220px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(189, 150, 84, 0.3);
  box-shadow:
    0 0 0 36px rgba(189, 150, 84, 0.035),
    0 0 0 74px rgba(189, 150, 84, 0.024);
}

.site-shell::after {
  right: -360px;
  bottom: -190px;
  width: 540px;
  height: 540px;
  background: rgba(36, 79, 130, 0.06);
}

.intro-card,
.question-card,
.result-layout {
  position: relative;
  z-index: 1;
}

.intro-card {
  width: min(940px, 100%);
  padding: clamp(34px, 6vw, 76px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 36px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-mark {
  width: 76px;
  height: 76px;
  margin-bottom: 34px;
  overflow: hidden;
  border: 1px solid rgba(189, 150, 84, 0.2);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 26px rgba(20, 47, 82, 0.14);
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.24);
}

.kicker,
.question-eyebrow {
  margin: 0 0 18px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.intro-card h1,
.result-header h1 {
  max-width: 820px;
  margin: 0;
  color: var(--blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 500;
  line-height: 1.01;
  letter-spacing: -0.045em;
}

.intro-lead {
  max-width: 730px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.25vw, 22px);
  line-height: 1.65;
}

.intro-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 38px 0 32px;
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 750;
}

.intro-meta span {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(220, 233, 245, 0.34);
}

.intro-meta i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.primary-button,
.secondary-button,
.text-button {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.primary-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 17px 26px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(36, 79, 130, 0.22);
  color: #fff;
  font-size: 16px;
  font-weight: 750;
}

.primary-button:hover {
  transform: translateY(-2px);
  background: var(--blue-deep);
  box-shadow: 0 18px 36px rgba(36, 79, 130, 0.28);
}

.disclaimer {
  max-width: 690px;
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #68778b;
  font-size: 13px;
  line-height: 1.65;
}

.question-shell {
  padding-block: 28px;
}

.question-card {
  width: min(900px, 100%);
  min-height: min(730px, calc(100vh - 56px));
  padding: clamp(26px, 5vw, 62px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 34px;
  background: rgba(255, 253, 248, 0.93);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.question-header {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(38px, 7vh, 68px);
}

.back-button {
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-size: 22px;
  transition: background 180ms ease, transform 180ms ease;
}

.back-button:hover {
  transform: translateX(-2px);
  background: var(--blue-pale);
}

.progress-copy {
  width: 100%;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.progress-track {
  width: 100%;
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(36, 79, 130, 0.1);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  transition: width 260ms ease;
}

.question-card h2 {
  max-width: 780px;
  margin: 0;
  color: var(--blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.answer-list {
  display: grid;
  gap: 12px;
  margin-top: 38px;
}

.answer-button {
  display: grid;
  width: 100%;
  grid-template-columns: 34px 1fr 24px;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.answer-button:hover,
.answer-button.is-selected {
  transform: translateY(-1px);
  border-color: rgba(36, 79, 130, 0.42);
  background: #fff;
  box-shadow: 0 10px 28px rgba(28, 63, 101, 0.08);
}

.answer-button.is-selected {
  border-color: var(--gold);
  background: rgba(234, 215, 173, 0.16);
}

.answer-letter {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.answer-button.is-selected .answer-letter {
  background: var(--blue);
  color: #fff;
}

.answer-button strong {
  font-size: 15px;
  font-weight: 560;
  line-height: 1.5;
}

.answer-button i {
  color: var(--gold-deep);
  font-size: 18px;
  font-style: normal;
  text-align: center;
}

.answer-hint {
  margin: 22px 0 0;
  color: #758398;
  font-size: 12px;
  line-height: 1.5;
}

.result-shell {
  display: block;
  padding-block: 68px;
  overflow: visible;
}

.result-layout {
  width: min(980px, 100%);
  margin-inline: auto;
}

.result-header {
  margin-bottom: 38px;
}

.result-header .brand-mark {
  margin-bottom: 28px;
}

.result-header h1 {
  max-width: 920px;
  font-size: clamp(40px, 6vw, 66px);
}

.result-card,
.invitation-card {
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 30px;
  background: rgba(255, 253, 248, 0.91);
  box-shadow: var(--shadow);
}

.result-card {
  padding: clamp(28px, 5vw, 54px);
}

.result-body {
  max-width: 790px;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.78;
}

.result-body p {
  margin: 0 0 18px;
}

.result-body ul {
  display: grid;
  gap: 10px;
  margin: 8px 0 24px;
  padding: 0;
  list-style: none;
}

.result-body li {
  position: relative;
  padding-left: 25px;
}

.result-body li::before {
  position: absolute;
  top: 0.72em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.result-body blockquote {
  position: relative;
  margin: 30px 0 24px;
  padding: 28px 30px 28px 34px;
  border-left: 3px solid var(--gold);
  border-radius: 0 20px 20px 0;
  background: linear-gradient(120deg, rgba(234, 215, 173, 0.26), rgba(220, 233, 245, 0.28));
  color: var(--blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 3.2vw, 32px);
  font-style: normal;
  line-height: 1.35;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 19px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.secondary-button:hover {
  transform: translateY(-2px);
  background: var(--blue);
  color: #fff;
}

.copy-feedback {
  margin: 0;
  color: var(--gold-deep);
  font-size: 13px;
  line-height: 1.5;
}

.invitation-card {
  position: relative;
  margin-top: 28px;
  padding: clamp(30px, 6vw, 64px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(238, 244, 248, 0.94));
}

.invitation-card::after {
  position: absolute;
  right: -120px;
  bottom: -130px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(189, 150, 84, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(189, 150, 84, 0.025);
  content: "";
  pointer-events: none;
}

.invitation-card > * {
  position: relative;
  z-index: 1;
}

.invitation-card h2 {
  max-width: 820px;
  margin: 0;
  color: var(--blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.invitation-text {
  max-width: 790px;
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.78;
}

.invitation-text p {
  margin: 0 0 18px;
}

.invitation-text strong {
  color: var(--blue-deep);
  font-size: 1.08em;
}

.invitation-button,
.registration-soon {
  margin-top: 18px;
}

.registration-soon {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(189, 150, 84, 0.34);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
}

.registration-soon-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-pale);
  color: var(--blue-deep);
}

.registration-soon strong {
  color: var(--blue-deep);
  font-size: 15px;
}

.registration-soon p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 28px 4px 0;
  border-top: 1px solid rgba(36, 79, 130, 0.16);
}

.text-button {
  padding: 12px 4px;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.text-button:hover {
  transform: translateX(-2px);
  color: var(--blue-deep);
}

.result-disclaimer {
  max-width: 700px;
  margin: 24px auto 0;
  color: #6f7c8d;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.view-enter {
  animation: view-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes view-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.noscript-message {
  width: min(620px, calc(100% - 32px));
  margin: 80px auto;
  padding: 24px;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
}

@media (max-width: 760px) {
  .site-shell {
    place-items: start center;
    padding: 14px;
  }

  .intro-card,
  .question-card {
    min-height: calc(100vh - 28px);
    border-radius: 26px;
  }

  .intro-card {
    padding: 30px 22px;
  }

  .brand-mark {
    width: 64px;
    height: 64px;
    margin-bottom: 27px;
  }

  .intro-card h1 {
    font-size: clamp(38px, 11.8vw, 56px);
  }

  .intro-lead {
    margin-top: 24px;
    font-size: 17px;
  }

  .intro-meta {
    gap: 8px;
    margin-block: 28px;
  }

  .intro-meta span {
    padding: 8px 11px;
    font-size: 12px;
  }

  .intro-meta i {
    display: none;
  }

  .primary-button {
    width: 100%;
  }

  .question-card {
    padding: 23px 18px 28px;
  }

  .question-header {
    margin-bottom: 36px;
  }

  .question-card h2 {
    font-size: clamp(29px, 8.7vw, 42px);
  }

  .answer-list {
    margin-top: 30px;
  }

  .answer-button {
    grid-template-columns: 30px 1fr;
    gap: 11px;
    padding: 14px;
  }

  .answer-button i {
    display: none;
  }

  .answer-button strong {
    font-size: 14px;
  }

  .result-shell {
    padding: 42px 14px 50px;
  }

  .result-header h1 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .result-card,
  .invitation-card {
    border-radius: 24px;
  }

  .result-card {
    padding: 26px 20px;
  }

  .result-body blockquote {
    margin-block: 26px 22px;
    padding: 22px 20px;
    font-size: 23px;
  }

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

  .secondary-button {
    width: 100%;
  }

  .invitation-card {
    padding: 30px 22px;
  }

  .invitation-card h2 {
    font-size: clamp(32px, 9.8vw, 46px);
  }

  .registration-soon {
    display: flex;
  }

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

  .text-button {
    order: 2;
  }
}

@media (max-width: 420px) {
  .intro-meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .intro-meta span {
    text-align: center;
  }

  .progress-labels span:last-child {
    display: none;
  }
}

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