* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #171717;
  background:
    radial-gradient(circle at 20% 10%, #fde68a 0 8%, transparent 9%),
    radial-gradient(circle at 90% 20%, #f0abfc 0 7%, transparent 8%),
    radial-gradient(circle at 12% 80%, #99f6e4 0 8%, transparent 9%),
    #fff7ed;
  overflow-x: hidden;
}

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

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 4px solid #171717;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 1000;
  letter-spacing: -0.05em;
}

.logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 3px solid #171717;
}

.logo span span {
  color: #14b8a6;
}

.nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
  font-weight: 900;
}

.nav a {
  padding: 8px 10px;
  border-radius: 999px;
}

.nav a:hover {
  background: #facc15;
}

/* hero */

.hero {
  position: relative;
  min-height: auto;
  padding: 58px 22px 46px;
  display: block;
  color: #171717;
  background:
    linear-gradient(90deg, rgba(139,92,246,.15) 1px, transparent 1px),
    linear-gradient(rgba(139,92,246,.15) 1px, transparent 1px),
    #fff;
  background-size: 28px 28px;
  border-bottom: 4px solid #171717;
  overflow: hidden;
}

.hero::before {
  content: "Why not?";
  position: absolute;
  right: 8%;
  top: 24px;
  padding: 12px 18px;
  border: 4px solid #171717;
  border-radius: 20px;
  background: #facc15;
  color: #171717;
  font-size: 22px;
  font-weight: 1000;
  transform: rotate(8deg);
  box-shadow: 6px 6px 0 #171717;
}

.hero::after {
  content: "?!";
  position: absolute;
  left: 6%;
  bottom: 24px;
  color: #ec4899;
  font-size: 72px;
  font-weight: 1000;
  transform: rotate(-10deg);
}

.hero-text {
  position: relative;
  z-index: 2;
  width: min(960px, 100%);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  width: fit-content;
  margin: 0 auto 18px;
  padding: 8px 14px;
  border: 3px solid #171717;
  border-radius: 999px;
  background: #a78bfa;
  color: white;
  font-weight: 1000;
  box-shadow: 5px 5px 0 #171717;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 1.05;
  letter-spacing: -0.07em;
}

h1 span {
  display: inline-block;
  padding: 0 10px 4px;
  background: #ff4fb8;
  color: white;
  border: 4px solid #171717;
  border-radius: 18px;
  transform: rotate(-2deg);
  box-shadow: 6px 6px 0 #171717;
}

.lead {
  max-width: 720px;
  margin: 28px auto 0;
  font-size: 17px;
  line-height: 1.9;
  font-weight: 800;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn,
button {
  min-height: 50px;
  padding: 0 22px;
  border: 4px solid #171717;
  border-radius: 16px;
  color: #171717;
  background: white;
  font-weight: 1000;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 5px 5px 0 #171717;
}

.btn:hover,
button:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 #171717;
}

.primary {
  background: #a78bfa;
  color: white;
}

.secondary {
  background: #2dd4bf;
}

.yellow {
  background: #facc15;
}

.sticker,
.hero-character {
  display: none;
}

/* main */

main {
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto;
}

.about {
  padding: 52px 0 28px;
}

.section-title {
  text-align: center;
}

.section-title p {
  margin: 0 0 8px;
  color: #7c3aed;
  font-weight: 1000;
}

.section-title h2,
.community h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.05em;
}

