:root {
  --bg: oklch(1 0 0);
  --surface: oklch(0.9733 0.0041 157.18);
  --surface-strong: oklch(0.93 0.016 172);
  --ink: oklch(0.2982 0.034 183.33);
  --muted: oklch(0.47 0.026 172);
  --primary: oklch(0.6545 0.1678 142.25);
  --primary-hover: oklch(0.72 0.145 135);
  --primary-dark: oklch(0.2616 0.0353 180.04);
  --primary-light: oklch(0.8327 0.1358 130.42);
  --hope: oklch(0.8327 0.1358 130.42);
  --hope-pale: oklch(0.945 0.055 135);
  --hope-ink: oklch(0.2982 0.034 183.33);
  --teal: oklch(0.7803 0.1075 180.01);
  --white: oklch(1 0 0);
  --line: oklch(0.86 0.015 172);
  --danger: oklch(0.48 0.18 25);
  --shadow-sm: 0 1px 2px oklch(0.2 0.03 180 / 0.08), 0 6px 18px oklch(0.2 0.03 180 / 0.06);
  --shadow-lg: 0 22px 70px oklch(0.2 0.03 180 / 0.18);
  --radius-sm: 0.55rem;
  --radius-md: 1rem;
  --radius-lg: 1.55rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --content: 76rem;
  --z-sticky: 20;
  --z-backdrop: 40;
  --z-modal: 50;
  --z-toast: 60;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Open Sans", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, oklch(0.6545 0.1678 142.25 / 0.075) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black, transparent 44rem);
  content: "";
  pointer-events: none;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Montserrat", "Open Sans", sans-serif;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.45rem;
  font-size: clamp(3.25rem, 7.5vw, 5.8rem);
  font-weight: 800;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.15rem, 4.8vw, 4rem);
  font-weight: 700;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.32rem;
  font-weight: 700;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--hope);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: var(--z-toast);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 3rem), var(--content));
  min-height: 5.5rem;
  margin: 0 auto;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.brand-logo {
  width: 8.65rem;
  height: auto;
}

.brand-campaign {
  border-left: 1px solid var(--line);
  padding-left: 0.85rem;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-header nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.site-header nav a,
.text-button,
.footer-links a {
  border: 0;
  padding: 0.25rem 0;
  background: none;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms ease;
}

.site-header nav a:hover,
.text-button:hover,
.footer-links a:hover {
  color: var(--primary);
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.82rem 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button:hover {
  transform: translateY(-2px);
}

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

.button-primary {
  background: var(--primary);
  color: var(--primary-dark);
  box-shadow: 0 7px 24px oklch(0.6545 0.1678 142.25 / 0.23);
}

.button-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 10px 30px oklch(0.6545 0.1678 142.25 / 0.3);
}

.button-secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--primary-dark);
}

.button-secondary:hover {
  border-color: var(--primary-light);
  background: var(--surface);
}

.button-dark {
  background: var(--primary-dark);
  color: var(--white);
}

.button-dark:hover {
  background: oklch(0.34 0.055 178);
}

.button-small {
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: none;
}

.button-small:hover {
  background: var(--primary);
  color: var(--primary-dark);
}

.button-wide {
  width: 100%;
  min-height: 3.65rem;
}

.button-light {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 10px 35px oklch(0.12 0 0 / 0.12);
}

.button-light:hover {
  background: var(--hope-pale);
}

.campaign-label,
.section-marker {
  margin-bottom: 1.05rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  min-height: calc(100svh - 5.5rem);
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 6.5rem) max(1.5rem, calc((100vw - var(--content)) / 2));
  place-items: center;
  background: var(--primary-dark);
}

.hero-background,
.hero-shade {
  position: absolute;
  height: 100%;
}

.hero-background {
  inset: 0 0 0 auto;
  z-index: -2;
  width: 78%;
  max-width: none;
  object-fit: cover;
  object-position: center 24%;
}

.hero-shade {
  inset: 0;
  z-index: -1;
  width: 100%;
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-dark) 24%, oklch(0.2616 0.0353 180.04 / 0.9) 48%, oklch(0.2616 0.0353 180.04 / 0.34) 100%);
}

