/* ─────────────────────────────────────────────────────────────────────
   CBP Brew Partner — page template styles
   ───────────────────────────────────────────────────────────────────── */
.page-hero { background: var(--ink); color: #fff; padding: 90px 0 110px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: url('../img/stars.svg'); background-size: 520px 520px; background-repeat: repeat; opacity: 0.35; pointer-events: none; animation: starDrift 180s linear infinite; }
.page-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 220px; background: radial-gradient(ellipse at 25% 100%, rgba(54,182,224,0.18) 0%, transparent 60%); pointer-events: none; }
.page-hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.page-hero .label { color: var(--cyan); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(48px, 6.5vw, 76px); font-weight: 700; line-height: 1.02; letter-spacing: -2px; margin-bottom: 24px; }
.page-hero h1 em { color: var(--pink); font-style: normal; }
.page-hero .page-hero-lede { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.7); max-width: 540px; margin-bottom: 36px; }
.page-hero .hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.page-hero .breadcrumb { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 28px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.page-hero .breadcrumb a:hover { color: var(--cyan); }
.page-hero .breadcrumb .sep { color: var(--pink); padding: 0 10px; }
.page-hero-art { position: relative; aspect-ratio: 1400 / 803; width: 100%; max-width: 500px; justify-self: end; cursor: pointer; }
.page-hero-art .layer-pink, .page-hero-art .layer-cyan {
  position: absolute; inset: 0;
  -webkit-mask: url('../img/megaphone-ink.png') center/contain no-repeat;
          mask: url('../img/megaphone-ink.png') center/contain no-repeat;
}
.page-hero-art .layer-pink { background-color: var(--pink); filter: drop-shadow(0 0 14px rgba(236,30,124,0.5)); transform: translate(1.8%, 1.4%); opacity: 0.85; mix-blend-mode: screen; animation: neonFlickerPink 2.2s ease-out 0.1s 1 both; }
.page-hero-art .layer-cyan { background-color: var(--cyan); filter: drop-shadow(0 0 14px rgba(54,182,224,0.45)); z-index: 1; animation: neonFlickerCyan 2.4s ease-out 0s 1 both; }

/* Burst lines emanating from megaphone bell — sound waves */
.hero-burst { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.burst-rot {
  position: absolute;
  height: 6px;
  transform-origin: left center;
}
/* Bell mouth sits around right ~78%, vertically slightly above middle.
   Five lines fan out at staggered angles. */
.burst-1 { top: 16%; left: 78%; width: 22%; transform: rotate(-30deg); }
.burst-2 { top: 28%; left: 80%; width: 26%; transform: rotate(-12deg); }
.burst-3 { top: 42%; left: 81%; width: 28%; transform: rotate(  0deg); }
.burst-4 { top: 56%; left: 80%; width: 26%; transform: rotate( 14deg); }
.burst-5 { top: 68%; left: 78%; width: 22%; transform: rotate( 30deg); }
.burst {
  position: absolute;
  inset: 0;
  background: var(--cyan);
  border-radius: 3px;
  filter: drop-shadow(0 0 8px rgba(54,182,224,0.8));
  opacity: 0;
  animation: burstWave 2.4s ease-out infinite;
}
.burst::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--pink);
  border-radius: 3px;
  transform: translate(2px, 2px);
  opacity: 0.6;
  mix-blend-mode: screen;
}
.burst-1 .burst { animation-delay: 0s;    }
.burst-2 .burst { animation-delay: 0.18s; }
.burst-3 .burst { animation-delay: 0.36s; }
.burst-4 .burst { animation-delay: 0.54s; }
.burst-5 .burst { animation-delay: 0.72s; }
@keyframes burstWave {
  0%   { opacity: 0;    transform: translateX(-10%) scaleX(0.3); }
  20%  { opacity: 1;    }
  60%  { opacity: 0.85; }
  100% { opacity: 0;    transform: translateX(40%)  scaleX(1.4); }
}
@media (prefers-reduced-motion: reduce) {
  .burst { animation: none; opacity: 0.7; transform: none; }
}
@keyframes neonFlickerPink {
  0%   { opacity: 0; }
  6%   { opacity: 0; }
  10%  { opacity: 0.32; }
  14%  { opacity: 0; }
  18%  { opacity: 0.60; }
  22%  { opacity: 0.18; }
  28%  { opacity: 0.75; }
  32%  { opacity: 0.32; }
  40%  { opacity: 0.85; }
  44%  { opacity: 0.60; }
  50%  { opacity: 0.85; }
  56%  { opacity: 0.72; }
  100% { opacity: 0.85; }
}
@keyframes neonFlickerCyan {
  0%   { opacity: 0; }
  6%   { opacity: 0; }
  10%  { opacity: 0.40; }
  14%  { opacity: 0; }
  18%  { opacity: 0.70; }
  22%  { opacity: 0.20; }
  28%  { opacity: 0.90; }
  32%  { opacity: 0.40; }
  40%  { opacity: 1;    }
  44%  { opacity: 0.70; }
  50%  { opacity: 1;    }
  56%  { opacity: 0.85; }
  100% { opacity: 1;    }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero-art .layer-pink { animation: none; opacity: 0.78; }
  .page-hero-art .layer-cyan { animation: none; opacity: 1; }
}

