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

:root {
  --background: #fff;
  --foreground: #020817;
  --card: #fff;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --primary: #f872a1;
  --ring: #f872a1;
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-200: #fbcfe8;
  --pink-300: #f9a8d4;
  --pink-500: #ec4899;
  --pink-700: #be185d;
  --orange-400: #fb923c;
  --purple-600: #9333ea;
  --radius-card: 2rem;
  --radius-lg: 1rem;
  --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 16px 45px rgba(192, 38, 112, 0.06);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--foreground);
  background-color: var(--background);
  background-image:
    radial-gradient(circle at 10% 8%, rgba(251, 146, 60, 0.12), transparent 32%),
    radial-gradient(circle at 92% 18%, rgba(236, 72, 153, 0.14), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(147, 51, 234, 0.08), transparent 40%),
    linear-gradient(180deg, #fff 0%, #fdf2f8 55%, #fff 100%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--pink-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--pink-500);
}

a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.shell {
  width: min(100%, 28rem);
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0 1.25rem;
}

.site-header img {
  width: auto;
  height: 2.25rem;
  object-fit: contain;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.screen {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  animation: fade-in 0.35s ease;
}

.screen.is-active {
  display: flex;
}

@keyframes fade-in {
  from {
    transform: translateY(6px);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen.is-active {
    animation: none;
  }
}

.brand-card {
  background: var(--card);
  border: 1px solid var(--pink-100);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-card);
}

.brand-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink-500);
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 1.05rem;
  line-height: 1.55;
}

.meta-line {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.progress-track {
  height: 0.5rem;
  border-radius: 999px;
  background: var(--muted);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--orange-400),
    var(--pink-500),
    var(--purple-600)
  );
  transition: width 0.35s ease;
}

.question-text {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.option {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  background: var(--background);
  font: inherit;
  color: inherit;
  line-height: 1.4;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.option::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  border: 2px solid var(--pink-300);
  background: #fff;
}

.option:hover {
  border-color: var(--pink-300);
  background: var(--pink-50);
}

.option:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.option[aria-checked="true"] {
  border-color: var(--pink-500);
  background: var(--pink-50);
  box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.15);
}

.option[aria-checked="true"]::before {
  border-color: var(--pink-500);
  background: radial-gradient(circle at center, var(--pink-500) 42%, #fff 44%);
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}

.btn-primary {
  color: #fff;
  background-image: linear-gradient(
    90deg,
    var(--orange-400),
    var(--pink-500),
    var(--purple-600)
  );
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(236, 72, 153, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(236, 72, 153, 0.3);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--pink-200);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--pink-50);
}

.btn-block {
  width: 100%;
}

.score-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0 0.25rem;
}

.score-value {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--orange-400), var(--pink-500), var(--purple-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.score-of {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted-foreground);
}

.verdict {
  margin: 0;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.45;
}

.tips-title {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-500);
}

.tips-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tips-list li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.tips-list li::before {
  content: counter(tip);
  counter-increment: tip;
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--pink-500), var(--purple-600));
}

.tips-list {
  counter-reset: tip;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.site-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  margin-bottom: 0.5rem;
}

.site-footer p {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 480px) {
  .shell {
    padding: 1.5rem 1.25rem 2.5rem;
  }

  h1 {
    font-size: 1.85rem;
  }

  .brand-card {
    padding: 1.75rem 1.5rem;
  }
}
