/* TruckLedger — landing pages. Shared by /, /ru/ and /es/. */

:root {
  --bg: #f2f2f4;
  --surface: #ffffff;
  --ink: #1c1c1e;
  --muted: #8e8e93;
  --line: #e6e6ea;
  --blue: #0a84ff;
  --green: #34c759;
  --radius: 18px;
  --wrap: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e10;
    --surface: #1a1a1d;
    --ink: #f2f2f4;
    --muted: #98989f;
    --line: #2a2a2e;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 16px;
  min-height: 62px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 800; letter-spacing: -0.3px; font-size: 18px;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; letter-spacing: -0.2px;
}
.site-head nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.lang {
  display: flex; gap: 2px; padding: 3px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 100px;
}
.lang a {
  padding: 4px 11px; border-radius: 100px;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.lang a:hover { text-decoration: none; color: var(--ink); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--bg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 100px;
  font-size: 16px; font-weight: 700; letter-spacing: -0.2px;
  border: 1px solid transparent; cursor: pointer;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { opacity: .88; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.site-head .btn { flex: none; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center;
}
h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.04; letter-spacing: -1.8px; font-weight: 800;
  margin: 0 0 18px; text-wrap: balance;
}
.lede { font-size: clamp(17px, 2.1vw, 20px); color: var(--muted); margin: 0 0 28px; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: 14px; color: var(--muted); margin-top: 14px; }

.phone {
  width: 100%; max-width: 320px; margin: 0 auto;
  border-radius: 40px; overflow: hidden;
  background: #f7f7f9;
  box-shadow: 0 30px 60px -18px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.07);
}
@media (prefers-color-scheme: dark) {
  .phone { box-shadow: 0 30px 60px -18px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); }
}

/* ---------- sections ---------- */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -1px; font-weight: 800; line-height: 1.12;
  margin: 0 0 12px; text-wrap: balance;
}
.sub { color: var(--muted); margin: 0 0 32px; max-width: 62ch; text-wrap: pretty; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.4px; margin: 0 0 6px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .ico {
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 14px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff; letter-spacing: -.2px;
}

/* expense category chips */
.cats { display: flex; flex-wrap: wrap; gap: 10px; }
.cat {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 100px; padding: 8px 16px 8px 8px;
  font-size: 15px; font-weight: 600;
}
.cat i {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  font-size: 10px; font-weight: 800; font-style: normal; color: #fff;
}

/* numbered steps */
ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
ol.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
ol.steps li::before {
  content: counter(s);
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 800; margin-bottom: 14px;
}
ol.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 4px 20px;
}
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 700; letter-spacing: -.3px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 600; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { margin: 0 0 18px; color: var(--muted); }

/* install banner (shown by site.js only when the browser offers install) */
.install-row { margin-top: 18px; display: none; }
.install-row.on { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px; color: var(--muted); font-size: 15px;
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.site-foot a { color: var(--muted); }
.site-foot .copy { margin-left: auto; }

/* ---------- long-form legal pages ---------- */
.prose { max-width: 760px; padding: 48px 0 72px; }
.prose h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.prose .updated { color: var(--muted); font-size: 15px; margin: 0 0 36px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -.5px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 40px 0 24px; }
  .grid, .grid-2, ol.steps { grid-template-columns: 1fr; }
  .site-head .wrap { min-height: 56px; gap: 10px; }
  .brand span:not(.mark) { display: none; }
  section { padding: 44px 0; }
  .site-foot .copy { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
