@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ────────────────────────────────────────────────────────────
   Ahavas Chaya — design system  (modern blue / dark pill nav)
   ──────────────────────────────────────────────────────────── */

:root {
  /* Brand */
  --blue:        #3B82F6;
  --blue-hover:  #2563EB;
  --blue-deep:   #1D4ED8;
  --blue-soft:   #EFF6FF;
  --blue-tint:   #DBEAFE;

  /* Neutrals */
  --ink-950:  #0B1220;
  --ink-900:  #0F172A;
  --ink-800:  #1E293B;
  --ink-700:  #334155;
  --ink-600:  #475569;
  --ink-500:  #64748B;
  --ink-400:  #94A3B8;
  --ink-300:  #CBD5E1;
  --ink-200:  #E2E8F0;
  --ink-100:  #F1F5F9;
  --ink-50:   #F8FAFC;
  --paper:    #FFFFFF;

  /* Decorative accents */
  --accent-orange: #FB923C;
  --accent-yellow: #FBBF24;
  --accent-rose:   #FB7185;
  --accent-mint:   #34D399;

  /* Layout */
  --container: 1200px;
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm:  0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow:     0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg:  0 24px 60px rgba(15, 23, 42, 0.16);
  --shadow-blue: 0 12px 28px rgba(59, 130, 246, 0.28);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--blue-hover); }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--ink-900);
  margin: 0 0 0.4em;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
h1 {
  font-size: clamp(2.6rem, 5.5vw + 0.5rem, 5.25rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
h2 {
  font-size: clamp(2rem, 2.5vw + 1rem, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
h3 {
  font-size: clamp(1.25rem, 0.8vw + 0.9rem, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
}
p {
  margin: 0 0 1.1em;
  color: var(--ink-700);
}
.lede {
  font-size: clamp(1.1rem, 0.6vw + 0.95rem, 1.3rem);
  line-height: 1.55;
  color: var(--ink-500);
  font-weight: 400;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.muted { color: var(--ink-500); }
.center { text-align: center; }
.hl-blue { color: var(--blue); }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 80px) 0; }
.section-cream { background: var(--ink-50); }
.section-navy {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(59,130,246,0.18) 0%, transparent 60%),
    var(--ink-950);
  color: rgba(255,255,255,0.85);
}
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(255,255,255,0.78); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.95em 1.6em;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: -0.005em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--blue-hover);
  color: #fff;
  box-shadow: 0 16px 36px rgba(59, 130, 246, 0.36);
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink-900);
  border-color: var(--ink-200);
}
.btn-secondary:hover {
  background: var(--ink-50);
  border-color: var(--ink-900);
  color: var(--ink-900);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover { background: #fff; color: var(--ink-900); border-color: #fff; }

.btn-dark {
  background: var(--ink-950);
  color: #fff;
}
.btn-dark:hover { background: var(--ink-800); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  padding: 0.5em 0.4em;
}
.btn-ghost:hover { color: var(--blue-hover); transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.is-stacked {
  flex-direction: column;
  max-width: 480px;
}
.btn-row.is-stacked .btn { width: 100%; padding: 1.1em 1.8em; font-size: 1.02rem; }
@media (min-width: 600px) {
  .btn-row.is-stacked { flex-direction: row; max-width: none; }
  .btn-row.is-stacked .btn { width: auto; }
}

/* ── Header / Floating dark pill nav ───────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 5px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.92) 70%, rgba(255,255,255,0.4));
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.site-header .container {
  position: relative;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink-950);
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  height: 60px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 12px 30px rgba(11, 18, 32, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.brand:hover { color: #fff; }
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  display: inline-block;
  padding: 0.55em 0.95em;
  border-radius: 999px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-links a.is-active { color: #fff; background: rgba(255,255,255,0.1); }
.nav-links .btn {
  background: #fff;
  color: var(--ink-900);
  padding: 0.6em 1.15em;
  font-size: 0.92rem;
  margin-left: 6px;
  box-shadow: none;
}
.nav-links .btn:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  margin: 0 auto;
  border-radius: 2px;
}

@media (min-width: 940px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
}

@media (max-width: 939px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--ink-950);
    border-radius: var(--radius-lg);
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.85em 1em; }
  .nav-links .btn { margin: 8px 0 0; text-align: center; justify-content: center; }
}

/* ── Hero photo split ───────────────────────────────────────── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-split { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.hero-photo-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  max-height: 580px;
  box-shadow: var(--shadow-lg);
  order: -1;
}
@media (min-width: 900px) {
  .hero-photo-wrap { order: 0; max-height: 620px; }
}
.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-photo-badge {
  position: absolute;
  bottom: 22px;
  left: 22px;
  background: rgba(255,255,255,0.96);
  border-radius: 999px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.hero-photo-badge .badge-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-mint);
  flex-shrink: 0;
}
.hero-photo-badge span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

/* ── Feature image (about / wide pages) ────────────────────── */
.feature-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/7;
  margin: 2.5em 0;
}
.feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Photo + text split ────────────────────────────────────── */
.photo-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 880px) {
  .photo-split { grid-template-columns: 1fr 1fr; gap: 60px; }
}
.photo-split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}
.photo-split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 160px) 0 clamp(72px, 10vw, 130px);
  background: var(--paper);
}
.hero-inner {
  position: relative;
  max-width: 980px;
  z-index: 2;
}
.hero h1 { margin-bottom: 0.55em; }
.hero .lede { max-width: 620px; margin-bottom: 2.4em; }
.hero .btn-row { margin-bottom: 2.6em; }

