:root {
  --bg: #EDF1F6;
  --surface: #FFFFFF;
  --surface-alt: #E2E6EA;
  --ink: #15202E;
  --muted: #566273;
  --line: #D0D8E2;
  --primary: #1F3A5F;
  --on-primary: #FFFFFF;
  --lane: #E85A24;
  --lane-soft: #FCE0D4;
  --night: #4450B8;
  --link: #2F5DA8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E141C;
    --surface: #17202B;
    --surface-alt: #222933;
    --ink: #EEF1F5;
    --muted: #9CA6B3;
    --line: #2C3440;
    --primary: #E3EAF3;
    --on-primary: #0E141C;
    --lane: #F47A48;
    --lane-soft: #3F2418;
    --night: #8F98F0;
    --link: #8FB2EE;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.6 "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 820px; margin: 0 auto; padding: 28px 20px 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-weight: 800; font-size: 23px; }
nav.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
nav.top .links a { color: var(--muted); text-decoration: none; font-weight: 700; margin-left: 16px; font-size: 16px; }
h1, h2, h3 { line-height: 1.1; }
h1 { font-size: clamp(36px, 7vw, 56px); font-weight: 800; margin: 36px 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 27px; font-weight: 800; margin: 38px 0 12px; }
h3 { font-size: 20px; font-weight: 700; margin: 22px 0 6px; }
p + p { margin-top: 12px; }
.lead { font-size: 21px; color: var(--muted); max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; font: inherit;
  padding: 14px 22px; border-radius: 12px;
  background: var(--primary); color: var(--on-primary); text-decoration: none; font-weight: 700;
}
.store.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.card { background: var(--surface); border-radius: 16px; padding: 22px; border: 1px solid var(--line); margin: 20px 0; }
.features { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 26px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.feature b { display: block; margin-bottom: 4px; font-size: 19px; }
.code { font-weight: 800; font-size: clamp(44px, 12vw, 64px); letter-spacing: 0.12em; margin: 8px 0 4px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin: 14px 0; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 17px; vertical-align: top; }
th { background: var(--surface-alt); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.cta { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--lane); border-radius: 16px; padding: 22px; margin: 34px 0; }
.cta .t { font-size: 23px; font-weight: 800; margin-bottom: 6px; }
a { color: var(--link); }
footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer a { color: var(--muted); margin-right: 14px; }
ul, ol { padding-left: 1.2em; }
li { margin: 6px 0; }
.hero { display: flex; gap: 18px; align-items: center; margin-top: 30px; }
.hero img { width: 88px; height: 88px; border-radius: 22px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 18px 0; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; border-top: 4px solid var(--lane); }
.fact .v { font-size: 30px; font-weight: 800; line-height: 1.15; }
.fact .v.small { font-size: 19px; }
.fact .l { font-size: 15px; color: var(--muted); }
ul.columns { list-style: none; padding: 0; columns: 2 170px; column-gap: 24px; }
ul.columns li { margin: 4px 0; break-inside: avoid; }
ul.columns a { text-decoration: none; font-weight: 600; }
/* The printable log: a plain sheet on paper, without the site around it. */
.sheet { background: #fff; color: #111; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-top: 24px; }
.sheet-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; font-size: 15px; }
.sheet-head b { font-size: 19px; }
table.log { border-radius: 0; margin: 0; background: #fff; }
table.log th { background: #eef0f2; color: #111; font-size: 13px; padding: 6px; }
table.log td { height: 30px; padding: 0 6px; border: 1px solid #c9ced6; }
table.log th { border: 1px solid #c9ced6; }
.sheet .small { margin-top: 10px; color: #333; }
@media print {
  @page { size: letter landscape; margin: 12mm; }
  body { background: #fff; }
  nav.top, footer, .noprint { display: none; }
  .wrap { max-width: none; padding: 0; }
  .sheet { border: 0; padding: 0; margin: 0; }
}
.fam { display: inline-flex; width: 24px; height: 24px; border-radius: 7px; color: #fff; font-weight: 800; font-size: 13px; align-items: center; justify-content: center; margin-right: 8px; vertical-align: -5px; }
table.rota td, table.rota th { font-size: 16px; }
