/* Shared pieces: buttons, eyebrows, section headings, cards, pills, check lists. */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 13px 24px;
  border: 0; border-radius: var(--radius-small);
  background: var(--action); color: var(--on-action);
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--action-hover); color: var(--on-action); }
.btn-small { min-height: var(--tap); padding: 10px 18px; font-size: 15px; }
.btn-violet { background: var(--violet); }
.btn-violet:hover { background: var(--violet-ink); }
.btn-dark { background: var(--navy); }
.btn-dark:hover { background: var(--night); }
.btn-ghost { background: transparent; color: var(--on-navy); box-shadow: inset 0 0 0 1.5px var(--navy-line); }
.btn-ghost:hover { background: var(--navy-deep); color: var(--on-navy); }
.btn-block { display: flex; width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap);
  font-weight: 700; color: var(--text);
}

.eyebrow {
  margin-bottom: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--violet);
}
.on-navy .eyebrow { color: var(--on-navy-eyebrow); }

.section { padding-block: 96px; }
.section-tight { padding-block: 72px; }
.section-white { background: var(--surface); }
.section-navy { background: var(--navy); color: var(--on-navy); }
@media (max-width: 640px) { .section { padding-block: 64px; } .section-tight { padding-block: 48px; } }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 40px); }
.section-head p:not(.eyebrow) { margin-top: 16px; font-size: 18px; color: var(--text-muted); }
.section-head-center { margin-inline: auto; text-align: center; }
.on-navy .section-head p:not(.eyebrow) { color: var(--on-navy-muted); }

.grad-text {
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.card { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }



.pill { display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill-ok { background: var(--ok-soft); color: var(--ok-ink); }
.pill-warn { background: var(--warn-soft); color: var(--warn-ink); }
.pill-wait { background: var(--surface-tint); color: var(--text-muted); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { flex: none; margin-top: 3px; color: var(--ok); }
.on-navy .check-list svg { color: var(--ok-on-navy); }

/* Long text: legal pages and the docs. */
.prose { color: var(--text-body); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-family: var(--font-body); font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: 0; }
.prose h3 { margin-top: 1.6em; color: var(--text); }
.prose a { color: var(--violet-ink); }
.prose a:hover { color: var(--action); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose code { background: var(--surface-tint); padding: 2px 6px; border-radius: 4px; color: var(--text); }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.prose .anchor { display: none; }
.prose strong { color: var(--text); }

/* Angled edges between sections (DesignHelper#cut). The polygon's class names the colour. */
.cut { display: block; width: 100%; height: var(--cut); margin-top: -1px; }
.cut-flip { transform: scaleX(-1); }
.cut-ground { fill: var(--ground); }
.cut-surface { fill: var(--surface); }
.cut-navy { fill: var(--navy); }
.cut-night { fill: var(--night); }
.cut-pitch { fill: var(--pitch); }
.cut-action { fill: var(--action); }
.cut-gold { fill: var(--gold); }
/* A section that ends in a cut needs no padding below it: the cut is the gap. */
.section:has(> .cut:last-child), .section-tight:has(> .cut:last-child) { padding-bottom: 0; }
.section:has(> .cut:last-child) > .wrap { padding-bottom: 72px; }
.section-tight:has(> .cut:last-child) > .wrap { padding-bottom: 48px; }

/* A pitch-green band: the top of the header and footer, and the main price card. */
.hoops { height: 9px; background: var(--pitch); }
/* The pride stripe, as on the Brats site: across the top of IGR cards (.pride-stripe), and as a
   small mark beside a line about IGR (.pride-mark). */
.pride-stripe { height: 6px; background: var(--pride); }
.pride-mark { display: inline-block; flex: none; width: 45px; height: 8px; background: var(--pride); }
.eyebrow-igr { display: inline-flex; align-items: center; gap: 12px; }

.section-pitch { position: relative; background: var(--pitch); color: var(--on-navy); }
.section-ground { background: var(--ground); }

/* Eyebrows take the colour of what they introduce. */
.eyebrow-pitch { color: var(--pitch); }
.eyebrow-action { color: var(--action); }
.on-navy .eyebrow-gold, .eyebrow-gold { color: var(--gold); }

/* Icons in a coloured chip, cycling through the kit colours. */
.chip-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--chip-bg, var(--surface-tint)); color: var(--chip-ink, var(--action)); }
.chip-action { --chip-bg: #fde7e9; --chip-ink: var(--action); }
.chip-pitch { --chip-bg: var(--pitch-soft); --chip-ink: var(--pitch); }
.chip-gold { --chip-bg: var(--gold-soft); --chip-ink: var(--gold-ink); }
.chip-violet { --chip-bg: var(--violet-soft); --chip-ink: var(--violet); }

/* A sticker: a tilted label, like a badge on kit. */
.sticker {
  display: inline-block; padding: 8px 14px; border-radius: 8px; rotate: -5deg;
  background: var(--gold); color: var(--navy); font-weight: 800; font-size: 14px; letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgb(4 10 22 / 0.3);
}

/* Cards rise into place as they scroll in: decoration only, so browsers without scroll-driven
   animations (or readers who prefer less motion) just see them in place. */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes rise-in { from { opacity: 0; translate: 0 28px; } }
    .reveal > * {
      animation: rise-in auto ease-out backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}
