/* ==========================================================================
   Homepage sections, plus the components it introduces:
   accordion, stat strip, verdict tags, category cards.
   ========================================================================== */

/* ---------- 1. Hero -----------------------------------------------------
   Copy left, collage panel right with the box render over it. Like the nav
   and footer, the hero runs full width with the gutter as padding -- it is
   not capped at --container.
   ----------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-0);
}

.hero__art {
  position: relative;
  /* One value for the plate's height, so the stripes can match it exactly. */
  --hero-plate-h: 300px;
}

.hero__plate {
  width: 100%;
  height: var(--hero-plate-h);
  object-fit: cover;
  /* The plate is cropped to where the cards begin, so anchor to the top: the
     cards meet the top edge with no ground plane above them. */
  object-position: 50% 0;
}

/* The two thin diagonal stripes down the left edge of the plate.
   Height is tied to the plate, NOT to .hero__art: the box render below is in
   the same container and stretched it, so the stripes used to run 200px past
   the bottom of the cards scene alongside the box. */
.hero__stripe {
  position: absolute;
  top: 0;
  height: var(--hero-plate-h);
  display: block;
  width: 26px;
}

.hero__stripe--yellow { left: 0;    background: var(--yellow); }
.hero__stripe--pink   { left: 26px; background: var(--pink); }

.hero__box {
  position: relative;
  /* Pulled well up into the scene. With the empty ground cropped off the top
     of the plate there is no dead space left to sit below. */
  margin-top: -235px;
  padding-inline: var(--gutter);
}

/* The box renders are cropped to content (crop_to_content.py), so the
   image IS the box -- there is no longer transparent padding absorbing
   part of the declared width. Widths here are the visible box size. */
.hero__box img {
  width: 100%;
  max-width: 235px;
  height: auto;
  margin-inline: auto;
  transform: rotate(-6deg);
  filter: drop-shadow(0 18px 30px rgb(0 0 0 / .45));
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-inline: var(--gutter);
  padding-block: var(--space-6) var(--section-y);
}

.hero__wordmark {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  line-height: var(--lh-hero);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  color: var(--white);
  /* Black outline plus a pink offset, as drawn. */
  text-shadow:
    -2px -2px 0 var(--ink), 2px -2px 0 var(--ink),
    -2px 2px 0 var(--ink), 2px 2px 0 var(--ink),
    9px 9px 0 var(--pink);
  transform: rotate(-1.5deg);
  transform-origin: left center;
}

.hero__word { display: block; }

.hero__tagline {
  display: inline-block;
  margin-top: var(--space-6);
  padding: var(--space-3) var(--space-4);
  background: var(--ink);
  color: var(--white);
  box-shadow: 6px 6px 0 var(--pink);
  font-family: var(--font-display);
  font-size: var(--fs-tag);
  line-height: var(--lh-tag);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  max-width: 24ch;
}

.hero__form { margin-top: var(--space-6); }

@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 52%);
    align-items: stretch;
    min-height: 900px;
  }

  /* Both children must be pinned to row 1. Setting only grid-column lets
     auto-placement push the second item (declared later, wanting column 1)
     into a new row, which collapses the art row to zero height. */
  .hero__inner {
    grid-area: 1 / 1;
    align-self: center;
    padding-block: var(--space-9);
    padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) var(--space-8);
  }

  .hero__art {
    grid-area: 1 / 2;
    /* The plate is cut on the same diagonal as the stripes. */
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  }

  .hero__plate {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .hero__stripe { width: 34px; height: 100%; transform: skewX(-9deg); }
  .hero__stripe--yellow { left: 11%; }
  .hero__stripe--pink   { left: calc(11% + 34px); }

  .hero__box {
    position: absolute;
    inset-block: 0;
    left: 6%;
    right: -12%;
    display: flex;
    align-items: center;
    margin-top: 0;
    padding-inline: 0;
  }

  .hero__box img { width: 62%; max-width: 480px; margin-inline: auto; }

  .hero__form,
  .hero__tagline,
  .hero__wordmark { max-width: 640px; }
}