.hero-memorial {
  font-style: italic;
  font-size: 0.98rem;
  color: var(--ink-500);
  border-left: 3px solid var(--blue);
  padding: 0.4em 1em;
  max-width: 620px;
  margin: 0;
}
.hero-memorial .heb {
  display: block;
  margin-top: 0.3em;
  font-style: normal;
  direction: rtl;
  text-align: right;
  font-size: 1rem;
  color: var(--ink-900);
  font-weight: 500;
}

/* Floating accent dots in hero (decorative only) */
.dots { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.dot {
  position: absolute;
  border-radius: 50%;
}
.dot-orange { background: var(--accent-orange); width: 22px; height: 22px; top: 22%; left: 6%; }
.dot-yellow { background: var(--accent-yellow); width: 38px; height: 38px; top: 70%; left: 4%; }
.dot-blue   { background: var(--blue-tint);    width: 64px; height: 64px; top: 18%; right: 6%; }
.dot-blue-2 { background: var(--blue);         width: 14px; height: 14px; top: 72%; right: 18%; opacity: 0.85; }
.dot-rose   { background: var(--accent-rose);  width: 16px; height: 16px; top: 12%; right: 22%; }
@media (max-width: 720px) {
  .dot-orange { top: 6%; left: auto; right: 16%; }
  .dot-yellow { top: 88%; left: 8%; width: 28px; height: 28px; }
  .dot-blue { width: 38px; height: 38px; top: 4%; right: 4%; }
  .dot-blue-2 { display: none; }
  .dot-rose { top: 88%; right: 8%; }
}

/* ── Page header (interior pages) ──────────────────────────── */
.page-header {
  padding: clamp(80px, 9vw, 130px) 0 clamp(40px, 5vw, 70px);
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.page-header h1 {
  font-size: clamp(2.1rem, 3vw + 1rem, 3.6rem);
  margin-bottom: 0.4em;
  font-weight: 900;
  letter-spacing: -0.035em;
}
.page-header .lede { max-width: 680px; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  height: 100%;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--ink-200); transform: translateY(-2px); }
.card h3 { margin-bottom: 0.5em; color: var(--ink-900); }
.card p:last-child { margin-bottom: 0; }
.card a { font-weight: 600; }

.card-step { position: relative; padding-top: 76px; }
.card-step .step-num {
  position: absolute;
  top: 28px;
  left: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: inline-grid;
  place-items: center;
  box-shadow: var(--shadow-blue);
}

.card-feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue-tint);
  color: var(--blue-deep);
  display: inline-grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}

