/* MeKiosk landing — design tokens lifted from "MeKiosk Landing v2" */
:root {
  --bg:            #F5F3EF;
  --surface:       #FFFFFF;
  --ink:           #1C1B19;
  --ink-hover:     #302E2A;
  --text:          #171614;
  --muted:         #5E5B55;
  --faint:         #A6A29A;
  --line:          #DDD9D1;
  --line-strong:   #C4BFB4;
  --sand:          #E8E4DC;
  --sand-2:        #E2DED6;
  --dark-surface:  #262421;
  --pos:           #1A7440;
  --pos-bg:        #E3F0E8;

  --shell:  1160px;
  --gutter: 24px;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --font: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--text); }
a:hover { color: var(--muted); }

h1, h2, h3, p { margin: 0; }
svg { display: block; }
img, svg { max-width: 100%; }
input::placeholder { color: var(--faint); }

:where(a, button, input):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.page { min-height: 100vh; display: flex; flex-direction: column; }

.shell {
  max-width: var(--shell);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--ink);
  color: #FFF;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; color: #FFF; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted);
}
.eyebrow--hero { font-size: 13px; }
.eyebrow--dark { color: var(--faint); }

.h1 {
  font-size: clamp(44px, 6.4vw, 72px);
  line-height: .98;
  font-weight: 800;
  letter-spacing: -.035em;
  text-wrap: pretty;
}
.h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.025em;
  text-wrap: pretty;
}
.lede {
  font-size: 19px;
  line-height: 29px;
  color: var(--muted);
  text-wrap: pretty;
}
.body-md {
  font-size: 17px;
  line-height: 26px;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #FFF;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--ink-hover); color: #FFF; }

.btn--field  { height: 48px; padding: 0 20px; border-radius: 10px; font-size: 15px; margin-left: 8px; }
.btn--screen { height: 44px; border-radius: 10px; font-size: 14px; width: 100%; }
.btn--invert {
  height: 56px;
  padding: 0 28px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 17px;
}
.btn--invert:hover { background: var(--sand); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand:hover { color: var(--text); }
.brand span em { font-style: normal; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a { font-size: 14px; font-weight: 600; text-decoration: none; }
.nav__link { padding: 8px 12px; }
.nav .btn { margin-left: 8px; }

@media (max-width: 599px) {
  .nav__link--secondary { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
  align-items: center;
  padding-block: 48px 80px;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 540px;
}
.hero__form { display: flex; flex-direction: column; gap: 10px; }

.slug-field {
  display: flex;
  align-items: center;
  height: 60px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0 6px 0 18px;
  gap: 4px;
  box-shadow: 0 1px 0 rgba(23, 22, 20, .04);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.slug-field:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(28, 27, 25, .08);
}
.slug-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  padding: 0;
}
.slug-field__suffix {
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 14px;
  color: var(--muted);
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero__meta li { display: flex; align-items: center; gap: 18px; }
.hero__meta li:not(:last-child)::after { content: '·'; color: var(--muted); }

.hero__art {
  width: 100%;
  max-width: 600px;
  justify-self: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.proof__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-width: 0;
}
.proof__card--row { display: flex; gap: 10px; align-items: center; }
.proof__card--stack { display: flex; flex-direction: column; gap: 6px; }
.proof__label { font-size: 13px; font-weight: 600; }
.proof__sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proof__head { display: flex; justify-content: space-between; align-items: center; }
.proof__ref { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.proof__name { font-size: 14px; font-weight: 600; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--pos-bg);
  color: var(--pos);
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Who it is for (dark) ---------- */
.who { background: var(--ink); color: #FFF; }
.who > .shell { padding-block: 72px; display: flex; flex-direction: column; gap: 40px; }
.who__intro { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.who__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.who__card {
  background: var(--dark-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.who__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.who__title { font-size: 20px; font-weight: 600; }
.who__text {
  font-size: 15px;
  line-height: 23px;
  color: var(--line-strong);
  text-wrap: pretty;
}

/* ---------- How it works ---------- */
.how {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: start;
  padding-block: 80px;
}
.how__copy { display: flex; flex-direction: column; gap: 32px; }
.how__intro { display: flex; flex-direction: column; gap: 12px; }

.steps { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--line-strong);
  line-height: 1;
}
.step__body { display: flex; flex-direction: column; gap: 6px; }
.step__title { font-size: 20px; font-weight: 600; }
.step__text {
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
  text-wrap: pretty;
}
.step__text strong { font-weight: 600; color: var(--text); }

/* ---------- Phone mock ---------- */
.phone-stage {
  display: flex;
  justify-content: center;
  background: var(--sand);
  border-radius: var(--radius-xl);
  padding: 40px 24px 0;
  overflow: hidden;
}
.phone {
  width: 100%;
  max-width: 272px;
  height: 520px;
  background: var(--ink);
  border-radius: 40px 40px 0 0;
  padding: 10px 10px 0;
}
.phone__screen {
  height: 100%;
  border-radius: 32px 32px 0 0;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone__status {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 22px;
  font-size: 12px;
  font-weight: 600;
}
.phone__notch { width: 36px; height: 9px; border-radius: 5px; background: var(--ink); }
.phone__content { padding: 6px 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.phone__shop { display: flex; align-items: center; gap: 10px; }
.phone__shop-meta { min-width: 0; }
.phone__shop-name,
.phone__shop-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phone__shop-name { font-size: 15px; font-weight: 600; }
.phone__shop-url { font-size: 12px; color: var(--muted); }

.phone__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.phone__item { display: flex; flex-direction: column; gap: 6px; }
.phone__item svg { border-radius: 10px; width: 100%; }
.phone__item-name { font-size: 12px; font-weight: 600; }
.phone__item-price { font-size: 12px; color: var(--muted); }

.phone__pay {
  margin-top: auto;
  padding: 12px 16px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phone__powered { text-align: center; font-size: 11px; color: var(--muted); }

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--ink);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex: none;
}
.avatar--initial { font-weight: 800; font-size: 16px; }
.avatar--2 { background: var(--muted); }
.avatar--3 { background: var(--faint); }
.avatar--4 { background: var(--sand-2); color: var(--muted); }

/* ---------- The money part ---------- */
.money {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.money > .shell {
  padding-block: 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: center;
}
.money__copy { display: flex; flex-direction: column; gap: 14px; }

.orders {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.orders__head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}
.orders__total { color: var(--muted); }
.order {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  align-items: center;
}
.order:not(:last-child) { border-bottom: 1px solid var(--line); }
.order__main { flex: 1; min-width: 0; }
.order__name { font-size: 15px; font-weight: 600; }
.order__detail { font-size: 13px; color: var(--muted); }
.order__side { text-align: right; }
.order__amount {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.order__state { font-size: 12px; font-weight: 600; color: var(--pos); }
.order__state--waiting { color: var(--muted); }

/* ---------- Fees ---------- */
.fees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: center;
  padding-block: 80px;
}
.fees__copy { display: flex; flex-direction: column; gap: 14px; }
.fees__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}
.fee {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fee__figure {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}
.fee__label { font-size: 14px; color: var(--muted); }

/* ---------- Closing CTA ---------- */
.cta { padding: 0 var(--gutter) 88px; max-width: var(--shell); width: 100%; margin-inline: auto; }
.cta__inner {
  background: var(--ink);
  color: #FFF;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.cta__title {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.03em;
  text-wrap: pretty;
  max-width: 620px;
}
.cta__note { font-size: 14px; color: var(--faint); }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); }
.site-footer > .shell {
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.site-footer nav { display: flex; gap: 16px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

.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;
}

.proof__body { min-width: 0; }
.phone-stage { margin: 0; }

/* Narrow phones: let the field breathe — the URL stays on one line,
   the submit button takes its own full-width row. */
@media (max-width: 520px) {
  .slug-field {
    height: auto;
    flex-wrap: wrap;
    padding: 12px 14px;
    gap: 10px 4px;
  }
  .slug-field input { flex: 1 1 120px; font-size: 17px; }
  .btn--field { flex: 1 1 100%; margin-left: 0; }
}

.nav a { white-space: nowrap; }

/* On wrap, the interpunct separators strand at line ends — the gap alone
   is enough to keep the three claims apart. */
@media (max-width: 520px) {
  .hero__meta { gap: 4px 16px; }
  .hero__meta li:not(:last-child)::after { content: none; }
}

/* ---------- 404 ---------- */
.notfound {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  padding-block: clamp(64px, 14vh, 140px);
  max-width: 560px;
}
.notfound .btn--wide { height: 48px; padding: 0 22px; font-size: 15px; margin-top: 8px; }

/* ---------- Waitlist ---------- */
.join {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: start;
  padding-block: clamp(40px, 8vh, 80px) 80px;
}
.join__copy { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.join--done { align-items: center; }
.join--done .join__copy { align-items: flex-start; gap: 18px; }

.pill--lg { padding: 6px 14px; font-size: 14px; align-self: flex-start; }

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 32px);
  max-width: 480px;
  width: 100%;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field__req, .field__opt { font-weight: 400; color: var(--muted); }
.field input {
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  font: inherit;
  font-size: 16px;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(28, 27, 25, .08);
}
.field input:user-invalid { border-color: #A3341F; }
.field__hint { font-size: 13px; line-height: 19px; color: var(--muted); }
.field__hint strong { color: var(--text); font-weight: 600; }

.form__error {
  background: #FBEAE5;
  border: 1px solid #E3B5A8;
  color: #7A2616;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 20px;
}
.form__note { font-size: 13px; line-height: 19px; color: var(--muted); }

.btn--wide { height: 52px; padding: 0 22px; font-size: 16px; width: 100%; }
.join--done .btn--wide { width: auto; margin-top: 6px; }

/* honeypot — off-screen rather than display:none, which some bots skip */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Waitlist dashboard (/admin) ---------- */
.admin { flex: 1; padding-block: 40px 72px; display: flex; flex-direction: column; gap: 24px; }
.admin__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.admin__stats { display: flex; gap: 28px; margin: 0; }
.admin__stats div { display: flex; flex-direction: column; gap: 2px; }
.admin__stats dt { font-size: 13px; color: var(--muted); }
.admin__stats dd {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

/* The table is wider than a phone; scroll it rather than the page. */
.admin__scroll {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.admin__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin__table th,
.admin__table td {
  text-align: left;
  padding: 12px 16px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.admin__table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  position: sticky;
  top: 0;
}
.admin__table tbody tr:last-child td { border-bottom: 0; }
.admin__table tbody tr:hover { background: var(--bg); }
.admin__when, .admin__meta { color: var(--muted); font-variant-numeric: tabular-nums; }
.admin__slug { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.admin__empty { color: var(--line-strong); }
.admin__none { text-align: center; color: var(--muted); padding: 40px 16px; }

.admin__pager { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  height: 38px;
  font-size: 14px;
}
.btn--ghost:hover { background: var(--surface); color: var(--text); }

/* ---------- Long-form pages (terms) ---------- */
.prose { flex: 1; max-width: 680px; padding-block: 48px 80px; }
.prose > * + * { margin-top: 16px; }
.prose h1 { margin-top: 12px; }
.prose h2 {
  margin-top: 40px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.prose p, .prose li { font-size: 16px; line-height: 26px; color: var(--muted); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.prose ul { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose__lead { margin-top: 20px; }
.prose__lead .body-md { color: var(--text); }
.prose__updated {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px !important;
}
