/* ───────────────── Brand tokens ───────────────── */
:root {
  --green:  #1ff433;
  --pink:   #f128ac;
  --yellow: #ffff00;
  --blue:   #74c6ff;
  --bg:     #fdf7ed;
  --ink:    #111111;
  --card:   #ffffff;

  --display: "Lilita One", system-ui, sans-serif;
  --body: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;

  --radius: 24px;
  --border: 3px solid var(--ink);
  --shadow: 4px 5px 0 rgba(17, 17, 17, 0.2);
  --maxw: 920px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

em { font-style: italic; }
strong { font-weight: 800; }

/* ───────────────── Confetti dots ───────────────── */
.confetti {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.confetti span {
  position: absolute;
  border-radius: 50%;
  animation: float var(--dur, 3s) ease-in-out infinite alternate;
}
@keyframes float {
  from { transform: translateY(-6px); }
  to   { transform: translateY(6px); }
}

/* keep content above confetti */
header, section, footer { position: relative; z-index: 1; }

/* ───────────────── Shared ───────────────── */
.section-title {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 44px);
  text-align: center;
  margin-bottom: 28px;
  transform: rotate(-1deg);
}

section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px;
}

/* ───────────────── Hero ───────────────── */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 32px;
  text-align: center;
}
.hero__logo {
  width: min(520px, 86%);
  height: auto;
  filter: drop-shadow(4px 6px 0 rgba(17,17,17,0.15));
}
.hero__tagline {
  font-family: var(--display);
  font-size: clamp(22px, 4vw, 34px);
  margin-top: 8px;
}
.hero__sub {
  max-width: 540px;
  margin: 16px auto 0;
  font-size: clamp(16px, 2.4vw, 19px);
  color: #444;
}
.hero__note {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #777;
}

/* ───────────────── CTA (App Store) ───────────────── */
.cta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-top: 28px;
  padding: 14px 30px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: 18px;
  border: var(--border);
  border-color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 7px 0 rgba(17,17,17,0.25); }
.cta:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 rgba(17,17,17,0.2); }
.cta__chip { font-size: 12px; letter-spacing: 0.04em; opacity: 0.85; }
.cta__store { font-family: var(--display); font-size: 26px; line-height: 1; }

/* ───────────────── How it works ───────────────── */
.how__lead {
  text-align: center;
  font-size: clamp(16px, 2.4vw, 19px);
  margin: 18px auto;
  max-width: 520px;
}
.how__cards {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 8px 0;
}
.verdict {
  flex: 1 1 240px;
  max-width: 320px;
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.verdict--idiom { transform: rotate(-1.5deg); }
.verdict--idiot { transform: rotate(1.5deg); }
.verdict__icon { font-size: 40px; }
.verdict__label {
  font-family: var(--display);
  font-size: 28px;
  padding: 2px 16px;
  border-radius: 999px;
}
.verdict--idiom .verdict__label { background: var(--green); }
.verdict--idiot .verdict__label { background: var(--pink); color: #fff; }
.verdict__desc { color: #555; font-size: 15px; }

/* ───────────────── Interactive demo ───────────────── */
.demo__card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  text-align: center;
  position: relative;
}
.demo__badge {
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--pink);
  padding: 5px 14px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  margin-bottom: 14px;
}
.demo__phrase {
  font-family: var(--display);
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.1;
}
.demo__prompt { color: #888; margin-top: 8px; font-size: 15px; }

.demo__buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
}
.demo__btn {
  flex: 1 1 0;
  max-width: 200px;
  font-family: var(--display);
  font-size: 20px;
  color: var(--ink);
  padding: 16px 10px;
  border: var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.demo__btn--idiom { background: var(--green); }
.demo__btn--idiot { background: var(--pink); color: #fff; }
.demo__btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 7px 0 rgba(17,17,17,0.25); }
.demo__btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 rgba(17,17,17,0.2); }
.demo__btn:disabled { cursor: default; opacity: 0.55; transform: none; box-shadow: var(--shadow); }

.demo__result { margin-top: 22px; }
.demo__verdict {
  font-family: var(--display);
  font-size: 24px;
}
.demo__verdict.is-correct { color: #1a9e2b; }
.demo__verdict.is-wrong { color: var(--pink); }
.demo__explanation { color: #555; margin-top: 8px; font-size: 15px; }
.demo__next {
  margin-top: 18px;
  font-family: var(--display);
  font-size: 16px;
  color: #fff;
  background: var(--ink);
  border: var(--border);
  border-radius: 14px;
  padding: 10px 22px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.1s ease;
}
.demo__next:active { transform: translateY(2px); }

/* ───────────────── Categories ───────────────── */
.cats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.cat {
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  border-left: 10px solid var(--cat);
}
.cat h3 { font-family: var(--display); font-size: 22px; margin-bottom: 8px; }
.cat p { color: #555; font-size: 15px; }

/* ───────────────── Grades ───────────────── */
.grades__list {
  list-style: none;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.grades__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 22px;
}
.grades__score { font-family: var(--display); font-size: 22px; }
.grades__grade { font-size: 17px; font-weight: 600; }

/* ───────────────── Final CTA ───────────────── */
.final {
  text-align: center;
  padding-bottom: 32px;
}
.final__title {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 46px);
  transform: rotate(-1deg);
}

/* ───────────────── Footer ───────────────── */
.footer {
  text-align: center;
  padding: 40px 24px 56px;
  border-top: 3px dashed rgba(17,17,17,0.15);
  margin-top: 24px;
}
.footer__logo { width: 140px; height: auto; opacity: 0.9; }
.footer p { color: #888; font-size: 14px; margin-top: 12px; }
.footer a { color: #f128ac; text-decoration: none; font-weight: 600; }
.footer a:hover { text-decoration: underline; }
.footer__links { margin-top: 6px; font-size: 13px; }

/* ───────────────── Reduced motion ───────────────── */
@media (prefers-reduced-motion: reduce) {
  .confetti span { animation: none; }
  html { scroll-behavior: auto; }
}