/* ── Donation tiers ─────────────────────────────────────────── */
.tier-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  background: var(--ink-100);
  border-radius: 999px;
  padding: 5px;
  width: fit-content;
}
.tier-tab {
  padding: 0.55em 1.3em;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--ink-500);
  transition: background 0.15s ease, color 0.15s ease;
  letter-spacing: -0.005em;
}
.tier-tab.is-active {
  background: var(--paper);
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}
.tier-tab:hover:not(.is-active) { color: var(--ink-900); }

.tier-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .tier-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .tier-grid { grid-template-columns: repeat(6, 1fr); } }

.tier-card {
  background: var(--ink-900);
  border-radius: var(--radius-lg);
  padding: 28px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
.tier-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
  color: inherit;
}
.tier-card.is-popular {
  background: linear-gradient(155deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: var(--shadow-blue);
  position: relative;
}
.tier-card.is-popular::before {
  content: "Most Popular";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-yellow);
  color: var(--ink-900);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.tier-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.tier-amount {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}
.tier-amount sup {
  font-size: 1.1rem;
  font-weight: 700;
  vertical-align: super;
  letter-spacing: 0;
}
.tier-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
  flex: 1;
}
.tier-btn {
  margin-top: 6px;
  display: block;
  text-align: center;
  padding: 0.65em 0;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.tier-card:hover .tier-btn,
.tier-card.is-popular .tier-btn {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
}

/* ── Monthly tier (featured) ────────────────────────────────── */
.tier-monthly-row {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 20px;
}
@media (min-width: 860px) { .tier-monthly-row { grid-template-columns: 1fr 1fr; } }

.tier-monthly-card {
  background: linear-gradient(155deg, var(--ink-800) 0%, var(--ink-950) 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  border: 2px solid rgba(255,255,255,0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.tier-monthly-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-blue);
  color: inherit;
}
.tier-monthly-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-blue);
}
.tier-monthly-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.tier-monthly-card p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin: 0;
}

