/* Landing + signup. Same visual language as the check-in page, turned up. */

:root {
  --bg: #0b0e13;
  --surface: #12161d;
  --surface-2: #171c25;
  --line: #232a35;
  --text: #eef2f7;
  --muted: #8d99a9;
  --faint: #5d6879;
  --accent: #ff5a1f;
  --accent-2: #ffb020;
  --err: #f85149;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { letter-spacing: -.025em; }

/* ---------- Top bar ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -.01em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand-name { font-size: 15.5px; }

.nav-actions { display: flex; align-items: center; gap: 9px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 11px 18px;
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .08s, background .15s, box-shadow .15s;
}
.btn:hover { background: #ff7038; box-shadow: 0 6px 22px -8px var(--accent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }

.btn.sm { padding: 8px 14px; font-size: 14px; border-radius: 9px; }
.btn.lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn.full { width: 100%; }

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  box-shadow: none;
}
.btn.ghost:hover { background: var(--surface-2); color: var(--text); box-shadow: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  /* The glow deliberately overhangs its box. Clip it here rather than hiding
     overflow on <body>, which would also hide any REAL layout bug from the test
     that catches horizontal scroll. */
  overflow: hidden;
  max-width: 1140px;
  margin: 0 auto;
  padding: 76px 24px 64px;
  display: grid;
  grid-template-columns: 1fr minmax(0, 460px);
  gap: 56px;
  align-items: center;
}

/* The pop: a warm bloom behind the headline, so the page isn't a flat slab. */
.glow {
  position: absolute;
  top: -180px;
  left: -160px;
  width: 720px;
  height: 520px;
  pointer-events: none;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%);
  filter: blur(30px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ea043;
  box-shadow: 0 0 0 3px rgba(46, 160, 67, .18);
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  font-weight: 800;
}
.grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 28px;
  max-width: 54ch;
  font-size: 17.5px;
  color: var(--muted);
}
.lede b { color: var(--text); font-weight: 650; }

.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }

.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Hero art: a real QR, and the page it opens ---------- */

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.qr-card {
  margin: 0;
  padding: 14px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
  transform: rotate(-3deg);
  flex: none;
}
.qr { display: block; width: 150px; height: 150px; }
.qr-card figcaption {
  margin-top: 10px;
  text-align: center;
  color: #0b0e13;
  line-height: 1.35;
}
.qr-card figcaption b { display: block; font-size: 13px; }
.qr-url {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #5d6879;
}

.arrow { flex: none; width: 40px; color: var(--faint); }
.arrow svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* A miniature of the real check-in page */
.phone {
  flex: none;
  width: 208px;
  padding: 14px;
  background: #0d1117;
  border: 1px solid #262d38;
  border-radius: 18px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
  transform: rotate(2deg);
}
.ph-hero {
  height: 62px;
  border-radius: 9px;
  margin-bottom: 11px;
  background: linear-gradient(135deg, #3a4451, #232a34 60%, #161b22);
  border: 1px solid #262d38;
}
.ph-kicker {
  margin: 0 0 3px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.ph-head { margin: 0 0 4px; font-size: 16px; line-height: 1.15; color: #e8edf4; }
.ph-sub { margin: 0 0 11px; font-size: 10px; color: #8b97a8; }
.ph-card {
  padding: 10px;
  border-radius: 9px;
  background: #161b22;
  border: 1px solid #262d38;
}
.ph-label { display: block; font-size: 8.5px; font-weight: 600; margin-bottom: 3px; color: #e8edf4; }
.ph-input {
  padding: 6px 8px;
  margin-bottom: 8px;
  border-radius: 6px;
  background: #0d1117;
  border: 1px solid #262d38;
  font-size: 9.5px;
  color: #8b97a8;
}
.ph-btn {
  padding: 9px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}

/* ---------- The two numbers ---------- */

.numbers {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 24px 8px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 28px;
  align-items: center;
}
.num { text-align: center; }
.num strong {
  display: block;
  font-size: 44px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
}
.num span { font-size: 13px; color: var(--muted); }
.num.accent strong { color: var(--accent); }

.numbers-note {
  margin: 0;
  padding-left: 28px;
  border-left: 2px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
  max-width: 52ch;
}
.numbers-note b { color: var(--text); font-weight: 650; }

/* ---------- Steps ---------- */

.steps { max-width: 1140px; margin: 0 auto; padding: 64px 24px 8px; }
.steps h2 { margin: 0 0 26px; font-size: 24px; }

.steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.steps li {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.step-n {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
}
.steps li b { display: block; margin-bottom: 4px; font-size: 15px; }
.steps li p { margin: 0; font-size: 14px; color: var(--muted); }

code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 13px;
  white-space: nowrap;
}

/* ---------- Signup ---------- */

.signup {
  max-width: 1140px;
  margin: 0 auto;
  padding: 72px 24px 88px;
  display: grid;
  grid-template-columns: 1fr minmax(0, 380px);
  gap: 48px;
  align-items: center;
}
.signup-copy h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 32px); }
.signup-copy p { margin: 0; max-width: 46ch; font-size: 16px; color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9);
}

.field { display: block; margin-bottom: 15px; }
.label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}
.label em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); }

input {
  width: 100%;
  padding: 12px 13px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  /* 16px minimum, or iOS Safari zooms in on focus and the layout jumps. */
  font: inherit;
  font-size: 16px;
}
input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
::placeholder { color: var(--faint); }

.err {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: rgba(248, 81, 73, .1);
  border: 1px solid rgba(248, 81, 73, .35);
  border-radius: 8px;
  color: #ffb3ae;
  font-size: 14px;
}

.fine { margin: 14px 0 0; font-size: 13px; color: var(--faint); }
.fine.center { text-align: center; }
.fine a { color: var(--muted); }

/* ---------- Footer ---------- */

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 22px 24px 34px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
}
.foot a { color: var(--muted); }

/* ---------- 404 ---------- */

.wrap.gone {
  max-width: 560px;
  margin: 0 auto;
  padding: 90px 24px;
  text-align: center;
}
.gone h1 { font-size: 34px; }
.gone .sub { margin: 0 auto 24px; color: var(--muted); }
.gone .kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero, .signup { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 52px; }
  .hero-art { justify-content: flex-start; flex-wrap: wrap; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers-note { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
}

@media (max-width: 560px) {
  .nav { padding: 12px 16px; }
  .brand-name { display: none; }
  .hero, .numbers, .steps, .signup, .foot { padding-left: 16px; padding-right: 16px; }
  .arrow { display: none; }
  .qr-card, .phone { transform: none; }
  .hero-art { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Sign up with Google / Microsoft ---------- */

.sso { display: flex; flex-direction: column; gap: 10px; }
.sso-btn {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.sso-btn:hover { border-color: var(--accent); }

.or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 13px;
}
.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--line);
}