.about-text {
  max-width: 720px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 17px;
  line-height: 1.9;
  font-weight: 800;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.features article {
  padding: 22px;
  border: 4px solid #171717;
  border-radius: 24px;
  background: white;
  box-shadow: 6px 6px 0 #171717;
  text-align: center;
}

.features article:nth-child(1) {
  background: #ede9fe;
}

.features article:nth-child(2) {
  background: #ccfbf1;
}

.features article:nth-child(3) {
  background: #fce7f3;
}

.features article:nth-child(4) {
  background: #fef3c7;
}

.icon {
  font-size: 38px;
}

.features h3 {
  margin: 10px 0 6px;
  font-size: 22px;
}

.features p {
  margin: 0;
  line-height: 1.7;
  font-weight: 800;
}

/* cards */

.cards {
  display: grid;
  gap: 22px;
  padding: 28px 0 60px;
}

.big-card {
  padding: 26px;
  border: 4px solid #171717;
  border-radius: 28px;
  box-shadow: 7px 7px 0 #171717;
}

.big-card h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.05em;
}

.big-card p {
  line-height: 1.8;
  font-weight: 800;
}

.big-card .tag {
  width: fit-content;
  margin: 0 0 12px;
  padding: 6px 12px;
  border: 3px solid #171717;
  border-radius: 999px;
  background: #facc15;
  font-size: 13px;
  font-weight: 1000;
}

.big-card a {
  display: inline-flex;
  margin-top: 10px;
  padding: 10px 16px;
  border: 3px solid #171717;
  border-radius: 14px;
  background: white;
  font-weight: 1000;
  box-shadow: 4px 4px 0 #171717;
}

.purple {
  background: #c4b5fd;
}

.green {
  background: #99f6e4;
}

.pink {
  background: #f9a8d4;
}

/* quiz */

.question {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  padding: 12px;
  border: 3px solid #171717;
  border-radius: 16px;
  background: rgba(255,255,255,.75);
  font-weight: 800;
}

.question input {
  width: 20px;
  accent-color: #7c3aed;
}

.result {
  margin-top: 16px;
  padding: 18px;
  border: 4px solid #171717;
  border-radius: 20px;
  background: white;
  box-shadow: 5px 5px 0 #171717;
}

.result h3 {
  margin: 0 0 8px;
  font-size: 26px;
}

/* debate */

.debate-topic {
  margin-top: 16px;
  padding: 18px;
  border: 3px solid #171717;
  border-radius: 22px;
  background: rgba(255,255,255,.78);
}

.debate-topic h3 {
  margin-top: 0;
  font-size: 22px;
}

.debate-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.debate-topic button {
  min-height: 42px;
  border-radius: 14px;
  background: #facc15;
  font-size: 14px;
}

textarea {
  width: 100%;
  min-height: 100px;
  margin-top: 12px;
  padding: 12px;
  border: 3px solid #171717;
  border-radius: 16px;
  font: inherit;
  font-weight: 700;
  resize: vertical;
}

/* community */

.community {
  margin-bottom: 56px;
  padding: 28px;
  border: 4px solid #171717;
  border-radius: 28px;
  background: #171717;
  color: white;
  box-shadow: 7px 7px 0 #a78bfa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.community .eyebrow {
  margin: 0 0 14px;
  color: #171717;
  background: #facc15;
}

.community p:not(.eyebrow) {
  line-height: 1.8;
  font-weight: 700;
}

footer {
  padding: 30px;
  text-align: center;
  background: #171717;
  color: white;
}

/* responsive */

