/* RoadEye's site. Colours from roadeye/brand.py: tangerine for the mark and accents, ink for dark grounds and text,
   cream for text on dark, slate for the quiet bits. Nunito ExtraBold is the wordmark and the headings, Barlow the
   rest (both under the SIL Open Font License, in fonts/). */

@font-face { font-family: "Nunito"; font-weight: 800; src: url("../fonts/Nunito-ExtraBold.1b6748774878.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow"; font-weight: 400; src: url("../fonts/Barlow-Regular.90af7baeeb14.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow"; font-weight: 600; src: url("../fonts/Barlow-SemiBold.e1f2fbfbe3cc.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow"; font-weight: 700; src: url("../fonts/Barlow-Bold.6cbe034ff9c2.ttf") format("truetype"); font-display: swap; }

:root {
  --tangerine: #F0772B;
  --tangerine-deep: #C85E1A;
  --ink: #1E2A38;
  --ink-deep: #141C26;
  --cream: #FFF4E6;
  --slate: #7A8AA0;
  --paper: #FFFFFF;
  --paper-alt: #F6F2EC;
  --line: #E4DCD2;
  --text: var(--ink);
  --muted: #55657A;
  --heading: "Nunito", "Segoe UI", system-ui, sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tangerine-deep); }
h1, h2, h3 { font-family: var(--heading); font-weight: 800; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); }
.fine { font-size: .875rem; color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--tangerine); color: var(--ink); padding: .5em 1em; }
.skip:focus { left: 12px; top: 12px; z-index: 10; }

/* Buttons */
.button {
  display: inline-block; padding: .75em 1.4em; border-radius: 999px; border: 2px solid var(--tangerine);
  background: var(--tangerine); color: var(--ink); font-weight: 700; text-decoration: none; cursor: pointer;
  font-family: var(--body); font-size: 1rem; line-height: 1.2;
}
.button:hover { background: var(--tangerine-deep); border-color: var(--tangerine-deep); color: var(--cream); }
.button.ghost { background: transparent; color: inherit; border-color: currentColor; }
.button.ghost:hover { background: rgba(255,255,255,.08); color: inherit; border-color: currentColor; }
.button.small { padding: .5em 1.1em; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }

/* Header */
.site-header { background: var(--ink); color: var(--cream); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--cream); }
.logo svg { display: block; }
.wordmark { font-family: var(--heading); font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a { color: var(--cream); text-decoration: none; font-weight: 600; opacity: .85; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; }
.site-nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--tangerine); }
.site-nav .button { opacity: 1; box-shadow: none; }
.nav-toggle { display: none; background: none; border: 2px solid var(--slate); color: var(--cream); border-radius: 8px; padding: .4em .8em; font: inherit; font-weight: 600; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%); color: var(--cream); padding: clamp(2.5rem, 7vw, 6rem) 0; }
.hero .lead { color: #C9D2DE; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--tangerine); margin-bottom: 1rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; color: #C9D2DE; }
.hero-points li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tangerine); margin-right: .6rem; vertical-align: middle; }
.hero-screen { margin: 0; }
.hero-screen img { border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 6px #0b1118; }
.hero-device img { border-radius: 0; box-shadow: none; filter: drop-shadow(0 24px 32px rgba(0,0,0,.55)); max-height: min(720px, 80vh); width: auto; margin: 0 auto; }
figcaption { font-size: .9rem; color: var(--slate); margin-top: .75rem; text-align: center; }
.lead.on-dark { color: #C9D2DE; max-width: 760px; }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section.alt { background: var(--paper-alt); }
.section.dark { background: var(--ink); color: var(--cream); }
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.card { background: var(--paper-alt); border-radius: var(--radius); padding: 1.5rem; border-top: 4px solid var(--tangerine); }
.card p { margin: 0; color: var(--muted); }
.more { margin-top: 1.5rem; font-weight: 600; }
.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.screens figure { margin: 0; }
.screens.pair { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.screens img { border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.screens.phones { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); max-width: 1120px; margin: 0 auto; }
.screens.phones img { border-radius: 24px; }
.section.dark .screens img { box-shadow: 0 20px 40px rgba(0,0,0,.6); }
.section h2 + .lead { margin-bottom: 2rem; }
.screens.renders img, .render img { border-radius: 0; box-shadow: none; filter: drop-shadow(0 16px 24px rgba(0,0,0,.25)); }
.render { margin: 2rem 0 2.5rem; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.steps li { counter-increment: step; position: relative; padding-left: 3.4rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--tangerine); color: var(--ink); font-family: var(--heading); font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; }
.steps p { color: var(--muted); margin: 0; }
.feature-list { display: grid; gap: 2.5rem; max-width: 760px; }
.feature .lead { margin-bottom: .5em; }
.feature p:last-child { margin: 0; }
.spec { display: grid; gap: .6rem; margin: 0 0 2.5rem; }
.spec div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 700; }
.spec dd { margin: 0; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.faq summary { font-family: var(--heading); font-weight: 800; font-size: 1.15rem; cursor: pointer; list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0; color: var(--tangerine); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: .75rem 0 0; color: var(--muted); }
.prose h2 { margin-top: 1.5rem; }

/* Sign-up */
.signup { background: var(--paper-alt); padding: clamp(2.5rem, 6vw, 5rem) 0; border-top: 1px solid var(--line); }
.lead-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.lead-form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.lead-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.lead-form input, .lead-form select, .lead-form textarea {
  font: inherit; font-weight: 400; padding: .7em .9em; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--text); width: 100%;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--tangerine); outline-offset: 1px; border-color: var(--tangerine); }
.lead-form .button { justify-self: start; }
.lead-form .fine { margin: 0; }
.error { color: #B3261E; font-weight: 600; font-size: .9rem; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* Footer */
.site-footer { background: var(--ink-deep); color: var(--slate); padding: 2.5rem 0; }
.foot-brand { display: flex; align-items: center; gap: .5rem; color: var(--cream); margin-bottom: 1rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 1.2rem; }
.foot-nav a { color: var(--cream); text-decoration: none; opacity: .8; }
.foot-nav a:hover { opacity: 1; }
.site-footer .fine { color: var(--slate); max-width: 760px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: .9rem; padding-bottom: 1rem; }
  .site-nav.open { display: flex; }
  .spec div { grid-template-columns: 1fr; gap: .2rem; }
}