/* ---------- 2. Pitch ---------- */

.pitch__lead {
  font-size: var(--fs-pitch);
  line-height: var(--lh-pitch);
  max-width: 20ch;
}

.mark {
  padding: 0 .12em;
  color: var(--ink);
  background: var(--pink);
}

.mark--pink   { background: var(--pink); }
.mark--yellow { background: var(--yellow); }

.pitch__foot {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-7);
}

.pitch__support {
  max-width: 52ch;
  font-size: var(--fs-body-l);
  line-height: var(--lh-body-l);
}

.pitch__tags {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.verdict {
  display: inline-block;
  padding: .06em .28em;
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}

.verdict--agree    { background: var(--yellow); transform: rotate(-3deg); }
.verdict--disagree { background: var(--pink);   transform: rotate(2deg); }

@media (min-width: 1024px) {
  .pitch__foot {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

/* ---------- 3. Draw a card ---------- */

.draw {
  position: relative;
  overflow: hidden;
}

.draw__slab {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: 46%;
  background: var(--pink);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  display: none;
}

.draw__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-7);
}

.draw__title {
  margin-top: var(--space-4);
  font-size: var(--fs-draw);
  line-height: var(--lh-draw);
}

.draw__lead {
  max-width: 34ch;
  margin-top: var(--space-4);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--muted);
}

.draw__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.draw__dots { display: inline-flex; gap: var(--space-2); }

.draw__dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.draw__dot.is-on { background: var(--yellow); border-color: var(--yellow); }

.draw__caption {
  flex-basis: 100%;
  font-size: var(--fs-body-s);
  color: var(--muted);
}

.draw__restart {
  margin-top: var(--space-4);
  padding-block: 6px;
  font-weight: 700;
  font-size: var(--fs-small);
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.draw__stage { position: relative; }

/* The fanned category backs behind the active card. */
.draw__backs { display: none; }

.draw__back {
  position: absolute;
  width: 74%;
  height: auto;
  border-radius: 4.5%;
}

.draw__back--a { transform: rotate(-9deg) translate(-16%, 2%); }
.draw__back--b { transform: rotate(10deg) translate(16%, -2%); }

.draw__card { position: relative; }

.draw__card .scard {
  max-width: 420px;
  margin-inline: auto;
}

.draw__email {
  padding: var(--space-5);
  background: var(--ink);
  color: var(--white);
  max-width: 420px;
  margin-inline: auto;
  box-shadow: 6px 8px 0 var(--pink);
}

.draw__email .ec__heading,
.draw__email .ec__intro,
.draw__email .ec__label { color: var(--white); }

@media (min-width: 1024px) {
  .draw__slab { display: block; }

  .draw__inner {
    grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-8);
  }

  .draw__backs { display: block; position: absolute; inset: 0; }

  .draw__card .scard,
  .draw__email { max-width: 450px; }

  .draw__card .scard { transform: rotate(3deg); }
}

/* ---------- 4. How to play ---------- */

.how__head {
  display: grid;
  gap: var(--space-4);
}

.how__title {
  font-size: var(--fs-title-xl);
  line-height: var(--lh-title-xl);
}

.how__lead {
  max-width: 28ch;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--muted);
}

@media (min-width: 1024px) {
  .how__head {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: var(--space-8);
  }
}

.steps {
  display: grid;
  gap: var(--space-7);
  margin-top: var(--space-8);
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
}

.step__tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  padding: var(--space-5);
  background: var(--bg-2);
  overflow: hidden;
}

@media (min-width: 768px) {
  .step__tile { height: 360px; }
}

.step__num {
  position: absolute;
  top: 0;
  left: 0;
  padding: 4px 12px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
}

