:root {
  color-scheme: light;
  --ink: #17243b;
  --muted: #657187;
  --line: #e7eaf0;
  --paper: #ffffff;
  --canvas: #f7f8fb;
  --red: #df354c;
  --red-dark: #b82038;
  --green: #178456;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 28px;
}

.site-header {
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
}

.brand strong {
  color: var(--red);
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  grid-template: repeat(2, 1fr) / repeat(2, 1fr);
  gap: 3px;
  padding: 3px;
  border: 2px solid var(--red);
  border-radius: 6px;
}

.brand-mark span {
  border: 2px solid var(--red);
  border-radius: 2px;
}

.secure-label {
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}

.secure-label span {
  margin-right: 5px;
  font-size: 10px;
}

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 28px 30px;
}

.intro {
  margin-bottom: 32px;
  text-align: center;
}

.eyebrow,
.card-label {
  margin: 0 0 9px;
  color: var(--red-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.intro-copy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 7vw, 88px);
  max-width: 990px;
  margin: 0 auto;
}

.qr-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 12px 36px rgb(23 36 59 / 7%);
}

.qr-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 16px;
}

.card-label {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
}

.qr-card-header h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.qris-badge {
  padding: 7px 10px;
  border: 1px solid #f1c7ce;
  border-radius: 7px;
  background: #fff7f8;
  color: var(--red-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.qr-image-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.qr-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.download-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.download-link:hover {
  border-color: #d7dce5;
  background: #f8f9fb;
}

.download-link:focus-visible,
.brand:focus-visible {
  outline: 3px solid #ee9aa6;
  outline-offset: 3px;
}

.download-link span {
  color: var(--red-dark);
  font-size: 18px;
}

.instructions {
  padding-top: 8px;
}

.instructions-heading {
  margin-bottom: 26px;
}

.instructions-heading h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.steps {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
}

.step-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #f1c7ce;
  border-radius: 50%;
  background: #fff7f8;
  color: var(--red-dark);
  font-size: 14px;
  font-weight: 700;
}

.steps h3 {
  margin: 3px 0 5px;
  font-size: 15px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.steps p strong {
  color: var(--ink);
}

.whatsapp-confirmation {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid #cce8d9;
  border-radius: 10px;
  background: #f4fbf7;
}

.whatsapp-confirmation h3 {
  margin: 0 0 7px;
  font-size: 15px;
}

.whatsapp-confirmation > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.whatsapp-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.whatsapp-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid #16834e;
  border-radius: 8px;
  background: #16834e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.whatsapp-link:hover {
  border-color: #116b40;
  background: #116b40;
}

.whatsapp-link-secondary {
  border-color: #b7d9c6;
  background: #fff;
  color: #126b40;
}

.whatsapp-link-secondary:hover {
  border-color: #16834e;
  background: #edf8f1;
}

.whatsapp-link:focus-visible {
  outline: 3px solid #81c9a1;
  outline-offset: 3px;
}

.whatsapp-confirmation .contact-note {
  margin-top: 10px;
  font-size: 11px;
}

.safety-note {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 11px;
  margin-top: 28px;
  padding: 16px;
  border: 1px solid #f1d8b5;
  border-radius: 10px;
  background: #fffaf2;
}

.safety-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #f5e1c4;
  color: #88540d;
  font-size: 13px;
  font-weight: 800;
}

.safety-note p {
  margin: 1px 0 0;
  color: #6b542d;
  font-size: 12px;
  line-height: 1.65;
}

.page-note {
  max-width: 990px;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.site-footer {
  min-height: 68px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  main {
    padding: 36px 20px 26px;
  }

  .payment-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    max-width: 480px;
  }

  .qr-card {
    padding: 16px;
  }

  .instructions {
    padding: 0 2px;
  }

  .whatsapp-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-note {
    margin-top: 26px;
  }
}

@media (max-width: 380px) {
  .secure-label {
    font-size: 11px;
  }

  .brand {
    gap: 8px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
