/* ============================================================
   86 It — landing page (the "/" screen)
   Scoped to .lp so it can never touch the four app screens.
   Vibe: KDS terminal — grid backdrop, mono labels, ticket cards,
   glowing accents, grain, quiet micro-motion.
   Sections: tokens · backdrop · shell · hero · board · loop
             · commands · screens · results · footer · motion
   ============================================================ */

.lp {
  /* landing-only tokens (fall back to app tokens where shared) */
  --lp-bg: #0c0e11;
  --lp-panel: #12151a;
  --lp-panel-2: #171b21;
  --lp-line: #262c35;
  --lp-line-2: #333a45;
  --lp-text: #f2f1ec;
  --lp-muted: #99a1ad;
  --lp-dim: #6b7480;
  --lp-green: #3fbe90;
  --lp-green-deep: #0f7a57;
  --lp-amber: #ff9f0a;
  --lp-red: #ff4d5e;
  --lp-blue: #4d9dff;
  --lp-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --lp-sans: 'Space Grotesk', system-ui, sans-serif;
  --lp-r: 18px;

  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 72px;
  isolation: isolate;
}

/* ── backdrop: grid + glows + grain ─────────────────────── */
.lp::before {
  content: '';
  position: fixed;
  inset: -10vh -20vw;
  z-index: -2;
  background-image:
    linear-gradient(rgba(51, 58, 69, .34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 58, 69, .34) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 15%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 15%, transparent 78%);
  pointer-events: none;
}
.lp::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .16;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.5'/></svg>");
  mix-blend-mode: soft-light;
}

/* ── shell ──────────────────────────────────────────────── */
.lp section { position: relative; }

.lp-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  font: 700 11px/1 var(--lp-mono);
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--lp-dim);
}
.lp-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--lp-line), transparent);
}
.lp-eyebrow b { color: var(--lp-green); font-weight: 700; }

.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--lp-panel-2);
  border: 1px solid var(--lp-line);
  font: 700 11px/1 var(--lp-mono);
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--lp-muted);
}
.lp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lp-green);
  box-shadow: 0 0 0 0 rgba(63, 190, 144, .55);
  animation: lp-ping 2.6s ease-out infinite;
}
@keyframes lp-ping {
  0% { box-shadow: 0 0 0 0 rgba(63, 190, 144, .5); }
  70% { box-shadow: 0 0 0 8px rgba(63, 190, 144, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 190, 144, 0); }
}

/* ── hero ───────────────────────────────────────────────── */
.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 56px;
  align-items: center;
  padding: 58px 0 8px;
}

.lp-h1 { margin: 0; font-weight: 700; }

.lp-lockup {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font: 700 clamp(76px, 9.4vw, 132px)/0.86 var(--lp-sans);
  letter-spacing: -.055em;
  color: var(--lp-text);
  margin: 20px 0 0;
}
.lp-lockup .it { color: var(--lp-green); }
.lp-lockup .flame {
  width: clamp(34px, 4vw, 54px);
  margin-left: 14px;
  margin-top: 4px;
  filter: drop-shadow(0 8px 24px rgba(255, 159, 10, .35));
  animation: lp-flicker 3.4s ease-in-out infinite;
}
@keyframes lp-flicker {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.035); }
}

.lp-tag {
  display: block;
  margin-top: 22px;
  font: 700 clamp(24px, 2.5vw, 34px)/1.15 var(--lp-sans);
  letter-spacing: -.03em;
  color: var(--lp-text);
}
.lp-tag i { font-style: normal; color: var(--lp-green); }

.lp-lede {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.6;
  color: var(--lp-muted);
}
.lp-lede b { color: var(--lp-text); font-weight: 600; }

.lp-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 13px;
  font-weight: 600;
  font-size: 15.5px;
  border: 1px solid var(--lp-line-2);
  background: linear-gradient(180deg, var(--lp-panel-2), var(--lp-panel));
  color: var(--lp-text);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.lp-btn svg { width: 18px; height: 18px; }
.lp-btn:hover { transform: translateY(-2px); border-color: var(--lp-muted); }
.lp-btn.primary {
  background: linear-gradient(180deg, #17a87f, var(--lp-green-deep));
  border-color: #17a87f;
  color: #fff;
  box-shadow: 0 14px 30px -18px rgba(23, 168, 127, .95);
}
.lp-btn.primary:hover {
  border-color: #2ec49a;
  box-shadow: 0 18px 34px -16px rgba(23, 168, 127, .95);
}
.lp-btn.ghost { background: transparent; }
.lp-btn.ghost:hover { background: rgba(255, 255, 255, .04); }

.lp-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 38px;
  border-top: 1px solid var(--lp-line);
  padding-top: 20px;
}
.lp-facts > div { padding-right: 16px; }
.lp-facts > div + div { padding-left: 20px; border-left: 1px solid var(--lp-line); }
.lp-facts b {
  display: block;
  font: 700 clamp(24px, 2.3vw, 30px)/1 var(--lp-mono);
  letter-spacing: -.04em;
  color: var(--lp-text);
}
.lp-facts b em { font-style: normal; color: var(--lp-green); }
.lp-facts span {
  display: block;
  margin-top: 7px;
  font: 600 10.5px/1.35 var(--lp-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--lp-dim);
}

