/* ============================================================
   RCPL — premium rebuild
   Bone editorial base · teal ink · gold for prizes
   Display: Fraunces (characterful serif) · Body: Inter Tight
   Signature: the league ladder + framed logo crest
   ============================================================ */

:root {
  --bone:        #f4efe6;   /* warm page base */
  --bone-deep:   #ece4d6;   /* alternating section */
  --bone-warm:   #e6dcc8;   /* warm panel */
  --paper:       #fffdf8;   /* card surface */

  --teal-ink:    #0b4f4a;   /* deepest teal — headings, dark panels */
  --teal:        #00958f;   /* Rocio brand teal — primary */
  --teal-bright: #11a89f;
  --teal-pale:   #d6e8e4;

  --gold:        #c2902f;   /* prizes, winners */
  --gold-bright: #ddb24e;
  --gold-deep:   #9c7220;

  --ink:         #2c3631;   /* body text */
  --ink-soft:    #5f6b64;   /* muted */
  --line:        #ddd2bf;   /* warm hairline */
  --line-soft:   #e8e0d1;

  --maxw: 1160px;
  --r: 18px;
  --r-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(60,48,24,.06);
  --shadow:    0 18px 50px rgba(60,48,24,.12);
  --shadow-lg: 0 30px 80px rgba(60,48,24,.18);

  --display: "Fraunces", "Georgia", serif;
  --body: "Inter Tight", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -.018em; color: var(--teal-ink); }
.display-xl { font-size: clamp(3.2rem, 7.5vw, 6.4rem); font-weight: 600; }
.serif-italic { font-style: italic; }

.eyebrow {
  font-family: var(--body);
  text-transform: uppercase; letter-spacing: .22em; font-weight: 600;
  font-size: .76rem; color: var(--teal);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--gold); }

.section { padding: 110px 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin: 18px 0 16px; }
.section-head p { color: var(--ink-soft); font-size: 1.12rem; max-width: 60ch; }

.section.tint { background: var(--bone-deep); }
.section.ink { background: var(--teal-ink); color: #e8f1ee; }
.section.ink h2 { color: #fff; }
.section.ink .section-head p { color: #a9c9c3; }
.section.ink .eyebrow { color: var(--gold-bright); }
.section.ink .eyebrow::before { background: var(--gold-bright); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,239,230,.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; gap: 20px; height: 74px; }
.nav .brand { display: flex; align-items: center; gap: 13px; margin-right: auto; }
.nav .brand .crest-sm {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden; flex: 0 0 auto;
}
.nav .brand .crest-sm img { width: 100%; }
.nav .brand b { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--teal-ink); letter-spacing: -.01em; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a { color: var(--ink); font-size: .92rem; font-weight: 500; padding: 9px 13px; border-radius: 9px; transition: .16s; }
.nav-links a:hover { color: var(--teal-ink); background: rgba(0,149,143,.09); }
.lang-toggle {
  font-family: var(--body); font-weight: 600; font-size: .82rem; letter-spacing: .02em;
  color: var(--teal-ink); background: transparent; border: 1.5px solid var(--teal);
  border-radius: 999px; padding: 8px 18px; cursor: pointer; transition: .16s;
}
.lang-toggle:hover { background: var(--teal); color: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--teal-ink); margin: 5px 0; transition: .2s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body); font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  padding: 15px 30px; border-radius: 999px; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.btn-primary { background: var(--teal-ink); color: #fff; }
.btn-primary:hover { background: var(--teal); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,149,143,.3); }
.btn-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #3a2c08; box-shadow: 0 10px 26px rgba(194,144,47,.34); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(194,144,47,.46); filter: brightness(1.04); }
.btn-outline { background: transparent; color: var(--teal-ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn-lg { padding: 17px 36px; font-size: 1.04rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: 64px 0 90px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 480px at 88% 8%, rgba(0,149,143,.10), transparent 62%),
    radial-gradient(760px 460px at 8% 96%, rgba(194,144,47,.10), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--paper); border: 1px solid var(--line);
  color: var(--teal-ink); border-radius: 999px; padding: 8px 16px 8px 13px;
  font-size: .84rem; font-weight: 600; margin-bottom: 26px; box-shadow: var(--shadow-sm);
}
.hero-badge .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); position: relative; }
.hero-badge .live-dot::after { content:""; position:absolute; inset:-4px; border-radius:50%; border:1.5px solid var(--teal); opacity:.5; animation: ring 2.2s ease-out infinite; }
@keyframes ring { 0%{transform:scale(.6);opacity:.6;} 100%{transform:scale(1.6);opacity:0;} }

.hero h1 { font-size: clamp(3rem, 6.6vw, 5.8rem); margin-bottom: 24px; }
.hero h1 .line2 { color: var(--teal); font-style: italic; }
.hero .lead { font-size: 1.22rem; color: var(--ink-soft); max-width: 36ch; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; }

/* The framed logo crest — circular logo sits in a soft halo */
.crest { position: relative; justify-self: center; width: min(420px, 86%); aspect-ratio: 1; }
.crest-ring {
  position: absolute; inset: -4%; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.9) 0%, rgba(244,239,230,.5) 58%, transparent 72%);
  box-shadow: 0 30px 70px rgba(11,79,74,.16);
}
.crest img { position: absolute; inset: 2%; width: 96%; height: 96%; object-fit: contain; z-index: 2; filter: drop-shadow(0 10px 26px rgba(11,79,74,.18)); }
.crest .crest-tag {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); z-index: 3;
  background: var(--teal-ink); color: #fff; font-family: var(--body); font-weight: 600;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 20px; border-radius: 999px; white-space: nowrap; box-shadow: var(--shadow);
}

