@font-face {
  font-family: "Rubik";
  src: url("/fonts/rubik-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("/fonts/rubik-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("/fonts/rubik-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --ground: #e9e2cc;
  --ground-deep: #ddd5bb;
  --panel: #f3f0e8;
  --white: #ffffff;
  --ink: #2b2f3a;
  --ink-hover: #3a3f4c;
  --muted: #5d616b;
  --truck: #d7263d;
  --truck-hover: #b81f33;
  --water-ui: #2f7fb0;
  --wet: #a7d2e3;
  --forest: #c6d3a2;
  --heating: #f5c977;
  --burning: #f0883a;
  --front: #e2502c;
  --embers: #a24a32;
  --burnt: #6f6862;
  --alert: #a3281f;
  --track: #dcd8ce;
  --shadow: 0 2px 0 rgba(43, 47, 58, 0.06), 0 6px 18px rgba(43, 47, 58, 0.12);
  --radius: 18px;
  --radius-small: 12px;
  --wrap: 1120px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--water-ui); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--water-ui); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-weight: 800; font-size: clamp(2.5rem, 6vw, 4.25rem); letter-spacing: -0.02em; }
h2 { font-weight: 800; font-size: clamp(1.75rem, 3.6vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-weight: 600; font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

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

.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--alert); margin-bottom: 0.6em;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font: inherit; font-weight: 600; text-decoration: none;
  padding: 0.8em 1.4em; border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: var(--shadow); transition: background-color 0.15s, transform 0.15s;
}
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-truck { background: var(--truck); color: var(--white); }
.btn-truck:hover { background: var(--truck-hover); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-hover); color: var(--white); }
.btn-small { padding: 0.5em 1.1em; font-size: 0.95rem; }

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(43, 47, 58, 0.08);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.brand-mark { width: 32px; height: 32px; }
nav { margin-left: auto; }
.nav-list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-list a:hover { color: var(--truck); }
@media (max-width: 640px) { .nav-list { display: none; } nav { margin-left: auto; } }

.hero { padding: clamp(40px, 7vw, 88px) 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 0.95fr 1.05fr; } }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; }
.soon { font-size: 0.95rem; color: var(--muted); }

.hero-demo { margin: 0; }
.demo-frame {
  position: relative; background: var(--white); border-radius: var(--radius);
  padding: 10px; box-shadow: var(--shadow);
}
#demo {
  width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 12px;
  background: var(--ground); touch-action: none; cursor: crosshair;
}
.demo-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  margin: 0; padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  background: var(--ink); color: var(--white); font-size: 0.85rem; font-weight: 600;
  pointer-events: none; transition: opacity 0.4s;
}
.demo-hint.is-hidden { opacity: 0; }
.hero-demo figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 10px; text-align: center; }

.trailer { padding: 24px 0 56px; }
.video-frame {
  max-width: 860px; margin-inline: auto;
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 14px, transparent 14px 28px),
    var(--ink);
  box-shadow: var(--shadow); display: grid; place-items: center;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-placeholder { text-align: center; color: #e6e2d8; padding: 24px; }
.video-placeholder svg { width: 72px; height: 72px; margin: 0 auto 12px; }
.video-placeholder circle { fill: none; stroke: #e6e2d8; stroke-width: 3; }
.video-placeholder path { fill: var(--truck); }
.video-placeholder strong { color: var(--white); font-size: 1.2rem; }

.features, .screenshots, .support { padding: 56px 0; }
.features { background: var(--panel); }

.card {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin-bottom: 0; }
.card .contact p { margin-bottom: 1em; }

.feature-grid {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.icon { width: 48px; height: 48px; margin-bottom: 14px; }
.icon .i-line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 6; }
.icon .i-truck { fill: var(--truck); }
.icon .i-fire rect { fill: var(--burning); }
.icon .i-front { fill: var(--front); stroke: var(--embers); stroke-width: 2; }
.icon .i-wind { fill: none; stroke: var(--water-ui); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.icon .i-card { fill: var(--panel); stroke: var(--ink); stroke-width: 2; }
.icon .i-plane { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.icon .i-sun { fill: var(--heating); }
.icon .i-cloud { fill: var(--wet); stroke: var(--water-ui); stroke-width: 2; }
.icon .i-rain { fill: none; stroke: var(--water-ui); stroke-width: 2.5; stroke-linecap: round; }
.icon .i-moon { fill: var(--ink); }
.icon .i-ring { fill: none; stroke: var(--truck); stroke-width: 3.5; stroke-linecap: round; }
.icon .i-text { fill: none; stroke: var(--muted); stroke-width: 3; stroke-linecap: round; }

.section-note { color: var(--muted); }
.shot-grid {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.shot-grid p { font-size: 0.95rem; color: var(--muted); margin: 10px 4px 0; }
.shot { display: block; border-radius: var(--radius-small); overflow: hidden; background: var(--white); padding: 6px; box-shadow: var(--shadow); }
.shot img { border-radius: 8px; width: 100%; height: auto; }
.shot:hover { transform: translateY(-2px); transition: transform 0.15s; }

.platforms { padding: 56px 0; background: var(--ink); color: var(--white); }
.platforms .eyebrow { color: var(--heating); }
.platforms p { color: #d9d6cc; }
.platform-row { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .platform-row { grid-template-columns: 1.2fr 1fr; } }
.store-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.store {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.06); border: 1px dashed rgba(255, 255, 255, 0.3);
  color: #d9d6cc; text-decoration: none;
}
.store-name { font-weight: 600; font-size: 1.1rem; color: var(--white); }
.store-note { font-size: 0.9rem; }
.store-live { background: var(--truck); border: 1px solid var(--truck); color: var(--white); }
.store-live:hover { background: var(--truck-hover); color: var(--white); }

.support-grid { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 860px) { .support-grid { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.contact p { margin-bottom: 1em; }
.contact .btn { word-break: break-all; }
.small { font-size: 0.9rem; }
.faq details {
  background: var(--white); border-radius: var(--radius-small); box-shadow: var(--shadow);
  margin-bottom: 12px; padding: 0 20px;
}
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style-position: outside; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

.site-footer { border-top: 1px solid rgba(43, 47, 58, 0.12); padding: 28px 0 40px; font-size: 0.9rem; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer-row p { margin: 0; }
.footer-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--ink); }

.prose-page { padding: 48px 0 72px; }
.prose { max-width: 46rem; }
.prose .card { margin: 24px 0; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.95rem; background: var(--white); border-radius: var(--radius-small); overflow: hidden; box-shadow: var(--shadow); }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--track); vertical-align: top; }
.prose th { background: var(--panel); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.updated { color: var(--muted); }

.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.not-found svg { width: 160px; margin: 0 auto 24px; }
@media (max-width: 520px) {
  .demo-hint { font-size: 0.75rem; bottom: 16px; padding: 4px 10px; }
}
