/* Home page — numbers from fig-spec/gen.js on homepage (5:4) and homepage-mobile (38:4). */

/* ── hero bento ───────────────────────────────────────────────────────── */
.hero { display: flex; gap: 32px; padding: 40px 40px 64px; background: var(--color-dark); }
.hero__eyebrow-m { display: none; }
.hero__panel {
  display: flex; flex-direction: column; gap: 32px; flex: 1; min-width: 0;
  padding: 48px; border-radius: 28px; background: var(--color-brand); color: var(--color-ink);
}
.hero__title { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-family: var(--font-display); text-transform: uppercase; }
.hero__l1 { font-size: 90px; line-height: 81px; }
.hero__l2 { font-size: 80px; line-height: 72px; }
.hero__l3 { font-size: 80px; line-height: 80px; padding: 4px 16px; border-radius: 4px; background: var(--color-dark); color: var(--color-brand); }
.hero__text { font-size: 16px; line-height: 26px; color: var(--color-dark-2); }
.hero__ctas { display: flex; gap: 16px; }
.hero__cta2 { letter-spacing: 0; text-transform: none; }
.hero__side { display: flex; flex-direction: column; gap: 24px; width: 480px; flex: none; }
.hero__pic { display: block; }
.hero__img { width: 480px; height: 380px; object-fit: cover; border-radius: 28px; }
.hero__plaques { display: flex; gap: 16px; }
.plaque { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 16px; border-radius: 16px; }
.plaque--cream { background: var(--color-cream); color: var(--color-ink); }
.plaque--dark { background: var(--color-dark-2); color: var(--color-brand); }
.plaque__title { font-family: var(--font-display); font-size: 18px; line-height: 27px; text-transform: uppercase; }
.plaque__text { font-size: 12px; line-height: 16px; color: var(--color-dark-2); }
.plaque--dark .plaque__text { color: var(--color-muted); }

/* ── upcoming markets ─────────────────────────────────────────────────── */
.markets { display: flex; flex-direction: column; gap: 40px; padding: 80px 40px; background: var(--color-bg); color: var(--color-ink); }
.markets__head { display: flex; align-items: flex-end; justify-content: space-between; min-height: 120px; }
.markets__heading { display: flex; flex-direction: column; gap: 8px; }
.markets__all { font-size: 14px; line-height: 18px; }
.markets__body { display: flex; gap: 32px; align-items: flex-start; }
.markets__body .board { flex: 1; min-width: 0; }

