/* Onest, self-hosted (same font as the web app). No requests to Google. */
@font-face {
  font-family: "Onest Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/onest-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/onest-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/onest-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Design tokens: identical to the web app (apps/web/src/index.css in the axovoy repo). */
:root {
  --asphalt: #1d2a31;
  --asphalt-2: #26363f;
  --asphalt-3: #3a4c56;
  --paper: #f5f6f3;
  --line: #dfe2dc;
  --ink: #1a2227;
  --muted: #5d6a70;
  --marking: #f2b705;
  --marking-ink: #3d2e00;
  --plate: #1f4fa3;
  --ok: #2e7a4d;
  --ok-bg: #e5f2ea;
  --soon: #8a5a00;
  --soon-bg: #fdf0cc;
  --alert: #b3261e;
  --alert-bg: #fbe4e1;

  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, .72);
  --radius: 12px;
  --font: "Onest Variable", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-feature-settings: "tnum" 1; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--plate); outline-offset: 2px; }
.dark :focus-visible { outline-color: var(--marking); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--marking); color: var(--marking-ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--marking); color: var(--marking-ink);
  font: 600 1rem var(--font); text-decoration: none; border: 0; cursor: pointer;
  padding: 13px 22px; border-radius: 10px;
  transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 8px 14px; font-size: .9rem; }
.btn-dark { background: var(--asphalt); color: var(--on-dark); }
.btn-dark:hover { background: var(--asphalt-2); filter: none; }
.link { color: var(--on-dark-muted); text-decoration: none; font-weight: 600; }
.link:hover { color: var(--on-dark); }