/* ── hero board (live ticket) ───────────────────────────── */
.lp-board-wrap { position: relative; }

.lp-board {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .028), transparent 150px), var(--lp-panel);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r);
  overflow: hidden;
  box-shadow: 0 40px 80px -50px #000, 0 1px 0 rgba(255, 255, 255, .04) inset;
}
.lp-board::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--lp-r);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(63, 190, 144, .14), 0 0 60px -30px rgba(63, 190, 144, .8);
}
.lp-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  background: linear-gradient(180deg, #12906a, var(--lp-green-deep));
}
.lp-board-head h2 {
  margin: 0;
  font: 700 13px/1 var(--lp-mono);
  text-transform: uppercase;
  letter-spacing: .2em;
  color: #eafff6;
}
.lp-board-head .live { background: rgba(0, 0, 0, .28); border-color: rgba(255, 255, 255, .28); color: #d9f7ec; }

.lp-board-body { padding: 6px 18px 4px; }
.lp-brow {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px dashed var(--lp-line);
}
.lp-brow:last-child { border-bottom: none; }
.lp-brow > .lbl {
  font: 700 10.5px/1.5 var(--lp-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--lp-dim);
  padding-top: 4px;
}
.lp-brow .val { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-size: 14.5px; color: var(--lp-muted); }
.lp-brow .val b.mono { color: var(--lp-text); font-weight: 700; }
.lp-feed-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.lp-feed-mini li { display: flex; gap: 10px; font-size: 13.5px; color: var(--lp-muted); }
.lp-feed-mini time { font-family: var(--lp-mono); font-size: 12px; color: var(--lp-dim); flex-shrink: 0; }

.lp-board-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 18px;
  background: rgba(0, 0, 0, .26);
  border-top: 1px solid var(--lp-line);
  font: 600 11px/1 var(--lp-mono);
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--lp-dim);
}
.lp-board-foot .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--lp-panel-2); }
.lp-board-foot .bar i { display: block; height: 100%; width: 38%; background: linear-gradient(90deg, var(--lp-amber), var(--lp-red)); }

/* spoken line + result, stacked under the board */
.lp-say {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 0 6px;
  padding: 15px 26px 15px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #12a077, var(--lp-green-deep));
  color: #fff;
  font: 700 clamp(17px, 1.6vw, 21px)/1 var(--lp-mono);
  letter-spacing: -.01em;
  box-shadow: 0 26px 50px -34px rgba(18, 160, 119, .95);
}
.lp-say svg { width: 20px; height: 20px; flex: none; }
.lp-say .who {
  font: 700 10px/1 var(--lp-mono);
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .72);
  margin-left: 4px;
}

.lp-result {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: calc(100% - 40px);
  margin: 12px 0 0 44px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--lp-panel-2);
  border: 1px solid var(--lp-line);
  font: 600 clamp(12px, 1.05vw, 13.5px)/1 var(--lp-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lp-text);
}
.lp-result .ok { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; flex: none; }
.lp-result .ms { color: var(--lp-green); font-weight: 700; }
.lp-result::before {
  content: '';
  position: absolute;
  margin-left: -22px;
  margin-top: -30px;
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, transparent, var(--lp-line-2));
}

/* ── the loop ───────────────────────────────────────────── */
.lp-loop { margin-top: 92px; }
.lp-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.lp-step {
  position: relative;
  padding: 22px 20px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 140px), var(--lp-panel);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.lp-step:hover { transform: translateY(-4px); border-color: rgba(63, 190, 144, .45); }
.lp-step .n {
  font: 700 11px/1 var(--lp-mono);
  letter-spacing: .2em;
  color: var(--lp-green);
}
.lp-step h3 {
  margin: 16px 0 8px;
  font-size: 19px;
  letter-spacing: -.02em;
}
.lp-step p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--lp-muted); }
.lp-step .code {
  display: block;
  margin-top: 14px;
  font: 600 11px/1.5 var(--lp-mono);
  letter-spacing: .04em;
  color: var(--lp-dim);
  word-break: break-word;
}
.lp-step .code b { color: var(--lp-amber); font-weight: 700; }
.lp-step::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lp-green), transparent 70%);
  opacity: .5;
}
.lp-step:nth-child(2)::after { background: linear-gradient(90deg, var(--lp-blue), transparent 70%); }
.lp-step:nth-child(3)::after { background: linear-gradient(90deg, var(--lp-amber), transparent 70%); }
.lp-step:nth-child(4)::after { background: linear-gradient(90deg, var(--lp-red), transparent 70%); }

