/* Website and member page (public/app/site.js), drawn to SPEC.md §2a: paper and ink, one accent, 1 px
   dividers, small radius, two weights. Phone first; a single readable column on big screens. */
body { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 600; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--primary); }
.s-muted { color: var(--muted); font-size: .9em; }
.s-loading { padding: 30vh 20px; text-align: center; color: var(--muted); }

.s-top { display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid var(--line); }
.s-brand { flex: 1; min-width: 0; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-langs { display: flex; flex: none; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.s-langs button { min-height: 40px; padding: 0 10px; border: 0; background: var(--surface); font-size: .84em; }
.s-langs button + button { border-left: 1px solid var(--line); }
.s-langs button.on { background: var(--text); color: var(--surface); font-weight: 600; }
main { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }

/* ---- the shop ---- */
.s-intro { padding: 28px 0 8px; }
.s-intro h1 { font-size: 1.6em; line-height: 1.4; }
.s-tagline { color: var(--muted); margin-top: 4px; }
.s-facts { margin-top: 18px; border-top: 1px solid var(--line); }
.s-facts div { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.s-facts dt { width: 6.5em; flex: none; color: var(--muted); }
.s-sec { padding-top: 36px; }
.s-sec > h2 { font-size: 1.3em; margin-bottom: 4px; }
.s-sec > p + p { margin-top: 8px; }
.s-cups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; text-align: center; }
.s-cups li { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .9em; }
.s-cup { position: relative; width: 100%; max-width: 120px; aspect-ratio: 3 / 4; }
.s-cup svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.s-steps { margin-top: 22px; border-top: 1px solid var(--line); }
.s-steps li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.s-n { width: 1.6em; flex: none; color: var(--primary); font-weight: 600; }
.s-steps b { display: block; font-weight: 600; }
.s-steps small { display: block; color: var(--muted); font-size: .9em; }
.s-dots { display: flex; gap: 6px; margin-top: 6px; }
.s-dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(30, 26, 22, .15); }
.s-jump { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 14px 0 4px; }
.s-jump a { min-height: 40px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 600; }
.s-cat { scroll-margin-top: 16px; padding-top: 18px; }
.s-cat h3 { font-size: 1.05em; padding-bottom: 6px; border-bottom: 1px solid var(--text); }
.s-items li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.s-items li.off { opacity: .45; }
.s-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(30, 26, 22, .15); }
.s-item { flex: 1; min-width: 0; }
.s-item b { display: block; font-weight: 600; line-height: 1.5; }
.s-item small { color: var(--muted); font-size: .84em; }
.s-sizes { display: flex; flex-direction: column; align-items: flex-end; font-size: .9em; white-space: nowrap; }
.s-rewards { margin-top: 16px; border-top: 1px solid var(--line); }
.s-rewards li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.s-foot { color: var(--muted); font-size: .84em; padding: 36px 0 8px; }

/* ---- the member page, built like design-refs/member/3: the points, then one cup that fills up with them and
   the rewards marked on its side; visits and history on white below ---- */
.m-head { padding-top: 28px; }
.m-hi { font-size: 1.2em; line-height: 1.5; }
.m-points { font-size: 3.2em; font-weight: 600; line-height: 1.15; margin-top: 4px; }
.m-points span { font-size: .3em; font-weight: 400; color: var(--muted); }
.m-next { color: var(--muted); margin-top: 6px; }
/* the cup sits a little left of centre (--x) so the reward names on the right have room; each rule runs from
   the cup's side at that height (--e, from cup.js) to the margin */
.m-level { --x: 42%; --cw: calc(var(--h) * 176 / 262); position: relative; height: var(--h); margin: 40px 0 56px; }
.m-cup { position: absolute; top: 0; height: 100%; left: calc(var(--x) - var(--cw) / 2); width: var(--cw); }
.m-cup svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.m-mark { position: absolute; display: flex; flex-direction: column; margin: 0; padding-top: 6px; border-top: 1px solid var(--muted);
  font-size: .84em; line-height: 1.45; color: var(--muted); }
.m-mark:not(.m-here) { left: calc(var(--x) - var(--cw) / 2 + var(--cw) * var(--e) + 10px); right: 0; text-align: right; }
.m-mark b { font-weight: 400; }
.m-mark.got { color: var(--text); }
.m-mark.up { padding: 0 0 6px; border-top: 0; border-bottom: 1px solid var(--muted); transform: translateY(-100%); }
.m-here { left: 0; right: calc(100% - var(--x) - var(--cw) / 2 + var(--cw) * var(--e) + 10px); color: var(--primary); border-color: var(--primary); }
.m-ids { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding: 14px 0 18px; font-size: .84em; font-weight: 600; }
.m-band { margin: 0 -16px; padding: 4px 16px 8px; background: var(--surface); border-top: 1px solid var(--line); }
.m-sec { padding-top: 28px; }
.m-sec > h2 { font-size: 1.1em; margin-bottom: 4px; }
.m-list { border-top: 1px solid var(--line); margin-top: 10px; }
.m-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.m-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.m-list small { display: block; color: var(--muted); font-size: .84em; line-height: 1.6; }
.m-plus { color: var(--ok); }
.m-how { margin-top: 24px; }
.m-state { padding: 18vh 4px 20px; display: flex; flex-direction: column; gap: 10px; }
.m-state h1 { font-size: 1.4em; line-height: 1.5; }
