/* ==========================================================================
   APP LANDING PAGES: emailed downloads and health checks (session 2, 2026-11-28)
   The look of js/app-capture.js. One home: Reference/Architecture/APP_LANDING_PAGES_SPEC.md §6 and §9 (session 2).
   Every class starts lpc-. The website's quiet style (Website/CLAUDE.md, "Design system"): strong blue only on the
   submit button (a call to action) and the focus ring; answers picked are the pale accent tint; everything else grey
   and charcoal; 8px corners; no red, amber or green (a score here is not a drawn product screen).
   On a charcoal section add class lpc-on-dark to the container (or any ancestor).
   ⛔ Browsers keep this file: raise the ?v= stamp on every page that links it whenever it changes.
   ========================================================================== */
.lpc-download, .lpc-check { --lpc-ink: #1f2937; --lpc-head: #1f1f1f; --lpc-soft: #475569; --lpc-mute: #64748b; --lpc-line: #e2e8f0;
  --lpc-field: #f8fafc; --lpc-card: #ffffff; --lpc-chip: rgba(100, 116, 139, 0.12); --lpc-chip-line: rgba(100, 116, 139, 0.2);
  --lpc-pick: rgba(32, 83, 219, 0.10); --lpc-pick-ink: #1f2937; color: var(--lpc-ink); font-family: inherit; }
.lpc-on-dark .lpc-download, .lpc-on-dark .lpc-check, .lpc-download.lpc-on-dark, .lpc-check.lpc-on-dark {
  --lpc-ink: #e2e8f0; --lpc-head: #ffffff; --lpc-soft: rgba(255, 255, 255, 0.74); --lpc-mute: rgba(255, 255, 255, 0.6);
  --lpc-line: rgba(255, 255, 255, 0.14); --lpc-field: rgba(255, 255, 255, 0.06); --lpc-card: rgba(255, 255, 255, 0.04);
  --lpc-chip: rgba(255, 255, 255, 0.08); --lpc-chip-line: rgba(255, 255, 255, 0.14); --lpc-pick: rgba(96, 165, 250, 0.18); --lpc-pick-ink: #ffffff; }

/* the three fields */
.lpc-form { margin: 0; }
.lpc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lpc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lpc-field label { font-size: 0.8125rem; font-weight: 600; color: var(--lpc-soft); }
.lpc-field input { width: 100%; min-width: 0; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--lpc-line); background: var(--lpc-field);
  color: var(--lpc-head); font-size: 0.9375rem; font-family: inherit; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.lpc-field input:focus { border-color: #2053db; box-shadow: 0 0 0 3px rgba(32, 83, 219, 0.18); }
.lpc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 14px; }
.lpc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 22px; border: 0; border-radius: 8px;
  background: linear-gradient(135deg, #2053db, #1b46c0); color: #ffffff; font-size: 0.9375rem; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease; }
.lpc-btn:hover { transform: translateY(-1px); }
.lpc-btn:focus-visible { outline: 3px solid rgba(32, 83, 219, 0.45); outline-offset: 2px; }
.lpc-btn[disabled] { opacity: 0.65; cursor: default; transform: none; }
.lpc-note { margin: 0; font-size: 0.8125rem; line-height: 1.5; color: var(--lpc-mute); flex: 1 1 240px; }
.lpc-msg { margin: 12px 0 0; font-size: 0.875rem; color: var(--lpc-soft); }
.lpc-msg-error { color: var(--lpc-head); font-weight: 600; }
.lpc-sent { border: 1px solid var(--lpc-line); border-radius: 8px; padding: 18px 20px; background: var(--lpc-card); outline: none; }
.lpc-sent-title { margin: 0 0 4px; font-size: 1rem; font-weight: 700; color: var(--lpc-head); }
.lpc-sent-text { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--lpc-soft); }

/* the health check: questions */
.lpc-qs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lpc-q { border: 1px solid var(--lpc-line); border-radius: 8px; background: var(--lpc-card); padding: 16px 18px; transition: border-color 0.2s ease; }
.lpc-q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.lpc-q-text { display: flex; gap: 12px; align-items: flex-start; padding: 0; font-size: 0.9875rem; line-height: 1.5; font-weight: 600; color: var(--lpc-head); }
.lpc-q-n { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px;
  background: linear-gradient(135deg, #3a3a3a, #292929); color: #ffffff; font-size: 0.75rem; font-weight: 700; }
.lpc-opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0 38px; }
.lpc-opt { position: relative; display: inline-flex; cursor: pointer; }
.lpc-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lpc-opt span { display: inline-block; min-width: 76px; text-align: center; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--lpc-chip-line);
  background: var(--lpc-chip); color: var(--lpc-ink); font-size: 0.875rem; font-weight: 600; transition: background 0.15s ease; }
.lpc-opt input:checked + span { background: var(--lpc-pick); color: var(--lpc-pick-ink); border-color: transparent; font-weight: 700; }
.lpc-opt input:focus-visible + span { outline: 3px solid rgba(32, 83, 219, 0.45); outline-offset: 2px; }
.lpc-q-ref { margin: 8px 0 0 38px; font-size: 0.75rem; font-weight: 600; color: var(--lpc-mute); }
.lpc-progress { margin: 14px 0 0; font-size: 0.875rem; color: var(--lpc-mute); }
.lpc-q-words { min-width: 0; }
.lpc-q-area { display: block; margin: 1px 0 4px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lpc-mute); }

/* a quiz (session 12): each question's own choices, kept once picked; the correct one marked; the reason under them.
   Marked by weight, a border and a sign, never red or green (the header note above). */
.lpc-choices { display: grid; gap: 8px; margin: 12px 0 0 38px; }
.lpc-choice { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px; border-radius: 8px; border: 1px solid var(--lpc-chip-line);
  background: var(--lpc-chip); color: var(--lpc-ink); font-size: 0.9375rem; line-height: 1.45; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; }
.lpc-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lpc-choice-l { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px;
  border: 1px solid var(--lpc-chip-line); font-size: 0.75rem; font-weight: 700; color: var(--lpc-soft); }
.lpc-choice-t { flex: 1 1 auto; min-width: 0; }
.lpc-choice:hover { border-color: var(--lpc-soft); }
.lpc-choice:focus-within { outline: 3px solid rgba(32, 83, 219, 0.45); outline-offset: 2px; }
.lpc-answered .lpc-choice { cursor: default; opacity: 0.62; }
.lpc-answered .lpc-choice:hover { border-color: var(--lpc-chip-line); }
.lpc-answered .lpc-choice-key, .lpc-answered .lpc-choice-miss { opacity: 1; }
.lpc-choice-key { border-color: var(--lpc-head); background: var(--lpc-card); font-weight: 600; }
.lpc-choice-key .lpc-choice-l { background: var(--lpc-head); border-color: var(--lpc-head); color: var(--lpc-card); font-size: 0; }
.lpc-choice-key .lpc-choice-l::before { content: "\2713"; font-size: 0.75rem; }
.lpc-choice-miss { border-style: dashed; border-color: var(--lpc-soft); }
.lpc-choice-miss .lpc-choice-l { font-size: 0; }
.lpc-choice-miss .lpc-choice-l::before { content: "\2715"; font-size: 0.6875rem; }
.lpc-choice-miss .lpc-choice-t { text-decoration: line-through; text-decoration-thickness: 1px; }
.lpc-on-dark .lpc-choice-key .lpc-choice-l, .lpc-check.lpc-on-dark .lpc-choice-key .lpc-choice-l { color: #1f1f1f; }
.lpc-fb { margin: 12px 0 0 38px; padding: 10px 14px; border-left: 3px solid var(--lpc-head); border-radius: 0 8px 8px 0; background: var(--lpc-field);
  font-size: 0.9375rem; line-height: 1.55; color: var(--lpc-soft); }
.lpc-fb strong { color: var(--lpc-head); margin-right: 4px; }
.lpc-q-miss .lpc-fb { border-left-style: dashed; border-left-color: var(--lpc-soft); }

/* the health check: the result */
.lpc-result { margin-top: 22px; border: 1px solid var(--lpc-line); border-radius: 8px; background: var(--lpc-card); padding: 24px; }
.lpc-score { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 18px; }
.lpc-score-num { margin: 0; font-size: 3rem; line-height: 1; font-weight: 800; color: var(--lpc-head); letter-spacing: -0.02em; }
.lpc-score-num span { font-size: 1.25rem; font-weight: 600; color: var(--lpc-mute); }
.lpc-band { justify-self: start; margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--lpc-chip); border: 1px solid var(--lpc-chip-line);
  color: var(--lpc-head); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.02em; }
.lpc-meter { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--lpc-chip); overflow: hidden; }
.lpc-meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(135deg, #3a3a3a, #292929); }
.lpc-on-dark .lpc-meter i, .lpc-check.lpc-on-dark .lpc-meter i { background: #e2e8f0; }
.lpc-verdict h3 { margin: 20px 0 6px; font-size: 1.125rem; font-weight: 700; color: var(--lpc-head); }
.lpc-verdict p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--lpc-soft); }
.lpc-focus-h { margin: 22px 0 10px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lpc-mute); }
.lpc-focus { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lpc-focus li { border: 1px solid var(--lpc-line); border-left: 3px solid #d4d4d8; border-radius: 8px; padding: 12px 14px; }
.lpc-focus-meta { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--lpc-mute); }
.lpc-focus-area { margin: 4px 0 0; font-size: 0.9875rem; font-weight: 700; color: var(--lpc-head); }
.lpc-focus-good { margin: 4px 0 0; font-size: 0.875rem; line-height: 1.55; color: var(--lpc-soft); }
.lpc-mail { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--lpc-line); }
.lpc-mail h3 { margin: 0 0 4px; font-size: 1.0625rem; font-weight: 700; color: var(--lpc-head); }
.lpc-mail-lead { margin: 0 0 14px; font-size: 0.9375rem; line-height: 1.55; color: var(--lpc-soft); }

