@font-face {
  font-family: "Heebo";
  src: url("/assets/Heebo.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #080a10;
  --panel: #111522;
  --card: #121923;
  --ink: #f5f7fa;
  --ink-2: #bdc6d2;
  --ink-3: #aeb7c9;
  --accent: #00c978;
  --accent-soft: #0a2a1f;
  --accent-ink: #062015;
  --rule: #2a3344;
  --error: #ff8f8f;
  --sans: "Heebo", ui-sans-serif, system-ui, sans-serif;
  --r: 14px;
}

* { box-sizing: border-box; }

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

body.ls-checkin {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color-scheme: dark;
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 520px 280px at 78% -4%, rgba(0, 201, 120, .09), transparent 72%),
    radial-gradient(ellipse 380px 220px at 8% 100%, rgba(0, 201, 120, .035), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

button, input { font-family: var(--sans); }
button { touch-action: manipulation; }

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

::selection { background: var(--accent); color: var(--accent-ink); }

.masthead {
  width: min(560px, calc(100% - 40px));
  padding: 26px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo {
  display: block;
  width: 168px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
}

.eyebrow {
  flex: 0 0 auto;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.app {
  width: min(560px, calc(100% - 40px));
  flex: 1 0 auto;
  padding-bottom: 52px;
}

.screen { padding: 14px 0 8px; }
.screen.fade { animation: enter .24s ease-out both; }
@keyframes enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.stem {
  margin: 0 0 12px;
  color: #f8faff;
  font-size: clamp(28px, 7.2vw, 36px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.03em;
  text-wrap: pretty;
}

.stem.accent {
  color: var(--accent);
  text-shadow: 0 0 28px rgba(0, 201, 120, .22);
}

.help {
  margin: 0 0 22px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
}

.help.lead {
  margin-bottom: 20px;
  font-size: 17px;
  color: var(--ink-3);
}

.help.lead strong {
  color: #f5f7fa;
  font-weight: 650;
}

.help.close {
  margin-top: 26px;
  margin-bottom: 0;
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--accent-soft);
  border: 1px solid rgba(0, 201, 120, .22);
  color: #edf3f7;
  font-weight: 600;
  text-align: center;
}
.help.again {
  margin-top: 18px;
  margin-bottom: 0;
  text-align: center;
}
.help strong { color: #edf3f7; font-weight: 600; }

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px 20px;
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

.field {
  color: #edf3f7;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .03em;
}

.hint {
  margin: -2px 0 4px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.5;
}

input[type="email"] {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid #4a5568;
  background: var(--panel);
  color: var(--ink);
  font-size: 17px;
}

input[type="email"]::placeholder { color: #7d8898; }
input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 201, 120, .18);
}

.cta {
  margin-top: 10px;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(0, 201, 120, .28);
  transition: filter .15s ease, transform .1s ease, box-shadow .15s ease;
}

.cta:hover {
  filter: brightness(1.06);
  box-shadow: 0 0 34px rgba(0, 201, 120, .42);
}
.cta:active { transform: translateY(1px); }

.error {
  margin: 4px 0 0;
  color: var(--error);
  font-size: 14px;
  font-weight: 550;
}

.rewards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rewards li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 16px 16px 14px;
  border-radius: var(--r);
  background: linear-gradient(180deg, #141c29 0%, var(--card) 100%);
  border: 1px solid rgba(42, 51, 68, .95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.reward-emoji {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #123528 0%, var(--accent-soft) 70%);
  border: 1px solid rgba(0, 201, 120, .32);
  box-shadow: 0 0 16px rgba(0, 201, 120, .14);
  font-size: 24px;
  line-height: 1;
}

.reward-body { min-width: 0; }

.rewards h2 {
  margin: 2px 0 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .08em;
}

.rewards p {
  margin: 0 0 7px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.55;
}

.rewards p:last-child { margin-bottom: 0; }
.rewards strong { color: #edf3f7; }

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .screen.fade { animation: none; }
  .cta { transition: none; }
  .cta:active { transform: none; }
}