.step__tile--1 .step__num { background: var(--pink); }
.step__tile--2 .step__num { background: var(--cyan); }
.step__tile--3 .step__num { background: var(--yellow); }

.step__art { width: 100%; display: flex; justify-content: center; }

.step__art--card .scard {
  width: min(62%, 190px);
  transform: rotate(-5deg);
}

.step__art--card .scard__face { box-shadow: 8px 10px 0 var(--pink); }

/* Step 1 with no translated scenario yet: the card back stands in for the
   card front. Matched to .step__art--card so the tile reads identically --
   same width, same tilt, same hard offset shadow -- because the point is that
   the step does not look unfinished. The radius is the card component's own
   (doc 02: 4.5% of width). */
.step__art--back img {
  width: min(62%, 190px);
  height: auto;
  border-radius: 4.5%;
  transform: rotate(-5deg);
  box-shadow: 8px 10px 0 var(--pink);
}

.step__art--pair {
  gap: var(--space-3);
  align-items: center;
}

.step__art--pair img {
  width: 38%;
  max-width: 130px;
  height: auto;
  border-radius: 4%;
}

.step__art--pair img:first-child { transform: rotate(-6deg); }
.step__art--pair img:last-child  { transform: rotate(5deg); }

.step__art--timer {
  align-items: center;
}

.timer {
  display: inline-block;
  padding: var(--space-4) var(--space-6);
  background: var(--ink);
  color: var(--yellow);
  font-size: var(--fs-timer);
  line-height: var(--lh-timer);
  transform: rotate(-3deg);
  box-shadow: 8px 10px 0 var(--purple);
}

.step__title {
  margin-top: var(--space-5);
  font-size: var(--fs-step);
  line-height: var(--lh-step);
}

.step__text {
  margin-top: var(--space-3);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--muted);
}

/* ---------- Stat strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: var(--space-8);
}

@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stat {
  padding: 18px 18px 16px;
  background: var(--bg-2);
  border-top: 6px solid var(--line);
}

@media (min-width: 768px) {
  .stat { padding: 24px 24px 20px; }
}

.stat--players { border-top-color: var(--pink); }
.stat--time    { border-top-color: var(--yellow); }
.stat--age     { border-top-color: var(--purple); }
.stat--cards   { border-top-color: var(--cyan); }

.stat__value {
  display: block;
  font-size: var(--fs-stat);
  line-height: var(--lh-stat);
  white-space: nowrap;
}

.stat__caption {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 5. What's in the box ---------- */

.boxsec { overflow: hidden; }

.boxsec__inner {
  display: grid;
  gap: var(--space-7);
}

/* Scaled 1.5x from the first cropped-render pass: the crop removed the
   padding but the boxes still read small at these sizes. The homepage
   hero box is deliberately NOT scaled -- it is already dominant there. */
.boxsec__art img {
  width: 100%;
  max-width: 720px;
  height: auto;
}

.boxsec__title {
  margin-top: var(--space-4);
  font-size: var(--fs-title-xl);
  line-height: var(--lh-title-xl);
}

.eyebrow--cyan { background: var(--cyan); }

.breakdown--big { margin-top: var(--space-6); gap: 0; }

.breakdown--big .breakdown__row {
  align-items: flex-start;
  gap: var(--space-5);
  padding-block: var(--space-4);
  border-bottom: 2px solid var(--line);
}

.breakdown--big .breakdown__num {
  min-width: 2.6em;
  text-align: right;
  font-size: var(--fs-stat-num);
}

.breakdown__num--pink   { color: var(--pink); }
.breakdown__num--yellow { color: var(--yellow); }
.breakdown__num--cyan   { color: var(--cyan); }

.breakdown__body { display: block; }

.breakdown__label {
  display: block;
  font-weight: 700;
  font-size: var(--fs-body);
}

.breakdown__caption {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-body-s);
  color: var(--muted);
}

