@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800;900&display=swap");

:root {
  color-scheme: light;
  --blue: #004aad;
  --yellow: #ffd230;
  --results-bg: #f2f4f7;
  --ink: #0a1a2f;
  --cream: #f8f2df;
  --stone: #e9e3d7;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.18);
  --soft-shadow: rgba(0, 0, 0, 0.12);
  --radius: 18px;
  --capsule: 999px;
  --max-width: 980px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Figtree", "Segoe UI", sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: #f2f4f7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.site-header,
.site-footer,
.site-main {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 24px 6vw 12px;
  gap: 12px;
  background: #ffffff;
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  z-index: 5;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0, 74, 173, 0.25);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
  cursor: pointer;
}

.nav-toggle-bars {
  width: 18px;
  height: 12px;
  position: relative;
}

.nav-toggle-bars span {
  display: block;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after,
.nav-toggle-bars span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 999px;
}

.nav-toggle-bars::before {
  top: 0;
}

.nav-toggle-bars span {
  top: 5px;
}

.nav-toggle-bars::after {
  bottom: 0;
}

.nav-toggle-bars span {
  top: 5px;
}

.nav-toggle-label {
  pointer-events: none;
}

.brand {
  font-family: "Figtree", "Segoe UI", sans-serif;
  font-weight: 800;
  text-decoration: none;
  color: var(--blue);
  letter-spacing: 0.02em;
  font-size: 1.1rem;
}

.brand img {
  height: 56px;
  width: auto;
  display: block;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 8px 6px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--yellow);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  opacity: 1;
}

.site-nav a[aria-current="page"]::after {
  opacity: 1;
}

.site-main {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 12px 6vw 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.page-title {
  font-family: "Figtree", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 12px 0 0;
  text-transform: none;
  letter-spacing: 0.03em;
  color: var(--blue);
  text-align: center;
}
body.is-results .page-title {
  color: #1f2937;
}
body:not(.is-results) .page-title {
  text-align: center;
  white-space: nowrap;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.progress-wrap {
  width: min(100%, var(--max-width));
  margin: 10px auto 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.progress-text {
  text-transform: none;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2c3a52;
  text-align: center;
  width: 100%;
}
body:not(.is-results) .progress-wrap {
  align-items: center;
}
body:not(.is-results) .progress-text {
  text-align: center;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px var(--soft-shadow);
  padding: clamp(24px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: riseFade 0.45s ease;
}

.question-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
body:not(.is-results) .question-header {
  align-items: flex-start;
  text-align: left;
}

.progress {
  display: none;
}

.progress-bar {
  background: rgba(0, 0, 0, 0.08);
  border-radius: var(--capsule);
  height: 8px;
  overflow: hidden;
  width: 100%;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--yellow);
  transition: width 0.3s ease;
}

.question-category {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--blue);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  width: fit-content;
}

.question-title {
  margin: 10px 0 6px;
  font-size: clamp(1.05rem, 2vw, 1.6rem);
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
}
body:not(.is-results) .question-title {
  text-align: left;
}

.question-subtitle {
  margin: 0;
  color: #465a78;
  font-weight: 500;
  text-align: center;
}
body:not(.is-results) .question-subtitle {
  text-align: left;
}

.question-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.option-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-button {
  border: 1.5px solid rgba(0, 74, 173, 0.18);
  background: #ffffff;
  color: #12263c;
  padding: 16px 16px;
  border-radius: 12px;
  text-align: left;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    transform 0.15s ease;
  min-height: 66px;
}

.option-button:hover,
.option-button:focus-visible {
  border-color: rgba(0, 74, 173, 0.5);
  box-shadow: 0 6px 18px rgba(0, 74, 173, 0.14);
  transform: translateY(-1px);
}

.option-button.selected {
  border-color: var(--blue);
  background: rgba(0, 74, 173, 0.08);
  box-shadow: 0 10px 18px rgba(0, 74, 173, 0.12);
}

.option-button.multi-option {
  position: relative;
  padding-left: 48px;
}

.option-button.multi-option::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.6px solid rgba(0, 74, 173, 0.5);
  background: #ffffff;
}

.option-button.multi-option.selected::before {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: inset 0 0 0 3px #ffffff;
}

.text-input {
  width: min(100%, 420px);
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 74, 173, 0.3);
  font-size: 1rem;
  background: #fbfcff;
}

