:root {
  --accent: #e92063;
  --accent-ink: #b8114a;
  --ink: #141414;
  --muted: #5f5f66;
  --line: #e7e7ea;
  --bg: #ffffff;
  --band: #faf7f8;
  --card: #ffffff;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f3;
    --muted: #a3a3ab;
    --line: #2a2a2f;
    --bg: #111113;
    --band: #17171a;
    --card: #1a1a1d;
    --accent-ink: #ff5c8f;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); max-width: 62ch; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 20px; }
.wrap.section { padding-left: 20px; padding-right: 20px; }
.band { background: var(--band); border-block: 1px solid var(--line); padding: 72px 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { font-weight: 800; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
nav { display: flex; align-items: center; gap: 20px; }
nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
nav a:not(.btn):hover { color: var(--accent-ink); }
@media (max-width: 640px) { nav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff !important; border: 1px solid var(--accent);
  padding: 12px 20px; border-radius: 999px; font: inherit; font-weight: 650;
  text-decoration: none; cursor: pointer; transition: transform .1s, background .2s;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--ink) !important; border-color: var(--line); }
.btn-ghost:hover { background: var(--band); border-color: var(--ink); }
.btn-sm { padding: 7px 14px; font-size: .9rem; }
.link { background: none; border: 0; color: var(--accent-ink); font: inherit; cursor: pointer; text-decoration: underline; padding: 0 4px; }

/* Hero */
.hero { padding-top: 96px; padding-bottom: 72px; }
.eyebrow { color: var(--accent-ink); font-weight: 650; font-size: .9rem; letter-spacing: .02em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 58ch; }
.lead strong { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--muted); }
.card .via { color: var(--ink); margin: 0; padding-top: 12px; border-top: 1px dashed var(--line); }
.code { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }

/* Donasi */
.bank { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin: 24px 0 16px; }
.label { color: var(--muted); font-size: .9rem; }
.acct { font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.codes { margin-bottom: 16px; }
.codebox { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.codebox b { white-space: nowrap; font-size: 1.6rem; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.codebox small { color: var(--muted); }
.calc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .calc-row { grid-template-columns: 1fr; } }
.rp { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.rp span { padding-left: 12px; color: var(--muted); }
.rp input { border: 0 !important; background: transparent !important; }
.result { margin: 16px 0 0; font-size: 1.1rem; }
.result strong { color: var(--accent-ink); font-variant-numeric: tabular-nums; }

/* Forms */
.form { display: grid; gap: 16px; margin-top: 24px; max-width: 760px; }
label { display: block; font-weight: 600; font-size: .95rem; }
label > input, label > select, label > textarea, label > .rp { display: flex; margin-top: 6px; }
.form.inline label > input { display: block; }
.opt { color: var(--muted); font-weight: 400; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus, .rp:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.rp input:focus { outline: none; }
textarea { resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.check input { width: auto; margin-top: 5px; accent-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: flex; align-items: center; gap: 8px; font-weight: 400; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.chips input { width: auto; accent-color: var(--accent); }
.chips label:has(input:checked) { border-color: var(--accent); color: var(--accent-ink); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.msg { margin: 0; min-height: 1.4em; font-weight: 600; }
.msg.ok { color: #15803d; }
.msg.err { color: #dc2626; }
@media (prefers-color-scheme: dark) { .msg.ok { color: #4ade80; } .msg.err { color: #f87171; } }

/* Laporan */
.report { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--card)), var(--card)); }
.form.inline { grid-template-columns: 1fr 1fr auto; align-items: end; max-width: none; }
.form.inline .msg { grid-column: 1 / -1; }
@media (max-width: 720px) { .form.inline { grid-template-columns: 1fr; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: .92rem; }
.footer p { margin: 0 0 4px; }
