@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  --blue: #004aad;
  --yellow: #ffd230;
  --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: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 210, 48, 0.35), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(0, 74, 173, 0.25), transparent 50%),
    linear-gradient(135deg, #fff8e7 0%, #eaf0ff 45%, #fff3d6 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(0, 74, 173, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.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;
}

.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: "Archivo Black", "Space Grotesk", sans-serif;
  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: "Archivo Black", "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 12px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--blue);
}

.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;
}

.progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.progress-text {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 600;
  color: #3a4d6a;
}

.progress-bar {
  background: #d8e1f1;
  border-radius: var(--capsule);
  height: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), #0f6edb);
  transition: width 0.3s ease;
}

.question-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: var(--capsule);
  background: rgba(0, 74, 173, 0.1);
  color: var(--blue);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  width: fit-content;
}

.question-title {
  margin: 12px 0 8px;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
}

.question-subtitle {
  margin: 0;
  color: #465a78;
}

.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: 1px solid rgba(0, 74, 173, 0.2);
  background: #f7f9ff;
  color: var(--ink);
  padding: 14px 16px;
  border-radius: 14px;
  text-align: left;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.option-button:hover,
.option-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 74, 173, 0.4);
  box-shadow: 0 8px 20px rgba(0, 74, 173, 0.12);
}

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

.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: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.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: transparent;
  color: #3a4d6a;
  border: 1px solid rgba(0, 74, 173, 0.22);
  border-radius: var(--capsule);
}

.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 {
  content: "";
  position: absolute;
  inset: -24px -12px auto -12px;
  height: 240px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  border-radius: 24px;
  z-index: -1;
}

.results-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: var(--capsule);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  width: fit-content;
  justify-content: center;
  margin: 0 auto;
}

.result-label {
  padding: 10px 24px;
  border-radius: var(--capsule);
  background: var(--blue);
  color: var(--white);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.result-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.result-icon img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  border-radius: 18px;
}

.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;
}

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

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

.result-text ul {
  margin: 0;
  padding-left: 20px;
  font-size: 0.98rem;
  line-height: 1.7;
}

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

.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: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8rem;
  color: rgba(10, 26, 47, 0.7);
}

.footer-inner a {
  color: rgba(0, 74, 173, 0.85);
  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;
}

body:not(.is-results) .results {
  display: none;
}
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
  .share-menu {
    width: 220px;
  }

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