@font-face {
  font-family: "Swed Recoleta";
  src: local("Recoleta Regular"), url("/brand/recoleta-demo.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Larsseit;
  src: url("/brand/Larsseit.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Larsseit;
  src: url("/brand/Larsseit-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Larsseit;
  src: url("/brand/Larsseit-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --green: #274b3a;
  --deep: #1c3529;
  --ink: #141c0e;
  --paper: #f3f2ef;
  --line: #d1d5c9;
  --sage: #e3eadc;
  --serif: "Swed Recoleta Bold", "Swed Recoleta", Georgia, "Times New Roman", serif;
  --sans: Larsseit, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--green);
  font: 16px/1.5 var(--sans);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
footer,
main {
  width: min(1184px, calc(100% - 64px));
  margin: auto;
}
header,
footer,
.sectionhead,
.plantop,
.row,
.actions,
.wordmark,
.balance,
nav,
.check,
.search,
.perkedit,
.kicker {
  display: flex;
  align-items: center;
}
.wordmark {
  text-decoration: none;
  gap: 12px;
  color: var(--ink);
  font: bold 26px/1 var(--serif);
}
.wordmark img {
  width: clamp(64px, 8vw, 84px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
}
.wordmark small {
  display: block;
  font: 700 10px/1.6 var(--sans);
  letter-spacing: 0.35em;
  margin-top: 4px;
}
nav {
  gap: 6px;
}
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.2;
  font-family: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--green);
  color: white;
  padding: 13px 20px;
  min-height: 45px;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:hover:not(:disabled),
.btn:hover {
  filter: brightness(0.93);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #aa6a3b;
  outline-offset: 3px;
}
nav button,
.link {
  background: transparent;
  color: var(--green);
}
nav .selected {
  background: #e1e7dc;
}
.link {
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.secondary {
  background: transparent;
  color: var(--green);
  border-color: #a9b8a9;
}
.light {
  background: var(--paper);
  color: var(--deep);
}
.hero {
  margin: 30px 0 0;
  background: var(--deep);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 14px;
}
.hero > div {
  padding: clamp(32px, 5vw, 72px);
}
.hero > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.kicker {
  font: 700 12px/1.4 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  gap: 10px;
  margin: 0 0 12px;
}
.hero .kicker {
  color: #d4e1c9;
}
.hero h1 {
  font: normal clamp(62px, 7.4vw, 110px) / 0.88 var(--serif);
  letter-spacing: -0.065em;
  margin: 24px 0;
}
.hero h1 em {
  font-weight: normal;
  color: #d7e6be;
}
.intro {
  max-width: 340px;
  font-size: 18px;
  line-height: 1.45;
  margin-bottom: 24px;
}
.sectionhead,
.plantop,
.row,
footer {
  justify-content: space-between;
  gap: 16px;
}
.sectionhead {
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.sectionhead a,
footer a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-weight: 600;
}
main > section:not(.hero) {
  padding: 40px 0;
}
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 0;
}
h2 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05;
}
h3 {
  font-size: 34px;
  line-height: 1.2;
}
h4 {
  font-size: 24px;
  margin: 26px 0 10px;
}
h2 + p {
  margin-top: 18px;
}
.members,
.twocol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.editor,
.manager {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffefa;
}

.plantop {
  width: 100%;
  margin-bottom: 18px;
  color: var(--green);
}
.price {
  font-weight: bold;
  font-size: 23px;
}
.price small,
small,
.note {
  font-size: 14px;
  font-weight: normal;
}

p {
  line-height: 1.55;
}
.note,
small {
  color: #54624f;
}
.narrow {
  max-width: 560px;
  margin: 0 auto;
}
.narrow.wide {
  max-width: 720px;
}
.narrow > .link {
  margin-bottom: 15px;
}
.passcard {
  margin: 22px 0;
  padding: 28px;
  background: var(--green);
  color: white;
  border-radius: 14px;
  position: relative;
}
.passcard small,
.passcard .plantop {
  color: #eff7dd;
}
.passcard p {
  margin: 7px 0;
}
.count,
.balance strong {
  font: 54px/1 var(--serif);
}
.qr {
  display: block;
  width: 112px;
  height: 112px;
  margin-top: 18px;
  border-radius: 5px;
}
label {
  display: block;
  font-weight: 600;
  margin: 16px 0;
}
input,
textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  background: #fffefa;
  border: 1px solid #a8b5a6;
  border-radius: 7px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
}
.check,
.actions,
.perkedit {
  gap: 10px;
}
.actions {
  flex-wrap: wrap;
}
.search {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  gap: 10px;
}
.search input {
  border: none;
  margin: 0;
}
.member {
  background: #fffefa;
  color: var(--ink);
  border: 1px solid var(--line);
  justify-content: flex-start;
  text-align: left;
  padding: 16px;
  gap: 14px;
}
.member small,
.row small {
  display: block;
  margin-top: 3px;
}
.row,
.balance {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.balance {
  gap: 15px;
  margin: 12px 0;
}
.manager {
  margin-top: 24px;
}
.manager h4,
.editor h4 {
  margin-top: 0;
}
.editor {
  max-width: 650px;
}
.perkedit label:first-child {
  flex: 1;
}
.perkedit label:nth-child(2) {
  width: 90px;
}
.notice {
  padding: 14px 18px;
  background: var(--sage);
  border-radius: 8px;
  margin: 16px 0;
}
.bad {
  background: #f8e1d6;
  color: #772905;
}
.notice button {
  margin: 7px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: #1119;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 18px;
}
.overlay section {
  background: var(--paper);
  border-radius: 12px;
  padding: 25px;
  width: min(440px, 100%);
}
video {
  width: 100%;
  border-radius: 8px;
}
.editor details {
  margin: 20px 0;
}
.editor summary {
  cursor: pointer;
}
footer {
  margin-top: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: #536347;
}
footer i {
  padding: 0 5px;
}
main {
  min-height: calc(100vh - 235px);
}
@media (max-width: 700px) {
  header,
  main,
  footer {
    width: calc(100% - 32px);
  }
  .wordmark {
    font-size: 20px;
  }
  nav {
    gap: 0;
  }
  nav button {
    padding: 8px;
    font-size: 14px;
  }
  .hero {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }
  .hero > img {
    height: 180px;
  }
  .hero > div {
    padding: 30px;
  }
  .hero h1 br {
    display: none;
  }
  .hero h1 em:before {
    content: " ";
  }
  .hero h1 {
    margin: 18px 0;
  }
  .members {
    grid-template-columns: 1fr;
  }
  .perkedit {
    flex-wrap: wrap;
  }
  .editor {
    padding: 20px;
  }
  .sectionhead {
    gap: 10px;
  }
  .sectionhead a {
    font-size: 14px;
  }
  footer {
    flex-wrap: wrap;
  }
  .actions button {
    flex-grow: 1;
  }
}
.demo-bar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:var(--sage);color:var(--deep);padding:6px 16px;margin-top:16px;border-radius:8px;font-size:14px}
.narrow select{display:block;margin-top:6px;width:100%;padding:12px;border:1px solid var(--line);border-radius:7px;background:white;color:var(--ink);font:inherit}
.counter-list{max-width:850px;margin:auto}.counter-list .members{grid-template-columns:1fr;gap:10px}.member{border:0;border-radius:0;border-bottom:1px solid var(--line);padding:13px 18px}.member:last-child{border-bottom:0}.roster-balance{margin-left:auto;background:var(--sage);border-radius:20px;padding:5px 12px;font-size:14px;color:var(--green)}.roster-balance.inactive{background:#eeebe5;color:#655d4d}.utility{border-top:1px solid var(--line);padding:14px 0}.utility summary{font-weight:650;cursor:pointer}.actions button small{color:inherit;opacity:.82;font-size:12px}.drip-title{font:36px var(--serif)}@media(max-width:580px){nav button{min-width:0}.member{padding:12px 10px}.roster-balance{font-size:13px;padding:4px 8px}}
:root{--drink-drip:#67412f;--drink-other:#294e72}
.drip{--drink-color:var(--drink-drip)}.other{--drink-color:var(--drink-other)}
.record-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0 16px}.record-choice{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;min-height:124px;text-align:left;padding:20px 24px;border-radius:12px;background:var(--drink-color);color:white}.record-choice b{font-size:clamp(22px,3vw,30px);line-height:1.1}.record-choice small{color:inherit;font-weight:500}.record-choice:disabled{background:color-mix(in srgb,var(--drink-color) 11%,white);color:var(--drink-color);border:1px dashed var(--drink-color);opacity:1}.record-summary{display:flex;gap:8px 20px;flex-wrap:wrap;color:#4f5c50;font-size:15px;padding:14px 0 20px}.record-status{font-weight:650;color:var(--green);padding:8px 0}.drink-labels{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.drink-label{display:inline-flex;align-items:center;gap:7px;font-size:14px}.drink-label:before{content:'';width:10px;height:10px;border-radius:50%;background:var(--drink-color)}@media(max-width:480px){.record-choice{min-height:106px;padding:16px}.record-choices{gap:10px}}
.checkout form {padding:clamp(18px,4vw,32px);background:#fffefa;border:1px solid var(--line);border-radius:14px}
.checkout-plan {display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--line);font-size:18px}
.checkout-plan .link {display:block;font-size:14px;min-height:34px;padding:4px 0}
.checkout-plan>strong {white-space:nowrap}
.checkout-submit {width:100%;min-height:52px;font-size:17px}

select, textarea { font-family: var(--sans); }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); }

@font-face {
  font-family: "Swed Recoleta Bold";
  src: local("Recoleta Bold"), local("Recoleta-Bold");
  font-weight: 700;
}
h1, h2, h3, h4, h5, h6, .wordmark, .plans .price, .drip-title {
  font-weight: 700;
  font-synthesis: weight;
  letter-spacing: -.02em;
}
footer { flex-wrap: wrap; }
footer .notice, footer .notice .link { color: var(--ink); }
footer { border-color: #ffffff47; }
.wordmark, .wordmark small, footer, footer a, footer .link,
#memberships > .note {
  color: var(--paper);
}

main > section:not(#memberships):not(.checkout):not(.counter-list):not(.phone-pass):not(.join-success) {
  background: var(--paper);
  padding: clamp(16px, 4vw, 36px);
  margin-top: 24px;
  border-radius: 14px;
}
#memberships {
  --tier-radius: 16px;
  max-width: 540px;
  margin: auto;
}
.plans {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 14px;
  color: var(--deep);
}
.tier-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto 1fr;
  min-height: 104px;
  border-radius: var(--tier-radius);
  --tier-color: #faf0df;
  background: var(--tier-color);
  transition: background-color 120ms ease;
  align-items: center;
  gap: 0 clamp(10px, 3vw, 16px);
  padding: 7px clamp(14px, 4vw, 23px);
  margin: 0;
  cursor: pointer;
}
.tier-row[data-drinks="10"] { --tier-color: #e1ecd9; }
.tier-row[data-drinks="20"] { --tier-color: #dce9ed; }
.tier-row:has(input:checked),
.tier-row:active {
  background: white;
}
@media (prefers-reduced-motion: reduce) {
  .tier-row { transition: none; }
}
.tier-row input {
  appearance: none;
  margin: 0;
  padding: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid #728379;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.tier-row input:checked { border: 6px solid var(--green); }
@media (forced-colors: active) {
  .tier-row input { appearance: auto; }
}
.tier-details { display: contents; }
.tier-row input { grid-area: 2 / 1; }
.tier-mark { visibility: hidden; }
.tier-row input:checked + .tier-details .tier-mark { visibility: visible; }
.tier-details strong { grid-area: 2 / 2; overflow-wrap: anywhere; }
.tier-row .price { grid-area: 2 / 3; }
.tier-notes {
  grid-area: 3 / 2 / 4 / -1;
  align-self: start;
  display: grid;
  gap: 2px;
  font-weight: normal;
}
.tier-details strong, .plans .price {
  font: bold clamp(21px, 5.6vw, 26px)/1.15 var(--serif);
  font-synthesis: weight;
  letter-spacing: -.025em;
}
.plans .price { white-space: nowrap; font-size: clamp(24px, 6.5vw, 30px); }
.plans .price small { margin-left: 3px; font: 15px var(--sans); letter-spacing: normal; }
.tier-continue {
  width: 100%;
  margin-top: 18px;
  min-height: 66px;
  border-radius: var(--tier-radius);
  background: #61e59c;
  color: #102f21;
  font-size: 22px;
  font-weight: 700;
}
.checkout-submit, .scan-pass { background: #000; color: #fff; }
.tier-continue:focus-visible { outline-color: white; }

header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: 100%;
  padding: clamp(16px, 2.5vw, 28px);
  padding-bottom: 0;
}
header .wordmark { justify-self: start; }
header h1 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.1;
}
main > #memberships { padding-top: 26px; }

/* Only the demo renders this control, after all shop content. */
.demo-switch {
  position: sticky;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 1;
  width: max-content;
  margin: 12px auto calc(12px + env(safe-area-inset-bottom, 0px));
  padding: 3px;
  gap: 1px;
  border: 1px solid #ffffff45;
  border-radius: 99px;
  background: rgb(18 43 32 / 70%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 10px #0002;
}
.demo-switch button {
  min-width: 0;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 13px;
  color: #fffefa;
}
.demo-switch .selected {
  background: rgb(255 254 250 / 86%);
  color: var(--deep);
}
html:has(.demo-switch) {
  scroll-padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}


.scan-pass {
  justify-self: end;
}
main > section.counter-list {
  padding-top: 26px;
  color: var(--paper);
}
.counter-reset { margin: 0 0 24px; text-align: center; font-size: 19px; }
.counter-list .search { color: var(--green); background: #fffefa; }
.counter-list .search input { min-width: 0; }
.counter-list .link { color: var(--paper); margin-top: 8px; }
.counter-list .member {
  min-height: 68px;
  border: 0;
  border-radius: 16px;
  padding: 10px clamp(12px, 3vw, 22px);
  gap: 10px;
  font-size: clamp(19px, 3vw, 23px);
  overflow-wrap: anywhere;
}
.counter-list .roster-balance {
  flex-shrink: 0;
  max-width: 48%;
  text-align: center;
  font-size: clamp(16px, 2.6vw, 20px);
  padding: 7px 12px;
}
.counter-list .member.inactive { background: #e8e9e6; color: #60645f; }
.inactive-label { margin-left: auto; max-width: 48%; text-align: right; font: 16px/1.3 var(--sans); }
@media (max-width: 580px) {
  .scan-pass { flex-direction: column; gap: 2px; padding: 6px 9px; font-size: 13px; }
  .counter-reset { font-size: 16px; margin-bottom: 16px; }
}

.balance-ring {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  height: 48px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--tint);
  font-size: 21px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.balance-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--ring);
  stroke-width: 4;
}
.balance-ring.green { --ring: #298355; --tint: #e4f2e7; }
.balance-ring.yellow { --ring: #d5a300; --tint: #fff1b7; }
.balance-ring.red { --ring: #c63c38; --tint: #ffdedb; }

.counter-list .members {
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
}
.counter-list .member { border-radius: 0; }
.counter-list .member + .member { border-top: 1px solid var(--line); }
.counter-list .member:focus-visible { outline-offset: -4px; }
.member-info { min-width: 0; overflow-wrap: anywhere; }
.member-line { display: flex; align-items: baseline; gap: 10px; }
.member-line b { flex: 0 0 auto; max-width: 100%; }
.member-plan {
  color: #626963;
  font: 400 14px/1.3 var(--sans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-info { container-type: inline-size; flex: 1; }
@container (max-width: 195px) { .member-plan { display: none; } }
.balance-ring svg text { font: 700 21px var(--sans); }
.roster-entry { background: #fffefa; color: var(--ink); scroll-margin-top: 14px; }
.roster-entry + .roster-entry { border-top: 1px solid var(--line); }
.roster-entry .member { width: 100%; }
.roster-entry[data-open="true"] .member:not(.inactive) { background: var(--sage); }
.roster-entry[data-open="true"] .member-line b { font-size: 1.14em; }

.inline-drinks { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 220ms ease; }
.inline-drinks[data-open="true"] { grid-template-rows: 1fr; }
.inline-drinks > div { min-height: 0; overflow: hidden; }
.drink-panel { padding: 0 clamp(12px, 3vw, 22px) 8px; }
@media (prefers-reduced-motion: reduce) { .inline-drinks { transition: none; } }
.drink-panel .record-choices { margin: 16px 0 0; gap: 10px; }
.drink-panel .record-choice { padding: 14px; min-height: 104px; }
.drink-panel .record-choice b { font-size: 21px; }
.drink-panel .record-summary { font-size: 14px; padding-bottom: 14px; }
.drink-toast {
  position: fixed;
  z-index: 2;
  left: 50%;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: max-content;
  max-width: 90%;
  padding: 12px 18px;
  border-radius: 14px;
  background: #111;
  color: white;
  pointer-events: none;
}

.tier-details strong {
  font-size: clamp(26px, 6.8vw, 30px);
  font-weight: 700;
  -webkit-text-stroke: 0.45px currentColor;
}
.daily-drip { white-space: nowrap; }
@media (max-width: 350px) {
  .tier-row { padding-inline: 9px; gap: 0 6px; }
  .daily-drip { font-size: 13px; }
}

header.join-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(22px, 4vw, 36px);
}
.join-header h1 {
  margin: 12px 0 0;
  font-size: clamp(40px, 6vw, 52px);
  text-align: center;
}
.join-header + main > #memberships { padding-top: 6px; }

/* Fit signup to the available viewport at every device width. */
@media screen {
  body:has(.join-header) {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  header.join-header {
    padding-top: clamp(6px, 2.5dvh, 32px);
    min-height: 0;
  }
  .join-header .wordmark img {
    width: clamp(36px, 8dvh, 78px);
    height: auto;
  }
  .join-header h1 {
    margin-top: clamp(3px, 1dvh, 12px);
    font-size: clamp(28px, 5dvh, 44px);
  }
  .join-header + main { min-height: 0; margin: 0 auto; }
  .join-header + main > #memberships { padding: 1dvh 0 0; }
  .join-header + main .plans { gap: clamp(6px, 1.6dvh, 16px); }
  .join-header + main .tier-row {
    min-height: clamp(64px, 13dvh, 114px);
    padding-block: 2px;
  }
  .join-header + main .tier-continue {
    margin-top: clamp(8px, 2dvh, 20px);
    min-height: clamp(50px, 8.5dvh, 66px);
    padding-block: 8px;
  }
  .join-header ~ footer {
    margin: auto auto 0;
    padding: 0;
    border: 0;
    gap: 4px;
    justify-content: space-evenly;
  }
  .join-header ~ footer > span { display: none; }
  .join-header ~ footer :is(a, button) { font-size: 13px; min-height: 36px; padding: 3px 0; }
  .join-header ~ .demo-switch { position: static; margin: 2px auto 6px; }
}
@media (max-height: 620px) {
  .join-header + main .tier-details strong { font-size: 23px; }
  .join-header + main .tier-notes small { font-size: 13px; line-height: 1.15; }
  .join-header + main .plans .price { font-size: 23px; }
  .join-header + main .note { font-size: 13px; margin: 5px 0; }
}

body:has(.pass-header) {
  --pass-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; flex-direction: column; min-height: 100dvh;
  padding-bottom: var(--pass-bottom);
}
header.pass-header {
  width: min(100% - 40px, 440px);
  display: flex; gap: 12px; margin: 0 auto;
  min-height: 0; padding: clamp(8px, 2dvh, 20px) 0;
}
.pass-header .wordmark img { width: clamp(38px, 7dvh, 60px); }
.pass-header h1 { font-size: clamp(21px, 6vw, 26px); }
.pass-tag { margin-left: auto; color: var(--paper); font: bold 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.pass-header ~ footer { display: none; }
.pass-header ~ .demo-switch { position: static; margin: 0 auto 5px; }
.pass-header + main { flex: 1; display: flex; min-height: 0; flex-direction: column; margin: 0 auto; }
.pass-header + main > section.phone-pass {
  flex: 1; width: min(100%, 400px); margin: 0 auto;
  padding: 0; background: transparent; color: #fffaf1;
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-evenly; gap: 5px; text-align: center;
}
.pass-identity h2 { font-size: clamp(30px, 5dvh, 44px); overflow-wrap: anywhere; }
.pass-identity p { margin: 4px 0 0; opacity: .86; }
.pass-ring {
  width: min(68vw, 31dvh, 260px); aspect-ratio: 1; border-radius: 50%;
  padding: clamp(6px, 1.2dvh, 11px);
  background: conic-gradient(var(--pass-color) var(--fill), #ffffff28 0);
}
.pass-ring.green { --pass-color: #87db9e; }
.pass-ring.yellow { --pass-color: #ffda60; }
.pass-ring.red { --pass-color: #ff8581; }
.pass-ring.full { background: var(--pass-color); }
.pass-ring.empty { background: #ff85814d; color: var(--pass-color); }
.pass-ring > div { height: 100%; border-radius: 50%; background: var(--green); display: grid; place-content: center; font-weight: bold; }
.pass-ring strong { font: bold min(23vw, 12dvh, 104px)/1.05 var(--serif); font-synthesis: weight; }
.pass-drip { display: inline-flex; align-items: center; gap: 8px; background: var(--sage); color: var(--deep); border-radius: 50px; padding: 9px 16px; font: bold 15px var(--sans); }
.show-code { width: 100%; background: #000; border-radius: 14px; min-height: clamp(46px, 7dvh, 58px); font-size: 17px; }
.manage-pass { background: none; text-decoration: underline; text-underline-offset: 4px; font-weight: 400; padding: 0 10px; }
.pass-dialog { width: min(92vw, 420px); max-height: 90dvh; border: none; border-radius: 18px; padding: 22px; background: #fffefa; color: var(--deep); text-align: left; }
.pass-dialog::backdrop { background: #10271fcc; }
.close-pass { float: right; padding: 8px 12px; }
.pass-dialog h3 { font-size: 26px; }
.pass-dialog select { display: block; width: 100%; padding: 10px; }
.code-dialog { text-align: center; }
.code-dialog .qr { width: min(100%, 40dvh, 250px); height: auto; }
.code-dialog button { width: 100%; }
@media (max-height: 600px) {
  .pass-ring { width: 25dvh; }
  .pass-ring strong { font-size: 9dvh; }
  .pass-drip { padding: 5px 12px; }
  .pass-identity p { margin: 0; }
  .phone-pass { font-size: 14px; }
  .manage-pass { min-height: 34px; }
}

main > section.join-success:not(#memberships) {
  max-width: 440px;
  margin: 0 auto;
  padding: clamp(10px, 3dvh, 30px) 0;
  background: transparent;
  color: var(--paper);
  text-align: center;
}
.success-check { display:grid; place-items:center; margin:0 auto 12px; width:56px; height:56px; border-radius:50%; background:#dcecd3; color:var(--deep); }
.join-success h2 { font-size:clamp(38px,6dvh,54px); }
.join-success p { margin:5px 0; line-height:1.35; }
.wallet-options { margin:clamp(12px,3dvh,26px) 0 14px; padding:20px; border-radius:18px; background:#fffaf1; color:var(--deep); }
.wallet-options h3 { font-size:27px; }
.wallet-options p { margin:8px auto 16px; max-width:310px; }
.wallet-options button:not(.link) { width:100%; margin:4px 0; background:black; color:white; min-height:50px; font-size:17px; border-radius:12px; }
.wallet-options .link { display:flex; margin:auto; min-height:36px; }
.join-success small,.preview-links .link { color:#e1ecd9; }
.preview-links { display:flex; justify-content:center; gap:22px; }
.preview-links .link { font-size:14px; }
body:has(.join-success) footer { display:none; }
.join-success .pass-dialog button { margin-top:12px; }
@media(max-height:680px){
  .success-check {display:none}
  .wallet-options {padding:12px}
  .wallet-options p {font-size:14px;margin:5px auto}
}

.roster-head {
  display: flex;
  align-items: center;
  gap: clamp(7px, 1.6vw, 14px);
  padding-right: clamp(10px, 3vw, 22px);
}
.roster-entry[data-open="true"] .roster-head { background: var(--sage); }
.roster-entry .roster-head.inactive { background: #e8e9e6; }
.roster-head .member { flex: 1; min-width: 0; padding-right: 0; }
.roster-head .balance-ring { margin-left: 3px; }
.quick-drink {
  flex: 0 0 46px;
  height: 46px;
  border-radius: 50%;
  padding: 0;
  background: #e8e8e8;
  color: #000;
  transition: background-color .16s, transform .12s;
}
.quick-drink:active:not(:disabled) { transform: scale(.9); }
.quick-drink.recorded {
  color: #fff;
  background: #21834e;
  opacity: 1;
  animation: drink-confirm .45s ease-out;
}
.quick-drink.recorded svg path {
  stroke-dasharray: 30;
  animation: draw-check .32s ease-out;
}
.record-announcement { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
@keyframes draw-check { from { stroke-dashoffset:30; } to { stroke-dashoffset:0; } }
@keyframes drink-confirm {
  0% { transform:scale(.88); box-shadow:0 0 0 0 #21834e55; }
  45% { transform:scale(1.09); }
  100% { transform:scale(1); box-shadow:0 0 0 10px #21834e00; }
}
@media (prefers-reduced-motion: reduce) {
  .quick-drink, .quick-drink.recorded, .quick-drink.recorded svg path { animation:none; transition:none; }
}

.counter-list {
  --control-gap: clamp(7px, 1.6vw, 14px);
  --row-right: clamp(10px, 3vw, 22px);
  --drink-size: 46px;
}
.roster-head { gap: var(--control-gap); padding-right: var(--row-right); }
.quick-drink { flex-basis: var(--drink-size); height: var(--drink-size); }
.roster-columns {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr repeat(2, var(--drink-size)) 51px;
  gap: var(--control-gap);
  padding: 9px var(--row-right) 9px clamp(12px, 3vw, 22px);
  background: var(--green);
  color: #e1eadf;
  font: 700 12px/1.3 var(--sans);
}
.roster-columns span:not(:first-child) { justify-self: center; white-space: nowrap; }
.counter-list .search { margin-bottom: 4px; }
.counter-list .roster-entry { scroll-margin-top: 42px; }

.first-month { margin: 16px 0; line-height: 1.4; }
.first-month p { margin: 5px 0; font-size: 15px; }
.signup-settings { background: #fffefa; color: #182e23; padding: 16px 20px; border-radius: 14px; margin-bottom: 24px; }
.signup-settings summary { cursor: pointer; font-size: 19px; font-weight: 700; }
.signup-fields { display: flex; flex-wrap: wrap; gap: 12px; }
.signup-fields label { flex: 1 1 140px; }
.signup-fields select { display: block; width: 100%; margin-top: 6px; padding: 10px; }
.signup-window { border-top: 1px solid #d6ded6; margin-top: 16px; padding-top: 14px; }
.signup-window p { margin: 4px 0; }
.signup-window > div { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }
.signup-settings .link { color: #234735; margin-left: 8px; }

.demo-save-note {
  margin-bottom: 18px; padding: 14px 18px; border-radius: 12px;
  background: #e4eee5; color: #203b2e; text-align: left;
}
.demo-save-note p { margin: 4px 0 0; font-size: 15px; line-height: 1.4; }

.demo-checkout { max-width: 470px; color: var(--deep); }
.demo-checkout form { padding: clamp(16px,4vw,24px); }
.checkout-heading, .payment-title, .due-row, .demo-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.checkout-heading h2 { margin: 0; font-size: clamp(23px,5vw,29px); }
.demo-checkout p { margin: 4px 0; font-size: 15px; line-height: 1.35; }
.term-options { border: 0; padding: 0; margin: 16px 0; min-width: 0; }
.term-options legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.term-options label {
  display: grid; grid-template-columns: 19px 1fr auto; gap: 10px; align-items: center;
  padding: 13px 12px; margin: 0 0 8px; border: 1px solid #aab5ac; border-radius: 12px; cursor: pointer;
}
.term-options label:has(:checked) { background: #e6f3e6; border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.term-options input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.term-options span small { display: block; line-height: 1.25; }
.term-options strong { font-size: 19px; }
.demo-contact { display: grid; grid-template-columns: 2fr 3fr; gap: 10px; }
.demo-contact label { margin: 0; min-width: 0; }
.demo-contact input { min-width: 0; padding: 11px 9px; font-size: 16px; }
.payment-title { margin: 16px 0 5px; }
.demo-card { justify-content: flex-start; border: 1px solid var(--line); padding: 10px; border-radius: 8px; background: #f4f5f2; }
.demo-card span { margin-left: auto; }
.due-row { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 21px; }
.demo-checkout .checkout-submit { margin-top: 16px; border-radius: 12px; background: #57e595; color: #102d20; font-size: 19px; }
@media(max-width:360px){.demo-contact { grid-template-columns: 1fr; }}

.quick-drink { position: relative; overflow: visible; touch-action: manipulation; }
.drink-tally {
  position: absolute;
  top: -5px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border: 2px solid #fffefa;
  border-radius: 999px;
  background: #162c21;
  color: white;
  font: 700 13px/1 var(--sans);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.quick-drink:disabled:has(.drink-tally) { opacity: 1; }
.quick-drink:disabled:not(.recorded):has(.drink-tally) svg { opacity: .4; }
@media (prefers-reduced-motion: no-preference) {
  .drink-tally { animation: tally-pop .18s ease-out; }
  @keyframes tally-pop { from { transform: scale(.75); } 65% { transform: scale(1.14); } }
}

.roster-head .quick-undo {
  display: flex;
  flex: 0 0 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #35463e;
  font: 600 12px/1.1 var(--sans);
  touch-action: manipulation;
}
.roster-head .quick-undo:active { background: #e8e8e8; }

.quick-drink.at-limit:not(.recorded) { background: #f2f2ef; color: #727672; }
.sms-choice { display:flex; gap:10px; align-items:flex-start; font-size:15px; }
.sms-choice input { width:19px; height:19px; flex:none; margin:2px 0 0; accent-color:var(--green); }
.sms-choice small { display:block; margin-top:4px; line-height:1.35; }
.code-fields p, .recover-pass p { font-size:15px; line-height:1.4; }
.recover-pass { background:var(--paper); color:var(--deep); text-align:left; padding:22px; border-radius:16px; width:min(100%,400px); overflow:auto; }
.recover-pass h2 { color:var(--deep); font-size:28px; }
body:has(.recover-pass), body:has(.recover-pass) .phone-pass { overflow:auto; height:auto; }
.pass-dialog form input, .recover-pass input { color:var(--deep); }

/* Keep the actual app viewport intact across device changes, including dialogs. */
.device-studio {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  justify-items: center;
  gap: 18px;
  padding: 18px 20px 26px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 34%, #f9f8f3, #dce3d9);
}
.device-picker {
  display: flex;
  padding: 4px;
  border: 1px solid #274b3a24;
  border-radius: 32px;
  background: #ffffffd9;
  box-shadow: 0 2px 6px #1839280a;
}
.device-picker button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 104px;
  min-height: 38px;
  margin: 0;
  padding: 6px 14px;
  border: 0;
  border-radius: 24px;
  color: var(--deep);
  background: transparent;
  font: 500 16px/1.3 var(--sans);
}
.device-picker button:hover { background: var(--sage); }
.device-picker button[aria-pressed=true] { background: var(--green); color: white; }
.device-picker button:focus-visible { outline: 3px solid #986023; outline-offset: 2px; }
.device-stage { position: relative; width: 100%; min-height: 0; }
.device-shell {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max-content;
  transform: translate(-50%,-50%) scale(var(--fit,1));
  border-radius: 42px;
  background: #151716;
  box-shadow: inset 0 0 0 2px #606560,0 0 0 1px #252925,0 18px 36px -10px #152a2044;
}
.device-shell iframe { display: block; border: 0; border-radius: 32px; background: var(--green); }
.device-shell.tablet { border-radius: 32px; }
.device-shell.tablet iframe { border-radius: 13px; }
.device-shell::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  border-radius: 8px;
  background: #454946;
}
.device-shell.tablet::before { top: 7px; width: 6px; height: 6px; background: #303b44; }
.demo-contact { grid-template-columns: minmax(0,1fr); }

.owner-plans { max-width: 600px; margin-inline: auto; color: var(--deep); }
.plan-heading, .plan-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan-heading { margin-bottom: 20px; flex-wrap: wrap; }
.plan-heading h2 { font-size: clamp(25px, 5vw, 35px); }
.plan-heading button { padding: 8px 14px; min-height: 40px; }
.plan-list { display: grid; gap: 10px; }
.plan-line {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: 14px;
  background: #fffefa;
  color: var(--deep);
  border: 1px solid #d8ddd3;
  border-radius: 12px;
  padding: 17px 15px;
  text-align: left;
}
.plan-copy { display: grid; gap: 3px; overflow-wrap: anywhere; }
.plan-copy small::first-letter { text-transform: uppercase; }
.plan-copy strong { font: 22px/1.15 var(--serif); }
.plan-line small { color: #44574b; font: 400 15px/1.3 var(--sans); }
.plan-cost { font: 700 19px var(--sans); }
.plan-edit { font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.owner-hint { font-size: 15px; color: #44574b; margin: 16px 0; }
.owner-plans .signup-settings {
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 0 0;
  background: transparent;
}
.owner-plans .signup-settings summary { font: 500 17px var(--sans); }
.plan-editor .twocol label, .plan-option label { margin: 0; }
.plan-editor [hidden] { display: none; }
.plan-editor input[type=checkbox] { accent-color: var(--green); flex: none; cursor: pointer; }
.plan-editor .check { cursor: pointer; min-height: 40px; }
.plan-options { margin: 22px 0 0; padding: 8px 0 14px; border: 0; border-block: 1px solid var(--line); min-width: 0; }
.plan-options legend { padding: 0 10px 0 0; font: 22px var(--serif); }
.plan-option { min-height: 46px; flex-wrap: wrap; }
.plan-option > label:last-child:not([hidden]) { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.plan-option input[type=number] { width: 76px; padding: 9px; margin: 0; font-size: 16px; }
.plan-options small { display: block; color: #44574b; font-size: 14px; margin-bottom: 12px; }
.plan-editor .actions button:first-child { flex: 1; }
.food-benefit { font-weight: 600; margin: 6px 0; }
.tier-row:has(.tier-notes small + small) { grid-template-rows: 1fr auto auto 1fr; }
@media(max-width:480px) {
  .plan-heading h2 { font-size: 24px; }
  .plan-heading button { font-size: 15px; padding-inline: 10px; }
  .plan-line { gap: 10px; padding-inline: 12px; }
  .plan-editor .twocol { gap: 10px; font-size: 15px; }
  .plan-editor input { font-size: 16px; }
}

.device-studio {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 45%);
  grid-template-rows: minmax(0, 1fr);
  padding: 24px;
  gap: 12px;
}
.device-stage { grid-area: 1 / 1; }
.preview-controls {
  grid-area: 1 / 2;
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 16px;
}
.preview-controls .demo-switch {
  display: flex;
  position: static;
  margin: 0;
  padding: 4px;
  background: #ffffffd9;
  border: 1px solid #274b3a24;
  box-shadow: 0 2px 6px #1839280a;
}
.preview-controls .demo-switch button {
  color: var(--deep);
  font: 500 16px var(--sans);
  min-width: 78px;
  min-height: 38px;
}
.preview-controls .demo-switch button.selected { background: var(--green); color: white; }
html:has(.device-studio) { overflow: hidden; }
body:has(.join-header), #root:has(> .join-header) {
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#root:has(> .join-header) { flex: 1; }
.join-header + main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.join-header + main > #memberships {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  margin-block: auto;
}
.join-header + main .plans { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.join-header + main .tier-continue { flex: none; }
.join-header ~ footer { flex: none; }
@media (max-height: 540px) {
  header.join-header { flex-direction: row; justify-content: center; gap: 12px; padding: 4px 0; }
  .join-header + main .tier-continue { min-height: 38px; margin-top: 5px; }
}

body:has(.join-header) header.join-header { margin-top: auto; flex: none; }
.join-header + main { flex: 0 1 auto; margin-block: clamp(8px, 3dvh, 32px) auto; }
@media (max-height: 540px) {
  .join-header + main { margin-top: 0; }
  .join-header + main .plans { gap: 4px; }
  .join-header + main .tier-row { min-height: 48px; }
}
