@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto.woff2") format("woff2");
  font-display: swap;
}

:root {
  --text-primary: #1a1a1a;
  --bg-main: #f5f4f1;
  --primary: #283e50;
  --accent: #e67e22;
  --font-main: Montserrat, system-ui, sans-serif;
  --primary-dark: color-mix(in srgb, var(--primary) 76%, black);
  --bg-card: color-mix(in srgb, var(--bg-main) 10%, white);
  --highlight-bg: color-mix(in srgb, var(--bg-main) 82%, white);
  --text-secondary: color-mix(in srgb, var(--text-primary) 66%, var(--bg-main));
  --text-muted: color-mix(in srgb, var(--text-primary) 45%, var(--bg-main));
  --border-color: color-mix(in srgb, var(--text-primary) 12%, var(--bg-main));
  --success: #22c55e;
  --error: #b42318;
  --shadow-card: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -2px rgb(0 0 0 / 10%);
  --shadow-sticky: 0 -4px 18px rgb(0 0 0 / 12%);
  color: var(--text-primary);
  background: var(--bg-main);
  font-family: var(--font-main);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-bottom: 92px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding-bottom: 92px;
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

a { color: inherit; }

.campaign-header {
  min-height: 76px;
  background: var(--header-bg);
  box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
}

.campaign-header a {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.campaign-logo {
  width: auto;
  height: 60px;
  max-width: min(78vw, 240px);
  object-fit: contain;
}

.campaign-symbol {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 50%;
  color: color-mix(in srgb, var(--accent) 68%, white);
  font-family: Georgia, serif;
  font-size: 1.05rem;
}

.page-shell {
  width: min(42rem, 100%);
  margin: 0 auto;
  padding: 16px;
}

.hero {
  margin-bottom: 24px;
  text-align: center;
}

h1,
h2,
p { overflow-wrap: anywhere; }

h1,
h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  margin-bottom: 12px;
  font-size: 1.5rem;
  line-height: 1.3;
  white-space: pre-line;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.125rem;
  line-height: 1.4;
}

.hero-image-shell {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.hero-image-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--media-zoom, 1));
  transform-origin: center;
}

.hero-subtitle {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  cursor: pointer;
}

.button-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

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

.button-secondary {
  border-color: var(--primary);
  background: var(--bg-card);
  color: var(--primary);
}

.button-secondary:hover {
  background: var(--highlight-bg);
}

.button-wide,
.hero-cta {
  width: 100%;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 65%, white);
  outline-offset: 3px;
}

.card {
  margin-bottom: 16px;
  border-radius: 12px;
  padding: 24px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.story-section + .story-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.story-section p,
.final-cta p,
.support-message p {
  margin: 0;
}

.story-section p + p {
  margin-top: 16px;
}

.story-image-shell {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  margin: 16px 0;
  border-radius: 12px;
  background: var(--highlight-bg);
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--media-zoom, 1));
  transform-origin: center;
}

.checkout-card {
  scroll-margin-top: 16px;
}

.checkout-card > h2 {
  margin-bottom: 6px;
  text-align: center;
}

.checkout-subtitle {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: .875rem;
  line-height: 1.5;
  text-align: center;
}

fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

legend {
  margin-bottom: 14px;
  font-size: .875rem;
  font-weight: 700;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 10px;
}

.amount {
  position: relative;
  min-height: 62px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--bg-card));
  border-radius: 16px;
  padding: 14px 12px;
  background: color-mix(in srgb, var(--primary) 5%, var(--bg-card));
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgb(0 0 0 / 5%);
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
  cursor: pointer;
}

.amount:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 58%, var(--primary));
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-card));
  box-shadow: 0 6px 16px rgb(0 0 0 / 8%);
}

.amount.selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, white);
  color: color-mix(in srgb, var(--accent) 70%, var(--text-primary));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 16%, transparent), 0 6px 16px rgb(0 0 0 / 8%);
}

.amount-featured {
  border-color: color-mix(in srgb, var(--accent) 68%, var(--primary));
}

.amount-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  width: max-content;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--accent);
  color: #fff;
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.25;
  text-transform: uppercase;
  box-shadow: 0 3px 8px rgb(0 0 0 / 12%);
}

.amount:disabled {
  cursor: wait;
  opacity: .62;
}





label {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: .875rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text-primary);
}




.form-error {
  margin: 14px 0 0;
  color: var(--error);
  font-size: .875rem;
}

.support-card h2 { margin-bottom: 18px; }

.support-message {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.support-message + .support-message {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.support-avatar {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 12%, var(--bg-card));
  color: var(--primary);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.support-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.support-content { min-width: 0; }

.support-content header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
  font-size: .875rem;
}

.support-content header span,
.support-content footer {
  color: var(--text-muted);
  font-size: .75rem;
}

.support-content footer {
  margin-top: 7px;
  font-weight: 600;
}

.support-content footer span {
  color: color-mix(in srgb, var(--primary) 74%, var(--accent));
}

.final-cta p {
  color: var(--text-secondary);
  line-height: 1.55;
}

.final-cta p + p { margin-top: 12px; }

.site-footer {
  width: min(42rem, 100%);
  margin: 0 auto;
  padding: 8px 16px 24px;
  color: var(--text-muted);
  font-size: .75rem;
  text-align: center;
}

.site-footer p { margin: 2px 0; }

.sticky-action {
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid var(--border-color);
  padding: 10px 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow-sticky);
}