.hero-grid {
  display: grid;
  width: min(100%, var(--content));
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 25rem);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.hero-copy {
  width: min(100%, 40rem);
  border: 1px solid oklch(0.8327 0.1358 130.42 / 0.34);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.6vw, 2.8rem);
  background: oklch(0.2616 0.0353 180.04 / 0.96);
  color: var(--white);
  box-shadow: 0 30px 90px oklch(0.12 0.03 180 / 0.38);
  animation: copy-in 760ms var(--ease-out) both;
}

.value-lockup {
  display: flex;
  max-width: 31rem;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.value-lockup img {
  width: 6.25rem;
  height: 6.25rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.value-lockup p {
  margin: 0;
  color: oklch(1 0 0 / 0.78);
  font-size: 0.92rem;
}

.value-lockup .value-name {
  margin-bottom: 0.2rem;
  color: var(--primary-light);
  font-family: "Montserrat", "Open Sans", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(3rem, 5.5vw, 5rem);
}

.hero-intro {
  max-width: 60ch;
  margin-bottom: 1.85rem;
  color: oklch(1 0 0 / 0.82);
  font-size: clamp(1.13rem, 2vw, 1.32rem);
  line-height: 1.65;
}

.match-band {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  background: var(--hope-pale);
  color: var(--hope-ink);
}

.match-band p {
  margin: 0;
}

.match-icon {
  display: grid;
  flex: 0 0 2.45rem;
  height: 2.45rem;
  place-items: center;
  border-radius: 50%;
  background: var(--hope-ink);
  color: var(--white);
}

.match-icon svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions .button {
  min-height: 3.4rem;
}

.hero-copy .button-secondary {
  border-color: oklch(1 0 0 / 0.5);
  background: transparent;
  color: var(--white);
}

.hero-copy .button-secondary:hover {
  border-color: var(--primary-light);
  background: oklch(1 0 0 / 0.08);
}

.privacy-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-copy .privacy-note {
  color: oklch(1 0 0 / 0.66);
}

.campaign-card {
  width: 100%;
  max-height: min(47rem, calc(100svh - 8rem));
  overflow: auto;
  border: 1px solid oklch(1 0 0 / 0.52);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: oklch(1 0 0 / 0.97);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  scrollbar-width: thin;
}

.progress-summary {
  display: grid;
  align-items: center;
  grid-template-columns: 5.2rem 1fr;
  gap: 1rem;
  padding-bottom: 1.25rem;
}

.progress-ring {
  --progress: 0;
  position: relative;
  display: grid;
  width: 5.2rem;
  height: 5.2rem;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--progress) * 1%), var(--surface-strong) 0);
  color: var(--primary-dark);
  font-family: "Montserrat", "Open Sans", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
}

.progress-ring::before {
  position: absolute;
  inset: 0.65rem;
  border-radius: inherit;
  background: var(--white);
  content: "";
}

.progress-ring span {
  position: relative;
  z-index: 1;
}

.raised-amount,
.goal-label,
.donation-count {
  margin: 0;
  line-height: 1.35;
}

.raised-amount {
  font-size: 1.22rem;
}

.raised-amount strong {
  display: inline;
  color: var(--primary-dark);
  font-family: "Montserrat", "Open Sans", sans-serif;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  letter-spacing: -0.04em;
}

.goal-label,
.donation-count {
  color: var(--muted);
}

.goal-label {
  font-size: 1.03rem;
}

.donation-count {
  margin-top: 0.2rem;
  font-size: 0.9rem;
}

.campaign-card-actions {
  display: grid;
  gap: 0.7rem;
  padding-bottom: 1.45rem;
  border-bottom: 1px solid var(--line);
}

.match-impact {
  margin: 0 0 1rem;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  background: var(--hope-pale);
  color: var(--hope-ink);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.campaign-card-actions .button {
  border-radius: 999px;
}

.supporters-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.35rem 0 0.9rem;
}

.supporters-heading h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.live-dot {
  width: 0.65rem;
  height: 0.65rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0.3rem oklch(0.6545 0.1678 142.25 / 0.13);
}

.supporters-status {
  min-height: 4rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.92rem;
}

.recent-supporters {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.2rem;
  list-style: none;
}

