/* Matches www.ebslabs.co: black, Onest text, Inter wordmark, white pill buttons.
   Fonts are SIL OFL (fonts/*-OFL.txt) and load from this site only: Onest (Latin,
   variable) through a Vercel rewrite of the pinned @fontsource-variable/onest@5.3.1
   file, Inter as a trimmed copy holding just the "ebs." wordmark. */
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-wordmark-750.woff2") format("woff2");
  font-weight: 750;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #ffffff;
  --soft: rgba(255, 255, 255, 0.76);
  --muted: rgba(255, 255, 255, 0.56);
  --line: rgba(255, 255, 255, 0.14);
  --panel: #0f0f12;
  --field: #141418;
  --paper: #f5f2ea;
  --paper-ink: #1b1b1f;
  --earn: #4f46e5;
  font-family: Onest, ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #000;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 50% -10%, #17203d 0%, #070912 45%, #000 75%) no-repeat,
    #000;
  -webkit-font-smoothing: antialiased;
}
main {
  max-width: 480px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand, .brand-small {
  font-family: Inter, Onest, ui-sans-serif, sans-serif;
  font-weight: 750;
  letter-spacing: -0.06em;
}
.brand {
  font-size: 30px;
}
.pill {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--soft);
}
.pill.test {
  border-color: #f5c451;
  color: #f5c451;
}

/* The café comes first: customers should see at once who invited them. */
.hero {
  padding: 40px 0 8px;
}
.cafe {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}
.cafe small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}
.cafe strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #000;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.5px;
}
h1 {
  font-size: clamp(36px, 10vw, 46px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 26px 0 14px;
}
.lede {
  color: var(--soft);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Paper receipt, like the one on the homepage. */
.receipt {
  position: relative;
  margin: 30px 6px 6px;
  padding: 20px 20px 26px;
  background: var(--paper);
  color: var(--paper-ink);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.6;
  transform: rotate(-1.5deg);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
}
.receipt-cafe {
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.receipt-meta {
  text-align: center;
  color: #5d5b57;
  font-size: 12px;
}
.receipt-meta + .receipt-row {
  margin-top: 12px;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed #b9b4a8;
  padding-top: 10px;
  font-weight: 700;
}
.receipt-earn {
  margin-top: 8px;
  color: var(--earn);
  font-weight: 700;
}

#status {
  font-size: 15px;
  line-height: 1.5;
  color: var(--soft);
  margin: 24px 0;
  overflow-wrap: anywhere;
}
#status:empty {
  margin: 12px 0;
}

form > label:first-of-type {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 10px;
}
.linking {
  font-size: 15px;
  line-height: 1.5;
  color: var(--soft);
  border-left: 2px solid rgba(255, 255, 255, 0.5);
  padding-left: 12px;
  margin: 4px 0 18px;
}
.muted {
  color: var(--muted);
  font-weight: 400;
}
input:not([type="checkbox"]) {
  width: 100%;
  background: var(--field);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
  font: inherit;
  font-size: 17px;
  margin-bottom: 22px;
  min-height: 54px;
}
input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}
.choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
  line-height: 1.5;
  font-size: 15px;
  color: var(--soft);
}
.choice input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  accent-color: #fff;
  margin: 0;
}
.choice small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 3px;
}
button {
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  min-height: 56px;
  width: 100%;
  padding: 14px 22px;
  margin-top: 8px;
  cursor: pointer;
}
button:active {
  transform: scale(0.99);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.fine {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 14px 0 0;
}

#ready {
  margin-top: 28px;
}
#ready h2 {
  font-size: clamp(36px, 10vw, 46px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0 0 22px;
}
/* Dark stat card, like "Today · 86 orders" on the homepage. */
.balance {
  display: grid;
  gap: 4px;
  padding: 22px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.balance-label {
  font-size: 14px;
  color: var(--muted);
}
.balance-value {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.balance-note {
  font-size: 15px;
  color: var(--soft);
  line-height: 1.5;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.brand-small {
  color: var(--ink);
  font-size: 15px;
}
[hidden] {
  display: none !important;
}

/* Terms and privacy pages */
.legal h1 {
  font-size: clamp(32px, 8vw, 40px);
  margin: 34px 0 10px;
}
.legal h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 30px 0 6px;
}
.legal p, .legal ul {
  color: var(--soft);
  font-size: 16px;
  line-height: 1.6;
}
.legal ul {
  padding-left: 20px;
}
.legal li + li {
  margin-top: 6px;
}
.draft {
  border: 1px solid #8a6a24;
  background: #2a2008;
  color: #f1d79c;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  margin-top: 22px;
}
