/* Customer enrolment page — Simple Wallet design (Fraunces + DM Sans, SIL OFL 1.1; see /fonts/*-OFL.txt). */
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("/fonts/DMSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("/fonts/DMSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("/fonts/DMSans-Bold.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap; src: url("/fonts/Fraunces-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 700; font-display: swap; src: url("/fonts/Fraunces-Bold.woff2") format("woff2"); }

:root {
  --canvas: #F4F0E7;
  --paper: #FFFCF5;
  --ink: #233D36;
  --evergreen: #315E4B;
  --sage: #E6EDE3;
  --orange: #D97645;
  --reward: #F9E9DC;
  --line: #DDD8C9;
  --muted: #6C7B70;
  --on-green: #FFFDF8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

.enrol {
  max-width: 26rem;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 3rem;
}

.cafe-label {
  margin: 0 0 1.75rem;
  font-weight: 700;
  color: var(--evergreen);
}

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.15;
  margin: 0 0 0.4rem;
}

.muted { color: var(--muted); font-weight: 500; font-size: 0.87rem; margin: 0; }

.hero { text-align: center; margin-bottom: 1.5rem; }
.hero .muted { margin-bottom: 0.25rem; }

.wallet-card {
  background: var(--card, #F4EBDD);
  color: var(--card-ink, #26463A);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.4rem 1.2rem 1.1rem;
  margin: 0 0 1.5rem;
}

.wallet-card-logo {
  display: block;
  max-width: 62%;
  max-height: 5.5rem;
  margin: 0 auto 1.1rem;
  object-fit: contain;
}

.wallet-card-name { font-weight: 700; font-size: 1.05rem; margin: 0 0 0.35rem; }
.wallet-card-rule { font-weight: 500; font-size: 0.8rem; margin: 0 0 0.9rem; }
.wallet-card-progress { font-weight: 500; font-size: 0.8rem; margin: -0.5rem 0 0.9rem; opacity: 0.85; }
.wallet-card-kicker {
  margin: 0;
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rule { text-align: center; font-weight: 600; font-size: 0.87rem; margin: 0 0 1.6rem; }

.actions { display: grid; gap: 0.9rem; margin-bottom: 1.25rem; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--line);
}

.btn-primary { background: var(--evergreen); border-color: var(--evergreen); color: var(--on-green); }
.btn-secondary { background: var(--paper); color: var(--ink); }
.btn:focus-visible, .copy-id:focus-visible, .link:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.link {
  display: block;
  text-align: center;
  color: var(--evergreen);
  font-weight: 700;
  font-size: 0.87rem;
  margin-top: 1.1rem;
  text-decoration: none;
}

.state { text-align: center; margin-bottom: 1.5rem; }
.state h1 { margin-top: 0.6rem; }
.state .btn { margin-top: 1.4rem; }

.state-icon {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0.5rem auto 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.3rem;
}
.state-icon-ok { background: var(--sage); color: var(--evergreen); }
.state-icon-warn { background: var(--reward); color: var(--orange); }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  margin-top: 1.5rem;
  font-size: 0.87rem;
}
.panel p { margin: 0; }
.panel-kicker {
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem !important;
}

.note {
  background: var(--reward);
  border: 1px solid var(--orange);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  font-size: 0.8rem;
}

.membership-id {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1rem;
}
.card-number-label {
  margin: 0;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-number { margin: 0.2rem 0 0.6rem; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.04em; }
.copy-id {
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--evergreen);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.copy-hint { margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--muted); }

.terms {
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}
.terms summary { font-weight: 700; color: var(--ink); cursor: pointer; }

.footnote { text-align: center; font-size: 0.72rem; color: var(--muted); margin: 1.2rem 0 0; }
.footnote + .footnote { margin-top: 0.3rem; }
