/* TachoCombine website. One dark theme, the app's own: the page sits next to screenshots of a dark app.
   Layout: one column up to 1040px; feature rows put words beside a phone-shaped screenshot and stack on a phone.
   Nothing is loaded from another server: no fonts, no scripts, no trackers. */
:root {
  color-scheme: dark;
  --bg: #0f1418;
  --panel: #172027;
  --line: #2b3640;
  --ink: #e7eef3;
  --muted: #9fb0bc;
  --accent: #7cc4f4;
  --drive: #5aa9e6;
  --work: #e2ab55;
  --break: #7fd18a;
  --rest: #3a4853;
  --warn: #f0b860;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
p { margin: 0; }

/* one language at a time; English when the script has not run */
[data-lang="en"] .pl, [data-lang="pl"] .en { display: none !important; }
html:not([data-lang]) .pl { display: none !important; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-weight: 700; letter-spacing: 0.01em; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.95rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.langs { margin-left: auto; display: flex; gap: 6px; }
.langs button {
  font: 600 0.85rem var(--font); color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer;
}
[data-lang="en"] .langs button[data-set="en"], [data-lang="pl"] .langs button[data-set="pl"] { color: var(--bg); background: var(--accent); border-color: var(--accent); }

.hero { padding-top: 54px; padding-bottom: 34px; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); letter-spacing: -0.02em; max-width: 17ch; }
.hero .lead { margin-top: 18px; font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.pill {
  display: inline-block; margin-top: 22px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--warn); color: var(--warn); font-size: 0.9rem; font-weight: 600;
}

/* a lawful day as the app counts it: 24 hours from 06:00, drawn to scale */
.day { margin-top: 40px; }
.day .bar { display: flex; height: 34px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.day .bar span { display: block; height: 100%; }
.day .drive { background: var(--drive); }
.day .work { background: var(--work); }
.day .break { background: var(--break); }
.day .rest { background: var(--rest); }
.day .ticks { display: flex; justify-content: space-between; margin-top: 6px; font: 0.78rem var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.day .key { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; font-size: 0.92rem; color: var(--muted); }
.day .key b { color: var(--ink); font-variant-numeric: tabular-nums; }
.day .key i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }

section { padding: 34px 0; border-top: 1px solid var(--line); }
section > .wrap > h2 { font-size: 1.6rem; margin-bottom: 8px; }
.sub { color: var(--muted); max-width: 65ch; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px 48px; align-items: center; padding: 30px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-of-type(even) { grid-template-columns: 270px minmax(0, 1fr); }
.feature:nth-of-type(even) .words { order: 2; }
.feature h3 { font-size: 1.3rem; margin-bottom: 10px; }
.feature p { color: var(--muted); max-width: 58ch; }
.feature p + p { margin-top: 10px; }
.feature .note { font-size: 0.9rem; }
.shot { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--panel); }
@media (max-width: 720px) {
  .feature, .feature:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-of-type(even) .words { order: 0; }
  .shot { max-width: 300px; }
}

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p, .card li { color: var(--muted); font-size: 0.96rem; }
.card ul { margin: 0; padding-left: 18px; }
.card li + li { margin-top: 4px; }

.plain { max-width: 68ch; }
.plain h2 { font-size: 1.35rem; margin: 34px 0 10px; }
.plain h1 { font-size: 2rem; margin: 40px 0 6px; }
.plain p + p, .plain ul + p, .plain p + ul { margin-top: 12px; }
.plain ul { padding-left: 20px; margin: 0; }
.plain li + li { margin-top: 6px; }
.plain p, .plain li { color: var(--muted); }
.plain strong { color: var(--ink); }
.todo { color: var(--warn); border-bottom: 1px dashed var(--warn); }

footer { border-top: 1px solid var(--line); padding: 28px 0 50px; color: var(--muted); font-size: 0.9rem; }
footer p + p { margin-top: 8px; }
footer .wrap { display: grid; gap: 8px; }
