:root {
  --green: #0a7d4f;
  --green-dark: #075c3a;
  --ink: #14201a;
  --muted: #5b6b62;
  --bg: #f6f8f7;
  --card: #ffffff;
  --line: #e2eae5;
  --amber: #b7791f;
  --red: #b3261e;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand span { color: var(--green); }
.topbar nav a { color: var(--green-dark); text-decoration: none; font-weight: 600; margin-left: 14px; font-size: 15px; }

main { max-width: 760px; margin: 0 auto; padding: 16px; }

.hero { text-align: center; padding: 28px 8px 10px; }
.hero h1 { font-size: 32px; line-height: 1.15; margin: 0 0 10px; }
.hero p { color: var(--muted); font-size: 17px; margin: 0 auto 18px; max-width: 560px; }

.btn {
  display: inline-block; border: none; cursor: pointer;
  background: var(--green); color: #fff; font-weight: 700; font-size: 16px;
  padding: 13px 22px; border-radius: 999px; text-decoration: none; margin: 4px;
}
.btn.secondary { background: #fff; color: var(--green-dark); border: 2px solid var(--green); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.danger { background: var(--red); }
.btn:disabled { opacity: .55; cursor: default; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin: 14px 0;
}
.card h2 { margin: 0 0 10px; font-size: 20px; }
.card h3 { margin: 0 0 8px; font-size: 17px; }

.steps { display: grid; gap: 12px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}

.features { list-style: none; padding: 0; margin: 0; }
.features li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px solid var(--line); }
.features li:last-child { border-bottom: none; }
.features li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 800; }

.pricing { display: grid; gap: 12px; }
@media (min-width: 640px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
.price-card { text-align: center; }
.price-card .price { font-size: 30px; font-weight: 800; color: var(--green-dark); }
.price-card.featured { border: 2px solid var(--green); }
.muted { color: var(--muted); font-size: 14px; }

form label { display: block; font-weight: 600; margin: 12px 0 4px; font-size: 15px; }
input, select, textarea {
  width: 100%; padding: 11px 12px; font-size: 16px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.row { display: grid; gap: 10px; }
@media (min-width: 640px) { .row.two { grid-template-columns: 1fr 1fr; } }

.error { background: #fdecea; color: var(--red); padding: 10px 12px; border-radius: 10px; margin: 10px 0; font-size: 14px; }
.notice { background: #e8f5ee; color: var(--green-dark); padding: 10px 12px; border-radius: 10px; margin: 10px 0; font-size: 14px; }

.pot-banner {
  background: var(--green); color: #fff; border-radius: var(--radius);
  padding: 16px; margin: 14px 0; text-align: center;
}
.pot-banner .big { font-size: 26px; font-weight: 800; }

.member-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.member-row:last-child { border-bottom: none; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: #e8f5ee; color: var(--green-dark); font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.member-main { flex: 1; min-width: 150px; }
.member-name { font-weight: 700; }
.member-sub { font-size: 13px; color: var(--muted); }

.chip { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.chip.confirmed { background: var(--green); color: #fff; }
.chip.proof_submitted { background: #fff3d6; color: var(--amber); border: 1px solid var(--amber); }
.chip.late, .chip.rejected { background: #fdecea; color: var(--red); border: 1px solid var(--red); }
.chip.due { background: #eef1ef; color: var(--muted); border: 1px solid var(--line); }
.chip.recipient { background: var(--green-dark); color: #fff; }

.proof-img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); margin-top: 8px; }
.code-box {
  font-family: ui-monospace, monospace; font-size: 18px; font-weight: 700; letter-spacing: 1px;
  background: #eef1ef; padding: 8px 12px; border-radius: 10px; display: inline-block;
}

.reminder-msg { background: #f2f6f3; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; white-space: pre-wrap; }

.footer { max-width: 760px; margin: 0 auto; padding: 18px 16px 30px; color: var(--muted); font-size: 13.5px; text-align: center; }
.hidden { display: none !important; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
