/* As mesmas cores e fontes do painel (openpilot/system/hexaweb/static/lp.css). Sempre escuro: o painel vive no carro. */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-semi-condensed-700.woff2") format("woff2"); }
:root {
  color-scheme: dark;
  --bg: #0B0E11; --card: #141A1F; --line: #26303A; --line-2: #2C3640;
  --text: #EEF2F5; --muted: #A3AEB9; --dim: #8C97A3;
  --accent: #2FD07F; --on-accent: #06210F; --you: #6CB4FF; --warn: #F5B53D; --danger: #FF6B5E;
  --ok-bg: #10201A; --ok-line: #1F4A34; --warn-bg: #1E1A12; --warn-line: #4A3A1A;
  --font: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Semi Condensed", "Barlow", -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 12px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.5 var(--font); }
main { max-width: 680px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px 96px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; line-height: 1.1; }
h1 { font-size: 40px; margin: 18px 0 8px; }
h2 { font-size: 30px; margin: 4px 0 12px; }
h3 { font-size: 21px; margin: 22px 0 6px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin: 4px 0; }
a { color: var(--accent); }
b, strong { font-weight: 700; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand .pilot { color: var(--accent); }  /* o nome em duas cores: Liz branco, Pilot verde */
.sub { color: var(--muted); font-size: 18px; margin: 0 0 6px; }
.small { color: var(--dim); font-size: 15px; }
.label { font-family: var(--font-display); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 0; }
.ui { font-weight: 700; color: var(--text); }  /* o nome de um botão ou de uma tela, como está no painel */
section.cap { padding-top: 34px; margin-top: 30px; border-top: 1px solid var(--line); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px; margin: 14px 0; }
.card > :last-child { margin-bottom: 0; }
.card.ok { background: var(--ok-bg); border-color: var(--ok-line); }
.card.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.card .title { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin: 0 0 6px; }
.card.ok .title { color: var(--accent); }
.card.warn .title { color: var(--warn); }
/* índice: alvos grandes, um por linha */
.toc { list-style: none; padding: 0; margin: 18px 0 0; counter-reset: cap; }
.toc li { margin: 0 0 8px; }
.toc a { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; align-items: center; min-height: 60px; padding: 10px 16px; background: var(--card);
         border: 1px solid var(--line); border-radius: 18px; color: var(--text); text-decoration: none; font-size: 19px; font-weight: 600; line-height: 1.25; }
.toc a::before { counter-increment: cap; content: counter(cap); grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
                 border: 2px solid var(--accent); color: var(--accent); font-family: var(--font-display); font-size: 18px; }
.toc a span { grid-column: 2; color: var(--muted); font-size: 15px; font-weight: 400; }
/* passos numerados */
ol.steps { list-style: none; padding: 0; counter-reset: s; }
ol.steps > li { position: relative; padding: 0 0 0 46px; margin: 0 0 14px; min-height: 32px; }
ol.steps > li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
                        display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-weight: 700; }
/* capturas: uma centralizada, ou várias numa faixa que desliza (só a faixa, nunca a página) */
.shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 16px -16px; padding: 0 16px 8px; -webkit-overflow-scrolling: touch; }
.shots.one { justify-content: center; overflow: visible; }
figure { flex: none; width: min(72vw, 280px); margin: 0; scroll-snap-align: center; }
figure a { display: block; }
figure img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line-2); background: var(--card); }
figcaption { color: var(--muted); font-size: 15px; margin-top: 8px; line-height: 1.35; }
.hint { color: var(--dim); font-size: 14px; text-align: center; margin: -6px 0 10px; }
dl { margin: 0 0 12px; }
dt { font-weight: 700; margin-top: 10px; }
dd { margin: 2px 0 0; color: var(--muted); }
.tag { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; background: #2A2110; color: var(--warn); }
.top { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center;
       border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); color: var(--accent); font-family: var(--font-display);
       font-size: 18px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* troca de idioma, como no painel: cada idioma é uma página, com as fotos do painel naquele idioma */
.langs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); }
.langs a { min-width: 46px; min-height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); text-decoration: none;
           font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.langs a[aria-current] { background: #222C35; color: var(--text); }