/* ── commands ───────────────────────────────────────────── */
.lp-commands { margin-top: 92px; }
.lp-cmd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 34px; }
.lp-cmd {
  display: grid;
  grid-template-columns: minmax(160px, .8fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: baseline;
  padding: 13px 4px;
  border-bottom: 1px solid var(--lp-line);
}
.lp-cmd .says {
  font: 700 14.5px/1.3 var(--lp-mono);
  color: var(--lp-green);
  letter-spacing: -.01em;
}
.lp-cmd .does { font-size: 14.5px; color: var(--lp-muted); }
.lp-cmd .does b { color: var(--lp-text); font-weight: 600; }
.lp-cmd.silent .says { color: var(--lp-dim); }
.lp-cmd.silent .does b { color: var(--lp-amber); }

/* ── screens ────────────────────────────────────────────── */
.lp-screens { margin-top: 92px; }
.lp-screen-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lp-screen {
  position: relative;
  display: block;
  text-decoration: none;
  padding: 22px 20px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 150px), var(--lp-panel);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.lp-screen:hover {
  transform: translateY(-5px);
  border-color: rgba(63, 190, 144, .5);
  box-shadow: 0 34px 60px -44px rgba(63, 190, 144, .7);
}
.lp-screen .ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(15, 122, 87, .18);
  border: 1px solid rgba(63, 190, 144, .3);
  color: var(--lp-green);
}
.lp-screen .ico svg { width: 21px; height: 21px; }
.lp-screen h3 { margin: 16px 0 7px; font-size: 19px; letter-spacing: -.02em; color: var(--lp-text); }
.lp-screen p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--lp-muted); }
.lp-screen .route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--lp-line);
  font: 600 11px/1 var(--lp-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--lp-dim);
}
.lp-screen .route .go { color: var(--lp-green); transition: transform .2s ease; }
.lp-screen:hover .route .go { transform: translateX(4px); }

/* ── results strip ──────────────────────────────────────── */
.lp-results {
  margin-top: 92px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.lp-stat {
  padding: 24px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 130px), var(--lp-panel);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r);
}
.lp-stat b {
  display: block;
  font: 700 clamp(30px, 3.2vw, 42px)/1 var(--lp-mono);
  letter-spacing: -.05em;
  color: var(--lp-green);
}
.lp-stat b small { font-size: .5em; color: var(--lp-dim); letter-spacing: 0; }
.lp-stat span {
  display: block;
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--lp-muted);
}
.lp-stat span b { display: inline; font: inherit; color: var(--lp-text); }

/* ── footer ─────────────────────────────────────────────── */
.lp-foot {
  margin-top: 78px;
  padding-top: 26px;
  border-top: 1px solid var(--lp-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: var(--lp-dim);
}
.lp-foot .name { font: 700 13px/1 var(--lp-mono); letter-spacing: .04em; color: var(--lp-muted); }
.lp-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.lp-foot a { color: var(--lp-muted); text-decoration: none; transition: color .15s; }
.lp-foot a:hover { color: var(--lp-green); }
.lp-foot .push { margin-left: auto; }
.lp-foot .stack { font: 600 11px/1 var(--lp-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--lp-dim); }

/* ── motion ─────────────────────────────────────────────── */
@keyframes lp-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.lp .anim { animation: lp-rise .7s cubic-bezier(.22, .8, .3, 1) both; }
.lp .anim-1 { animation-delay: .05s; }
.lp .anim-2 { animation-delay: .14s; }
.lp .anim-3 { animation-delay: .23s; }
.lp .anim-4 { animation-delay: .32s; }
.lp .anim-5 { animation-delay: .41s; }

/* ?static — freeze every animation, for screenshots and OG capture */
.is-static .lp .anim,
.is-static .lp-dot,
.is-static .lp-lockup .flame { animation: none !important; opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .lp .anim { animation: none !important; opacity: 1; transform: none; }
  .lp-dot, .lp-lockup .flame { animation: none !important; }
}

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .lp-hero { grid-template-columns: 1fr; gap: 44px; padding-top: 40px; }
  .lp-steps, .lp-screen-grid, .lp-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-cmd-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .lp { padding: 0 16px 52px; }
  .lp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  .lp-facts > div:nth-child(odd) { padding-left: 0; border-left: none; }
  .lp-steps, .lp-screen-grid, .lp-results { grid-template-columns: 1fr; }
  .lp-cmd { grid-template-columns: 1fr; gap: 6px; }
  .lp-brow { grid-template-columns: 1fr; gap: 8px; }
  .lp-say { margin-left: 0; }
  .lp-result { margin-left: 0; max-width: 100%; }
  .lp-result::before { display: none; }
  .lp-foot .push { margin-left: 0; }
}