/* ── Custom amount frequency toggle ────────────────────────── */
.custom-freq-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.custom-freq-opt {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.custom-freq-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.custom-freq-opt span {
  display: inline-block;
  padding: 0.5em 1.1em;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid var(--ink-200);
  color: var(--ink-500);
  background: var(--ink-50);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  user-select: none;
}
.custom-freq-opt input[type="radio"]:checked + span {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.custom-freq-opt:hover span { border-color: var(--blue); color: var(--blue); }
.custom-freq-opt input[type="radio"]:checked + span { color: #fff; }
.custom-freq-opt input[type="radio"]:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ── Custom amount input ────────────────────────────────────── */
.custom-amount-box {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.custom-amount-box h3 {
  margin-bottom: 6px;
  font-size: 1.2rem;
}
.custom-amount-box p {
  color: var(--ink-500);
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.custom-amount-field {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.custom-amount-wrap {
  position: relative;
  flex: 1;
}
.custom-amount-wrap::before {
  content: "$";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-700);
  pointer-events: none;
}
.custom-amount-input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 32px;
  border: 1.5px solid var(--ink-200);
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--ink-50);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -moz-appearance: textfield;
}
.custom-amount-input::-webkit-inner-spin-button,
.custom-amount-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.custom-amount-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  background: var(--paper);
}
.custom-amount-input::placeholder { color: var(--ink-400); font-weight: 400; }

/* ── Secure checkout banner ─────────────────────────────────── */
.secure-checkout {
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 20px 28px 22px;
  margin-top: 36px;
}
.secure-checkout-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.secure-checkout-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.97rem;
  color: var(--ink-900);
}
.secure-checkout-title svg { flex-shrink: 0; }
.secure-checkout-title strong { font-weight: 700; }
.secure-stripe-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink-900);
  color: #fff;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 400;
  white-space: nowrap;
}
.secure-stripe-badge strong {
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  letter-spacing: -0.03em;
}
.secure-divider {
  border: none;
  border-top: 1px solid var(--ink-200);
  margin: 16px 0;
}
.secure-cards {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.secure-cancel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-600);
}
.secure-cancel svg {
  flex-shrink: 0;
  opacity: 0.6;
}
.card-badge {
  height: 32px;
  min-width: 48px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink-200);
  background: var(--paper);
  padding: 0 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.card-visa     { color: #1A1F71; font-size: 0.85rem; letter-spacing: 0.05em; }
.card-amex     { background: #007BC1; color: #fff; border-color: #007BC1; }
.card-jcb      { background: linear-gradient(135deg, #003087 33%, #cc0000 33%, #cc0000 66%, #009f6b 66%); color: #fff; border-color: transparent; }
.card-discover { color: #FF6600; font-size: 0.62rem; letter-spacing: 0.04em; }
.card-diners   { color: #004B87; font-size: 0.65rem; }
.card-unionpay { background: #c0392b; color: #fff; border-color: #c0392b; font-size: 0.6rem; letter-spacing: 0.02em; }
/* Mastercard — overlapping circles */
.card-mc {
  gap: 0;
  padding: 0 8px;
}
.mc-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
.mc-red    { background: #EB001B; margin-right: -7px; }
.mc-orange { background: #F79E1B; }


.donate-cards { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .donate-cards { grid-template-columns: 1fr 1fr; } }

.donate-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.donate-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.donate-card.is-featured {
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(255,255,255,0.16) 0%, transparent 60%),
    linear-gradient(155deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}
.donate-card.is-featured h3,
.donate-card.is-featured p { color: #fff; }
.donate-card.is-featured p { color: rgba(255,255,255,0.85); }

.donate-card .donate-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1em;
}
.donate-card .donate-tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.donate-card.is-featured .donate-tag { color: #fff; }
.donate-card.is-featured .donate-tag::before { background: #fff; }

.donate-card h3 { font-size: 1.85rem; margin-bottom: 0.2em; font-weight: 800; letter-spacing: -0.02em; }
.donate-card .donate-amount {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 1em;
  color: var(--ink-500);
}
.donate-card.is-featured .donate-amount { color: rgba(255,255,255,0.85); }
.donate-card ul {
  list-style: none;
  padding: 0;
  margin: 1em 0 1.8em;
  font-size: 0.96rem;
}
.donate-card ul li {
  padding: 0.45em 0 0.45em 1.7em;
  position: relative;
  color: var(--ink-700);
}
.donate-card.is-featured ul li { color: rgba(255,255,255,0.88); }
.donate-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: rotate(-45deg);
  border-radius: 1px;
}
.donate-card.is-featured ul li::before {
  border-color: #fff;
}
.donate-card .btn { align-self: flex-start; margin-top: auto; }
.donate-card.is-featured .btn-secondary {
  background: #fff;
  color: var(--blue-deep);
  border-color: #fff;
}
.donate-card.is-featured .btn-secondary:hover {
  background: var(--ink-50);
  color: var(--blue-deep);
  border-color: #fff;
}

/* ── Prose pages ────────────────────────────────────────────── */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h2 { margin-top: 1.8em; font-weight: 800; }
.prose h3 { margin-top: 1.6em; font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; color: var(--ink-700); }
.prose blockquote {
  margin: 1.5em 0;
  padding: 1.2em 1.5em;
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 500;
  color: var(--ink-900);
}
.prose hr { border: 0; border-top: 1px solid var(--ink-100); margin: 2.5em 0; }
.prose a {
  text-decoration: underline;
  text-decoration-color: rgba(59,130,246,0.4);
  text-underline-offset: 3px;
  font-weight: 500;
}

/* ── Checklist (eligibility) ────────────────────────────────── */
.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5em 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding: 18px 22px 18px 60px;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  color: var(--ink-900);
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.checklist li:hover { border-color: var(--blue-tint); box-shadow: var(--shadow-sm); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 50%;
  width: 14px;
  height: 7px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: translateY(-65%) rotate(-45deg);
}

/* ── FAQ accordion ──────────────────────────────────────────── */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 4px 26px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq details[open] { box-shadow: var(--shadow); border-color: var(--ink-200); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--blue);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq .faq-body { padding: 0 0 22px; color: var(--ink-700); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ── CTA banner ─────────────────────────────────────────────── */
.cta-banner {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(59,130,246,0.32) 0%, transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(255,255,255,0.05) 0%, transparent 70%),
    var(--ink-950);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 70px);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.cta-banner h2 { color: #fff; max-width: 640px; }
.cta-banner p { color: rgba(255,255,255,0.78); max-width: 640px; }
@media (min-width: 760px) {
  .cta-banner { flex-direction: row; align-items: center; justify-content: space-between; }
  .cta-banner > div { flex: 1; }
}

/* ── Info row / contact ─────────────────────────────────────── */
.info-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 1.5em; }
@media (min-width: 720px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
.info-tile {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.info-tile:hover { border-color: var(--blue-tint); box-shadow: var(--shadow-sm); }
.info-tile h4 { color: var(--ink-500); margin-bottom: 8px; font-size: 0.74rem; letter-spacing: 0.16em; }
.info-tile a, .info-tile p {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin: 0;
  text-decoration: none;
}
.info-tile a:hover { color: var(--blue); }
.info-tile p { font-weight: 500; line-height: 1.4; font-size: 1.05rem; }

/* ── Trust list (vertical — used inside 2-col grid) ─────────── */
.trust-list {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.trust-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
}
.trust-list-item + .trust-list-item {
  border-top: 1px solid var(--ink-100);
}
.trust-list-item strong {
  display: block;
  font-weight: 700;
  color: var(--ink-900);
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 2px;
}
.trust-list-item span {
  font-size: 0.9rem;
  color: var(--ink-500);
}

/* ── Trust strip ────────────────────────────────────────────── */
.trust-strip {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 36px;
}
@media (min-width: 760px) { .trust-strip { grid-template-columns: repeat(3, 1fr); } }
.trust-strip > div { display: flex; align-items: center; gap: 14px; }
.trust-strip strong { font-weight: 700; color: var(--ink-900); font-size: 1.02rem; letter-spacing: -0.01em; }
.trust-strip span { font-size: 0.9rem; color: var(--ink-500); }
.trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue-deep);
  display: inline-grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink-950);
  color: rgba(255,255,255,0.72);
  padding: 80px 0 40px;
  margin-top: 80px;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand:hover { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.95rem; max-width: 320px; }

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a {
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
}
.site-footer a:hover { color: var(--blue); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.5);
}
@media (min-width: 720px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ── Misc ──────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Mobile refinements (≤ 480px) ──────────────────────────── */
@media (max-width: 480px) {
  /* Stack donation amount input + button vertically */
  .custom-amount-field {
    flex-direction: column;
  }
  .custom-amount-field .btn {
    width: 100%;
    justify-content: center;
    border-radius: 999px !important;
    height: auto !important;
    padding: 0.95em 1.6em !important;
  }

  /* Reduce tier card padding so 2-col fits comfortably */
  .tier-card {
    padding: 20px 14px 18px;
  }
  .tier-amount {
    font-size: 1.9rem;
  }

  /* Reduce card and donate-card padding */
  .card { padding: 22px 18px; }
  .card-step { padding: 76px 18px 22px; } /* preserve top space for step number */
  .card-step .step-num { left: 18px; }
  .donate-card { padding: 28px 22px; }
  .custom-amount-box { padding: 22px 18px; }
  .tier-monthly-card { padding: 22px 18px; }
  .cta-banner { padding: 28px 22px; }
  .trust-strip { padding: 20px 20px; }

  /* Single-column tier grid on very small screens */
  .tier-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
