/* ============================================
   STOP THE DEATH PENALTY LAW — Campaign Styles
   Bold, editorial, high-contrast design
   ============================================ */

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

:root {
  --black: #000000;
  --white: #FFFFFF;
  --red: #CC0000;
  --off-white: #F5F5F0;
  --red-dark: #990000;
  --gray: #333333;
  --gray-light: #666666;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  color: var(--black);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes countPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.animate-in {
  animation: fadeInUp 0.8s ease-out both;
}

.animate-in:nth-child(2) { animation-delay: 0.15s; }
.animate-in:nth-child(3) { animation-delay: 0.3s; }
.animate-in:nth-child(4) { animation-delay: 0.45s; }
.animate-in:nth-child(5) { animation-delay: 0.6s; }

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Hero Section
   ============================================ */

#hero {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 100px 24px 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  max-width: 700px;
  margin: 0 auto 48px;
  color: #ccc;
  line-height: 1.5;
  font-weight: 400;
}

.counter-box {
  margin-bottom: 48px;
}

#counter-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--red);
  line-height: 1.1;
}

#counter-number.pulse {
  animation: countPulse 0.4s ease-out;
}

.counter-label {
  display: block;
  font-size: 1.1rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 8px;
}

/* ============================================
   Send Button
   ============================================ */

.send-button {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 20px 56px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 24px rgba(204, 0, 0, 0.4);
}

.send-button:hover:not(:disabled) {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(204, 0, 0, 0.6);
}

.send-button:active:not(:disabled) {
  transform: translateY(0);
}

.send-button:disabled {
  cursor: default;
  opacity: 0.9;
}

.send-button.sent {
  background: #1a7a1a;
  box-shadow: 0 4px 24px rgba(26, 122, 26, 0.4);
}

.send-status {
  margin-top: 16px;
  font-size: 1rem;
  min-height: 1.5em;
}

.send-status.success {
  color: #4caf50;
}

.send-status.error {
  color: var(--red);
}

/* ============================================
   Donate Section
   ============================================ */

.donate-box {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.donate-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.donate-text {
  font-size: 1.05rem;
  color: #aaa;
  margin-bottom: 28px;
}

/* Amount buttons */
.donate-amounts {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.amount-btn {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 12px 24px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 72px;
}

.amount-btn:hover {
  border-color: var(--white);
}

.amount-btn.active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.amount-custom {
  display: flex;
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0 12px;
  transition: border-color 0.15s ease;
}

.amount-custom:focus-within {
  border-color: var(--white);
}

.amount-currency {
  color: #999;
  font-size: 1.05rem;
  font-weight: 700;
}

#custom-amount {
  background: transparent;
  border: none;
  color: var(--white);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  width: 80px;
  padding: 12px 8px;
  outline: none;
  -moz-appearance: textfield;
}

#custom-amount::placeholder {
  color: #666;
}

#custom-amount::-webkit-outer-spin-button,
#custom-amount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Payment methods */
.donate-methods {
  margin-top: 8px;
}

#card-element {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 14px 16px;
  border-radius: 0;
  transition: border-color 0.2s ease;
}

#card-element.StripeElement--focus {
  border-color: var(--white);
}

#card-element.StripeElement--invalid {
  border-color: var(--red);
}

.stripe-pay-button {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: var(--white);
  color: var(--black);
  border: none;
  padding: 16px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.stripe-pay-button:hover:not(:disabled) {
  background: #e0e0e0;
  transform: translateY(-1px);
}

.stripe-pay-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.stripe-pay-button.success {
  background: #1a7a1a;
  color: var(--white);
}

/* Donate status */
.donate-status {
  margin-top: 16px;
  font-size: 0.95rem;
  min-height: 1.4em;
}

.donate-status.success {
  color: #4caf50;
}

.donate-status.error {
  color: var(--red);
}

/* ============================================
   What Happened Section
   ============================================ */

#what-happened {
  padding: 100px 24px;
  background: var(--off-white);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: 56px;
  line-height: 1.15;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.fact-card {
  background: var(--white);
  border: 2px solid var(--black);
  padding: 32px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fact-card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 var(--black);
}

.fact-number {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--red);
  margin-bottom: 12px;
  line-height: 1.1;
}

.fact-card p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.5;
}

/* ============================================
   Who Condemned It Section
   ============================================ */

#who-condemned {
  padding: 100px 24px;
  background: var(--black);
  color: var(--white);
}

#who-condemned .section-title {
  color: var(--white);
}

.condemners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.condemner {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 16px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.2s ease, color 0.2s ease;
}

.condemner:hover {
  background: var(--red);
  border-color: var(--red);
}

/* ============================================
   Recipients Section
   ============================================ */

#recipients {
  padding: 100px 24px;
  background: var(--off-white);
}

.recipients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.recipient-group {
  background: var(--white);
  border: 2px solid var(--black);
  padding: 28px;
}

.recipient-group h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--red);
}

.recipient-group ul {
  list-style: none;
}

.recipient-group li {
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--gray);
  border-bottom: 1px solid #eee;
}

.recipient-group li:last-child {
  border-bottom: none;
}

/* ============================================
   The Email Section
   ============================================ */

#the-email {
  padding: 100px 24px;
  background: var(--black);
  color: var(--white);
}

#the-email .section-title {
  color: var(--white);
}

.email-card {
  background: var(--white);
  color: var(--black);
  max-width: 800px;
  margin: 0 auto;
  border: 3px solid var(--red);
}

.email-header {
  background: var(--off-white);
  padding: 20px 28px;
  border-bottom: 2px solid #ddd;
  font-size: 0.95rem;
}

.email-label {
  font-weight: 700;
  margin-right: 8px;
}

.email-body {
  padding: 32px 28px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.email-body p {
  margin-bottom: 16px;
}

.email-body ul,
.email-body ol {
  margin: 0 0 16px 24px;
}

.email-body li {
  margin-bottom: 8px;
}

/* ============================================
   Bottom CTA Section
   ============================================ */

#cta-bottom {
  padding: 80px 24px;
  background: var(--red);
  color: var(--white);
  text-align: center;
}

#cta-bottom h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 32px;
}

.send-button-bottom {
  background: var(--black);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.send-button-bottom:hover {
  background: var(--gray);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.6);
}

/* ============================================
   Footer
   ============================================ */

#footer {
  background: var(--black);
  color: #999;
  padding: 48px 24px;
  text-align: center;
}

.footer-message {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #ccc;
}

.footer-sources {
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.footer-sources span {
  color: #666;
}

.footer-sources a {
  color: #999;
  text-decoration: none;
  border-bottom: 1px solid #444;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-sources a:hover {
  color: var(--white);
  border-color: var(--white);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  #hero {
    padding: 80px 20px 60px;
  }

  .send-button {
    padding: 18px 40px;
    font-size: 1.1rem;
  }

  .facts-grid {
    grid-template-columns: 1fr;
  }

  .condemners-row {
    flex-direction: column;
    align-items: center;
  }

  .condemner {
    width: 100%;
    max-width: 400px;
  }

  .recipients-grid {
    grid-template-columns: 1fr;
  }

  .email-body {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2.5rem;
  }

  #counter-number {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .send-button {
    padding: 16px 32px;
    font-size: 1rem;
    width: 100%;
  }

  .donate-amounts {
    gap: 8px;
  }

  .amount-btn {
    padding: 10px 18px;
    font-size: 0.95rem;
    min-width: 60px;
  }

  #custom-amount {
    width: 60px;
  }
}