/* the questions beside a card that stays in view, from tablet width up (the planning thread's check of session 12) */
.lpc-side { display: none; }
@media (min-width: 761px) {
  .lpc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: start; }
  .lpc-side { display: block; position: sticky; top: 104px; }
  .lpc-progress { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 1100px) {
  .lpc-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
}
.lpc-side-card { border: 1px solid var(--lpc-line); border-radius: 8px; background: var(--lpc-card); padding: 20px; }
.lpc-side-k { margin: 0; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lpc-mute); }
.lpc-side-num { margin: 8px 0 0; font-size: 2.5rem; line-height: 1; font-weight: 800; letter-spacing: -0.02em; color: var(--lpc-head); }
.lpc-side-num span { font-size: 1.0625rem; font-weight: 600; color: var(--lpc-mute); }
.lpc-side-sub { margin: 6px 0 0; font-size: 0.875rem; color: var(--lpc-soft); }
.lpc-side-band { display: inline-block; margin: 12px 0 0; padding: 5px 12px; border-radius: 999px; background: var(--lpc-chip); border: 1px solid var(--lpc-chip-line);
  color: var(--lpc-head); font-size: 0.8125rem; font-weight: 700; }
.lpc-side-card .lpc-meter { margin-top: 14px; }
.lpc-side-note { margin: 12px 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--lpc-mute); }
.lpc-side-go { display: inline-flex; margin-top: 14px; font-size: 0.9375rem; font-weight: 700; color: #2053db; text-decoration: none; }
.lpc-side-go::after { content: "\2193"; margin-left: 6px; }
.lpc-side-go:hover { text-decoration: underline; }
.lpc-on-dark .lpc-side-go, .lpc-check.lpc-on-dark .lpc-side-go { color: #93c5fd; }

@media (max-width: 760px) {
  .lpc-fields { grid-template-columns: 1fr; }
  .lpc-opts, .lpc-q-ref, .lpc-choices, .lpc-fb { margin-left: 0; }
  .lpc-q { padding: 14px; }
  .lpc-opt { flex: 1 1 0; }
  .lpc-opt span { width: 100%; min-width: 0; padding: 11px 8px; }
  .lpc-btn { width: 100%; }
  .lpc-result { padding: 18px; }
  .lpc-score-num { font-size: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { .lpc-btn, .lpc-btn:hover { transition: none; transform: none; } }
