:root {
  --ink: #10231c;
  --ink-soft: #264039;
  --paper: #f4f0e7;
  --lime: #c9ff68;
  --coral: #ff795d;
  --white: #fffef9;
  --line: rgba(16, 35, 28, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.site-shell {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.site-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.35;
  pointer-events: none;
  background-image: radial-gradient(rgba(16, 35, 28, 0.16) 0.55px, transparent 0.55px);
  background-size: 5px 5px;
}

.ambient {
  position: absolute;
  z-index: -2;
  border-radius: 999px;
  pointer-events: none;
}

.ambient-one {
  width: 460px;
  height: 460px;
  top: -260px;
  left: 38%;
  background: var(--lime);
  opacity: 0.32;
}

.ambient-two {
  width: 330px;
  height: 330px;
  bottom: -190px;
  left: -150px;
  background: var(--coral);
  opacity: 0.34;
}

.topbar,
.page-grid,
footer {
  width: min(1440px, calc(100% - 80px));
  margin-inline: auto;
}

.topbar {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lime);
  font-size: 1.35rem;
}

.secure-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 249, 0.55);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 650;
}

.secure-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #47a22f;
  box-shadow: 0 0 0 4px rgba(71, 162, 47, 0.14);
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: clamp(64px, 8vw, 140px);
  align-items: start;
}

.story {
  min-height: calc(100svh - 108px);
  padding: clamp(74px, 9vh, 118px) 0 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.story-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 32px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink-soft);
  font-family: ui-monospace, monospace;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.eyebrow-line {
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

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

h1 {
  margin-bottom: 34px;
  font-size: clamp(4rem, 6.5vw, 7.15rem);
  line-height: 0.89;
  letter-spacing: -0.072em;
  font-weight: 800;
  text-wrap: balance;
}

h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 2px var(--ink);
}

.intro {
  max-width: 620px;
  margin-bottom: 48px;
  color: var(--ink-soft);
  font-size: clamp(1.03rem, 1.25vw, 1.2rem);
  line-height: 1.68;
}

.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 740px;
  border-block: 1px solid var(--line);
}

