/* Røllesmølle Loyalty — publieke pagina's */
:root {
  --sage: #d5deca;
  --sage-dark: #b8c3a8;
  --ocher: #e2b662;
  --ocher-dark: #c89a47;
  --paper: #f2eee6;
  --card: #ffffff;
  --ink: #2d2a22;
  --ink-soft: #5a554a;
  --muted: #8c8675;
  --line: #c8cdb8;
  --ok: #4a6b3a;
  --err: #a34a2e;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
.wrap { max-width: 480px; margin: 0 auto; padding: 24px 16px 64px; }
.brand { text-align: center; margin: 8px 0 20px; }
img { max-width: 100%; }
.brand img.logo { width: 150px; height: auto; display: block; margin: 0 auto 6px; }
.brand h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 34px;
  margin: 0;
  letter-spacing: .5px;
}
.brand .sub {
  color: var(--ink-soft);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
}
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(45,42,34,.07);
  margin-bottom: 18px;
}
.card h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 12px;
}
label { display: block; font-size: 14px; color: var(--ink-soft); margin: 14px 0 4px; }
input[type=text], input[type=email] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
  background: #fff;
}
input:focus { outline: 2px solid var(--ocher); outline-offset: 1px; border-color: var(--ocher); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 14px; color: var(--ink-soft); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ocher-dark); }
.btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: var(--ocher);
  color: var(--ink);
  border: 0;
  border-radius: 10px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--ocher-dark); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); font-weight: 500; }
.btn.ghost:hover { background: var(--sage); border-color: var(--sage-dark); }
.btn.small { width: auto; padding: 9px 16px; font-size: 14px; }
.msg { border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-bottom: 16px; }
.msg.ok  { background: var(--sage); color: var(--ok); }
.msg.err { background: #f3ddd3; color: var(--err); }
.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; }

/* Digitale pas */
.pass {
  background: linear-gradient(160deg, var(--sage) 0%, #e3e9da 100%);
  border-radius: 18px;
  padding: 26px 22px 22px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(45,42,34,.12);
  margin-bottom: 20px;
}
.pass .name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
}
.pass .points {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 2px 0 16px;
}
.pass .points strong { color: var(--ink); font-size: 19px; }
.qrbox {
  background: #fff;
  border-radius: 14px;
  display: inline-block;
  padding: 16px;
}
.qrbox canvas, .qrbox img { display: block; }
.pass .hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; }

/* Beloningen en coupons */
.reward, .coupon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--paper);
}
.reward:last-child, .coupon:last-child { border-bottom: 0; }
.reward .info strong { display: block; }
.reward .info .muted { display: block; margin-top: 2px; }
.pill {
  background: var(--sage);
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 12.5px;
  white-space: nowrap;
  color: var(--ink-soft);
}
.coupon-open { margin-top: 10px; }
.progress { height: 8px; background: var(--paper); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.progress > div { height: 100%; background: var(--ocher); border-radius: 99px; }
table.history { width: 100%; border-collapse: collapse; font-size: 14px; }
table.history td { padding: 8px 4px; border-bottom: 1px solid var(--paper); vertical-align: top; }
table.history td:last-child { text-align: right; white-space: nowrap; }
.pts-plus { color: var(--ok); font-weight: 600; }
.pts-min { color: var(--err); font-weight: 600; }
footer.note { text-align: center; margin-top: 28px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