.nav-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border-radius: 12px;
  padding: 12px 20px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.03em;
  text-transform: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(0, 74, 173, 0.22);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-ghost {
  background: #f0f1f4;
  color: #3a4d6a;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}

.btn-ghost:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border: none;
  background: transparent;
  color: rgba(10, 26, 47, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(0, 74, 173, 0.4);
  color: var(--blue);
}

.btn:focus-visible,
.text-input:focus-visible {
  outline: 2px solid rgba(0, 74, 173, 0.5);
  outline-offset: 2px;
}

.results {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: riseFade 0.45s ease;
  position: relative;
}

.results::before {
  display: none;
}

.results-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  width: fit-content;
  justify-content: center;
  margin: 0 auto 12px;
}

.result-label {
  padding: 12px 34px;
  border-radius: var(--capsule);
  background: var(--yellow);
  color: #0a1a2f;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

.result-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}

.result-icon img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.result-icon-fallback {
  width: 104px;
  height: 104px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--yellow), #ffd980);
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-family: "Archivo Black", "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.result-icon-fallback.visible {
  display: flex;
}

.result-text {
  font-size: clamp(1rem, 2.3vw, 1.25rem);
  line-height: 1.6;
  margin: 0;
  max-width: 720px;
  text-align: center;
}

.result-text p {
  margin: 0 0 12px;
}

.result-text p:first-of-type {
  margin-bottom: 18px;
  font-weight: 600;
}

.result-text h3 {
  margin: 22px 0 12px;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0.08em;
  color: #3a4d6a;
  border-top: 1px solid rgba(0, 74, 173, 0.15);
  padding-top: 12px;
}

.result-text ul {
  margin: 0 auto;
  padding-left: 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 520px;
  color: #0a1a2f;
  text-align: left;
}

.result-text li {
  margin-bottom: 6px;
}

.result-text li::marker {
  color: var(--blue);
  font-size: 1rem;
}

.results-actions-panel {
  background: var(--blue);
  padding: 22px 6vw 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-shadow: none;
  margin-top: auto;
}

.actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.btn-share {
  background: transparent;
  border: 1.5px solid #ffffff;
  color: #ffffff;
  border-radius: 16px;
  padding: 12px 28px;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: none;
  white-space: nowrap;
  font-size: 1rem;
  line-height: 1.1;
  min-height: 44px;
}

.btn-callout {
  background: var(--yellow);
  color: #0a1a2f;
  border: none;
  border-radius: 16px;
  padding: 12px 28px;
  box-shadow: none;
  text-transform: none;
  font-weight: 700;
  white-space: nowrap;
  font-size: 1rem;
  line-height: 1.1;
  min-height: 44px;
}

@media (min-width: 901px) {
  .actions-row .btn-share,
  .actions-row .btn-callout {
    font-size: 1rem;
    min-width: 180px;
    text-align: center;
  }
}

.btn-link-small {
  background: transparent;
  border: 1.5px solid #ffffff;
  color: #ffffff;
  text-transform: none;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding: 12px 28px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.1;
  min-height: 44px;
  border-radius: 16px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cta-row .btn-primary {
  padding: 14px 26px;
}

.share-floating {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.share-menu {
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%) translateY(-100%) scale(0.96);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: 240px;
  overflow: visible;
}

.share-menu.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-108%) scale(1);
}

.share-menu-title {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
  text-align: center;
}

.share-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 12px;
  justify-items: center;
  padding-bottom: 10px;
  overflow: visible;
}

.share-btn {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(0, 74, 173, 0.22);
  background: rgba(255, 255, 255, 0.75);
  color: #004aad;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.share-btn i {
  font-size: 1rem;
}

.icon-fallback {
  display: none;
  font-size: 0.75rem;
  font-weight: 700;
}

.fa-missing .share-btn i {
  display: none;
}

.fa-missing .share-btn .icon-fallback {
  display: block;
}

.share-btn::after {
  content: attr(data-label);
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.92);
  padding: 2px 6px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

