/* Campus Bouncers — Sunlit Quad & Royal Plum Ink Design System */
:root {
  --paper: oklch(97.6% 0.011 85);
  --paper-warm: oklch(94.8% 0.018 82);
  --surface: oklch(99.2% 0.005 85);
  --ink: #170C2E;
  --ink-mid: #31234F;
  --ink-muted: #564973;
  --plum: #221144;
  --plum-deep: #150930;
  --sky-top: #159CEB;
  --sky-bottom: #53CBFF;
  --gold: #FEC818;
  --gold-hover: #FFD645;
  --gold-deep: #C26408;
  --turf: #34B233;
  --turf-deep: #1C701B;
  --crimson: #D92D20;
  --cyan: #0284C7;
  --border-w: 2.5px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  padding: 10px 16px;
  border: 2.5px solid var(--ink);
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.wrap {
  width: min(1140px, 100% - 40px);
  margin-inline: auto;
}

.wrap--narrow {
  width: min(780px, 100% - 40px);
  margin-inline: auto;
}

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 2.5px solid var(--ink);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-mark__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink-mid);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 2.5px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.12s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.12s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.15s ease;
}

.nav-cta:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--ink);
}

.nav-cta:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}

/* Tactile Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  padding: 13px 24px;
  border-radius: 12px;
  border: 2.5px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.12s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.12s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ink);
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
}

.btn--gold:hover {
  background: var(--gold-hover);
}

.btn--paper {
  background: var(--surface);
  color: var(--ink);
}

.btn--paper:hover {
  background: var(--paper-warm);
}

.btn--plum {
  background: var(--plum);
  color: var(--surface);
}

/* Hero Stage — Sunlit Campus Quad */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(175deg, var(--sky-top) 0%, var(--sky-bottom) 74%, #BCEBFF 100%);
  border-bottom: 3px solid var(--ink);
  padding: clamp(36px, 5vw, 68px) 0 0;
}

.hero::after {
  content: "";
  display: block;
  height: 22px;
  margin-top: clamp(32px, 4vw, 54px);
  background: repeating-linear-gradient(
    90deg,
    var(--turf) 0 88px,
    #2CA32B 88px 176px
  );
  border-top: 3px solid var(--ink);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--plum);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  margin-bottom: 16px;
}

.hero__logo {
  width: min(350px, 84%);
  margin-bottom: 14px;
  filter: drop-shadow(0 5px 0 rgba(23, 12, 46, 0.25));
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 16px;
}

.hero__lead {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--ink);
  max-width: 52ch;
  margin: 0 0 24px;
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__facts li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--plum);
  border: 1.5px solid var(--gold);
}

/* Interactive Podium Timing Stage */
.stage-card {
  background: var(--plum);
  color: var(--surface);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 0 var(--ink);
  padding: 20px;
}

.stage-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--plum-deep);
  border: 2px solid #48307D;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

.stage-readout {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  color: var(--surface);
}

.stage-viewport {
  position: relative;
  border-radius: var(--radius-md);
  border: 2.5px solid var(--ink);
  background: linear-gradient(180deg, #1E8EE0 0%, #71D4FF 78%, var(--turf) 78%, var(--turf) 100%);
  overflow: hidden;
  padding: 16px;
  min-height: 224px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stage-scene {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-height: 126px;
}

.stage-artwork {
  width: 112px;
  height: 112px;
  border-radius: 22px;
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  flex-shrink: 0;
}

.stage-callout {
  flex: 1;
  background: var(--surface);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 4px 0 var(--ink);
}

.stage-callout__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--plum);
  background: var(--gold);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 2px 7px;
  margin-bottom: 6px;
}

.stage-callout__text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.timing-bar {
  margin-top: 14px;
  background: var(--plum-deep);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
}

.timing-track {
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: #2C1954;
  border: 2px solid var(--ink);
  overflow: hidden;
  margin-bottom: 10px;
}

.timing-sweet {
  position: absolute;
  left: 41%;
  width: 18%;
  top: 0;
  bottom: 0;
  background: var(--gold);
  border-inline: 2px solid var(--ink);
}

.timing-needle {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 8px;
  margin-left: -4px;
  border-radius: 4px;
  background: var(--surface);
  border: 2px solid var(--ink);
  left: 50%;
  will-change: left;
}

.timing-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.timing-hint {
  font-size: 0.82rem;
  color: #D7CBF0;
  margin: 0;
}

