@font-face {
  font-family: "Muller Next";
  src:
    local("Muller Next"),
    local("Muller Next Regular"),
    local("MullerNext-Regular"),
    local("Muller"),
    local("Muller Regular");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --blue: #1457d6;
  --blue-dark: #0c3d9c;
  --blue-soft: #eaf1ff;
  --yellow: #ffd447;
  --yellow-soft: #fff6c8;
  --surface: #ffffff;
  --line: #c9d8fb;
  --text: #17315f;
  --muted: #536a92;
  --shadow: 0 16px 32px rgba(20, 87, 214, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Muller Next", "Muller", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page-shell {
  position: relative;
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.corner-logo {
  position: absolute;
  top: 10px;
  right: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.corner-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero,
.checker-section,
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero {
  padding: 32px;
  padding-right: 122px;
}

.eyebrow,
.section-label,
.info-card-label,
.result-kicker {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero h1,
.section-heading h2,
.info-card h2,
.result-panel h3 {
  margin: 0;
  line-height: 1;
  font-weight: 800;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(2.8rem, 6vw, 4.9rem);
}

.hero-text,
.section-heading p,
.info-card p,
.result-panel p,
.field small,
.site-footer p {
  line-height: 1.6;
  color: var(--muted);
}

.hero-text {
  max-width: 58ch;
  margin: 18px 0 0;
  font-size: 1.04rem;
}

.hero-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 24px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.hero-point {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--blue-soft);
}

.hero-point strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.hero-point p {
  margin: 8px 0 0;
  line-height: 1.5;
  color: var(--muted);
}

.checker-section {
  margin-top: 24px;
  padding: 28px;
}

.section-heading {
  max-width: 60ch;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.section-heading p {
  margin: 12px 0 0;
}

.checker-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 18px;
  margin-top: 24px;
}

.checker-form,
.result-panel {
  border-radius: var(--radius-md);
  padding: 24px;
}

.checker-form {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  background: #f9fbff;
}

.question-card {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.question-card legend {
  padding: 0;
  font-weight: 700;
}

.question-card small {
  margin: 0;
  font-size: 0.92rem;
}

.choice-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.choice-btn {
  position: relative;
  min-width: 110px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #b8caf7;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  font: inherit;
  font-weight: 700;
  color: var(--blue-dark);
  cursor: pointer;
  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.choice-btn::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    115deg,
    transparent 25%,
    rgba(255, 255, 255, 0.42) 48%,
    transparent 70%
  );
  transform: translateX(-135%) rotate(8deg);
  transition: transform 0.45s ease;
  pointer-events: none;
}

.choice-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(20, 87, 214, 0.1);
}

.choice-btn:hover::after {
  transform: translateX(135%) rotate(8deg);
}

.choice-btn:active {
  transform: translateY(0) scale(0.98);
}

.choice-btn:focus-visible {
  outline: 3px solid rgba(20, 87, 214, 0.16);
  outline-offset: 2px;
}

.choice-btn.is-selected {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(20, 87, 214, 0.18);
  animation: choice-pulse 0.34s ease;
}

.choice-btn.is-selected::after {
  background: linear-gradient(
    115deg,
    transparent 25%,
    rgba(255, 255, 255, 0.28) 48%,
    transparent 70%
  );
  transform: translateX(120%) rotate(8deg);
}

.result-panel {
  border: 1px solid var(--blue);
  background: linear-gradient(180deg, #195fdf 0%, #0f48b4 100%);
  color: #ffffff;
}

.result-panel.is-refreshing {
  animation: result-panel-swell 0.42s ease;
}

.result-panel.is-refreshing > * {
  animation: result-content-rise 0.42s ease;
}

.result-panel h3 {
  font-size: clamp(1.85rem, 3.6vw, 2.5rem);
}

.result-panel p,
.result-panel .result-note,
.result-kicker {
  color: rgba(255, 255, 255, 0.88);
}

.result-steps {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.result-steps li {
  position: relative;
  padding-left: 22px;
  line-height: 1.6;
}

.result-steps li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--yellow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.16s ease, opacity 0.16s ease, background-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid rgba(255, 212, 71, 0.36);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--yellow);
  color: var(--blue-dark);
}

.btn-secondary {
  border-color: var(--blue);
  background: #ffffff;
  color: var(--blue-dark);
}

.result-panel .btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.is-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.info-card {
  padding: 22px;
}

.info-card:nth-child(2) {
  background: var(--yellow-soft);
}

.info-card h2 {
  font-size: 1.7rem;
}

.info-card p {
  margin: 12px 0 0;
}

.site-footer {
  margin-top: 18px;
  padding: 0 4px;
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

.question-card.is-revealed {
  animation: question-reveal 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 900px) {
  .hero-points,
  .checker-layout,
  .info-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 980px);
    padding-top: 20px;
  }

  .corner-logo {
    position: static;
    margin: 0 0 16px auto;
    width: 84px;
    height: 84px;
  }

  .hero,
  .checker-section {
    padding: 20px;
  }

  .hero {
    padding-right: 20px;
  }

  .checker-form,
  .result-panel,
  .info-card {
    padding: 18px;
  }

  .hero-actions,
  .result-actions,
  .choice-group {
    flex-direction: column;
  }

  .btn,
  .choice-btn {
    width: 100%;
  }
}

@keyframes choice-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(20, 87, 214, 0);
  }

  45% {
    transform: scale(1.03);
    box-shadow: 0 14px 26px rgba(20, 87, 214, 0.22);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 10px 22px rgba(20, 87, 214, 0.18);
  }
}

@keyframes result-panel-swell {
  0% {
    transform: translateY(8px) scale(0.985);
    box-shadow: 0 6px 14px rgba(20, 87, 214, 0.06);
  }

  100% {
    transform: translateY(0) scale(1);
    box-shadow: var(--shadow);
  }
}

@keyframes result-content-rise {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes question-reveal {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .choice-btn,
  .choice-btn::after {
    transition: none;
  }

  .choice-btn.is-selected,
  .result-panel.is-refreshing,
  .result-panel.is-refreshing > *,
  .question-card.is-revealed {
    animation: none;
  }
}