.share-btn:hover,
.share-btn:focus-visible {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: rgba(0, 74, 173, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.share-btn:hover::after,
.share-btn:focus-visible::after {
  opacity: 1;
}

.share-copy {
  width: 50px;
  height: 50px;
  background: #004aad;
  border-color: #004aad;
  color: #ffffff;
}

.share-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.share-linkedin {
  border-color: rgba(0, 74, 173, 0.35);
}

.share-x {
  border-color: rgba(0, 74, 173, 0.28);
}

.share-facebook {
  border-color: rgba(0, 74, 173, 0.32);
}

.share-reddit {
  border-color: rgba(0, 74, 173, 0.25);
}

.share-threads {
  border-color: rgba(0, 74, 173, 0.22);
}

.share-bluesky {
  border-color: rgba(0, 74, 173, 0.2);
}

.site-footer {
  padding: 18px 6vw 28px;
  border-top: 0;
  background: var(--blue);
}

.footer-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.8rem;
  color: #f8fafc;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.footer-inner a {
  color: #f8fafc;
  text-decoration: none;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-logo img {
  height: 26px;
  width: auto;
  display: block;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

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

@media (max-width: 760px) {
  .site-header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 6px;
    gap: 10px;
  }

  .site-nav {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease;
    order: 3;
  }

  .site-nav a {
    padding: 10px 14px;
  }

  .brand {
    font-size: 1rem;
    order: 1;
  }

  .brand img {
    height: 44px;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .site-header.is-open .site-nav {
    max-height: 220px;
    opacity: 1;
  }

  .page-title {
    margin-top: 12px;
    letter-spacing: 0.02em;
    font-size: clamp(1.7rem, 6vw, 2.4rem);
  }

  .card {
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  body.allow-mobile-card .card {
    background: var(--white);
    box-shadow: 0 14px 30px var(--soft-shadow);
    padding: 24px;
  }

  body:not(.allow-mobile-card) .question-header,
  body:not(.allow-mobile-card) .question-body,
  body:not(.allow-mobile-card) .nav-actions,
  body:not(.allow-mobile-card) .progress {
    padding: 0 8px;
  }

  .option-grid.two-col {
    grid-template-columns: 1fr;
  }

  .result-icon img,
  .result-icon-fallback {
    width: 86px;
    height: 86px;
  }

  .results {
    gap: 16px;
  }

  .results-top {
    padding: 8px 14px;
  }

  .cta-row {
    gap: 10px;
  }
}

body.is-results .card {
  display: none;
}

body.is-results .page-title {
  margin-bottom: 12px;
}

body.is-results .results {
  display: flex;
  flex: 1;
}

@media (max-width: 520px) {
  .footer-inner {
    gap: 10px;
    font-size: 0.72rem;
  }
}

body:not(.is-results) .results {
  display: none;
}

body.is-results {
  background: #f2f4f7;
}

@media (max-width: 980px) {
  body:not(.is-results) .page-title {
    white-space: normal;
  }
}

@media (max-width: 840px) {
  .actions-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn-share,
  .btn-callout,
  .btn-link-small {
    width: min(100%, 240px);
    text-align: center;
  }
}

@media (max-width: 900px) {
  .results-actions-panel {
    padding: 20px 16px 22px;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    justify-items: center;
    gap: 12px 22px;
  }

  .actions-row {
    display: contents;
  }

  #request-btn {
    grid-column: 1 / -1;
    grid-row: 1;
    width: min(100%, 190px);
  }

  .share-floating {
    grid-column: 1;
    grid-row: 2;
    width: auto;
  }

  #retake-btn {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    width: auto;
  }

  .btn-share,
  .btn-callout,
  .btn-link-small {
    width: auto;
    max-width: none;
  }

  .btn-share {
    border: none;
    padding: 0;
    min-height: auto;
    border-radius: 0;
    letter-spacing: 0.06em;
  }

  .btn-link-small {
    border: none;
    padding: 0;
    min-height: auto;
    border-radius: 0;
    letter-spacing: 0.06em;
  }
}

@media (min-width: 901px) {
  .btn-link-small {
    border: none;
    padding: 0;
    min-height: auto;
    border-radius: 0;
  }
}
body.is-results .progress-wrap {
  display: none;
}
body.is-results .site-main {
  padding-bottom: 0;
}

body.is-results .site-footer {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.is-results .footer-inner,
body.is-results .footer-inner a {
  color: #1f2937;
}

@media (max-width: 760px) {
  .share-menu {
    width: 220px;
  }

  .share-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

