/* OMR Scanner — public landing page.
   Scoped under .lp so it never touches static/style.css, which still runs
   the login/tool/result pages. Colour comes entirely from theme-tokens.css
   (blue & white by default, dark via [data-theme="dark"]) — no colour is
   hardcoded here. */

.lp { background: var(--bg); color: var(--fg); font-family: var(--body);
      font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
      transition: background .2s ease, color .2s ease; }
.lp * { box-sizing: border-box; }
.lp a { color: inherit; text-decoration: none; }
.lp ::selection { background: var(--accent); color: var(--accent-ink); }

.lp-skip { position: fixed; top: .5rem; left: .5rem; z-index: 100;
           transform: translateY(-200%);
           padding: .55rem 1rem; border-radius: var(--radius-tight);
           background: var(--accent); color: var(--accent-ink);
           font-size: .875rem; font-weight: 600; }
.lp-skip:focus-visible { transform: translateY(0); outline: 2px solid var(--accent); outline-offset: 2px; }

.lp-shell { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- nav ---------- */
.lp-nav { position: sticky; top: 0; z-index: 20;
          background: var(--nav-bg); backdrop-filter: blur(10px);
          border-bottom: 1px solid var(--line); }
.lp-nav__in { display: flex; align-items: center; gap: 1.2rem; height: 64px; }
.lp-nav__brand { font-family: var(--display); font-weight: 600;
                 font-size: 1.08rem; letter-spacing: -.01em; }
.lp-nav__links { display: flex; gap: 1.4rem; margin-left: auto; }
.lp-nav__links a { color: var(--muted); font-size: .875rem; }
.lp-nav__links a:hover { color: var(--accent); }
.lp-nav__actions { display: flex; align-items: center; gap: 1rem; }

/* ---------- buttons ---------- */
/* `.lp a { color: inherit }` is a class+element selector (0,1,1) — a bare
   `.lp-btn` (0,1,0) loses to it, so the button text would silently inherit
   the page foreground instead of its own colour. Every colour-bearing rule
   below is prefixed with `.lp ` (0,2,0) so it wins outright. */
.lp .lp-btn { display: inline-flex; align-items: center; gap: .5rem;
          padding: .68rem 1.3rem; border-radius: 999px; border: 1px solid var(--accent);
          background: var(--accent); color: var(--accent-ink);
          font-size: .9rem; font-weight: 600; cursor: pointer;
          transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.lp .lp-btn:hover, .lp .lp-btn:focus-visible { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.lp .lp-btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.lp .lp-btn--ghost:hover, .lp .lp-btn--ghost:focus-visible { border-color: var(--accent); color: var(--accent); background: transparent; }
.lp-btn--sm { padding: .5rem 1rem; font-size: .82rem; }
.lp-btn--lg { padding: .85rem 1.8rem; font-size: 1rem; }

/* ---------- hero ---------- */
.lp-hero { padding: 5rem 0 3.5rem; border-bottom: 1px solid var(--line); }
.lp-hero__in { display: grid; grid-template-columns: minmax(0, 5.4fr) minmax(0, 4.6fr);
               gap: 3rem; align-items: center; }
.lp-kicker { margin: 0 0 1rem; font-size: .82rem; color: var(--accent);
             font-family: var(--body); font-weight: 600; }
.lp-hero__title { margin: 0 0 1.2rem; font-family: var(--display); font-weight: 700;
                   font-size: clamp(2.2rem, 4.1vw, 3.1rem); line-height: 1.12;
                   letter-spacing: -.015em; color: var(--fg); }
.lp-hero__lead { margin: 0 0 2rem; max-width: 46ch; color: var(--muted); font-size: 1.02rem; }
.lp-hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.lp-hero__note { margin: 0; font-size: .82rem; color: var(--dim); }

/* ---------- hero sheet mock ---------- */
.lp-sheet { position: relative; border: 1px solid var(--line); border-radius: var(--radius);
            background: var(--surface); overflow: hidden; padding: 1.1rem;
            box-shadow: 0 18px 40px -28px rgba(15, 27, 45, .35); }
.lp-sheet__mark { position: absolute; width: 14px; height: 14px; border: 2px solid var(--line-2); }
.lp-sheet__mark--tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.lp-sheet__mark--tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.lp-sheet__mark--bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.lp-sheet__mark--br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.lp-sheet__sweep { position: absolute; left: 0; right: 0; height: 40%;
                   background: linear-gradient(180deg, transparent, var(--accent-soft), transparent);
                   animation: lp-sweep 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes lp-sweep {
  0%   { transform: translateY(-110%); }
  55%  { transform: translateY(220%); }
  100% { transform: translateY(220%); }
}

.lp-sheet__head { display: flex; justify-content: space-between; align-items: center;
                  font-family: var(--display); font-size: .74rem; color: var(--dim);
                  padding: .2rem .6rem 1rem; }
.lp-sheet__status { color: var(--accent); }
.lp-sheet__status::before { content: ""; display: inline-block; width: 6px; height: 6px;
                            border-radius: 50%; background: var(--accent); margin-right: .4rem; }

.lp-sheet__bubbles { display: grid; gap: .55rem; padding: 0 .6rem 1rem; }
.lp-row { display: flex; gap: .55rem; }
.lp-row i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2);
            display: block; }
.lp-row i.on { background: var(--accent); border-color: var(--accent); }

.lp-sheet__out { border-top: 1px solid var(--line); padding: .8rem .6rem 0;
                 display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.lp-out__row { display: flex; flex-direction: column; gap: .2rem; align-items: center;
               padding: .5rem 0; border: 1px solid var(--line); border-radius: 6px; }
.lp-out__row span { font-size: .68rem; color: var(--dim); font-family: var(--display); }
.lp-out__row b { font-size: .95rem; font-weight: 600; color: var(--fg); }

/* ---------- sections ---------- */
section { padding: 3.8rem 0; }
.lp-h2 { margin: 0 0 .6rem; font-family: var(--display); font-weight: 700;
         font-size: clamp(1.7rem, 3.2vw, 2.2rem); letter-spacing: -.01em; color: var(--fg); }
.lp-sub { margin: 0 0 2rem; color: var(--muted); max-width: 48ch; }

/* ---------- how it works ---------- */
.lp-how { border-bottom: 1px solid var(--line); }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; }
.lp-step { border-top: 1px solid var(--line-2); padding-top: 1rem; }
.lp-step__n { display: block; font-family: var(--display); font-size: .82rem;
              color: var(--accent); margin-bottom: .6rem; }
.lp-step h3 { margin: 0 0 .4rem; font-size: 1.05rem; font-weight: 600; color: var(--fg); }
.lp-step p { margin: 0; color: var(--muted); font-size: .88rem; }

/* ---------- capabilities ---------- */
.lp-caps__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
                 background: var(--line); border: 1px solid var(--line); }
.lp-cap { background: var(--bg); padding: 1.6rem; }
.lp-cap h3 { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 600; color: var(--fg); }
.lp-cap p { margin: 0; color: var(--muted); font-size: .9rem; max-width: 42ch; }

/* ---------- talk to us ---------- */
.lp-talk { border-top: 1px solid var(--line); text-align: center; }
.lp-talk__in { display: flex; flex-direction: column; align-items: center; }
.lp-talk__h, .lp-talk__sub { max-width: none; }

/* ---------- footer ---------- */
.lp-foot { border-top: 1px solid var(--line); padding-block: 2.2rem 4.5rem; }
.lp-foot__in { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.lp-foot__brand { font-family: var(--display); font-weight: 600; color: var(--fg); }
.lp-foot__tag { margin: 0; color: var(--dim); font-size: .875rem; }

/* The built-by badge now lives in static/built-by.css, loaded on every page
   (not just this one) — see that file. */

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .lp-hero__in { grid-template-columns: 1fr; }
  .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-caps__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lp-nav__links { display: none; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-hero { padding: 3.5rem 0 2.5rem; }
  section { padding: 3rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-sheet__sweep { animation: none; display: none; }
  .lp-btn, .built-by { transition: none; }
}