@media (min-width: 1024px) {
  .boxsec__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
    align-items: center;
    gap: var(--space-9);
  }

  /* 1.5x the column width, bleeding left. The grid column binds long before
     any max-width does, so scaling has to come from overflowing the column --
     which is also what the design asks for ("bleeding off the left edge").
     The section clips it, so this cannot cause a horizontal scrollbar. */
  .boxsec__art img {
    /* 75% of the previous 150%, shifted right so the box is not cut in half. */
    width: 112.5%;
    max-width: none;
    margin-left: -10%;
  }
}

/* ---------- 6. Categories ---------- */

.cats__head {
  display: grid;
  gap: var(--space-3);
}

.cats__title {
  font-size: var(--fs-title-l);
  line-height: var(--lh-title-l);
}

.cats__note {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  color: var(--accent-text);
}

@media (min-width: 1024px) {
  .cats__head {
    grid-template-columns: auto auto;
    align-items: end;
    justify-content: space-between;
  }
}

/* A real scroll container so keyboard users can reach it. */
.cats__scroller {
  margin-top: var(--space-7);
  padding-inline: var(--gutter);
  padding-block: var(--space-2) var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.cats__row {
  display: flex;
  gap: var(--space-4);
  width: max-content;
}

.cats__item {
  width: 170px;
  scroll-snap-align: start;
}

.catcard {
  position: relative;
  aspect-ratio: 816 / 1110;
  overflow: hidden;
  border-radius: 4.5%;
}

.catcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The vertical black name label down the right edge of the card. */
.catcard__label {
  position: absolute;
  top: 8%;
  right: 6%;
  padding: 8px 4px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.cats__name {
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}

.cats__count {
  margin-top: 2px;
  font-size: var(--fs-small);
  color: var(--muted);
}

.cats__hint {
  font-size: var(--fs-small);
  color: var(--muted);
}

@media (min-width: 1200px) {
  /* Every other card sits lower, as drawn. */
  .cats__item--low { margin-top: 40px; }
  .cats__scroller  { overflow-x: visible; }
  .cats__row       { width: auto; }
  .cats__item      { flex: 1 1 0; width: auto; }
  .cats__hint      { display: none; }
}

/* ---------- 7. Expansion sets ---------- */

.exp__inner {
  display: grid;
  gap: var(--space-7);
}

.exp__title {
  margin-top: var(--space-4);
  font-size: var(--fs-title-m);
  line-height: var(--lh-title-m);
}

.exp__lead {
  margin-top: var(--space-4);
  max-width: 34ch;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--muted);
}

.setlist { margin-top: var(--space-6); }

.setlist__row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
}

.setlist__row:last-child { border-bottom: 1px solid var(--line); }

/* Two-colour swatch: accent A over accent B, from data/sets.php. */
.setlist__swatch {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  /* Split left/right, as drawn -- accent A beside accent B. */
  background: linear-gradient(
    to right,
    var(--accent-a, var(--yellow)) 0 50%,
    var(--accent-b, var(--pink)) 50% 100%
  );
}

.setlist__name {
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
}

.setlist__count {
  font-size: var(--fs-body-s);
  color: var(--muted);
  white-space: nowrap;
}

.exp__cta { margin-top: var(--space-6); }

.exp__scene img {
  width: 100%;
  height: auto;
  /* A pink offset behind the image, as drawn -- not a border around it. */
  box-shadow: 14px 14px 0 var(--pink);
}

@media (min-width: 1024px) {
  .exp__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-9);
  }
  /* The scene sits above the list on mobile, beside it on desktop. */
  .exp__scene { order: 2; }
}

/* ---------- 8. Blurped teaser ---------- */

.eyebrow--pink-text {
  padding: 0;
  background: none;
  color: var(--accent-text);
}

.teen-teaser {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-5);
  padding: var(--space-7);
  background: var(--lemon);
  color: var(--teen-ink);
  border: var(--border-teen) solid var(--teen-ink);
  border-radius: var(--radius-teen-card);
  text-decoration: none;
  box-shadow: 8px 8px 0 var(--coral);
  transition: transform .15s ease, box-shadow .15s ease;
}

