:root {
  --navy: #14213d;
  --navy-soft: #233252;
  --mint: #24d6b1;
  --mint-dark: #0ea98b;
  --paper: #f4f7f9;
  --white: #ffffff;
  --ink: #17233a;
  --muted: #6f7b8d;
  --line: #dde4ea;
  --yape: #742284;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 95% 3%, rgba(36, 214, 177, .18), transparent 28rem),
    var(--paper);
}

button, input { font: inherit; }

button { cursor: pointer; }

.shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 20px 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: var(--navy);
  overflow: hidden;
}

.brand-mark span {
  position: absolute;
  width: 4px;
  height: 24px;
  border-radius: 999px;
  background: var(--mint);
  transform: rotate(25deg);
}

.brand-mark span:first-child { translate: -9px 4px; }
.brand-mark span:nth-child(2) { height: 30px; }
.brand-mark span:last-child { translate: 9px -4px; }

.brand-name {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .16em;
}

.brand-tagline {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.nfc-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid rgba(20, 33, 61, .12);
  border-radius: 999px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
}

.nfc-badge svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.hero { padding: 44px 2px 24px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--mint-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 9vw, 44px);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.intro {
  max-width: 380px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.card {
  padding: 22px;
  border: 1px solid rgba(20, 33, 61, .07);
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 50px rgba(20, 33, 61, .08);
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.step-number {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--navy);
  background: #dff9f3;
  font-weight: 800;
}

.step-label {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
}

.step-help {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.amount-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 18px;
  border: 2px solid var(--line);
  border-radius: 18px;
  transition: border-color .2s, box-shadow .2s;
}

.amount-box:focus-within {
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(36, 214, 177, .12);
}

.amount-box span {
  color: var(--navy);
  font-size: 25px;
  font-weight: 800;
}

.amount-box input {
  width: 100%;
  padding: 11px 0;
  border: 0;
  outline: 0;
  color: var(--navy);
  background: transparent;
  font-size: 35px;
  font-weight: 800;
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 13px 0 20px;
}

.quick-amounts button {
  padding: 9px 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--navy-soft);
  background: var(--white);
  font-size: 11px;
  font-weight: 700;
}

.quick-amounts button.selected {
  border-color: var(--navy);
  color: var(--white);
  background: var(--navy);
}

.primary-button, .secondary-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 15px;
  color: var(--navy);
  background: var(--mint);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(36, 214, 177, .22);
}

.primary-button span { font-size: 21px; }
.primary-button:hover { background: #33e1bd; }

.payment-card { text-align: center; }

.payment-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -4px 0 15px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--muted);
  background: #f6f8fa;
  font-size: 12px;
}

.payment-total strong {
  color: var(--navy);
  font-size: 20px;
}

.qr-frame {
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin: 0 auto 14px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  overflow: hidden;
}

.qr-frame img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  object-position: center 39%;
}

.recipient p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
}

.recipient > strong {
  display: block;
  margin-bottom: 9px;
  color: var(--navy);
  font-size: 13px;
}

.recipient button {
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  color: var(--navy-soft);
  background: #eef2f5;
  font-size: 11px;
  font-weight: 700;
}

.recipient button span {
  margin-left: 6px;
  color: var(--mint-dark);
}

.operation {
  display: flex;
  justify-content: space-between;
  margin: 18px 0 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 11px;
}

.operation strong { color: var(--navy); }

.yape-button {
  color: var(--white);
  background: var(--yape);
  box-shadow: 0 10px 22px rgba(116, 34, 132, .2);
}

.yape-button:hover { background: #812892; }

.text-button {
  margin-top: 12px;
  padding: 7px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.status-card {
  padding: 32px 24px;
  text-align: center;
}

.status-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #dff9f3;
}

.status-icon span {
  width: 25px;
  height: 25px;
  border: 3px solid var(--mint-dark);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.status-card h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 25px;
}

.status-card > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.demo-notice {
  margin: 22px 0;
  padding: 14px;
  border-radius: 13px;
  color: #6b5313;
  background: #fff8dc;
  text-align: left;
}

.demo-notice strong,
.demo-notice span { display: block; }
.demo-notice strong { margin-bottom: 3px; font-size: 12px; }
.demo-notice span { font-size: 10px; line-height: 1.5; }

.secondary-button {
  color: var(--navy);
  background: #e9eef2;
  box-shadow: none;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 24px 4px 0;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

footer svg {
  width: 17px;
  fill: none;
  stroke: var(--mint-dark);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hidden { display: none; }

@media (max-width: 360px) {
  .shell { padding-inline: 14px; }
  .card { padding: 18px; }
  .quick-amounts { gap: 5px; }
}