.swing-btn {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  background: var(--gold);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  flex-shrink: 0;
}

.swing-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}

/* Section Rhythm */
.section {
  padding: clamp(52px, 6vw, 84px) 0;
}

.section--warm {
  background: var(--paper-warm);
  border-block: 2.5px solid var(--ink);
}

.section--plum {
  background: var(--plum);
  color: var(--surface);
  border-block: 2.5px solid var(--ink);
}

.section-head {
  max-width: 64ch;
  margin-bottom: clamp(28px, 4vw, 42px);
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.section--plum .section-kicker {
  color: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

.section-lead {
  margin: 0;
  color: var(--ink-mid);
  font-size: 1.03rem;
}

.section--plum .section-lead {
  color: #D9CFF0;
}

/* 3-Beat Run Trajectory Strip (Asymmetric editorial timeline, not generic 3-card grid) */
.loop-list {
  display: grid;
  gap: 18px;
}

.loop-row {
  display: grid;
  grid-template-columns: 72px 76px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: 0 4px 0 var(--ink);
}

.loop-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  color: var(--plum);
  font-variant-numeric: tabular-nums;
}

.loop-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.loop-body h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 0 4px;
}

.loop-body p {
  margin: 0;
  color: var(--ink-mid);
  max-width: 62ch;
}

/* Roster Switcher */
.roster-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.roster-tabs {
  display: inline-flex;
  background: var(--plum-deep);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.roster-tab {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 9px 18px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: #D7CBF0;
  cursor: pointer;
}

.roster-tab[aria-pressed="true"] {
  background: var(--gold);
  color: var(--ink);
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.char-card {
  background: #2C1856;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 5px 0 var(--ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.char-card[hidden] {
  display: none;
}

.char-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.char-avatar {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.char-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 0 2px;
  color: var(--surface);
}

.char-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0;
}

.char-quote {
  margin: 0;
  font-size: 0.94rem;
  color: #E7DFF8;
  font-style: italic;
}

.char-perk {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
  color: #BFE7FF;
  font-weight: 600;
}

/* 5-Stat Engineering Strip */
.upgrade-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.upgrade-item {
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 4px 0 var(--ink);
}

.upgrade-item__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.upgrade-item__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.upgrade-item h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.04rem;
  margin: 0;
}

.upgrade-item p {
  margin: 0;
  font-size: 0.91rem;
  color: var(--ink-mid);
}

/* AEO FAQ Accordion */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 3px 0 var(--ink);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
  color: var(--plum);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--ink-mid);
  max-width: 68ch;
  margin: 0;
}

/* Legal & Support Prose Pages */
.page-hero {
  background: linear-gradient(175deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
  border-bottom: 3px solid var(--ink);
  padding: clamp(34px, 5vw, 56px) 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.breadcrumb a {
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.page-meta {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
}

.prose-wrap {
  padding: clamp(36px, 5vw, 60px) 0;
}

.prose-sheet {
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 0 var(--ink);
  padding: clamp(24px, 4vw, 44px);
}

.prose-sheet h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  margin: 28px 0 10px;
  color: var(--ink);
}

.prose-sheet h2:first-child {
  margin-top: 0;
}

.prose-sheet h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  margin: 18px 0 8px;
}

.prose-sheet p,
.prose-sheet li {
  color: var(--ink-mid);
  max-width: 68ch;
}

.prose-sheet ul,
.prose-sheet ol {
  padding-left: 22px;
  margin: 8px 0 16px;
}

.prose-sheet li {
  margin-bottom: 6px;
}

.prose-sheet code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--paper-warm);
  border: 1px solid #D5CCB8;
  border-radius: 5px;
  padding: 1px 6px;
}

.callout-box {
  background: var(--paper-warm);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 20px 0;
}

/* Footer */
.site-footer {
  background: var(--plum-deep);
  color: #D7CBF0;
  border-top: 3px solid var(--ink);
  padding: 40px 0 32px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
  max-width: 340px;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--surface);
  margin-bottom: 6px;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin: 0 0 10px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 6px;
}

.footer-col a {
  text-decoration: none;
  font-size: 0.92rem;
  color: #D7CBF0;
}

.footer-col a:hover {
  color: var(--surface);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #B4A5D6;
}

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

  .loop-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .loop-icon {
    display: none;
  }

  .nav-links {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