@media (max-width: 800px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .features {
    grid-template-columns: 1fr 1fr;
  }

  .community {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .features {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn,
  button {
    width: 100%;
  }

  .big-card {
    padding: 22px;
  }
}

/* quiz card */

.quiz-card {
  margin-top: 18px;
  padding: 22px;
  border: 4px solid #171717;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 6px 6px 0 #171717;
}

.quiz-count {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border: 3px solid #171717;
  border-radius: 999px;
  background: #facc15;
  color: #171717;
  font-size: 14px;
  font-weight: 1000;
}

.quiz-card h3 {
  margin: 0;
  color: #171717;
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.35;
}

.quiz-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.quiz-buttons button {
  flex: 1 1 160px;
  min-height: 48px;
}

.quiz-buttons button:nth-child(1) {
  background: #a78bfa;
  color: #ffffff;
}

.quiz-buttons button:nth-child(2) {
  background: #2dd4bf;
  color: #171717;
}

.quiz-buttons button:nth-child(3) {
  background: #f9a8d4;
  color: #171717;
}

@media (max-width: 520px) {
  .quiz-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* debate game */

.debate-card {
  margin-top: 18px;
  padding: 22px;
  border: 4px solid #171717;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 6px 6px 0 #171717;
}

.debate-count {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border: 3px solid #171717;
  border-radius: 999px;
  background: #facc15;
  color: #171717;
  font-size: 14px;
  font-weight: 1000;
}

.debate-card h3 {
  margin: 0;
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.35;
}

.debate-choice-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.debate-choice-buttons button {
  flex: 1 1 220px;
  background: #e5e7eb;
  color: #171717;
}

.debate-choice-buttons button.selected {
  background: #a78bfa;
  color: #ffffff;
}

.selected-side {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 3px solid #171717;
  border-radius: 16px;
  background: #fef3c7;
  font-weight: 1000;
}

.debate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.debate-actions button:nth-child(1) {
  background: #2dd4bf;
}

.debate-actions button:nth-child(2) {
  background: #f9a8d4;
}

.debate-result {
  margin-top: 18px;
  padding: 18px;
  border: 4px solid #171717;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 5px 5px 0 #171717;
}

.debate-result:empty {
  display: none;
}

.debate-result h3 {
  margin: 0 0 8px;
}

.debate-result .score {
  width: fit-content;
  padding: 8px 12px;
  border: 3px solid #171717;
  border-radius: 999px;
  background: #facc15;
  font-weight: 1000;
}

.result .score {
  width: fit-content;
  padding: 8px 12px;
  border: 3px solid #171717;
  border-radius: 999px;
  background: #facc15;
  color: #171717;
  font-weight: 1000;
}

.share-box {
  margin-top: 18px;
  padding: 16px;
  border: 3px solid #171717;
  border-radius: 18px;
  background: #fef3c7;
}

.share-box p {
  margin: 0 0 10px;
  font-weight: 1000;
}

.share-box textarea {
  min-height: 120px;
  background: white;
}

.share-box button {
  margin-top: 12px;
  background: #2dd4bf;
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.share-actions button,
.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 4px solid #171717;
  border-radius: 16px;
  color: #171717;
  font-weight: 1000;
  box-shadow: 5px 5px 0 #171717;
}

.share-actions button {
  background: #2dd4bf;
}

.share-link {
  background: #171717;
  color: #ffffff;
}

.share-link:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 #171717;
}

.today-topic {
  width: min(100%, 680px);
  margin: 34px auto 0;
  padding: 22px;
  border: 4px solid #171717;
  border-radius: 26px;
  background: #ffffff;
  color: #171717;
  box-shadow: 7px 7px 0 #171717;
}

.today-topic p {
  width: fit-content;
  margin: 0 0 10px;
  padding: 6px 12px;
  border: 3px solid #171717;
  border-radius: 999px;
  background: #facc15;
  font-weight: 1000;
}

.today-topic h2 {
  margin: 0;
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.35;
}

.today-link {
  display: inline-flex;
  margin-top: 16px;
  min-height: 46px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border: 3px solid #171717;
  border-radius: 14px;
  background: #2dd4bf;
  color: #171717;
  font-weight: 1000;
  box-shadow: 4px 4px 0 #171717;
}

/* diagnosis result card */

.result-card {
  position: relative;
  margin-top: 18px;
  padding: 28px;
  border: 5px solid #171717;
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 15%, #facc15 0 12%, transparent 13%),
    radial-gradient(circle at 90% 20%, #f9a8d4 0 14%, transparent 15%),
    linear-gradient(135deg, #a78bfa, #2dd4bf);
  box-shadow: 8px 8px 0 #171717;
  overflow: hidden;
}

.result-card::after {
  content: "?!";
  position: absolute;
  right: 18px;
  bottom: -14px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 92px;
  font-weight: 1000;
  transform: rotate(-12deg);
}

.result-label {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 13px;
  border: 3px solid #171717;
  border-radius: 999px;
  background: #facc15;
  color: #171717;
  font-size: 14px;
  font-weight: 1000;
}

.result-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  text-shadow: 4px 4px 0 #171717;
}

.result-percent {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 18px 0;
  padding: 12px 18px;
  border: 4px solid #171717;
  border-radius: 22px;
  background: #ffffff;
  color: #171717;
  font-weight: 1000;
  box-shadow: 5px 5px 0 #171717;
}

.result-percent span {
  font-size: clamp(42px, 9vw, 76px);
  line-height: 1;
}

.result-catch {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 1000;
  color: #171717;
}

.result-text {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 680px;
  line-height: 1.8;
  font-weight: 800;
  color: #171717;
}

.result-badges {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.result-badges span {
  padding: 7px 12px;
  border: 3px solid #171717;
  border-radius: 999px;
  background: #ffffff;
  color: #171717;
  font-weight: 1000;
  box-shadow: 3px 3px 0 #171717;
}

.quiz-buttons button {
  position: relative;
  overflow: hidden;
}

.quiz-buttons button::after {
  content: "→";
  margin-left: 8px;
  font-weight: 1000;
}

.quiz-buttons button:nth-child(1)::before {
  content: "🔥";
  margin-right: 6px;
}

.quiz-buttons button:nth-child(2)::before {
  content: "🤔";
  margin-right: 6px;
}

.quiz-buttons button:nth-child(3)::before {
  content: "✋";
  margin-right: 6px;
}

/* quiz flip animation */

.quiz-card {
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.quiz-card.flip-out-left {
  transform: translateX(-22px) rotate(-2deg);
  opacity: 0;
}

.quiz-card.flip-out-right {
  transform: translateX(22px) rotate(2deg);
  opacity: 0;
}

.quiz-card.flip-in {
  animation: quizFlipIn 0.25s ease;
}

@keyframes quizFlipIn {
  from {
    transform: translateX(18px) rotate(2deg);
    opacity: 0;
  }

  to {
    transform: translateX(0) rotate(0);
    opacity: 1;
  }
}

.quiz-progress {
  height: 18px;
  margin: 0 0 18px;
  border: 3px solid #171717;
  border-radius: 999px;
  background: white;
  overflow: hidden;
}

#quizProgressBar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #a78bfa, #2dd4bf, #facc15);
  transition: width 0.25s ease;
}

.quiz-card {
  display: block;
  opacity: 1;
}

@media (max-width: 520px) {
  .btn,
  button {
    width: 100%;
  }
}

.share-actions .share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 4px solid #171717;
  border-radius: 16px;
  background: #171717;
  color: #ffffff;
  font-weight: 1000;
  box-shadow: 5px 5px 0 #171717;
  text-decoration: none;
}

.share-actions .share-link:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 #171717;
}

.share-actions button {
  background: #2dd4bf !important;
  color: #171717 !important;
}

.share-actions a.share-link {
  background: #171717 !important;
  color: #ffffff !important;
}

.self-deprecating-note {
  margin: 0 0 64px;
  padding: 28px;
  border: 4px dashed #171717;
  border-radius: 28px;
  background: #ffffff;
  color: #171717;
  box-shadow: 7px 7px 0 #f9a8d4;
  transform: rotate(-1deg);
}

.self-deprecating-note .note-label {
  width: fit-content;
  margin: 0 0 12px;
  padding: 6px 12px;
  border: 3px solid #171717;
  border-radius: 999px;
  background: #facc15;
  font-weight: 1000;
}

.self-deprecating-note h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.self-deprecating-note p {
  line-height: 1.9;
  font-weight: 800;
}