.supporter {
  display: grid;
  align-items: center;
  grid-template-columns: 2.65rem 1fr auto;
  gap: 0.75rem;
  padding: 0.72rem 0.25rem;
  border-bottom: 1px solid var(--surface-strong);
}

.supporter:last-child {
  border-bottom: 0;
}

.supporter-avatar {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary-dark);
  font-family: "Montserrat", "Open Sans", sans-serif;
  font-weight: 800;
}

.supporter-name,
.supporter-meta,
.supporter-amount {
  margin: 0;
  line-height: 1.35;
}

.supporter-name,
.supporter-amount {
  font-weight: 700;
}

.supporter-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.supporter-amount {
  color: var(--primary-dark);
  font-size: 0.94rem;
}

.supporter-privacy {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.donation-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.82fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  padding: clamp(4rem, 8vw, 7.5rem) max(1.5rem, calc((100vw - var(--content)) / 2));
  background: var(--surface);
}

.donation-copy {
  align-self: center;
}

.donation-copy > p:not(.section-marker) {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.12rem;
}

.impact-calculator {
  max-width: 34rem;
  margin-top: 2rem;
}

.impact-calculator label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-weight: 650;
}

.amount-input {
  display: grid;
  overflow: hidden;
  min-height: 4rem;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.amount-input:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.amount-input span {
  padding: 0 1rem;
  color: var(--muted);
  font-weight: 670;
}

.amount-input span:first-child {
  padding-right: 0;
  color: var(--ink);
  font-size: 1.7rem;
}

.amount-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0.85rem 0.55rem;
  background: transparent;
  color: var(--ink);
  font-size: 1.75rem;
  font-weight: 700;
}

#match-result {
  margin: 0.7rem 0 0;
  color: var(--hope-ink);
}

