* {
  box-sizing: border-box;
}

:root {
  --bg: #f5efe8;
  --surface: #ffffff;
  --ink: #1c1714;
  --muted: #74685f;
  --line: #e7ddd4;
  --soft: #eee5dc;
  --accent: #1c1714;
  --success: #176b47;
  --danger: #a03030;
  --radius: 24px;
}

html {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

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

.shell {
  width: min(
    1180px,
    calc(100% - 32px)
  );

  margin: 0 auto;
  padding: 42px 0 0px;
}

.shell.narrow {
  width: min(
    780px,
    calc(100% - 28px)
  );
}

.brand {
  margin-bottom: 30px;
}

.brand h1 {
  margin: 0 0 14px;

  font-size: clamp(
    2.4rem,
    6vw,
    4.7rem
  );

  line-height: 0.95;
}

.intro {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 10px;

  color: var(--muted);

  font-size: 0.75rem;
  font-weight: 900;

  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 22px;
}

.card {
  overflow: hidden;

  background: var(--surface);

  border: 1px solid var(--line);
  border-radius: var(--radius);

  box-shadow:
    0 18px 50px
    rgba(40, 29, 22, 0.07);
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-image {
  width: 100%;
  aspect-ratio: 16 / 10;

  object-fit: cover;
  background: var(--soft);
}

.service-content {
  display: flex;
  flex: 1;
  flex-direction: column;

  padding: 24px;
}

.service-content h2 {
  margin: 0 0 12px;
  font-size: 1.6rem;
}

.service-content > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.service-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 16px;

  margin-top: auto;
  padding-top: 22px;
}

.label {
  display: block;

  margin-bottom: 5px;

  color: var(--muted);
  font-size: 0.78rem;
}

.price {
  font-size: 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;
  padding: 13px 20px;

  color: #ffffff;
  background: var(--accent);

  border: 0;
  border-radius: 999px;

  font: inherit;
  font-weight: 850;

  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  color: var(--ink);
  background: var(--soft);
}

.button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.back-nav {
  margin-bottom: 18px;
}

.back-nav a {
  font-weight: 750;
  text-decoration: none;
}

.hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;

  object-fit: cover;
  background: var(--soft);
}

.payment-content {
  padding: clamp(
    24px,
    5vw,
    42px
  );
}

.payment-content h1 {
  margin: 0 0 18px;

  font-size: clamp(
    2.2rem,
    8vw,
    4.3rem
  );

  line-height: 0.98;
}

.service-description {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.service-facts {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 12px;

  margin: 28px 0;
}

.service-facts > div {
  padding: 18px;

  background: var(--bg);

  border-radius: 16px;
}

.order-summary {
  margin: 26px 0;
  padding: 22px 0;

  border-top:
    1px solid var(--line);

  border-bottom:
    1px solid var(--line);
}

.order-summary h2 {
  margin: 0 0 15px;
  font-size: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;

  gap: 20px;

  padding: 7px 0;

  color: var(--muted);
}

.summary-row.total {
  margin-top: 10px;
  padding-top: 16px;

  color: var(--ink);

  border-top:
    1px solid var(--line);

  font-size: 1.18rem;
  font-weight: 900;
}

.konek-button {
  width: 100%;
  font-size: 1.05rem;
}

.status {
  min-height: 24px;
  margin-top: 14px;

  text-align: center;
  font-weight: 750;
}

.status.loading {
  color: var(--muted);
}

.status.error {
  color: var(--danger);
}

.security-note {
  display: flex;
  align-items: flex-start;

  gap: 10px;

  margin-top: 20px;
  padding: 16px;

  color: var(--success);
  background: #f0f8f4;

  border-radius: 14px;

  font-size: 0.9rem;
}

.security-note span {
  color: #496c5b;
}

.qr-card {
  display: grid;
  align-items: center;

  grid-template-columns:
    1fr auto;

  gap: 24px;

  margin-top: 20px;
  padding: 28px;
}

.qr-card h2 {
  margin: 0 0 8px;
}

.qr-card p {
  color: var(--muted);
  line-height: 1.5;
}

.qr-code {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 236px;
  min-height: 236px;

  padding: 8px;

  background: #ffffff;

  border: 1px solid var(--line);
  border-radius: 16px;
}

.qr-code img {
  width: 220px;
  height: 220px;
}

.page-url {
  grid-column: 1 / -1;

  color: var(--muted);

  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

@media (max-width: 850px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .service-footer {
    align-items: center;
  }
}

@media (max-width: 620px) {
  .shell {
    padding-top: 22px;
  }

  .service-facts {
    grid-template-columns: 1fr;
  }

  .qr-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .qr-code {
    width: min(
      236px,
      100%
    );

    min-height: auto;
    margin: 0 auto;

    aspect-ratio: 1;
  }

  .service-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .service-footer .button {
    width: 100%;
  }
}