/* Free resources: library page (free-resources.html) and the lead-magnet landing pages (e.g. sports-content-calendar.html).
   Uses the site variables from styles.css, so dark and light themes both work. */

.rs-hero { position: relative; padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 5vw, 64px); overflow: clip; }
.rs-hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 60%; height: 90%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(240, 184, 74, 0.16), transparent 70%); }
.rs-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.rs-copy h1 { margin: 18px 0 18px; font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.025em; }
.rs-lead { margin: 0 0 26px; max-width: 54ch; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; }
.rs-points { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 14px; }
.rs-points li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 16px; line-height: 1.45; }
.rs-points svg { width: 26px; height: 26px; margin-top: 1px; }
.rs-points b { display: block; font-family: var(--font-display); font-weight: 600; }
.rs-points span { color: var(--muted); font-size: 14.5px; }

.rs-cover { position: relative; margin: 8px 0 40px 12px; max-width: 420px; }
.rs-cover img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid rgba(240, 184, 74, 0.3); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(var(--fg), 0.03); transform: rotate(-2.2deg); max-width: 100%; }
.rs-cover .rs-cover-2 { position: absolute; width: 52%; right: -6%; bottom: -8%; transform: rotate(3.4deg); }

/* form card */
.rs-card { position: sticky; top: 96px; padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: var(--surface);
  border: 1px solid rgba(240, 184, 74, 0.34); box-shadow: var(--shadow-soft), var(--inset-glow); }
.rs-card h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.015em; line-height: 1.15; }
.rs-card > p, .rs-card [data-lm-intro] p { margin: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.rs-form { display: grid; gap: 14px; }
.rs-field { display: grid; gap: 6px; }
.rs-field span { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.rs-field input { width: 100%; height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--fg), 0.05);
  color: var(--text); font: inherit; font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s; }
.rs-field input::placeholder { color: var(--muted-dim); }
.rs-field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-tint); }
.rs-check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: 13px; line-height: 1.5; cursor: pointer; }
.rs-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); }
.rs-check a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.rs-form .btn { width: 100%; height: 54px; font-size: 16px; justify-content: center; }
.rs-msg { margin: 0; min-height: 0; font-size: 14px; color: #ff9d8a; }
.rs-msg[hidden] { display: none; }
.rs-fine { margin: 18px 0 0; color: var(--muted-dim); font-size: 12px; line-height: 1.5; }

/* success */
.rs-done { text-align: left; }
.rs-done[hidden], .rs-form[hidden] { display: none; }
.rs-done .rs-tick { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin-bottom: 16px; background: var(--gold-tint); color: var(--gold); }
.rs-done .rs-tick svg { width: 26px; height: 26px; }
.rs-done h2 { margin: 0 0 8px; }
.rs-done p { margin: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.rs-done .btn { width: 100%; height: 54px; justify-content: center; font-size: 16px; }
.rs-done .rs-next { display: block; margin-top: 16px; text-align: center; color: var(--gold); font-weight: 600; font-size: 14px; }

/* sections */
.rs-section { padding: clamp(40px, 6vw, 80px) 0; }
.rs-section h2.section-title { margin: 14px 0 12px; }
.rs-sub { max-width: 60ch; margin: 0 0 36px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.rs-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rs-feature { padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--inset-glow); }
.rs-feature .n { font-family: var(--font-display); font-weight: 700; font-size: 34px; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.rs-feature h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.rs-feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.rs-moments { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rs-moments li { padding: 10px 18px; border-radius: 100px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; }
.rs-moments li b { color: var(--gold); font-weight: 600; margin-right: 6px; }

.rs-band { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: 26px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid rgba(240, 184, 74, 0.34); box-shadow: var(--shadow-soft); }
.rs-band h2 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.02em; line-height: 1.12; }
.rs-band p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 56ch; }

/* library page */
.rs-intro { padding: clamp(40px, 6vw, 88px) 0 clamp(8px, 2vw, 24px); }
.rs-intro h1 { margin: 18px 0 16px; font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.025em; max-width: 16ch; }
.rs-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 36px 0 0; padding: 0; list-style: none; }
.rs-res { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--inset-glow); transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.rs-res.is-live:hover { transform: translateY(-4px); border-color: rgba(240, 184, 74, 0.5); box-shadow: var(--shadow-soft); }
.rs-res-media { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(closest-side, rgba(240, 184, 74, 0.22), transparent 80%), var(--surface-2); }
.rs-res-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; padding: 16px 0; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.45)); }
.rs-res-media .soon-mark { font-family: var(--font-display); font-weight: 700; font-size: 56px; color: rgba(240, 184, 74, 0.35); letter-spacing: -0.02em; }
.rs-res-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.rs-tag { align-self: flex-start; margin-bottom: 12px; padding: 5px 12px; border-radius: 100px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.rs-tag.live { background: rgba(94, 201, 130, 0.16); color: #5ec982; }
.rs-tag.soon { background: var(--gold-tint); color: var(--gold); }
.rs-res h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.015em; line-height: 1.2; }
.rs-res p { margin: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.55; flex: 1; }
.rs-res .btn { align-self: flex-start; }
.rs-res .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

@media (max-width: 980px) {
  .rs-grid { grid-template-columns: 1fr; }
  .rs-card { position: static; order: -1; }
  .rs-cover { margin-inline: auto; max-width: 380px; }
  .rs-features { grid-template-columns: 1fr; }
  .rs-list { grid-template-columns: 1fr 1fr; }
  .rs-band { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .rs-list { grid-template-columns: 1fr; }
  .rs-cover .rs-cover-2 { display: none; }
}

.rs-grid[hidden], .rs-cover[hidden], .rs-sub[hidden] { display: none; }