.calculator-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.checkout-panel {
  align-self: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.checkout-heading {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.checkout-heading p {
  margin: 0;
  color: var(--muted);
}

.secure-icon {
  display: grid;
  flex: 0 0 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary);
}

.secure-icon svg {
  width: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 1.15rem 0;
  padding: 0;
  list-style: none;
}

.payment-methods li {
  display: flex;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
}

.payment-logo {
  width: auto;
  height: 100%;
}

.payment-method-google {
  width: 5.25rem;
  height: 2.5rem;
  overflow: hidden;
}

.payment-logo-google {
  max-width: none;
  height: 185%;
}

.checkout-fineprint {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.story-section,
.funds-section,
.trust-section {
  width: min(calc(100% - 3rem), var(--content));
  margin: 0 auto;
}

.story-section {
  display: grid;
  padding: clamp(5.5rem, 10vw, 10rem) 0;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.story-heading h2 {
  max-width: 12ch;
}

.story-body {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.story-body > p {
  max-width: 64ch;
}

blockquote {
  margin: 3rem 0 0;
  border: 1px solid var(--primary-light);
  border-width: 0 0 0 0.45rem;
  border-radius: 0;
  padding: 1.2rem 0 1.2rem 1.6rem;
  background: transparent;
  color: var(--primary-dark);
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  font-weight: 630;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.funds-section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  border-top: 1px solid var(--line);
}

.funds-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  gap: 2rem;
}

.funds-intro h2 {
  max-width: 12ch;
  margin: 0;
}

.funds-intro p {
  max-width: 35rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.funds-flow {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}

.funds-flow li {
  position: relative;
  display: flex;
  gap: 1rem;
  padding-right: clamp(1.5rem, 4vw, 4rem);
}

.funds-flow li:not(:last-child)::after {
  position: absolute;
  top: 1.3rem;
  right: 1.2rem;
  left: 3.9rem;
  height: 1px;
  background: var(--primary-light);
  content: "";
}

.step-number {
  display: grid;
  position: relative;
  z-index: 1;
  flex: 0 0 2.65rem;
  height: 2.65rem;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-dark);
  font-weight: 800;
}

.funds-flow p {
  max-width: 28ch;
  margin: 0;
  color: var(--muted);
}

.trust-section {
  display: grid;
  padding: clamp(5rem, 9vw, 8rem) 0;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.trust-section > div:first-child {
  align-self: start;
  position: sticky;
  top: 3rem;
}

.trust-section > div > p {
  color: var(--muted);
}

.trust-list {
  margin: 0;
}

.trust-list > div {
  display: grid;
  padding: 1.5rem 0;
  grid-template-columns: minmax(10rem, 0.65fr) minmax(0, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
}

.trust-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.trust-list dt {
  color: var(--ink);
  font-weight: 680;
}

.trust-list dd {
  margin: 0;
  color: var(--muted);
}

.closing-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 max(1.5rem, calc((100vw - var(--content)) / 2)) clamp(4rem, 8vw, 7rem);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4.5rem);
  border-left: 0.55rem solid var(--primary);
  background: var(--primary-dark);
  color: var(--white);
  gap: 2rem;
}

.closing-section h2 {
  max-width: 17ch;
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 4.3vw, 3.5rem);
}

.closing-section p {
  margin: 0;
  color: oklch(1 0 0 / 0.76);
  font-size: 1.08rem;
}

.closing-section .closing-kicker {
  margin-bottom: 0.65rem;
  color: var(--primary-light);
  font-family: "Montserrat", "Open Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.closing-section .button {
  flex: 0 0 auto;
  min-height: 3.5rem;
  padding-inline: 1.5rem;
}

footer {
  display: grid;
  width: min(calc(100% - 3rem), var(--content));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

footer p {
  margin: 0;
  text-align: center;
}

.footer-brand {
  color: var(--ink);
}

.footer-brand .brand-logo {
  width: 7.5rem;
}

.mobile-donate-bar {
  display: none;
}

dialog {
  width: min(calc(100% - 2rem), 34rem);
  max-height: min(90svh, 48rem);
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

dialog::backdrop {
  background: oklch(0.12 0.02 180 / 0.72);
  backdrop-filter: blur(4px);
}

dialog[open] {
  animation: dialog-in 260ms var(--ease-out) both;
}

.dialog-inner {
  position: relative;
  overflow-y: auto;
  max-height: min(90svh, 48rem);
  padding: clamp(1.6rem, 5vw, 2.75rem);
}

.dialog-inner h2 {
  padding-right: 2rem;
  font-size: clamp(2rem, 6vw, 2.8rem);
}

.dialog-inner ol {
  display: grid;
  margin: 1.5rem 0;
  padding-left: 1.35rem;
  gap: 0.75rem;
}

.dialog-note {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.93rem;
}

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
}

.dialog-close:hover {
  background: var(--surface);
  color: var(--primary);
}

.dialog-close svg {
  width: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: var(--z-toast);
  max-width: calc(100% - 2rem);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition: opacity 180ms ease, transform 180ms var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.thanks-page {
  min-height: 100svh;
  background: var(--surface);
}

.thanks-main {
  display: grid;
  width: min(calc(100% - 2rem), 48rem);
  min-height: 100svh;
  margin: 0 auto;
  padding: 2rem 0;
  align-content: center;
  gap: 2rem;
}

.thanks-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 7vw, 4.5rem);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.thanks-card h1 {
  max-width: 13ch;
  font-size: clamp(2.75rem, 8vw, 4.8rem);
}

.thanks-card > p:not(.campaign-label, .privacy-note) {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.12rem;
}

.thanks-icon {
  display: grid;
  width: 3.75rem;
  height: 3.75rem;
  margin-bottom: 1.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--hope-pale);
  color: var(--hope-ink);
}

.thanks-icon svg {
  width: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
}

@keyframes image-in {
  from {
    opacity: 0;
    clip-path: inset(8% 0 0 0 round var(--radius-lg));
    transform: translateY(1.75rem) scale(0.985);
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(0.6rem) scale(0.98);
  }
}

@media (max-width: 64rem) {
  .site-header nav {
    display: none;
  }

  .hero {
    min-height: 46rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 21rem);
    gap: 1.5rem;
  }

  .donation-section {
    gap: 3rem;
  }

  .funds-flow {
    gap: 2rem;
  }

  .funds-flow li {
    display: block;
    padding: 0;
  }

  .funds-flow li:not(:last-child)::after {
    display: none;
  }

  .step-number {
    margin-bottom: 1rem;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer p {
    display: none;
  }
}

@media (max-width: 47.99rem) {
  body {
    padding-bottom: 5.25rem;
  }

  html {
    scroll-padding-top: 1rem;
  }

  .site-header {
    width: min(calc(100% - 2rem), var(--content));
    min-height: 4.7rem;
  }

  .site-header > .button {
    display: none;
  }

  .brand-logo {
    width: 7.6rem;
  }

  .brand-campaign {
    max-width: 6rem;
    font-size: 0.68rem;
  }

  .hero,
  .story-section,
  .funds-section,
  .trust-section,
  footer {
    width: min(calc(100% - 2rem), var(--content));
  }

  .hero {
    width: 100%;
    min-height: 0;
    padding: 31rem 1rem 3rem;
    align-items: flex-start;
  }

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

  .hero-background {
    inset: 0;
    width: 100%;
    height: 100%;
    object-position: center top;
  }

  .hero-shade {
    background: linear-gradient(180deg, transparent 0%, oklch(0.22 0.035 180 / 0.2) 34%, oklch(0.22 0.04 180 / 0.8) 58%, oklch(0.22 0.04 180 / 0.96) 100%);
  }

  .hero-copy {
    width: 100%;
    padding: 1.4rem;
  }

  .campaign-card {
    max-height: none;
    padding: 1.25rem;
  }

  .value-lockup img {
    width: 5.25rem;
    height: 5.25rem;
  }

  h1 {
    font-size: clamp(2.7rem, 12.5vw, 4rem);
  }

  h2 {
    font-size: clamp(2.15rem, 10.5vw, 3.2rem);
  }

  .hero-intro {
    font-size: 1.1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .donation-section {
    padding: 4.5rem 1rem;
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .checkout-panel {
    padding: 1.25rem;
  }

  .story-section {
    padding: 5rem 0;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .story-heading h2 {
    max-width: 13ch;
  }

  .funds-intro {
    display: block;
  }

  .funds-intro h2 {
    margin-bottom: 1rem;
  }

  .funds-flow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .funds-flow li {
    display: grid;
    padding: 0 0 2rem;
    grid-template-columns: auto 1fr;
    gap: 1rem;
  }

  .funds-flow li:not(:last-child)::after {
    display: block;
    top: 2.65rem;
    bottom: 0;
    left: 1.3rem;
    width: 1px;
    height: auto;
  }

  .funds-flow p {
    max-width: 38ch;
  }

  .trust-section {
    padding: 4.5rem 0 5.5rem;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .trust-section > div:first-child {
    position: static;
  }

  .trust-list > div {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .closing-section {
    display: block;
    margin: 0 1rem 4rem;
    padding: 2rem 1.3rem;
  }

  .closing-section .button {
    width: 100%;
    margin-top: 1.5rem;
  }

  footer {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .mobile-donate-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: var(--z-sticky);
    display: flex;
    min-height: 4.65rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--line);
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
    background: oklch(1 0 0 / 0.96);
    box-shadow: 0 -8px 30px oklch(0.2 0.03 180 / 0.1);
    backdrop-filter: blur(10px);
  }

  .mobile-donate-bar span {
    display: grid;
    line-height: 1.2;
  }

  .mobile-donate-bar small {
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.75rem;
  }

  .mobile-donate-bar .button {
    min-height: 2.85rem;
    padding-inline: 1.2rem;
  }

  .toast {
    bottom: 5.6rem;
  }
}

@media (max-width: 23rem) {
  .brand-campaign {
    display: none;
  }

  .mobile-donate-bar small {
    display: none;
  }

  .payment-methods {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header nav,
  .site-header > .button,
  .hero-actions,
  .mobile-donate-bar,
  .closing-section,
  footer,
  dialog,
  .toast {
    display: none !important;
  }

  .hero,
  .story-section,
  .funds-section,
  .trust-section {
    width: 100%;
    padding: 2rem 0;
  }

  .hero {
    min-height: auto;
    overflow: visible;
    background: none;
  }

  .hero-background,
  .hero-shade {
    display: none;
  }

  .hero-copy {
    border: 0;
    padding: 0;
    box-shadow: none;
  }

  body {
    padding: 0;
  }
}