/* ── Benefits grid ── */
.benefits { padding: 100px 0 80px; background: var(--bg); }
.benefits-header { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; margin-bottom: 56px; align-items: end; }
.benefits-header .label { color: var(--ink-muted); }
.benefits-header h2 { font-family: var(--font-display); font-size: clamp(36px, 4.5vw, 52px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.05; }
.benefits-header h2 em { color: var(--pink); font-style: normal; }
.benefits-header p { color: var(--ink-muted); font-size: 16px; line-height: 1.7; max-width: 520px; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit-card { background: var(--bg-white); border: 1px solid var(--line); padding: 32px 28px; transition: transform 0.2s, border-color 0.2s; }
.benefit-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.benefit-icon { width: 52px; height: 52px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.benefit-icon i { font-size: 24px; }
.benefit-card:nth-child(1) .benefit-icon { background: var(--pink); }
.benefit-card:nth-child(2) .benefit-icon { background: var(--cyan); color: var(--ink); }
.benefit-card:nth-child(3) .benefit-icon { background: var(--yellow); color: var(--ink); }
.benefit-card:nth-child(4) .benefit-icon { background: var(--pink); }
.benefit-card:nth-child(5) .benefit-icon { background: var(--cyan); color: var(--ink); }
.benefit-card:nth-child(6) .benefit-icon { background: var(--yellow); color: var(--ink); }
.benefit-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.benefit-card p { color: var(--ink-muted); font-size: 14.5px; line-height: 1.65; }

/* ── How it works (numbered steps, dark) ── */
.how { padding: 100px 0; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.how::before { content: ''; position: absolute; top: -100px; left: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(236,30,124,0.12) 0%, transparent 70%); pointer-events: none; z-index: 0; }
.how-stars { position: absolute; inset: 0; background-image: url('../img/stars.svg'); background-size: 480px 480px; background-repeat: repeat; opacity: 0.28; pointer-events: none; z-index: 0; animation: starDrift 180s linear infinite; }
.how-skull-corner { position: absolute; bottom: -60px; right: -50px; width: 240px; opacity: 0.12; transform: rotate(-10deg); pointer-events: none; z-index: 0; }
.how-skull-corner img { width: 100%; height: auto; }
.how .wrap { position: relative; z-index: 1; }
.how-header { text-align: center; margin-bottom: 72px; }
.how-header .label { color: var(--yellow); justify-content: center; }
.how-header h2 { font-family: var(--font-display); font-size: clamp(36px, 4.5vw, 56px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.05; }
.how-header h2 em { color: var(--cyan); font-style: normal; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.how-step { position: relative; }
.how-step-num { font-family: var(--font-display); font-size: 64px; font-weight: 700; letter-spacing: -2px; color: var(--pink); line-height: 1; margin-bottom: 18px; }
.how-step h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.how-step p { color: rgba(255,255,255,0.7); font-size: 15px; line-height: 1.7; }

/* ── Eligibility / Who it's for ── */
.eligibility { padding: 100px 0; background: var(--bg); }
.eligibility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.eligibility-content .label { color: var(--ink-muted); }
.eligibility-content h2 { font-family: var(--font-display); font-size: clamp(34px, 4vw, 48px); font-weight: 700; letter-spacing: -1.2px; line-height: 1.08; margin-bottom: 22px; }
.eligibility-content h2 em { color: var(--pink); font-style: normal; }
.eligibility-content > p { color: var(--ink-muted); font-size: 16px; line-height: 1.7; margin-bottom: 26px; max-width: 480px; }
.eligibility-list { list-style: none; }
.eligibility-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 14px; }
.eligibility-list li:last-child { border-bottom: 0; }
.eligibility-list i { color: var(--pink); font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.eligibility-list strong { display: block; font-family: var(--font-display); font-size: 16px; margin-bottom: 2px; color: var(--ink); }
.eligibility-list span { color: var(--ink-muted); font-size: 14.5px; line-height: 1.55; }
.eligibility-art { aspect-ratio: 1/1; width: 100%; max-width: 460px; justify-self: center; position: relative; }
.eligibility-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* ── Apply / CTA ── */
.apply { padding: 100px 0; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.apply::before { content: ''; position: absolute; top: 40%; right: -160px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(54,182,224,0.15) 0%, transparent 70%); pointer-events: none; z-index: 0; }
.apply-stars { position: absolute; inset: 0; background-image: url('../img/stars.svg'); background-size: 480px 480px; background-repeat: repeat; opacity: 0.28; pointer-events: none; z-index: 0; animation: starDrift 180s linear infinite; }

/* Slow galaxy drift for star backgrounds (matches home page) */
@keyframes starDrift {
  from { background-position: 0 0; }
  to   { background-position: -600px -300px; }
}

/* Twinkling stars overlay (matches home page) */
.hero-twinkle { position: absolute; inset: 0; pointer-events: none; z-index: 1; }






@media (prefers-reduced-motion: reduce) {
  
  .page-hero::before, .how-stars, .apply-stars { animation: none; }
}
.apply-cactus { position: absolute; left: -40px; bottom: -10px; width: 160px; opacity: 0.55; pointer-events: none; transform: rotate(-4deg); z-index: 0; }
.apply-cactus img { width: 100%; height: auto; }
.apply .wrap { position: relative; z-index: 1; text-align: center; }
.apply .label { color: var(--cyan); justify-content: center; }
.apply h2 { font-family: var(--font-display); font-size: clamp(40px, 5.5vw, 64px); font-weight: 700; letter-spacing: -1.8px; line-height: 1.04; margin-bottom: 20px; }
.apply h2 em { color: var(--yellow); font-style: normal; }
.apply p { font-size: 17px; color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 40px; line-height: 1.6; }
.apply-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 960px) {
  .page-hero { padding: 70px 0 90px; }
  .page-hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .page-hero-art { max-width: 340px; justify-self: center; }
  .benefits-header { grid-template-columns: 1fr; gap: 30px; align-items: start; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: 1fr; gap: 40px; }
  .eligibility-grid { grid-template-columns: 1fr; gap: 48px; }
  .eligibility-art { max-width: 360px; }
}
@media (max-width: 560px) {
  .benefits-grid { grid-template-columns: 1fr; }
}
