/* VOLAR landing — ops-packet layout. See DESIGN.md for the plan. */

:root {
  --paper: #FFFFFF;
  --paper-dim: #F5F8FA;
  --ink: #0C1B2A;
  --ink-soft: #4E6070;
  --rule: #C6D3DC;
  --accent: #4A9EFF;
  --accent-deep: #1D6FD3;
  /* Frutiger by request (2026-08-14): genuine Frutiger renders where it's
     installed; Hind (webfont) is the Frutiger-style humanist fallback that
     everyone else gets, then Segoe UI. */
  --display: "Frutiger", "Frutiger Neue LT Pro", "Frutiger LT Std", "Hind", "Segoe UI", sans-serif;
  --body: "Frutiger", "Frutiger Neue LT Pro", "Frutiger LT Std", "Hind", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--mono); }
/* !important: several render panes (.pdf-page, .pdf-empty) set display:flex
   with equal specificity later in this file — hidden must always win. */
.hidden { display: none !important; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }

img { max-width: 100%; display: block; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-login { color: var(--ink); font-weight: 500; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; font-weight: 600; font-size: 16px;
  padding: 10px 22px; border-radius: 6px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; font-family: var(--body);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent-deep); color: #fff; }
.btn-primary:hover { background: #1a63bd; }
.btn-lg { padding: 13px 28px; font-size: 17px; }
.btn-quiet { color: var(--accent-deep); border-color: var(--rule); background: var(--paper); }
.btn-quiet:hover { border-color: var(--accent-deep); }
.btn-quiet-solid { background: var(--ink); color: #fff; }
.btn-quiet-solid:hover { background: #1d3348; }

/* ── Sections: the ops-packet frame ──────────────────────────────────── */
.section {
  max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 72px;
  border-top: 1px solid var(--rule);
  position: relative;
}
.section-dim {
  max-width: none; padding-left: 0; padding-right: 0;
  background: var(--paper-dim);
}
.section-dim > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

.margin-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink-soft); margin-bottom: 34px;
}

h1 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5vw, 54px); line-height: 1.06; letter-spacing: -0.015em; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 28px; letter-spacing: -0.01em; }
h3 { font-family: var(--display); font-weight: 600; font-size: 20px; margin-bottom: 6px; }
.h-quiet { font-size: clamp(24px, 3vw, 30px); }