.teen-teaser:hover {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 var(--coral);
}

.teen-teaser__art img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 12px;
}

.teen-teaser__title {
  font-family: var(--font-teen), var(--font-display);
  font-size: var(--fs-title-m);
  line-height: 1;
}

.teen-teaser__age {
  display: inline-block;
  margin-top: var(--space-3);
  padding: 4px 12px;
  background: var(--teen-ink);
  color: var(--cream);
  border-radius: var(--radius-teen);
  font-family: var(--font-teen), var(--font-body);
  font-size: 18px;
}

.teen-teaser__tagline {
  margin-top: var(--space-4);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}

.teen-teaser__cta {
  display: inline-block;
  margin-top: var(--space-5);
  font-weight: 700;
  text-decoration: underline;
}

@media (min-width: 1024px) {
  .teen-teaser {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-8);
  }
}

/* ---------- 9. Content note ---------- */

.note__inner {
  display: grid;
  gap: var(--space-5);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}

.note__label {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.note__lead {
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.25;
}

.note__text {
  max-width: 62ch;
  margin-top: var(--space-4);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--muted);
}

.note__text a {
  display: inline-block;
  padding-block: 4px;
  color: var(--text);
}

@media (min-width: 1024px) {
  .note__inner {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: var(--space-8);
  }
}

/* ---------- 10. FAQ ---------- */

.faq__inner {
  display: grid;
  gap: var(--space-7);
}

.faq__title {
  font-size: var(--fs-title-faq);
  line-height: var(--lh-title-faq);
}

.faq__contact {
  margin-top: var(--space-4);
  font-size: var(--fs-body-s);
  color: var(--muted);
}

@media (min-width: 1024px) {
  .faq__inner {
    grid-template-columns: minmax(0, 400px) minmax(0, 840px);
    gap: var(--space-8);
  }
}

/* ---------- Accordion ---------- */

.accordion { border-bottom: 2px solid var(--line); }

.accordion__item { border-top: 2px solid var(--line); }

.accordion__heading { margin: 0; }

.accordion__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  min-height: 84px;
  padding-block: 18px;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.accordion__q-text {
  font-weight: 700;
  font-size: var(--fs-faq-q);
  line-height: var(--lh-faq-q);
}

.accordion__icon {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: var(--border) solid var(--text);
}

/* Plus when closed, minus on yellow when open. */
.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--text);
  transform: translate(-50%, -50%);
}

.accordion__icon::before { width: 18px; height: 3px; }
.accordion__icon::after  { width: 3px;  height: 18px; }

.accordion__q[aria-expanded="true"] .accordion__icon {
  background: var(--yellow);
  border-color: var(--yellow);
}

.accordion__q[aria-expanded="true"] .accordion__icon::before { background: var(--ink); }
.accordion__q[aria-expanded="true"] .accordion__icon::after  { display: none; }

.accordion__a {
  padding-bottom: var(--space-5);
  padding-right: 68px;
  max-width: 760px;
  font-size: var(--fs-faq-a);
  line-height: var(--lh-faq-a);
  color: var(--muted);
}

@media (max-width: 767px) {
  .accordion__a { padding-right: 0; }
}

/* ---------- 11. Final join band ---------- */

.join {
  position: relative;
  overflow: hidden;
  background: var(--bg-0);
}

.join__slab {
  position: absolute;
  inset: -10% -10% -10% -10%;
  background: var(--purple);
  transform: skewY(-4deg);
}

.join__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-7);
}

.join__statement {
  font-size: var(--fs-band);
  line-height: var(--lh-band);
  color: var(--white);
  transform: rotate(-2deg);
}

@media (min-width: 1024px) {
  .join__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
    align-items: center;
    gap: var(--space-8);
  }
}
