/* The landing page commits to one look: the lock screen's night ground
   (packages/ui/src/tokens.css), the brand purple, and a thermal ticket. */
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/geist-mono.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --night: #14121c;
  --night-line: #2a2638;
  --night-ink: #edeaf5;
  --night-muted: #9d97b0;
  --brand: #7c3aed;
  --brand-lit: #b794ff;
  --paper: #fdfcf8;
  --paper-ink: #1d1b16;
  --paper-muted: #5f5c52;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--night);
  background-image: radial-gradient(circle at 1px 1px, var(--night-line) 1px, transparent 0);
  background-size: 22px 22px;
  color: var(--night-ink);
  font: 16px/1.55 var(--sans);
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 20px clamp(16px, 4vw, 40px);
  font-size: 14px;
  color: var(--night-muted);
}

.logo { display: flex; align-items: center; gap: 10px; color: var(--night-ink); text-decoration: none; }
.logo svg { display: block; flex: none; }
.word { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.next { color: var(--brand-lit); }

.right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.lang { display: flex; border: 1px solid var(--night-line); border-radius: 999px; padding: 2px; }
.lang button {
  font: 600 12px var(--sans);
  letter-spacing: 0.06em;
  color: var(--night-muted);
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
}
.lang button[aria-pressed='true'] { background: var(--night-ink); color: var(--night); }

:focus-visible { outline: 2px solid var(--brand-lit); outline-offset: 2px; }

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 56px;
  align-items: center;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 40px) 48px;
}

h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--brand-lit); }

.tagline { margin: 20px 0 0; font-size: clamp(18px, 2vw, 21px); color: var(--night-muted); max-width: 30ch; }

/* The ticket feeds out of a printer slot once, on load. */
.printer { overflow: hidden; padding-top: 6px; }
.slot { height: 10px; margin: 0 -8px; border-radius: 6px; background: #000; box-shadow: 0 2px 0 var(--night-line); }
.ticket {
  position: relative;
  margin: 0 6px 8px;
  padding: 18px 18px 24px;
  background: var(--paper);
  color: var(--paper-ink);
  font: 13.5px/1.6 var(--mono);
  animation: feed 2.4s steps(14) both;
}
.ticket::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 8px;
  background:
    linear-gradient(-45deg, transparent 6px, var(--paper) 0) 0 0 / 12px 8px,
    linear-gradient(45deg, transparent 6px, var(--paper) 0) 0 0 / 12px 8px;
}
@keyframes feed { from { transform: translateY(-100%); } to { transform: none; } }

.ticket .c { text-align: center; }
.ticket .big { font-size: 22px; font-weight: 600; letter-spacing: 0.02em; }
.ticket hr { border: 0; border-top: 1px dashed var(--paper-muted); margin: 10px 0; }
.ticket .r { display: flex; justify-content: space-between; gap: 10px; }
.ticket .mod { padding-left: 18px; color: var(--paper-muted); }
.ticket .st { background: var(--paper-ink); color: var(--paper); padding: 0 8px; font-weight: 600; }
.ticket .t { font-weight: 600; font-variant-numeric: tabular-nums; }

.foot { font-size: 13px; }

@media (max-width: 820px) {
  .stage { grid-template-columns: 1fr; gap: 32px; padding-top: 8px; }
  .printer { max-width: 360px; width: 100%; justify-self: center; }
  .what { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ticket { animation: none; }
}
