/* roadpenny.com. Colours and type follow docs/brand.md: ink, paper and copper; Outfit headings,
   Inter text. Fonts are served from this site, never from Google. No inline styles anywhere: the
   Content-Security-Policy (site/src/index.mjs) only allows this file. */

@font-face {
  font-family: 'Outfit';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/outfit-600.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/inter-400.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/inter-600.woff2') format('woff2');
  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;
}

:root {
  color-scheme: light dark;
  --bg: #faf7f2;
  --el: #f1ebe1;
  --sel: #e5ddd0;
  --text: #1a1d29;
  --muted: #645e55;
  --tint: #9c4f1a;
  --on-tint: #ffffff;
  --chart: #c26a2c;
  --warn: #855f00;
  --ok: #17724a;
  --rule: #e5ddd0;
  --panel: #1a1d29;
  --on-panel: #efe6d8;
  --panel-accent: #f0ae76;
  --phone-edge: #e2dbcf;
  --font-head: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1117;
    --el: #1a1d29;
    --sel: #272b3a;
    --text: #f4efe7;
    --muted: #a7a196;
    --tint: #f0ae76;
    --on-tint: #1a1d29;
    --chart: #e3894a;
    --warn: #f2c14e;
    --ok: #47cd89;
    --rule: #272b3a;
    --panel: #232838;
    --phone-edge: #2c3040;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-text);
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--tint);
  text-underline-offset: 0.15em;
}
h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--tint);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* Header and footer */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.logo {
  display: flex;
  flex: none;
}
.logo img {
  display: block;
  width: 146px;
  height: 32px;
}
.site-header nav,
.site-footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.site-header nav {
  flex-wrap: nowrap;
}
.site-header nav a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.site-header nav a:hover {
  color: var(--tint);
}
.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 40px;
}
.footer-inner p {
  margin: 0;
}
.legal {
  font-size: 13px;
}

/* Home: hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 32px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--tint);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2.1rem, 10.5vw, 3.75rem);
}
.lede {
  margin: 18px 0 0;
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34em;
}
.cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.store img {
  display: block;
  width: 150px;
  height: 50px;
}
.cta-note {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 64px;
    padding-top: 56px;
  }
}

/* Home: a phone showing the car screen, drawn in CSS like the app */
.phone {
  justify-self: center;
  width: 100%;
  max-width: 300px;
  border-radius: 44px;
  padding: 10px;
  background: var(--panel);
  box-shadow: 0 30px 60px -30px rgba(26, 29, 41, 0.45);
}
.phone-screen {
  border-radius: 36px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--phone-edge);
  padding-bottom: 18px;
  font-size: 12px;
  line-height: 1.35;
}
.ph-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 26px 6px 30px;
  font-weight: 600;
  font-size: 12px;
}
.ph-battery {
  width: 20px;
  height: 10px;
  border-radius: 3px;
  border: 1.5px solid var(--muted);
  position: relative;
}
.ph-battery::after {
  content: '';
  position: absolute;
  inset: 1.5px 5px 1.5px 1.5px;
  border-radius: 1px;
  background: var(--text);
}
.ph-nav {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  padding: 4px 12px 8px;
}
.ph-back {
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background: var(--el);
  position: relative;
}
.ph-back::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-left: 2px solid var(--tint);
  border-bottom: 2px solid var(--tint);
  transform: rotate(45deg);
}
.ph-title {
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}
.ph-pill {
  padding: 5px 12px;
  border-radius: 15px;
  background: var(--el);
  color: var(--tint);
  font-size: 13px;
}
.ph-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 12px;
}
.ph-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ph-tile,
.ph-card {
  background: var(--el);
  border-radius: 12px;
  padding: 10px 12px;
}
.ph-tile b {
  display: block;
  font-size: 18px;
  font-weight: 600;
}
.ph-tile span,
.ph-card small {
  color: var(--muted);
}
.ph-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ph-card small {
  display: block;
  font-size: 11px;
}
.ph-rem {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.ph-rem .dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 4px;
  flex: none;
}
.ph-card small.warn {
  color: var(--warn);
}
.ph-card small.ok {
  color: var(--ok);
}
.dot.warn {
  background: var(--warn);
}
.dot.ok {
  background: var(--ok);
}
.ph-button {
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  background: var(--tint);
  color: var(--on-tint);
}
.ph-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 0;
  font-size: 11px;
}
.ph-bar span:last-of-type {
  color: var(--muted);
}
.ph-bar i {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 3px;
  background:
    linear-gradient(var(--chart), var(--chart)) no-repeat left / var(--w, 0%) 100%,
    var(--sel);
}
.ph-bar .w62 {
  --w: 62%;
}
.ph-bar .w18 {
  --w: 18%;
}
.ph-bar .w12 {
  --w: 12%;
}

/* Home: proof points and features */
.points {
  margin-top: 72px;
}
.point-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.point-list li {
  background: var(--el);
  border-radius: 18px;
  padding: 20px;
}
.point-list h2 {
  font-size: 1.2rem;
}
.point-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.features {
  margin-top: 72px;
}
.section-title {
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  max-width: 18em;
}
.feature-grid {
  display: grid;
  gap: 28px 40px;
  margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.feature-grid h3 {
  font-size: 1.25rem;
  padding-top: 14px;
  border-top: 2px solid var(--chart);
}
.feature-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}
.pro-note {
  margin: 36px 0 0;
  max-width: 44em;
}
.renamed {
  margin-top: 56px;
}
.panel {
  background: var(--panel);
  color: var(--on-panel);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.panel img {
  flex: none;
  width: 64px;
  height: 64px;
}
.panel h2 {
  font-size: 1.5rem;
}
.panel p {
  margin: 6px 0 0;
  color: var(--panel-accent);
}

/* Help, privacy and other text pages */
.prose {
  max-width: 720px;
  padding-top: 24px;
}
.prose h1 {
  font-size: clamp(2rem, 6vw, 2.6rem);
}
.prose h2 {
  font-size: 1.35rem;
  margin: 2em 0 0.4em;
}
.prose .updated {
  color: var(--muted);
  margin-top: 8px;
}
.prose ul {
  padding-left: 1.2em;
}
.prose li {
  margin: 0.35em 0;
}