/* ── next to jump ─────────────────────────────────────────────────────── */
/* one picture for both frames: right column on desktop, between heading and board on mobile */
.jump {
  display: grid; grid-template-columns: 1fr 480px; grid-template-areas: "head pic" "board pic";
  column-gap: 40px; row-gap: 24px; align-items: start; padding: 80px 40px; background: var(--color-dark); color: var(--color-cream);
}
.jump__heading { grid-area: head; display: flex; flex-direction: column; gap: 8px; }
.jump__board { grid-area: board; }
.jump__pic { grid-area: pic; }
.jump__title { font-size: 72px; line-height: 108px; color: var(--color-bg); }
.jump__img { width: 480px; height: 460px; object-fit: cover; border-radius: 28px; }
.jump__board { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--color-dark-2); box-shadow: inset 0 0 0 1px rgba(217, 204, 129, .302); }
.race { display: flex; align-items: center; gap: 16px; min-height: 79px; padding: 20px; border-bottom: 1px solid var(--color-dark); }
.race:last-child { border-bottom: 0; }
.race__num { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 6px; background: var(--color-brand); color: var(--color-ink); font-family: var(--font-display); font-size: 18px; line-height: 27px; }
.race__meta { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.race__code { font-size: 12px; line-height: 16px; color: var(--color-muted); }
.race__track { font-size: 16px; line-height: 21px; font-weight: 800; }
.race__time { font-size: 14px; line-height: 18px; font-weight: 800; color: var(--color-brand); }
.race__link { font-size: 13px; line-height: 17px; font-weight: 800; color: var(--color-brand); text-decoration: underline; text-underline-offset: 2px; }
.race__link:hover { color: var(--color-cream); }

/* ── find your competition ────────────────────────────────────────────── */
.comp { display: flex; flex-direction: column; gap: 40px; padding: 80px 40px; background: var(--color-bg); color: var(--color-ink); }
.comp__heading { display: flex; flex-direction: column; gap: 8px; }
.comp__body { display: flex; gap: 32px; align-items: flex-start; }
.comp__body .comp__pic { order: 2; }
.comp__img { width: 480px; height: 500px; object-fit: cover; border-radius: 28px; }
.comp__grid { display: flex; flex-direction: column; gap: 16px; flex: 1; min-width: 0; }
.cat {
  position: relative; display: flex; align-items: center; gap: 16px; min-height: 102px; padding: 23px 24px;   /* 1px border is INSIDE the 102px in the mockup */
  border-radius: 16px; background: var(--color-cream); border: 1px solid var(--color-gold);
}
.cat__num { font-family: var(--font-display); font-size: 36px; line-height: 54px; color: var(--color-gold); flex: none; }
.cat__link { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.cat__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* the whole card is the tap zone */
.cat__link:focus-visible { outline: 0; }
.cat:focus-within { box-shadow: var(--focus-ring); }
.cat__name { font-family: var(--font-display); font-size: 20px; line-height: 30px; letter-spacing: .01em; text-transform: uppercase; }
.cat__sub { font-size: 13px; line-height: 17px; color: var(--color-dark-2); }
.cat__arrow { width: 20px; height: 20px; color: var(--color-ink); transition: transform var(--dur-fast) var(--ease); }
.cat:hover .cat__arrow { transform: translateX(4px); }

/* ── mobile (390 frame) ───────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .hero { flex-direction: column; gap: 24px; padding: 24px 16px 32px; }
  .hero__eyebrow-m { display: block; font-size: 10px; line-height: 13px; color: var(--color-dark-2); }
  .hero__eyebrow { display: none; }
  .hero__panel { gap: 20px; padding: 24px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--color-dark-2); }
  .hero__title { gap: 4px; }
  .hero__l1 { font-size: 56px; line-height: 50px; }
  .hero__l2 { font-size: 52px; line-height: 47px; }
  .hero__l3 { font-size: 48px; line-height: 48px; padding: 4px 12px; }
  .hero__text { font-size: 14px; line-height: 21px; }
  .hero__more { display: none; }
  .hero__ctas { flex-direction: column; gap: 10px; }
  .hero__ctas .btn { min-height: 48px; padding: 0 20px; }
  .hero__cta2 { letter-spacing: .04em; text-transform: uppercase; background: var(--color-brand); }
  .hero__side { width: auto; }
  .hero__img { width: 100%; height: 240px; border-radius: 20px; }
  .hero__plaques { gap: 12px; }
  .plaque { gap: 2px; padding: 12px; border-radius: 12px; }
  .plaque--dark { background: var(--color-dark); }
  .plaque__title { font-size: 14px; line-height: 21px; }
  .plaque__text { font-size: 11px; line-height: 14px; }

  .markets { gap: 24px; padding: 32px 16px; margin-bottom: 50px; }   /* the frame leaves 50px of shell under the slip */
  .markets__head { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 0; }
  .markets__all { font-size: 13px; line-height: 17px; }
  .markets__body { flex-direction: column; gap: 24px; align-items: stretch; }
  .markets__body .slip { margin: 8px -16px -32px; border-radius: 24px; }   /* the mobile frame draws the slip outside the section, 50px above next-to-jump */
  .slip__place { min-height: 48px; padding-block: 0; border-color: var(--color-dark); }

  .jump { grid-template-columns: 1fr; grid-template-areas: "head" "pic" "board"; gap: 24px; padding: 32px 16px; }
  .jump__title { font-size: 38px; line-height: 57px; color: var(--color-white); }
  .jump__img { width: 100%; height: 220px; border-radius: 20px; }
  .race { gap: 12px; min-height: 66px; padding: 16px; border-bottom: 0; box-shadow: inset 0 -1px 0 var(--color-dark); }
  .race:last-child { box-shadow: none; }
  .race__num { width: 32px; height: 32px; font-size: 16px; line-height: 24px; }
  .race__code { font-size: 11px; line-height: 14px; }
  .race__track { font-size: 14px; line-height: 18px; }
  .race__link { font-size: 12px; line-height: 16px; }

  .comp { gap: 24px; padding: 32px 16px; }
  .comp__heading { color: var(--color-dark-2); }
  .comp__heading .eyebrow, .comp__heading .section-title { color: var(--color-dark-2); }
  .comp__heading .section-title { line-height: 57px; }
  .comp__body { flex-direction: column; gap: 24px; align-items: stretch; }
  .comp__body .comp__pic { order: 0; }
  .comp__img { width: 100%; height: 220px; border-radius: 20px; }
  .comp__grid { gap: 12px; }
  .cat { gap: 16px; min-height: 77px; padding: 15px 16px; border-radius: 12px; }
  .cat__num { font-size: 28px; line-height: 42px; color: var(--tint-ink-25); }
  .cat__link { gap: 2px; }
  .cat__name { font-size: 18px; line-height: 27px; }
  .cat__sub { font-size: 12px; line-height: 16px; }
  .cat__arrow { width: 16px; height: 16px; }
}

/* tablet: two columns where the single mobile column looks sparse */
@media (min-width: 700px) and (max-width: 1199px) {
  .hero__plaques, .hero__ctas { flex-direction: row; }
  .comp__grid { display: grid; grid-template-columns: 1fr 1fr; }
}

/* below the mobile frame: only keep things from breaking */
@media (max-width: 389px) {
  .hero__l1 { font-size: 48px; line-height: 44px; }
  .hero__l2, .hero__l3 { font-size: 40px; line-height: 40px; }
  .mrow__odds { flex-wrap: wrap; }
}