/* Hero stat strip */
.hero-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 56px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.hero-stat { padding: 24px 26px; border-right: 1px solid var(--line-soft); }
.hero-stat:last-child { border-right: none; }
.hero-stat .num { font-family: var(--display); font-size: 2.3rem; font-weight: 600; color: var(--teal-ink); line-height: 1; letter-spacing: -.02em; }
.hero-stat .num.gold { color: var(--gold-deep); }
.hero-stat .lbl { font-size: .82rem; color: var(--ink-soft); margin-top: 8px; }

/* ============================================================
   TIERS (How it works) — aligned horizontal cards, click to expand
   ============================================================ */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.tier-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 26px; position: relative; cursor: pointer; overflow: hidden;
  transition: transform .26s cubic-bezier(.22,1,.36,1), box-shadow .26s, border-color .2s;
  display: flex; flex-direction: column;
}
.tier-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--teal); opacity: .85; transition: opacity .2s; }
.tier-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tier-card:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.tier-step { font-family: var(--display); font-style: italic; font-size: 1rem; color: var(--gold-deep); }
.tier-card h3 { font-size: 1.5rem; margin: 8px 0 6px; }
.tier-card .cadence { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); font-weight: 600; }
.tier-card .pool { font-family: var(--display); font-size: 1.7rem; font-weight: 600; color: var(--gold-deep); margin-top: auto; padding-top: 18px; }
.tier-more { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s ease, opacity .3s ease, margin .3s ease; margin-top: 0; }
.tier-more p { font-size: .95rem; color: var(--ink-soft); }
.tier-card.expanded { transform: translateY(-6px) scale(1.04); box-shadow: var(--shadow-lg); border-color: var(--teal); z-index: 3; }
.tier-card.expanded .tier-more { max-height: 200px; opacity: 1; margin-top: 14px; margin-bottom: 4px; }
.tier-card.tier-title { background: linear-gradient(165deg, var(--teal-ink), #0a3e3a); border: none; color: #eaf1ef; }
.tier-card.tier-title::after { background: var(--gold-bright); opacity: 1; }
.tier-card.tier-title .tier-step { color: var(--gold-bright); }
.tier-card.tier-title h3 { color: #fff; }
.tier-card.tier-title .cadence { color: #9fc6c0; }
.tier-card.tier-title .tier-more p { color: #bcd6d1; }
.tier-card.tier-title .pool { color: var(--gold-bright); }
.tier-card .crown { position: absolute; top: 18px; right: 20px; color: var(--gold-bright); font-size: 1.15rem; }

/* ---------- Essentials (ink section) ---------- */
.essentials { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; max-width: 1100px; margin: 0 auto; }
.essential { flex: 1 1 200px; max-width: 280px; }
.essential.jingle-rule { background: rgba(221,178,78,.1); border-color: rgba(221,178,78,.4); }
.essential.jingle-rule .e-mark { background: rgba(221,178,78,.2); border-color: rgba(221,178,78,.5); color: var(--gold-bright); }
.essential { padding: 28px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); background: rgba(255,255,255,.04); }
.essential .e-mark { font-family: var(--display); font-size: 1.6rem; color: var(--gold-bright); margin-bottom: 12px; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(221,178,78,.12); border: 1px solid rgba(221,178,78,.28); }
.essential p { color: #d2e4e0; font-size: .98rem; }

/* ============================================================
   THEMES
   ============================================================ */
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.theme-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .22s, box-shadow .22s; }
.theme-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.theme-card .tc-top { padding: 28px 28px 0; }
.tc-month { font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; color: var(--teal); font-weight: 600; }
.theme-card h3 { font-size: 1.7rem; margin: 10px 0 0; }
.tc-body { padding: 20px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.tc-brief { font-size: 1rem; color: var(--ink); margin-bottom: 18px; }
.tc-nudge { display: flex; gap: 12px; padding: 16px 18px; background: rgba(194,144,47,.08); border-radius: var(--r-sm); border: 1px solid rgba(194,144,47,.22); margin-bottom: 22px; }
.tc-nudge .star { color: var(--gold); flex: 0 0 auto; font-size: 1rem; line-height: 1.5; }
.tc-nudge p { font-size: .92rem; color: var(--ink); }
.tc-nudge .nl { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-deep); font-weight: 700; margin-bottom: 3px; }
.theme-meta { margin-top: auto; display: grid; gap: 9px; border-top: 1px solid var(--line-soft); padding-top: 18px; }
.theme-meta div { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; }
.theme-meta .k { color: var(--ink-soft); }
.theme-meta .v { font-weight: 600; text-align: right; color: var(--teal-ink); }

.theme-card.locked { background: var(--bone-deep); border-style: dashed; }
.theme-card.locked .lock-wrap { padding: 48px 28px; text-align: center; }
.theme-card.locked .lock-ico { font-size: 1.4rem; opacity: .5; }
.theme-card.locked .tc-month { display: block; margin-bottom: 8px; }
.theme-card.locked h3 { font-size: 1.15rem; color: var(--ink-soft); font-weight: 500; font-style: italic; }

/* Grand Finale theme card — spans full row, dark premium */
.theme-card.finale-card { grid-column: 1 / -1; background: linear-gradient(135deg, var(--teal-ink) 0%, #0a3e3a 60%, #0d4a44 100%); border: none; position: relative; overflow: hidden; }
.theme-card.finale-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 20%, rgba(221,178,78,.18), transparent 60%); pointer-events: none; }
.theme-card.finale-card .fc-inner { padding: 48px 44px; text-align: center; position: relative; z-index: 1; }
.theme-card.finale-card .crown { color: var(--gold-bright); font-size: 2rem; display: block; margin-bottom: 8px; }
.theme-card.finale-card .tc-month { color: var(--gold-bright); letter-spacing: .2em; }
.theme-card.finale-card h3 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 10px 0; }
.theme-card.finale-card .fc-sub { color: #bcd6d1; font-size: 1.1rem; }
.theme-card.finale-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* ============================================================
   PRIZES
   ============================================================ */
.prize-wrap { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
table.prizes { width: 100%; border-collapse: collapse; min-width: 640px; }
table.prizes thead th { background: var(--teal-ink); color: #fff; font-family: var(--body); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: .8rem; padding: 18px 20px; text-align: left; }
table.prizes tbody td { padding: 20px; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
table.prizes tbody tr:last-child td { border-bottom: none; }
table.prizes tbody tr { transition: background .15s; }
table.prizes tbody tr:hover td { background: rgba(0,149,143,.04); }
table.prizes tbody tr.finale td { background: rgba(194,144,47,.09); }
table.prizes tbody tr.finale:hover td { background: rgba(194,144,47,.15); }
table.prizes .tier-name { font-family: var(--display); font-size: 1.15rem; font-weight: 600; color: var(--teal-ink); }
table.prizes .total { font-family: var(--display); font-size: 1.35rem; font-weight: 600; color: var(--gold-deep); }
table.prizes .medal { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.m1 { background: var(--gold); } .m2 { background: #aab2b0; } .m3 { background: #bd7d4a; }
.s1-off { color: var(--ink-soft); font-style: italic; font-size: .84rem; }

/* ---------- Scoring (ink) ---------- */
.score-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.score-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 26px 20px; text-align: center; }
.score-card .pct { font-family: var(--display); font-size: 2.7rem; font-weight: 600; color: #fff; line-height: 1; }
.score-card .bar { height: 5px; border-radius: 999px; background: rgba(255,255,255,.14); margin: 16px 0 12px; overflow: hidden; }
.score-card .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold-bright)); }
.score-card .metric { font-size: .88rem; color: #c4ddd8; }

/* ============================================================
   CHAMPIONS
   ============================================================ */
.champ-event { margin-bottom: 48px; }
.champ-event .ce-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.champ-event .ce-head h3 { font-size: 1.6rem; }
.champ-event .ce-theme { color: var(--teal); font-weight: 600; }
.champ-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.champ-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .22s, box-shadow .22s; }
.champ-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.champ-thumb { aspect-ratio: 4/5; background: linear-gradient(165deg, var(--teal-ink), #0a3e3a); position: relative; display: grid; place-items: center; overflow: hidden; }
.champ-thumb img { width: 100%; height: 100%; object-fit: cover; }
.champ-thumb .ph { width: 46%; opacity: .3; }
.champ-rank { position: absolute; top: 14px; left: 14px; font-family: var(--display); font-weight: 600; font-size: .95rem; padding: 5px 13px; border-radius: 999px; background: #fff; color: var(--teal-ink); }
.champ-rank.r1 { background: var(--gold); color: #3a2c08; }
.champ-rank.r2 { background: #cdd2d0; color: #2c3631; }
.champ-rank.r3 { background: #d39a68; color: #3a2410; }
.champ-info { padding: 20px 22px; }
.champ-info .name { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--teal-ink); }
.champ-info .handle { color: var(--teal); font-size: .9rem; margin: 2px 0 12px; }
.champ-info .prize { font-family: var(--display); font-size: 1.4rem; font-weight: 600; color: var(--gold-deep); }
.champ-info .reel-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-weight: 600; font-size: .9rem; color: var(--teal); }
.champ-info .reel-link.disabled { color: var(--ink-soft); opacity: .55; pointer-events: none; }
.champ-empty { text-align: center; padding: 64px 24px; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: var(--r); background: var(--paper); font-style: italic; }

/* ============================================================
   STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 22px; transition: transform .2s, box-shadow .2s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step.step-jingle { background: linear-gradient(160deg, var(--paper), rgba(221,178,78,.12)); border-color: rgba(221,178,78,.4); }
.step.step-jingle .n { color: var(--gold-deep); }
.jingle-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-weight: 600; font-size: .88rem; color: var(--gold-deep);
  background: rgba(221,178,78,.16); border: 1px solid rgba(221,178,78,.45);
  border-radius: 999px; padding: 7px 15px; transition: background .15s, transform .15s;
}
.jingle-link:hover { background: rgba(221,178,78,.28); transform: translateY(-1px); }
.essential .jingle-link { margin-top: 12px; }
.step .n { font-family: var(--display); font-style: italic; font-size: 1.1rem; color: var(--gold-deep); }
.step h3 { font-size: 1.15rem; margin: 10px 0 8px; }
.step p { font-size: .9rem; color: var(--ink-soft); }
.submit-cta { margin-top: 44px; text-align: center; }

/* ---------- Rulebook ---------- */
.guide-card { background: linear-gradient(160deg, var(--paper), var(--bone-warm)); border: 1px solid var(--line); border-radius: 22px; padding: 60px; text-align: center; box-shadow: var(--shadow); }
.guide-card .doc-ico { font-size: 2.6rem; }
.guide-card h3 { font-size: 2rem; margin: 16px 0 10px; }
.guide-card p { color: var(--ink-soft); margin-bottom: 28px; max-width: 52ch; margin-left: auto; margin-right: auto; }
.guide-placeholder { display: inline-block; background: rgba(194,144,47,.1); border: 1px solid rgba(194,144,47,.3); color: var(--gold-deep); border-radius: 999px; padding: 11px 22px; font-size: .92rem; font-weight: 500; }

/* ---------- States ---------- */
.state-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.state-card { border-radius: var(--r); padding: 32px; border: 1px solid var(--line); background: var(--paper); transition: transform .22s, box-shadow .22s; }
.state-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.state-card.live { background: linear-gradient(165deg, var(--teal-ink), #0a3e3a); border: none; color: #fff; }
.state-card h3 { font-size: 1.7rem; margin-bottom: 6px; }
.state-card.live h3 { color: #fff; }
.state-status { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.state-status.live { background: rgba(221,178,78,.2); color: var(--gold-bright); }
.state-status.soon { background: var(--bone-warm); color: var(--ink-soft); }
.state-card .arrow { font-size: 1.3rem; margin-top: 12px; color: var(--teal); }
.state-card.live .arrow { color: var(--gold-bright); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--teal-ink); color: #cfe2de; padding: 70px 0 34px; position: relative; }
.site-footer::before { content:""; position:absolute; top:0; left:0; right:0; height:3px; background: linear-gradient(90deg, transparent, var(--gold-bright), transparent); opacity:.7; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; gap: 16px; align-items: center; max-width: 340px; }
.footer-brand .crest-sm { width: 66px; height: 66px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex: 0 0 auto; background: #fff; }
.footer-brand .crest-sm img { width: 100%; }
.footer-brand p { font-size: .92rem; color: #a9c9c3; }
.footer-connect { text-align: right; }
.footer-connect-label { font-family: var(--body); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; color: var(--gold-bright); display: block; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; align-items: flex-end; }
.footer-links a { display: inline-flex; align-items: center; gap: 10px; color: #d6ebe6; font-size: .96rem; font-weight: 500; transition: color .15s, transform .15s; }
.footer-links a svg { color: var(--gold-bright); flex: 0 0 auto; transition: transform .15s; }
.footer-links a:hover { color: #fff; transform: translateX(-3px); }
.footer-links a:hover svg { transform: scale(1.12); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(221,178,78,.2); font-size: .86rem; color: #9ec1bb; }
.footer-bottom .hashtag { color: var(--gold-bright); font-weight: 600; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-badge .live-dot::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .crest { order: -1; width: min(320px, 74%); margin-bottom: 18px; }
  .tiers { grid-template-columns: repeat(2,1fr); }
  .theme-grid, .champ-grid, .state-grid { grid-template-columns: 1fr 1fr; }
  .score-grid { grid-template-columns: repeat(3,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .essentials { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 620px) {
  .section { padding: 72px 0; }
  .nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; background: var(--bone); padding: 14px; gap: 4px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-toggle { display: block; }
  .tiers, .theme-grid, .champ-grid, .state-grid, .score-grid, .steps, .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .hero-stat:last-child { border-bottom: none; }
  .footer-top { flex-direction: column; align-items: center; text-align: center; }
  .footer-brand { flex-direction: column; text-align: center; }
  .footer-connect { text-align: center; }
  .footer-links { align-items: center; }
  .guide-card { padding: 40px 26px; }
}

/* ============================================================
   ELIGIBILITY
   ============================================================ */
.elig-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.elig-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; position: relative; transition: transform .22s, box-shadow .22s; }
.elig-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--teal); opacity: .85; }
.elig-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.elig-when { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--teal); font-weight: 600; }
.elig-card h3 { font-size: 1.5rem; margin: 8px 0 12px; }
.elig-card p { font-size: 1rem; color: var(--ink-soft); }
.elig-card.elig-finale { background: linear-gradient(165deg, var(--teal-ink), #0a3e3a); border: none; }
.elig-card.elig-finale::after { background: var(--gold-bright); opacity: 1; }
.elig-card.elig-finale .elig-when { color: var(--gold-bright); }
.elig-card.elig-finale h3 { color: #fff; }
.elig-card.elig-finale p { color: #bcd6d1; }

/* ---------- Referral note under submit CTA ---------- */
.submit-cta { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.referral-note { max-width: 60ch; color: var(--ink-soft); font-size: .96rem; }

/* ============================================================
   REFERRAL REWARDS
   ============================================================ */
.referral-card { background: linear-gradient(160deg, var(--paper), var(--bone-warm)); border: 1px solid var(--line); border-radius: 22px; padding: 56px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.referral-head .eyebrow { margin-bottom: 14px; }
.referral-head h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 18px; }
.referral-head p { color: var(--ink-soft); font-size: 1.08rem; }
.referral-head h2::after { content: " 🎁"; }
.referral-rules { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.referral-rules li { position: relative; padding-left: 30px; font-size: .98rem; color: var(--ink); }
.referral-rules li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--gold); font-size: 1rem; }

@media (max-width: 900px) {
  .elig-grid { grid-template-columns: 1fr; }
  .referral-card { grid-template-columns: 1fr; gap: 28px; padding: 40px 30px; }
}