.sticky-action .button {
  display: flex;
  width: min(40rem, 100%);
  min-height: 48px;
  margin: 0 auto;
  padding-block: 11px;
}

dialog {
  width: min(30rem, calc(100% - 20px));
  max-height: calc(100dvh - 20px);
  border: 0;
  border-radius: 22px;
  padding: 0;
  background: transparent;
  color: var(--text-primary);
}

dialog::backdrop {
  background: rgb(18 24 28 / 72%);
  backdrop-filter: blur(5px);
}

.modal-shell {
  position: relative;
  overflow: auto;
  max-height: calc(100dvh - 20px);
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 22px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgb(0 0 0 / 30%);
}

.pix-modal-head {
  padding: 2px 36px 14px;
  text-align: center;
}

.pix-kicker {
  display: inline-flex;
  margin-bottom: 7px;
  border-radius: 999px;
  padding: 5px 10px;
  background: color-mix(in srgb, var(--success) 10%, white);
  color: color-mix(in srgb, var(--success) 72%, #143622);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.modal-shell h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
  text-align: center;
}

.modal-subtitle {
  margin: 7px auto 0;
  color: var(--text-secondary);
  font-size: .8125rem;
  line-height: 1.45;
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f2f2f2;
  color: #555;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.pix-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  border: 1px solid #ece9e5;
  border-radius: 14px;
  padding: 11px 14px;
  background: #faf9f7;
}

.pix-summary > span {
  color: var(--text-secondary);
  font-size: .8125rem;
  font-weight: 600;
}

.pix-amount {
  color: var(--primary);
  font-size: 1.3rem;
  line-height: 1.2;
}

.qr-shell {
  display: grid;
  width: min(250px, 100%);
  min-height: 250px;
  place-items: center;
  margin: 0 auto 10px;
  border: 1px solid #e8e5e1;
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 7%);
}

.qr-shell.is-loading::after {
  width: 38px;
  height: 38px;
  border: 4px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-top-color: var(--primary);
  border-radius: 50%;
  content: "";
  animation: pix-loading 700ms linear infinite;
}

@keyframes pix-loading {
  to { transform: rotate(360deg); }
}

#pix-qr {
  width: min(220px, 100%);
  height: auto;
  background: #fff;
}

.qr-fallback {
  margin: 0;
  color: var(--text-secondary);
  font-size: .8125rem;
  line-height: 1.45;
  text-align: center;
}

.pix-status {
  margin: 0 0 14px;
  color: color-mix(in srgb, var(--success) 70%, #1c412a);
  font-size: .8125rem;
  font-weight: 700;
  text-align: center;
}

.pix-status::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--success);
  content: "";
  vertical-align: 1px;
}

.pix-copy-block label {
  margin-top: 0;
  color: var(--text-primary);
  font-size: .75rem;
  font-weight: 800;
}

.modal-shell textarea {
  min-height: 72px;
  border: 1px solid #dedbd7;
  border-radius: 12px;
  resize: none;
  background: #faf9f7;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  line-height: 1.35;
}

.pix-copy-button {
  margin-top: 10px;
  border-color: var(--primary);
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
}

.pix-copy-button:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}

.pix-auto-confirm {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 14px;
  border-radius: 13px;
  padding: 12px;
  background: color-mix(in srgb, var(--success) 7%, white);
}

.pix-auto-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--success) 16%, white);
  color: color-mix(in srgb, var(--success) 76%, #154124);
  font-weight: 900;
}

.pix-auto-confirm strong {
  display: block;
  margin-bottom: 2px;
  font-size: .8125rem;
}

.pix-auto-confirm p {
  margin: 0;
  color: var(--text-secondary);
  font-size: .75rem;
  line-height: 1.4;
}

.payment-steps {
  margin-top: 10px;
  border-top: 1px solid #ece9e5;
  padding-top: 10px;
  color: var(--text-secondary);
  font-size: .75rem;
}

.payment-steps summary {
  color: var(--text-secondary);
  font-weight: 700;
  cursor: pointer;
}

.payment-steps ol {
  margin: 8px 0 0;
  padding-left: 20px;
}

.thanks-page {
  padding-bottom: 40px;
}

.thanks-header { box-shadow: none; }

.success-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 16px;
  background: var(--success);
  color: #fff;
}

.success-banner strong {
  display: block;
  font-size: 1.125rem;
}

.success-banner p {
  margin: 1px 0 0;
  font-size: .875rem;
}

.success-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid rgb(255 255 255 / 70%);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
}

.thanks-shell {
  width: min(32rem, calc(100% - 32px));
  margin: 28px auto 0;
  text-align: center;
}

.thanks-shell h1 {
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.thanks-shell > p {
  margin: 0;
  color: var(--text-secondary);
}

@media (max-width: 560px) {
  .page-shell { padding: 14px; }
  .card { padding: 20px; }
  .hero-image-shell img { max-height: none; }
  
@media (min-width: 760px) {
  .sticky-action { display: none; }
  body { padding-bottom: 0; }
  html { scroll-padding-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
