:root {
  --navy: #063f52;
  --navy-deep: #032e3d;
  --aqua: #91ddea;
  --aqua-pale: #e8f8fb;
  --ink: #123b49;
  --muted: #657b84;
  --white: #fff;
  --shadow: 0 24px 70px rgba(4, 54, 70, .14);
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 9%, rgba(145, 221, 234, .38), transparent 29rem),
    radial-gradient(circle at 91% 92%, rgba(145, 221, 234, .25), transparent 27rem),
    #f7fbfc;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(6, 63, 82, .07);
  border-radius: 50%;
  content: "";
}

body::before { top: -9rem; right: -6rem; }
body::after { bottom: -10rem; left: -5rem; width: 24rem; height: 24rem; }

.page-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem 1rem 1.25rem;
}

.tip-card {
  width: min(100%, 31rem);
  overflow: hidden;
  border: 1px solid rgba(6, 63, 82, .08);
  border-radius: 2rem;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
  text-align: center;
}

.brand-wrap {
  display: grid;
  place-items: center;
  height: 12rem;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 55%, rgba(232, 248, 251, .35));
}

.logo {
  width: 13rem;
  height: 13rem;
  object-fit: contain;
}

.intro { padding: .25rem 2rem 1.4rem; }

.eyebrow {
  margin: 0 0 .35rem;
  color: #16839a;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.65rem, 6vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.intro > p:last-child {
  max-width: 22rem;
  margin: .8rem auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.divider { display: flex; align-items: center; gap: .6rem; padding: 0 2rem; }
.divider::before, .divider::after { height: 1px; flex: 1; background: #dbe8eb; content: ""; }
.divider span { width: .38rem; height: .38rem; border-radius: 50%; background: var(--aqua); }

.payment-area { padding: 1.5rem 1.5rem 1.65rem; }

h2 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
}

.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }

.amount-button {
  position: relative;
  display: flex;
  min-height: 6.4rem;
  align-items: baseline;
  justify-content: center;
  padding: 1.65rem .35rem .8rem;
  border: 1.5px solid #b6dfe7;
  border-radius: 1.1rem;
  color: var(--navy);
  background: var(--aqua-pale);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.amount-button:hover, .amount-button:focus-visible {
  z-index: 2;
  border-color: #39a9bc;
  box-shadow: 0 9px 22px rgba(4, 79, 98, .14);
  transform: translateY(-3px);
}

.amount-button.featured { border-color: #54bfd0; background: #d8f3f7; }
.currency { align-self: center; margin-right: .12rem; font-size: 1.05rem; font-weight: 700; }
.amount { font-size: 1.8rem; font-weight: 700; letter-spacing: -.05em; }
.mxn { align-self: center; margin-left: .2rem; color: #5d7881; font-size: .68rem; font-weight: 700; }

.popular {
  position: absolute;
  top: -.58rem;
  left: 50%;
  padding: .22rem .55rem;
  border-radius: 2rem;
  color: #fff;
  background: #16839a;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.other-button {
  display: flex;
  min-height: 3.65rem;
  align-items: center;
  justify-content: center;
  margin-top: .85rem;
  border: 0;
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #09657b);
  box-shadow: 0 10px 24px rgba(6, 63, 82, .19);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.other-button:hover, .other-button:focus-visible { box-shadow: 0 13px 28px rgba(6, 63, 82, .26); transform: translateY(-2px); }
.payment-link:focus-visible { outline: 3px solid rgba(22, 131, 154, .35); outline-offset: 3px; }

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin: 1rem 0 0;
  color: #758991;
  font-size: .78rem;
}

.secure-note svg { width: .9rem; fill: #5caebb; }

footer {
  display: flex;
  gap: .45rem;
  justify-content: center;
  padding-top: 1.25rem;
  color: #71878f;
  font-size: .78rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 10;
  max-width: 27rem;
  margin-inline: auto;
  padding: .9rem 1rem;
  border-radius: .8rem;
  color: #fff;
  background: var(--navy-deep);
  box-shadow: 0 10px 35px rgba(0,0,0,.18);
  font-size: .9rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: opacity .2s ease, transform .2s ease;
}

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

@media (max-width: 390px) {
  .page-shell { padding: .75rem; }
  .tip-card { border-radius: 1.5rem; }
  .brand-wrap { height: 10.5rem; }
  .logo { width: 11.5rem; height: 11.5rem; }
  .intro { padding-inline: 1.25rem; }
  .payment-area { padding-inline: 1rem; }
  .amount-grid { gap: .45rem; }
  .amount-button { min-height: 5.8rem; border-radius: .9rem; }
  .amount { font-size: 1.55rem; }
}

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