p { color: var(--ink-soft); }
h1, h2, h3 { color: var(--ink); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { border-top: none; padding-top: 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.hero-sub { font-size: 20px; margin: 22px 0 10px; max-width: 44ch; }
.hero-line { font-weight: 600; color: var(--ink); font-size: 17px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; margin: 0; }
.ipad-frame {
  border: 2px solid var(--ink); border-radius: 22px; padding: 14px;
  background: #0d1524;
}
.ipad-frame img { border-radius: 10px; }
.figcap { font-size: 12px; color: var(--ink-soft); margin-top: 12px; letter-spacing: 0.04em; }

.annotation {
  position: absolute; top: -34px; left: -8px; z-index: 2;
  color: var(--accent-deep); font-size: 12px; letter-spacing: 0.08em;
}
.annotation .leader { display: block; width: 120px; height: 90px; margin-top: 4px; }
.annotation .leader path { stroke-dasharray: 170; stroke-dashoffset: 0; }
.landing-anim .annotation .leader path {
  stroke-dashoffset: 170;
  animation: leaderdraw 0.7s ease-out 0.35s forwards;
}
@keyframes leaderdraw { to { stroke-dashoffset: 0; } }

/* Placeholder for missing screenshots — honest, labeled, never stock */
.shot-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; min-height: 300px; border: 1.5px dashed var(--rule); border-radius: 10px;
  background: repeating-linear-gradient(45deg, transparent, transparent 14px, #f2f6f9 14px, #f2f6f9 15px);
  color: var(--ink-soft); text-align: center; padding: 24px;
}
.shot-placeholder .mono { font-size: 13px; color: var(--accent-deep); }

/* ── How it works ────────────────────────────────────────────────────── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-index {
  flex: none; width: 34px; height: 34px; border: 1.5px solid var(--ink);
  display: grid; place-items: center; font-size: 15px; border-radius: 4px;
}
.steps p { font-size: 15.5px; }

/* ── Checklist ───────────────────────────────────────────────────────── */
.checklist { list-style: none; border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; margin-bottom: 64px; }
.checklist li + li { border-top: 1px solid var(--rule); }
.checklist a {
  display: grid; grid-template-columns: 22px 70px 1fr auto; gap: 16px; align-items: center;
  padding: 14px 18px; color: var(--ink); text-decoration: none;
}
.checklist a:hover { background: var(--paper-dim); }
.checklist .box { width: 15px; height: 15px; border: 1.5px solid var(--ink); border-radius: 2px; }
.checklist .idx { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.06em; }
.checklist .item-name { font-family: var(--display); font-weight: 600; font-size: 18px; }
.checklist .item-spec { font-size: 14px; color: var(--ink-soft); }

.feature {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 44px;
  align-items: center; padding: 40px 0; border-top: 1px solid var(--rule);
}
.feature-flip { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.feature-flip .feature-copy { order: 2; }
.feature-flip img, .feature-flip .shot-placeholder, .feature-flip .render-frame { order: 1; }
.feature img { border: 1px solid var(--rule); border-radius: 10px; }
.feature h3 .idx { display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; letter-spacing: 0.06em; }
.feature-key { margin-top: 10px; font-weight: 600; color: var(--ink); }

/* ── Minima ──────────────────────────────────────────────────────────── */
.minima { border: 1.5px solid var(--ink); border-radius: 8px; background: var(--paper); }
.minima > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 15px 20px; align-items: baseline; }
.minima > div + div { border-top: 1px solid var(--rule); }
.minima dt { font-size: 12.5px; letter-spacing: 0.08em; color: var(--accent-deep); }
.minima dd { color: var(--ink); font-size: 16px; }

/* ── Onboarding: three-station turnaround ────────────────────────────── */
.turnaround { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 8px; }
.turn-step { border-top: 2px solid var(--accent-deep); padding-top: 14px; }
.turn-label { font-size: 12px; letter-spacing: 0.08em; color: var(--accent-deep); margin-bottom: 8px; }
.turn-step p + p { font-size: 15.5px; }

/* ── Forms ───────────────────────────────────────────────────────────── */
.form { max-width: 560px; margin-top: 6px; }
.form-intro { margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 6px; }
.field .opt { color: var(--ink-soft); opacity: 0.7; letter-spacing: 0.04em; }
.field input, .field textarea {
  width: 100%; font-family: var(--body); font-size: 16px; color: var(--ink);
  padding: 11px 13px; border: 1.5px solid var(--rule); border-radius: 6px; background: var(--paper);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-deep); }
.form-status { margin-top: 12px; font-size: 13px; color: #B3261E; min-height: 1em; }
.form-done { font-size: 19px; font-weight: 600; color: var(--ink); margin-top: 10px; }
.form-inline { display: grid; grid-template-columns: 1fr 1fr auto; gap: 18px; align-items: end; max-width: 760px; }
.form-inline .field { margin-bottom: 0; }
.form-inline .btn { height: 45px; }
.form-inline .form-status { grid-column: 1 / -1; margin-top: 0; }
.wl-copy { margin-bottom: 24px; }

/* Honeypot: visually removed, still in the DOM for bots */
.hp { position: absolute; left: -9999px; top: -9999px; height: 1px; overflow: hidden; }

/* ── Clearance strip + footer ────────────────────────────────────────── */
.clearance { padding-bottom: 56px; }
.clearance .margin-label { margin-bottom: 18px; color: var(--accent-deep); }
.clearance-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.clearance-row p { font-family: var(--display); font-weight: 600; font-size: 26px; color: var(--ink); }

.footer {
  border-top: 1.5px solid var(--ink);
  max-width: none; padding: 30px 24px 44px;
}
.footer, .footer nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.footer { max-width: var(--maxw); margin: 0 auto; justify-content: space-between; }
.footer a { color: var(--ink); font-size: 14.5px; }
.footer-note { font-size: 12px; color: var(--ink-soft); width: 100%; margin-top: 4px; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .annotation { top: -30px; left: 0; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .turnaround { grid-template-columns: 1fr; gap: 24px; }
  .feature, .feature-flip { grid-template-columns: 1fr; gap: 22px; }
  .feature-flip .feature-copy { order: 1; }
  .feature-flip img, .feature-flip .shot-placeholder, .feature-flip .render-frame { order: 2; }
  .form-inline { grid-template-columns: 1fr; align-items: stretch; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 40px 18px 52px; }
  .section-dim > * { padding-left: 18px; padding-right: 18px; }
  .nav { padding: 14px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .checklist a { grid-template-columns: 18px 1fr; grid-auto-rows: auto; }
  .checklist .idx { display: none; }
  .checklist .item-spec { grid-column: 2; font-size: 13px; }
  .minima > div { grid-template-columns: 1fr; gap: 6px; }
}

/* ── App renders — interactive previews mirroring the real app's light theme.
   Tokens below are the app's own light-mode values (index.html html.light-theme):
   canvas #f5f8fa, white cards, border #dfe3eb, text #0f172a/#38445a, accent #0284c7. */
.app {
  --a-canvas: #f5f8fa; --a-card: #ffffff; --a-border: #dfe3eb;
  --a-text: #0f172a; --a-text2: #38445a; --a-muted: #8492a6; --a-accent: #0284c7;
  font-family: "Inter", var(--body); font-size: 13.5px; line-height: 1.5;
  background: var(--a-canvas); border-radius: 10px; overflow: hidden;
  border: 1px solid var(--a-border); color: var(--a-text);
  display: flex; flex-direction: column; min-height: 320px;
}
.app-topbar {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px;
  background: var(--a-card); border-bottom: 1px solid var(--a-border);
  font-weight: 600; font-size: 12.5px; color: #38445a;
}
.app-dot { width: 8px; height: 8px; border-radius: 50%; background: #0284c7; }
.render-frame { min-width: 0; }
.render-cap { font-size: 11px; letter-spacing: 0.08em; color: var(--ink-soft); margin-top: 10px; }

/* chat */
.chat-msgs { display: flex; flex-direction: column; gap: 10px; padding: 14px; flex: 1; }
.msg { display: flex; flex-direction: column; max-width: 92%; }
.msg.student { align-self: flex-end; align-items: flex-end; }
.msg .bubble {
  background: var(--a-card); border: 1px solid var(--a-border); border-radius: 10px;
  padding: 9px 12px; color: var(--a-text2);
}
.msg.student .bubble { background: #e5f0f9; border-color: #cbe2f3; color: #0f172a; }
.msg.refusal .bubble { border-left: 3px solid #d97706; }
.msg .bubble b { color: var(--a-text); }
.msg-meta { font-size: 10.5px; color: var(--a-muted); margin-top: 3px; padding: 0 2px; }
.src-chip {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 7px;
  border: 1px solid rgba(2,132,199,0.35); background: rgba(2,132,199,0.08);
  color: var(--a-accent); font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; cursor: pointer; font-family: inherit;
}
.src-chip:hover { background: rgba(2,132,199,0.16); }
.chat-inputbar {
  margin: 0 14px 14px; padding: 9px 12px; border: 1px solid var(--a-border);
  border-radius: 8px; background: var(--a-card); color: var(--a-muted); font-size: 12.5px;
}
.try-row { font-size: 10.5px; letter-spacing: 0.08em; color: var(--a-muted); padding: 12px 14px 0; }
.try-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 6px 14px 0; }
.try-chips.pad { padding-bottom: 14px; }
.try-chip {
  font-family: inherit; font-size: 12px; font-weight: 500; cursor: pointer;
  border: 1px solid var(--a-border); background: var(--a-card); color: var(--a-text2);
  padding: 6px 12px; border-radius: 999px;
}
.try-chip:hover, .try-chip[aria-pressed="true"] { border-color: var(--a-accent); color: var(--a-accent); }
.think { font-style: italic; color: var(--a-muted); }

/* hero split */
.hero-app-body { display: grid; grid-template-columns: 1.15fr 1fr; flex: 1; min-height: 0; }
.hero-app .chat-pane { display: flex; flex-direction: column; min-width: 0; }
.pdf-pane { border-left: 1px solid var(--a-border); background: var(--a-card); display: flex; flex-direction: column; min-width: 0; }
.pdf-head { font-size: 10.5px; letter-spacing: 0.06em; color: var(--a-muted); padding: 10px 14px; border-bottom: 1px solid var(--a-border); }
.pdf-page { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.pdf-title { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--a-text2); margin-bottom: 2px; }
.pdf-bar { height: 7px; border-radius: 3px; background: #e8edf3; }
.pdf-bar.w70 { width: 70%; } .pdf-bar.w80 { width: 80%; } .pdf-bar.w85 { width: 85%; }
.pdf-bar.w90 { width: 90%; } .pdf-bar.w95 { width: 95%; }
.pdf-quote { font-size: 12.5px; color: var(--a-text); padding: 4px 6px; border-radius: 4px; background: rgba(250, 204, 21, 0.35); }
.pdf-quote.flash { animation: quoteflash 1.2s ease-out; }
@keyframes quoteflash { 0% { background: rgba(250, 204, 21, 0.9); } 100% { background: rgba(250, 204, 21, 0.35); } }
@media (prefers-reduced-motion: reduce) { .pdf-quote.flash { animation: none; } }
.pdf-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--a-muted); font-size: 12px; text-align: center; padding: 20px;
  margin: 14px; border: 1.5px dashed var(--a-border); border-radius: 8px;
}
.pdf-empty .mono { font-size: 10.5px; letter-spacing: 0.1em; color: #d97706; }

/* quiz */
.quiz-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.quiz-topic { font-size: 10.5px; letter-spacing: 0.08em; color: var(--a-muted); }
.quiz-q { font-weight: 600; color: var(--a-text); font-size: 14px; }
.quiz-opts { display: flex; flex-direction: column; gap: 7px; }
.quiz-opts button {
  font-family: inherit; font-size: 13px; text-align: left; cursor: pointer;
  background: var(--a-card); border: 1px solid var(--a-border); border-radius: 8px;
  padding: 9px 12px; color: var(--a-text2);
}
.quiz-opts button:hover:not(:disabled) { border-color: var(--a-accent); }
.quiz-opts button.right { border-color: #10b981; background: rgba(16,185,129,0.08); color: #065f46; font-weight: 600; }
.quiz-opts button.wrong { border-color: #ef4444; background: rgba(239,68,68,0.07); color: #991b1b; }
.quiz-opts button:disabled { cursor: default; }
.quiz-verdict { font-weight: 700; font-size: 13px; }
.quiz-verdict.ok { color: #065f46; } .quiz-verdict.bad { color: #991b1b; }
.quiz-quote {
  border-left: 3px solid var(--a-accent); background: var(--a-card); border-radius: 0 8px 8px 0;
  padding: 8px 12px; font-size: 12.5px; color: var(--a-text2); display: flex; flex-direction: column; gap: 4px;
}
.quiz-quote .mono { font-size: 10.5px; color: var(--a-muted); }
.quiz-reset {
  align-self: flex-start; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  color: var(--a-accent); background: none; border: none; padding: 2px 0; text-decoration: underline;
}
.metar-block { background: #f5f8fa; border: 1px solid var(--a-border); border-radius: 6px; padding: 7px 10px; font-size: 11.5px; margin: 8px 0; overflow-x: auto; }

/* cockpit — stylised Tecnam P2006T MkII panel: Garmin G1000 PFD + engine
   display over a bank of Tecnam-style rocker switches (red guarded master). */
.app-dark { --a-canvas: #0d1524; --a-card: #131f34; --a-border: rgba(255,255,255,0.1); --a-text: #f1f5f9; --a-text2: #aeb9c9; --a-muted: #7c8798; }
.app-topbar.dark { background: #131f34; color: #aeb9c9; border-bottom-color: rgba(255,255,255,0.1); }
.cockpit-body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; padding: 16px; flex: 1; align-items: center; }
.p2006-panel {
  background: #23272e; border: 1px solid #3a414c; border-radius: 10px;
  padding: 12px; display: flex; flex-direction: column; gap: 12px;
}
.screens { display: grid; grid-template-columns: 1.05fr 1fr; gap: 10px; }
.pfd, .mfd {
  background: #07090d; border: 2px solid #4a505a; border-radius: 6px;
  min-height: 116px; position: relative; overflow: hidden;
}
/* G1000 PFD: sky over ground, yellow wing reference, speed/alt tapes */
.pfd { background: linear-gradient(180deg, #3d8ed8 0 54%, #8a5c2e 54% 100%); }
.pfd-horizon { position: absolute; left: 0; right: 0; top: 54%; height: 2px; background: #f2f5f8; }
.pfd-wings { position: absolute; left: 50%; top: 54%; width: 46px; height: 4px; transform: translate(-50%, -50%); background: #f8d21c; border-radius: 2px; }
.pfd-wings::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; transform: translate(-50%, -50%); background: #f8d21c; border-radius: 50%; }
.pfd-tape { position: absolute; top: 8px; bottom: 8px; width: 16px; background: rgba(5, 8, 12, 0.55); border: 1px solid rgba(255,255,255,0.18); border-radius: 2px; }
.pfd-tape.ias { left: 8px; }
.pfd-tape.alt { right: 8px; }
.pfd-tape::after { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 8px; transform: translateY(-50%); border: 1px solid #f2f5f8; border-radius: 1px; }
/* engine display: twin Rotax RPM bars, oil pressure rises when checked */
.mfd { padding: 9px 10px; display: flex; flex-direction: column; gap: 8px; }
.mfd-title { font-size: 8.5px; letter-spacing: 0.14em; color: #9aa4b2; }
.eng-bar { display: grid; grid-template-columns: 42px 1fr; gap: 7px; align-items: center; }
.eng-bar .mono { font-size: 8px; letter-spacing: 0.06em; color: #9aa4b2; }
.eng-bar i { display: block; height: 7px; background: #1a222e; border-radius: 3px; position: relative; overflow: hidden; }
.eng-bar i::after { content: ""; position: absolute; inset: 0; width: 62%; background: #35c46b; border-radius: 3px; transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s; }
.eng-bar:nth-child(3) i::after { width: 59%; }
.eng-bar.oil i::after { width: 7%; background: #d9534f; }
.mfd.lit .eng-bar.oil i::after { width: 63%; background: #35c46b; }
/* Tecnam rocker switches: down = off (bright lower half), up = on */
.tswitch-row { display: flex; gap: 26px; justify-content: center; padding: 2px 0; }
.tswitch { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 8.5px; color: #9aa4b2; letter-spacing: 0.08em; }
.tswitch .rockers { display: flex; gap: 7px; }
.tswitch .rocker {
  width: 15px; height: 27px; border-radius: 3px; border: 1px solid #14181d;
  background: linear-gradient(180deg, #343b45 0 50%, #dfe3e8 50% 100%);
}
.tswitch.lit .rocker { background: linear-gradient(180deg, #f2f5f8 0 50%, #343b45 50% 100%); }
.tswitch.master .rocker { background: linear-gradient(180deg, #4a1410 0 50%, #c0392b 50% 100%); }
.tswitch.master.lit .rocker { background: linear-gradient(180deg, #e74c3c 0 50%, #4a1410 50% 100%); }
.mfd.lit, .tswitch.lit .rocker { box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.55); }
.tswitch.lit { color: #f1f5f9; }
@media (prefers-reduced-motion: reduce) { .eng-bar i::after { transition: none; } }
.cl-card { background: var(--a-card); border: 1px solid var(--a-border); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.cl-title { font-size: 10px; letter-spacing: 0.1em; color: #7c8798; margin-bottom: 4px; }
.cl-item {
  display: flex; align-items: center; gap: 10px; font-family: inherit; font-size: 12.5px;
  background: none; border: none; color: #aeb9c9; cursor: pointer; text-align: left; padding: 6px 4px; border-radius: 6px;
}
.cl-item:hover { background: rgba(255,255,255,0.05); }
.cl-item .cl-box { width: 13px; height: 13px; border: 1.5px solid #55688a; border-radius: 3px; flex: none; position: relative; }
.cl-item.done { color: #f1f5f9; }
.cl-item.done .cl-box { border-color: #4A9EFF; background: #4A9EFF; }
.cl-item.done .cl-box::after { content: "✓"; position: absolute; inset: 0; color: #0d1524; font-size: 10px; line-height: 13px; text-align: center; font-weight: 700; }

/* knowledge gaps */
.gaps-card { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.gaps-cov { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--a-text2); margin-bottom: 6px; }
.gaps-cov b { color: var(--a-text); }
.cov-bar { height: 6px; border-radius: 3px; background: #e8edf3; overflow: hidden; display: block; }
.cov-fill { height: 100%; background: var(--a-accent); display: block; }
.gap-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-family: inherit; font-size: 12.5px; cursor: pointer; text-align: left;
  background: var(--a-card); border: 1px solid var(--a-border); border-radius: 8px; padding: 9px 12px; color: var(--a-text);
}
.gap-row:hover { border-color: var(--a-accent); }
.gap-n { font-size: 10px; color: #d97706; letter-spacing: 0.06em; flex: none; }
.gap-fix { font-size: 12px; color: var(--a-text2); padding: 2px 12px 6px; }

@media (max-width: 900px) {
  .hero-app-body { grid-template-columns: 1fr; }
  .pdf-pane { border-left: none; border-top: 1px solid var(--a-border); }
  .cockpit-body { grid-template-columns: 1fr; }
}
