/* HeadsUp Drive — site styles. No build step, no framework. */

:root {
  --sky: #2f9be8;
  --sky-deep: #1a6fb5;
  --road: #f6e7bd;
  --green: #3fbf3a;
  --ink: #1d232b;
  --ink-soft: #4a5562;
  --bg: #ffffff;
  --bg-alt: #f6f4ee;
  --line: #e4e0d5;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(20, 30, 45, .12);
  --radius: 14px;
  --max: 1080px;
  --brand: #1f86d6;
  --brand-deep: #1566a8;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sky: #5ab4f5;
    --sky-deep: #8ccaf8;
    --ink: #eef1f4;
    --ink-soft: #b4bdc8;
    --bg: #12161b;
    --bg-alt: #1a1f26;
    --line: #2a313a;
    --card: #1d232b;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-deep); text-underline-offset: 3px; }
a:hover { color: var(--sky); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--bg); padding: 8px 12px; z-index: 100; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink-soft); font-size: .95rem; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-alt); }
.nav a.cta { background: var(--brand); color: #fff; margin-left: 6px; }
.nav a.cta:hover { background: var(--brand-deep); color: #fff; }

.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 8px; font-weight: 700; font-size: .95rem; border: 1px solid var(--line); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--bg-alt); }
.menu .nav {
  position: absolute; right: 0; top: calc(100% + 8px);
  flex-direction: column; align-items: stretch; min-width: 240px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px;
}
.menu .nav a.cta { margin: 6px 0 0; text-align: center; }

@media (max-width: 860px) {
  .site-header .nav.desktop { display: none; }
  .menu { display: block; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  min-height: min(78vh, 720px); display: flex; align-items: flex-end;
  background: #1b2430 url("/images/hero-dashboard.jpg") center 60% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,16,24,.15) 0%, rgba(10,16,24,.35) 45%, rgba(10,16,24,.82) 100%);
}
.hero .wrap { position: relative; padding-top: 80px; padding-bottom: 56px; width: 100%; }
.hero-icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 8px 24px rgba(0,0,0,.35); margin-bottom: 20px; }
.hero h1 { max-width: 14em; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 34em; opacity: .95; margin-bottom: 1.5em; }

/* ---------- Page banner (inner pages) ---------- */
.banner {
  position: relative; color: #fff; padding: 96px 0 44px;
  background: #1b2430 var(--img) center / cover no-repeat;
}
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,24,.35), rgba(10,16,24,.78)); }
.banner .wrap { position: relative; }
.banner h1 { margin: 0; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.banner p { margin: .5em 0 0; opacity: .92; font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.badge-link { display: inline-block; }
.badge-link img { height: 54px; width: auto; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  background: var(--brand); color: #fff; padding: 12px 22px; border-radius: 10px;
}
.btn:hover { background: var(--brand-deep); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.alt { background: var(--bg-alt); }

.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 88px; }
.feature.flip .feature-media { order: 2; }
.feature-text p { color: var(--ink-soft); font-size: 1.08rem; }
.feature-media { display: flex; justify-content: center; }

.phone {
  width: 100%; max-width: 300px;
  border-radius: 34px; padding: 10px; background: #111;
  box-shadow: var(--shadow), inset 0 0 0 2px #333;
}
.phone img { border-radius: 26px; width: 100%; }
.shot { border-radius: var(--radius); box-shadow: var(--shadow); max-width: 420px; width: 100%; }

.kicker { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: .6em; }

@media (max-width: 760px) {
  section { padding: 52px 0; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .feature-media { order: 0; }
  .feature + .feature { margin-top: 60px; }
  .phone { max-width: 250px; }
}

/* ---------- Prose (inner pages) ---------- */
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.6em; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.prose figcaption { color: var(--ink-soft); font-size: .92rem; margin-top: .7em; text-align: center; }
.prose .float-right { float: right; width: 42%; margin: .3em 0 1em 1.8em; }
.prose blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 4px solid var(--sky); color: var(--ink-soft); }
.prose .clear { clear: both; }
@media (max-width: 640px) { .prose .float-right { float: none; width: 100%; margin: 1.5em 0; } }

.download-strip { text-align: center; padding: 56px 0; background: linear-gradient(135deg, #12568f, var(--brand)); color: #fff; }
.download-strip h2 { margin-bottom: .4em; }
.download-strip p { opacity: .95; margin-bottom: 1.4em; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; margin: 2em 0; }
.video iframe, .video a { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video a img { width: 100%; height: 100%; object-fit: cover; }
.video a::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%; background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%231a6fb5'/%3E%3C/svg%3E") 56% 50% / 44px no-repeat;
  box-shadow: 0 6px 24px rgba(0,0,0,.35); transition: transform .15s;
}
.video a:hover::after { transform: scale(1.06); }

.policy-meta { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: .95rem; color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h3 { color: var(--ink); font-size: 1rem; margin-bottom: .8em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35em 0; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--sky-deep); text-decoration: underline; }
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
