/* ĀVĀ Club – registration page. Mobile first, accessible.
   Approved ĀVĀ Club palette (29 Nov 2026): the colour tokens below mirror DESIGN.page in
   supabase/functions/wallet-apple/design.ts (the single design file);
   registration/qr/qr_test.ts checks they match. Minimal and light: no gradients,
   metallic effects or decoration. Poppins is served from this site (no third party). */

@font-face { font-family: "Poppins"; src: url("assets/fonts/Poppins-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/Poppins-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  /* BRAND TOKENS */
  --bg: #F5F1EC;
  --surface: #FFFFFF;
  --text: #302A26;
  --muted: #625B55;
  --border: #AA9C92;
  --accent: #564A43;
  --accent-text: #F5F1EC;
  --focus: #302A26;
  --error: #8A1F1F;
  /* END BRAND TOKENS */
  --hairline: rgba(86, 74, 67, 0.16);
  --radius: 14px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 1; border-radius: 8px; }

.top { width: 100%; max-width: 28rem; padding: 40px 0 28px; display: flex; justify-content: center; }
.logo { display: block; width: 120px; height: auto; }

.card {
  width: 100%;
  max-width: 28rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px 24px;
  outline: none;
}
h1 { font-size: 1.5rem; line-height: 1.3; font-weight: 300; letter-spacing: 0.01em; margin: 0 0 12px; outline: none; }
p { margin: 0 0 18px; color: var(--muted); }
strong { color: var(--text); font-weight: 500; }
label { display: block; font-weight: 500; font-size: 0.875rem; letter-spacing: 0.02em; margin-bottom: 8px; color: var(--text); }

input[type="email"], input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: 1.0625rem;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  margin-bottom: 14px;
}
input[type="email"]:focus, input[type="text"]:focus { border-color: var(--accent); }
#code { letter-spacing: 0.35em; font-variant-numeric: tabular-nums; }

.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.check label { font-weight: 400; font-size: 0.9375rem; letter-spacing: 0; margin: 0; }

button {
  display: block;
  width: 100%;
  min-height: 50px;
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
  margin-top: 10px;
}
button[disabled] { opacity: 0.55; cursor: progress; }
button.link { background: none; border: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-weight: 400; letter-spacing: 0; }
button.wallet { background: var(--surface); color: var(--text); border-color: var(--text); }
.buttons { display: grid; gap: 10px; }

a { color: var(--text); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.error { color: var(--error); font-weight: 500; }
.demo { background: var(--bg); border: 1px dashed var(--border); color: var(--muted); padding: 10px 12px; border-radius: 10px; font-size: 0.8125rem; }
.foot { width: 100%; max-width: 28rem; color: var(--muted); font-size: 0.8125rem; text-align: center; padding: 24px 0 40px; }
.foot p { color: var(--muted); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
@media (min-width: 600px) { .card { padding: 40px 36px; } h1 { font-size: 1.75rem; } }
@media (prefers-reduced-motion: no-preference) { button { transition: opacity 0.15s; } }
