/* bikebrevard.app — the public showcase and the demo's login page.
   Colours and type from the Bike Brevard Map brand guide (Canva, October
   2026): Open Sans ExtraBold headlines in navy, Inter for text, cream ground,
   grey-purple ridges from the App Store headers. */

@font-face {
  font-family: "Open Sans";
  src: url("/fonts/open-sans.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #F6F3EC;
  --cream-deep: #EFEAE0;
  --lavender: #C6C2E0;
  --ridge-mid: #8E90C4;
  --ridge-near: #4A5596;
  --indigo: #3F3893;
  --navy: #1E2557;
  --peach: #F7C48E;
  --path: #9E99AE;
  --grey-1: #C9C1CC;
  --grey-2: #9C91A1;
  --grey-3: #6A5F70;
  --line: #E2DCCE;
  --head: "Open Sans", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); }
h1, h2, h3 {
  font-family: var(--head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.band { padding: 88px 0; }
.band-tint { background: var(--cream-deep); }
.eyebrow { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-3); margin-bottom: 0.6rem; }
.lede { font-size: 1.2rem; max-width: 44rem; color: var(--ridge-near); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 2px solid var(--navy);
  background: transparent; color: var(--navy); font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
}
.btn:hover { background: #fff; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--indigo); border-color: var(--indigo); }
.btn-small { padding: 9px 16px; font-size: 0.92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(246, 243, 236, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font: 800 1.2rem/1 var(--head); letter-spacing: -0.02em; white-space: nowrap; }
.brand img { border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: #fff; }
.nav .nav-login { border: 2px solid var(--navy); margin-left: 6px; padding: 6px 14px; }

/* Hero: headline over cream, the mountain path below it. */
.hero { background: var(--cream); overflow: hidden; }
.hero-text { padding-top: 72px; text-align: center; }
.hero-text .lede { margin-left: auto; margin-right: auto; }
.hero .actions { justify-content: center; }
.hero-art { width: 100%; margin-top: 8px; }

.facts { list-style: none; padding: 0; margin: 2rem 0 3rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.facts strong { display: block; font: 800 2.6rem/1 var(--head); color: var(--indigo); margin-bottom: 6px; }
.facts span { color: var(--grey-3); font-weight: 600; font-size: 0.95rem; }

/* Screenshots: a row you scroll sideways. */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 24px; margin: 0 -4px;
}
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { width: 100%; border-radius: 28px; border: 6px solid var(--navy); background: var(--navy); box-shadow: 0 14px 30px rgba(30, 37, 87, 0.18); }
.shots figcaption { margin-top: 14px; font-size: 0.95rem; color: var(--grey-3); }
.shots figcaption strong { display: block; color: var(--navy); font-family: var(--head); font-size: 1.05rem; margin-bottom: 2px; }

.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2rem; }
.who article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.who .feature { margin: 0; font-weight: 700; color: var(--indigo); font-size: 0.95rem; }

.releases { list-style: none; padding: 0; margin: 2rem 0 0; position: relative; }
.releases::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 3px; background: var(--lavender); border-radius: 2px; }
.releases > li { position: relative; padding: 0 0 36px 44px; }
.releases > li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 19px; height: 19px; border-radius: 50%; background: var(--indigo); border: 4px solid var(--cream); box-shadow: 0 0 0 2px var(--indigo); }
.releases .rel-demo::before { background: var(--peach); box-shadow: 0 0 0 2px var(--grey-3); }
.rel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 8px; }
.ver { font: 800 1.6rem/1 var(--head); color: var(--navy); }
.when { font-weight: 600; color: var(--grey-3); font-size: 0.95rem; }
.releases ul { margin: 0; padding-left: 1.1rem; }
.releases ul li { margin-bottom: 4px; }

.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.photo { margin: 0; transform: rotate(-2deg); background: #fff; padding: 10px; border-radius: 16px; border: 1px solid var(--lavender); box-shadow: 0 12px 28px rgba(30, 37, 87, 0.14); }
.photo img { border-radius: 10px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 1.5rem; }
.card { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 2px solid var(--lavender); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--grey-3); font-size: 0.95rem; }
.card:hover { border-color: var(--indigo); }
.card strong { display: block; color: var(--navy); font: 800 1.1rem/1.2 var(--head); margin-bottom: 4px; }
.num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; }

.footer { background: var(--cream); color: var(--grey-3); text-align: center; }
.footer-art { width: 100%; }
.footer-inner { background: var(--grey-3); color: #fff; padding: 28px 24px 36px; max-width: none; }
.footer-inner a { color: #fff; }
.footer .built { font: 800 1.25rem/1.3 var(--head); margin-bottom: 6px; }

/* Login page */
.login-page { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: var(--cream) url("/img/mountain-path-16x9.jpg") center bottom / cover no-repeat; }
.login { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px; box-shadow: 0 18px 40px rgba(30, 37, 87, 0.16); text-align: center; }
.login img { margin: 0 auto 14px; border-radius: 14px; }
.login h1 { font-size: 1.9rem; }
.login p { color: var(--grey-3); }
.login form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; text-align: left; }
.login label { font-weight: 700; font-size: 0.9rem; }
.login input { font: inherit; padding: 13px 14px; border: 2px solid var(--lavender); border-radius: 12px; background: var(--cream); color: var(--navy); }
.login input:focus { border-color: var(--indigo); outline: none; }
.login .btn { justify-content: center; }
.login .error { color: #A3312A; font-weight: 600; font-size: 0.92rem; margin: 0; }
.login .back { display: inline-block; margin-top: 16px; font-size: 0.92rem; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .band { padding: 60px 0; }
  .nav a:not(.nav-login) { display: none; }
  .brand span { font-size: 1.05rem; }
  .hero-text { padding-top: 44px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts strong { font-size: 2.1rem; }
  .who { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .photo { max-width: 340px; margin: 0 auto; }
  .cards { grid-template-columns: 1fr; }
  .shots { grid-auto-columns: 72%; }
}
