:root {
  --yellow: #f8d000;
  --yellow-deep: #e8c200;
  --black: #0a0a0a;
  --white: #ffffff;
  --ink-soft: #1c1c1c;
  --muted: #5a5a5a;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  --t: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--yellow);
  color: var(--black);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 3px;
}

/* ───────── Nav ───────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 2.5vw, 28px) clamp(20px, 4vw, 48px);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav__brand img {
  height: clamp(40px, 5.5vw, 56px);
  width: auto;
  border-radius: 10px;
  display: block;
}

.nav__x {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: var(--yellow);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: transform var(--t), background var(--t);
}

.nav__x:hover {
  transform: translateY(-1px);
  background: var(--ink-soft);
}

.nav__x svg {
  flex: 0 0 auto;
}

/* ───────── Hero ───────── */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(24px, 6vw, 80px) clamp(20px, 5vw, 64px);
  max-width: 1100px;
  margin: 0 auto;
}

.hero__title {
  font-family: "Archivo Black", "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(88px, 22vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin: 0;
  position: relative;
  text-transform: uppercase;
}

.hero__r {
  font-size: 0.18em;
  vertical-align: super;
  font-weight: 900;
  margin-left: 0.05em;
  opacity: 0.95;
}

.hero__sub {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 4.5vw, 44px);
  margin: clamp(8px, 1.5vw, 18px) 0 0;
  letter-spacing: -0.01em;
}

.hero__tagline {
  margin: clamp(28px, 4vw, 48px) auto 0;
  max-width: 640px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink-soft);
}

.hero__tagline a {
  font-weight: 700;
}

/* ───────── CTAs ───────── */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(28px, 4vw, 44px);
}

.btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--black);
  background: transparent;
  color: var(--black);
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--t), background var(--t), color var(--t), box-shadow var(--t);
  letter-spacing: -0.005em;
}

.btn:hover {
  background: var(--black);
  color: var(--yellow);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--black);
  color: var(--yellow);
}

.btn--primary:hover {
  background: var(--ink-soft);
  color: var(--yellow);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.btn--full {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  margin-top: 18px;
}

.btn--mini {
  padding: 8px 14px;
  font-size: 13px;
  border-width: 2px;
}

/* ───────── Footer ───────── */

.foot {
  text-align: center;
  padding: 24px clamp(20px, 4vw, 48px) 32px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.foot a {
  text-decoration: none;
  font-weight: 700;
}

.foot a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.foot__dot {
  opacity: 0.5;
}

/* ───────── Modals ───────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade var(--t);
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  max-width: 560px;
  width: 100%;
  max-height: 88dvh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: pop 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 3px solid var(--black);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--black);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-weight: 700;
  transition: background var(--t), color var(--t);
}

.modal__close:hover {
  background: var(--black);
  color: var(--yellow);
}

.modal__title {
  font-family: "Archivo Black", "Inter", sans-serif;
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.modal p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 14px;
}

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

.steps li {
  position: relative;
  padding: 14px 14px 14px 56px;
  margin-bottom: 10px;
  background: #fff7c2;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.5;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--black);
  color: var(--yellow);
  font-family: "Archivo Black", sans-serif;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps--big li {
  padding-top: 18px;
  padding-bottom: 18px;
}

.steps--big strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 800;
}

/* CA box */
.ca-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  color: var(--muted);
}

.ca {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--black);
  color: var(--yellow);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 13px;
  margin-bottom: 6px;
}

.ca code {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca .btn--mini {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

.ca .btn--mini:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
  transform: none;
}

/* Charity list */
.charity-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}

.charity-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: #fff7c2;
}

.charity-list__name {
  font-weight: 800;
  font-size: 15px;
}

.charity-list__cause {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Proof list */
.proof-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 18px;
}

.proof-list li {
  padding: 12px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
  font-size: 14px;
}

.proof-list li:last-child {
  border-bottom: none;
}

.proof-list strong {
  display: block;
  margin-bottom: 2px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

/* FAQ details */
details {
  border: 2px solid var(--black);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 8px;
  background: #fff7c2;
  transition: background var(--t);
}

details[open] {
  background: var(--yellow);
}

details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  font-family: "Archivo Black", sans-serif;
  font-size: 22px;
  line-height: 1;
  transition: transform var(--t);
}

details[open] summary::after {
  content: "−";
}

details p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
}

.fineprint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ───────── Animations ───────── */

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ───────── Mobile tweaks ───────── */

@media (max-width: 520px) {
  .nav__x span {
    display: none;
  }
  .nav__x {
    padding: 10px;
  }
  .cta-row {
    gap: 8px;
  }
  .btn {
    padding: 11px 16px;
    font-size: 14px;
  }
  .charity-list li {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* No-scroll lock when modal open */
body.modal-open {
  overflow: hidden;
}