/* Dark surfaces (header, hero, principles, footer), like the app sidebar */
.dark { background: var(--asphalt); color: var(--on-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--asphalt-2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.mark { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav > a:not(.btn) { text-decoration: none; color: var(--on-dark-muted); font-weight: 500; font-size: .95rem; }
.nav > a:not(.btn):hover { color: var(--on-dark); }
.lang { display: flex; background: var(--asphalt-2); border-radius: 8px; padding: 3px; gap: 2px; }
.lang button { background: none; border: 0; color: var(--on-dark-muted); font: 600 .8rem var(--font); padding: 5px 9px; border-radius: 6px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--asphalt-3); color: var(--on-dark); }

/* Hero */
.hero { padding: 80px 0 76px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: repeating-linear-gradient(90deg, var(--marking) 0 48px, transparent 48px 84px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: .85rem; font-weight: 600; color: var(--marking); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--marking); box-shadow: 0 0 0 4px rgba(242,183,5,.18); }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; margin: 0 0 20px; }
.lead { font-size: 1.15rem; color: var(--on-dark-muted); max-width: 34em; margin: 0 0 30px; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 30px 0 0; }
.chips li { font-size: .85rem; color: var(--on-dark-muted); background: var(--asphalt-2); border-radius: 999px; padding: 5px 12px; }

/* Preview card: a slice of the app's overview screen */
.preview { background: var(--paper); color: var(--ink); border-radius: 16px; box-shadow: 0 30px 70px -25px rgba(0,0,0,.55); overflow: hidden; }
.preview-bar { display: flex; gap: 6px; padding: 11px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.preview-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.preview-body { padding: 18px 20px 22px; }
.preview-title { margin: 0 0 12px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.alerts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.alerts li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.plate { font: 700 .78rem var(--mono); color: #111; background: #fff; border: 1px solid #c9ccc6; border-radius: 4px; padding: 2px 7px 2px 15px; position: relative; white-space: nowrap; }
.plate::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; background: var(--plate); border-radius: 3px 0 0 3px; }
.plate.driver { background: var(--paper); border-color: var(--line); padding-left: 7px; font-family: var(--font); font-weight: 600; }
.plate.driver::before { display: none; }
.tag { font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag.red { background: var(--alert-bg); color: var(--alert); }
.tag.amber { background: var(--soon-bg); color: var(--soon); }
.trip { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.trip-head, .trip-foot { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.trip-head b { color: var(--ink); }
.route { display: flex; align-items: center; justify-content: space-between; margin: 14px 4px; position: relative; }
.route::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--asphalt-3); opacity: .5; }
.route i { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--asphalt); position: relative; }
.route i:first-child, .route i:last-child { background: var(--marking); border-color: var(--marking); }
.profit { color: var(--ok); font-weight: 700; background: var(--ok-bg); padding: 0 8px; border-radius: 999px; }

/* Problem strip */
.problem { background: var(--marking); color: var(--marking-ink); padding: 36px 0; }
.problem p { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 600; letter-spacing: -.01em; max-width: 46em; }

/* Features (light, like the app's content area) */
.features { padding: 96px 0; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: -.02em; line-height: 1.1; font-weight: 700; margin: 0 0 40px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 30px; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 22px; width: 3px; height: 22px; background: var(--marking); border-radius: 0 2px 2px 0; }
.num { font: 600 .8rem var(--mono); color: var(--muted); }
.card h3 { font-size: 1.12rem; font-weight: 600; margin: 10px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Principles */
.principles { padding: 84px 0; }
.principles-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.principles h2 { margin: 0; }
.principles ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.principles li { padding-left: 22px; border-left: 3px solid var(--marking); color: var(--on-dark-muted); font-size: 1.05rem; }
.principles li b { color: var(--on-dark); font-weight: 600; }

/* Signup */
.signup { padding: 96px 0; }
.signup-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.signup p { color: var(--muted); font-size: 1.08rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  font: 400 1rem var(--font); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--plate); outline-offset: 0; border-color: transparent; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .85rem; }
.form .check input { width: auto; margin-top: 3px; accent-color: var(--asphalt); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { padding: 30px 0; font-size: .9rem; }
.site-footer, .site-footer p { color: var(--on-dark-muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-inner b { color: var(--on-dark); font-weight: 600; }

/* Thanks page */
.thanks { min-height: calc(100vh - 64px - 84px); display: grid; place-items: center; text-align: center; padding: 60px 0; }
.thanks .lead { color: var(--muted); margin-inline: auto; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .principles-grid, .signup-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .nav > a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; padding: 20px; }
  .nav { gap: 10px; }
  .alerts li { grid-template-columns: auto 1fr; }
  .alerts li .tag { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Live badge on the sample trip */
.live { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; font-size: .72rem; font-weight: 600; color: var(--ok); background: var(--ok-bg); padding: 1px 8px 1px 7px; border-radius: 999px; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .live::before { animation: none; } }

/* Links from the homepage to the sub-pages */
.more { margin: 28px 0 0; }
.more a { color: var(--plate); font-weight: 600; text-decoration: none; }
.more a:hover { text-decoration: underline; }
.principles li.more-dark { border-left-color: transparent; }
.principles li.more-dark a { color: var(--marking); font-weight: 600; text-decoration: none; }
.principles li.more-dark a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--on-dark); }

/* Sub-page hero */
.page-hero { padding: 72px 0 64px; position: relative; }
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: repeating-linear-gradient(90deg, var(--marking) 0 48px, transparent 48px 84px);
}
.page-hero h1 { max-width: 16em; }
.page-hero .lead { margin-bottom: 0; }
.legend { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .9rem; color: var(--on-dark-muted); }
.legend li { display: flex; align-items: center; gap: 10px; }

/* Status labels */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.ready { background: var(--ok-bg); color: var(--ok); }
.status.building { background: var(--soon-bg); color: var(--soon); }

/* Feature rows with screenshots */
.feature-rows { padding: 88px 0 96px; }
.feature-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.feature-row.reverse { grid-template-columns: 1.2fr .8fr; }
.feature-row.reverse .feature-text { order: 2; }
.feature-text h2 { margin: 14px 0 14px; }
.feature-text p { color: var(--muted); font-size: 1.05rem; margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink); font-size: .97rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 3px; border-radius: 2px; background: var(--marking); }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 24px 60px -30px rgba(29, 42, 49, .45); background: #fff; }
.shot figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.feature-list h2 { margin-bottom: 28px; }
.feature-list .card::before { display: none; }
.feature-list .card h3 { margin-top: 14px; }

/* "Your data" page */
.data-section { padding: 80px 0; }
.data-section.alt { background: #fff; border-block: 1px solid var(--line); }
.data-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 56px; align-items: start; }
.data-head h2 { margin: 10px 0 0; }
.data-body > p { margin: 0 0 22px; color: var(--muted); font-size: 1.08rem; }
.data-body .ticks li { color: var(--ink); }
.facts { margin: 0 0 22px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; background: #fff; padding: 14px 18px; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); }
.note { font-size: .92rem !important; color: var(--soon) !important; background: var(--soon-bg); border-radius: 10px; padding: 12px 16px; margin: 0 !important; }

/* Call-to-action band */
.cta-band { background: var(--marking); color: var(--marking-ink); padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 8px; }
.cta-band p { margin: 0; font-size: 1.05rem; }
.cta-band .btn { background: var(--asphalt); color: var(--on-dark); }
.cta-band .btn:hover { background: var(--asphalt-2); filter: none; }

@media (max-width: 900px) {
  .feature-row, .feature-row.reverse, .data-grid { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.reverse .feature-text { order: 0; }
  .feature-row { margin-bottom: 64px; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
}

.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: var(--on-dark-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--on-dark); }

/* A card that spans the full row (odd number of cards) */
.grid .card.wide { grid-column: 1 / -1; }
