/* PulseRewards Cashback — July 4th Patriotic Theme */
/* FiveToClose · cashback.fivetoclose.cloud */

:root {
  --navy: #0a1628;
  --navy-mid: #132238;
  --navy-light: #1e3a5f;
  --red: #b91c1c;
  --red-bright: #dc2626;
  --cream: #faf6ed;
  --gold: #d4a853;
  --gold-light: #f0d78c;
  --white: #ffffff;
  --text: #e8e4dc;
  --text-muted: #a8b0c0;
  --border: rgba(212, 168, 83, 0.25);
  --shadow: rgba(10, 22, 40, 0.45);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 48rem;
  --max-wide: 64rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--navy);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(185, 28, 28, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(212, 168, 83, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, #0d1a2e 100%);
  min-height: 100vh;
}

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

a {
  color: var(--gold-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Typography */
.heading {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--cream);
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.pull-quote {
  border-left: 4px solid var(--red);
  padding-left: 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.55;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 3.5rem 0;
}

section + section {
  border-top: 1px solid var(--border);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--cream);
}

.brand-sub {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  font-family: var(--font-body);
  font-weight: 400;
}

.skip-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
}

.skip-link:hover {
  color: var(--gold-light);
  text-decoration: none;
}

/* Stars stripe accent */
.stars-bar {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0px,
    var(--red) 20px,
    var(--cream) 20px,
    var(--cream) 22px,
    var(--navy-light) 22px,
    var(--navy-light) 42px
  );
}

/* Hero */
.hero h1 {
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 1.5rem;
}

.hero h1 .accent {
  color: var(--gold-light);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero-lead strong {
  color: var(--cream);
}

/* CTA Buttons */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.1rem 2.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--cream);
  background: linear-gradient(135deg, var(--red) 0%, #991b1b 100%);
  border: 2px solid var(--gold);
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(185, 28, 28, 0.35);
  text-align: center;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(185, 28, 28, 0.45);
  text-decoration: none;
  color: var(--white);
}

.btn-cta-secondary {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-mid) 100%);
  border-color: var(--gold);
  box-shadow: 0 4px 20px var(--shadow);
}

.cta-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.text-center {
  text-align: center;
}

/* VSL Player */
#vsl-player {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--gold);
  background: #000;
  box-shadow: 0 12px 40px var(--shadow);
  aspect-ratio: 16 / 9;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

#vsl-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  background: linear-gradient(145deg, var(--navy-mid) 0%, var(--navy) 60%, rgba(185, 28, 28, 0.2) 100%);
}

#vsl-poster .poster-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

#vsl-poster .poster-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

#vsl-poster .poster-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
}

#vsl-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(185, 28, 28, 0.92);
  border: 3px solid var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
  pointer-events: none;
}

#vsl-poster:hover #vsl-play-btn {
  transform: translate(-50%, -50%) scale(1.06);
}

#vsl-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--gold-light);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 4px;
}

#main-vsl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: none;
  background: #000;
}

#main-vsl.is-live {
  display: block;
}

#vsl-player.is-playing #vsl-poster {
  display: none;
}

/* Cards */
.card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
}

.card-type1 {
  border-color: rgba(185, 28, 28, 0.4);
  background: rgba(185, 28, 28, 0.08);
}

.card-type2 {
  border-color: rgba(212, 168, 83, 0.45);
  background: rgba(212, 168, 83, 0.06);
}

.type-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.type1-label { color: #fca5a5; }
.type2-label { color: var(--gold); }

/* Tier table */
.tier-grid {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .tier-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tier-card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.tier-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.tier-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212, 168, 83, 0.12) 0%, var(--navy-mid) 100%);
  box-shadow: 0 0 24px rgba(212, 168, 83, 0.15);
}

.tier-load {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cream);
  font-family: var(--font-display);
}

.tier-cashback {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 0.35rem 0;
}

.tier-pct {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--red);
  color: var(--cream);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
}

/* Section variants */
.section-cream {
  background: linear-gradient(180deg, rgba(250, 246, 237, 0.06) 0%, transparent 100%);
}

.section-red {
  background: linear-gradient(180deg, rgba(185, 28, 28, 0.1) 0%, transparent 100%);
}

.section-dark {
  background: var(--navy-mid);
}

h2.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 1.5rem;
  line-height: 1.2;
}

h3.sub-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 0 0 0.75rem;
}

/* Proof box */
.proof-box {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.15) 0%, rgba(185, 28, 28, 0.08) 100%);
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 1.75rem;
  margin: 2rem 0;
}

.proof-box .amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold-light);
  font-family: var(--font-display);
  line-height: 1;
}

/* Feature list */
.feature-grid {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-item {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
}

.feature-item strong {
  color: var(--cream);
}

/* July 4th banner */
.july-banner {
  background: linear-gradient(90deg, var(--red) 0%, var(--navy-light) 50%, var(--red) 100%);
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: rgba(0, 0, 0, 0.2);
}

.site-footer p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.affiliate-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

/* Legal pages */
.legal-page {
  background: var(--cream);
  color: #1c1917;
  min-height: 100vh;
}

.legal-page .legal-header {
  background: var(--white);
  border-bottom: 1px solid #e4e4e7;
  padding: 1rem 0;
}

.legal-page .legal-header .inner {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.legal-page .legal-header .brand {
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
}

.legal-page .legal-nav a {
  color: #57534e;
  font-size: 0.875rem;
  margin-left: 1rem;
}

.legal-page .legal-nav a:hover {
  color: var(--red);
}

.legal-page .legal-body {
  max-width: 48rem;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid #e4e4e7;
  box-shadow: 0 4px 20px rgba(10, 22, 40, 0.08);
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.legal-page .updated {
  font-size: 0.875rem;
  color: #78716c;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
  line-height: 1.75;
  color: #44403c;
}

.legal-page ul {
  padding-left: 1.5rem;
}

.legal-page .legal-footer {
  max-width: 48rem;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  font-size: 0.875rem;
  color: #78716c;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.legal-page a {
  color: var(--red);
}

/* Utility */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.space-y > * + * { margin-top: 1rem; }