.process-item {
  min-height: 106px;
  padding: 22px 20px 20px 0;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.process-item + .process-item {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.process-number {
  color: var(--coral);
  font-family: ui-monospace, monospace;
  font-size: 0.66rem;
  font-weight: 800;
}

.process-item strong {
  display: block;
  margin: -3px 0 7px;
  font-size: 0.9rem;
}

.process-item p {
  margin: 0;
  color: #607069;
  font-size: 0.74rem;
  line-height: 1.45;
}

blockquote {
  max-width: 570px;
  margin: 70px 0 0;
  padding-left: 20px;
  border-left: 3px solid var(--coral);
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.donation-card {
  position: sticky;
  top: 26px;
  min-height: 680px;
  margin: 36px 0;
  padding: 30px 34px 26px;
  border: 1px solid rgba(16, 35, 28, 0.18);
  border-radius: 22px;
  background: rgba(255, 254, 249, 0.95);
  box-shadow: 0 34px 80px rgba(16, 35, 28, 0.13);
}

.card-topline {
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: ui-monospace, monospace;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.step-indicator i {
  color: #9fa9a4;
  font-style: normal;
  font-weight: 500;
}

.card-heading {
  margin-bottom: 23px;
}

.card-heading.compact {
  margin-bottom: 19px;
  text-align: center;
}

.card-heading h2,
.success-panel h2 {
  margin-bottom: 7px;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.card-heading p {
  margin-bottom: 0;
  color: #718079;
  font-size: 0.86rem;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.amount {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 720;
}

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

.field {
  display: block;
  margin-bottom: 14px;
}

.field > span,
.pix-code-field > span {
  display: block;
  margin-bottom: 7px;
  color: #52635b;
  font-size: 0.7rem;
  font-weight: 650;
}

.field input,
.pix-code-field textarea {
  width: 100%;
  min-height: 47px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  font-size: 0.85rem;
}

.custom-value {
  margin-bottom: 21px;
}

.input-with-prefix {
  position: relative;
}

.input-with-prefix b {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  font-size: 0.85rem;
}

.input-with-prefix input {
  padding-left: 41px;
}

.divider {
  height: 1px;
  margin: 4px 0 17px;
  background: var(--line);
}

.section-label {
  margin-bottom: 14px;
  font-family: ui-monospace, monospace;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.field-row {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 10px;
}

.primary-button,
.copy-button,
.verify-button {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-weight: 760;
}

.primary-button {
  min-height: 57px;
  padding: 0 9px 0 21px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  background: var(--lime);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button-arrow {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border-radius: 9px;
  color: var(--white);
  background: var(--ink);
  font-size: 1.2rem;
}

.privacy-note {
  margin: 12px 0 0;
  display: flex;
  justify-content: center;
  gap: 7px;
  color: #7c8983;
  font-size: 0.65rem;
  text-align: center;
}

.privacy-note span {
  color: #4d9b37;
}

.error-message {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(177, 59, 36, 0.22);
  border-radius: 8px;
  color: #9f3723;
  background: #fff0eb;
  font-size: 0.72rem;
  line-height: 1.45;
}

.payment-kicker,
.success-kicker {
  display: inline-block;
  margin-bottom: 9px;
  color: #5d8423;
  font-family: ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.qr-wrap {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 0 auto 17px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.qr-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.qr-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--coral);
  border-style: solid;
}

.corner-one {
  top: -4px;
  left: -4px;
  border-width: 2px 0 0 2px;
}

.corner-two {
  right: -4px;
  bottom: -4px;
  border-width: 0 2px 2px 0;
}

.payment-summary {
  margin-bottom: 17px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.75rem;
}

.pix-code-field {
  display: block;
}

.pix-code-field textarea {
  min-height: 54px;
  padding: 10px 11px;
  resize: none;
  color: #66736d;
  font-family: ui-monospace, monospace;
  font-size: 0.62rem;
}

.copy-button {
  min-height: 45px;
  margin-top: 8px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink);
  background: var(--white);
  font-size: 0.77rem;
}

.waiting-status {
  margin: 16px 0 12px;
  padding: 11px 13px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f2f7e8;
}

.status-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8abd2f;
  animation: pulse 1.8s infinite;
}

.waiting-status strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.73rem;
}

.waiting-status p {
  margin: 0;
  color: #718079;
  font-size: 0.65rem;
}

.verify-button {
  min-height: 43px;
  border-radius: 9px;
  color: var(--white);
  background: var(--ink);
  font-size: 0.76rem;
}

.text-button {
  display: block;
  margin: 11px auto 0;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid #8b9691;
  color: #718079;
  background: transparent;
  cursor: pointer;
  font-size: 0.67rem;
}

.success-panel {
  min-height: 570px;
  padding: 56px 10px 0;
  text-align: center;
}

.success-orbit {
  width: 108px;
  height: 108px;
  margin: 0 auto 32px;
  border: 1px solid rgba(138, 189, 47, 0.45);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  font-size: 1.7rem;
  font-weight: 900;
}

.success-panel h2 {
  margin-bottom: 16px;
  font-size: 2.45rem;
}

.success-panel > p {
  max-width: 350px;
  margin: 0 auto 30px;
  color: #65736c;
  font-size: 0.87rem;
  line-height: 1.65;
}

.receipt-line {
  margin-bottom: 24px;
  padding: 14px 0;
  border-block: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  color: #6f7d76;
  font-size: 0.67rem;
}

.receipt-line strong {
  color: #4d7a22;
  font-family: ui-monospace, monospace;
}

footer {
  min-height: 84px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #728078;
  font-size: 0.7rem;
}

footer span {
  color: var(--ink);
  font-family: ui-monospace, monospace;
  font-weight: 800;
  letter-spacing: 0.12em;
}

footer p {
  margin: 0;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 9px rgba(138, 189, 47, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(138, 189, 47, 0);
  }
}

@media (max-width: 1120px) {
  .topbar,
  .page-grid,
  footer {
    width: min(100% - 48px, 900px);
  }

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

  .story {
    min-height: auto;
    padding-bottom: 32px;
  }

  .donation-card {
    position: relative;
    top: auto;
    width: min(100%, 580px);
    margin: 28px auto 70px;
  }
}

@media (max-width: 640px) {
  .topbar,
  .page-grid,
  footer {
    width: calc(100% - 32px);
  }

  .topbar {
    height: 82px;
  }

  .secure-pill {
    padding: 8px 10px;
    font-size: 0;
  }

  .secure-pill::after {
    content: "PIX seguro";
    font-size: 0.66rem;
  }

  .story {
    padding-top: 60px;
  }

  h1 {
    font-size: clamp(3.35rem, 16vw, 5rem);
    line-height: 0.91;
  }

  h1 em {
    -webkit-text-stroke-width: 1.35px;
  }

  .how-it-works {
    grid-template-columns: 1fr;
  }

  .process-item {
    min-height: 78px;
    padding: 18px 8px 16px 0;
  }

  .process-item + .process-item {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .donation-card {
    padding: 24px 20px 22px;
  }

  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  footer {
    min-height: 100px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
