/* Great Circle Map site styles. Theme matches the app: the dark aeronautical
   palette with the gcm-logo blue as the accent and the route red reserved
   for small highlights. Same skeleton as the other app sites. */

:root {
  --bg: #0B1016;
  --raised: #101722;
  --card: #16202C;
  --line: #263140;
  --accent: #1B8CF9;
  --accent-dim: #0B55C6;
  --route: #E63946;
  --text: #EEF2F6;
  --muted: #A9B6C2;
  --dim: #6E7E8E;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  padding-top: 56px; /* fixed navbar */
}

h1, h2, h3, .wordmark, .cta-btn, .nav-brand {
  font-family: Montserrat, Roboto, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Fixed navbar: brand on the left, links centered, hamburger on mobile. */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--raised);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  z-index: 100;
}
.nav-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
}
.nav-brand:hover { text-decoration: none; color: var(--accent); }
.nav-mark { width: 34px; height: 34px; flex: none; }
.nav-menu {
  list-style: none;
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.nav-menu a {
  display: block;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  white-space: nowrap;
}
.nav-menu a:hover { color: var(--accent); text-decoration: none; }
.nav-toggler {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 9px;
  cursor: pointer;
}
.nav-toggler span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 1px;
}

a { color: var(--accent); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }

/* Hero: copy on the left, the phone carousel on the right. */
.hero { padding: 52px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.brand .brand-mark { width: 64px; height: 66px; flex: none; }
.brand h1 { font-size: 34px; font-weight: 700; letter-spacing: 0.3px; line-height: 1.15; }
.tagline {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 14px;
}
.lede { color: var(--muted); font-size: 17px; margin-bottom: 14px; }
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 999px;
}
.cta-btn:hover { text-decoration: none; background: var(--accent-dim); color: #FFFFFF; }
.store-badge { height: 50px; width: auto; transition: transform 0.2s ease; }
.store-badge:hover { transform: scale(1.05); }
.works-on {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* The phone: seven framed screenshots stacked and cross-faded. The cycle
   is driven by carousel.js (a timer plus this transition), which watches
   for and recovers from dropped frames; CSS keyframes could hang blank
   with no way to notice. The webps carry their own transparent bezel. */
.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}
.phone img { width: 100%; height: auto; display: block; }
.shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
}
.shot:first-child { position: relative; }
.shot.is-active { opacity: 1; }

/* Sections and panels. */
section { padding: 34px 0; scroll-margin-top: 64px; }
.section-title {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  text-align: center;
  margin-bottom: 22px;
}
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 20px 18px;
}
.card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.card h3 svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.card p { color: var(--muted); font-size: 15px; }
.section-intro {
  color: var(--muted);
  font-size: 16px;
  text-align: left;
  max-width: 620px;
  margin: -10px auto 24px;
}

/* Demo video: a muted loop in a bordered panel. Capped at 600px so the
   1280-wide capture never upscales past crisp. */
.device-shot {
  margin: 26px auto 0;
  max-width: 600px;
}
.device-shot > img,
.device-shot > video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.device-shot figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Guide teaser on the front page: three framed shots linking to the guide. */
.guide-teaser {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 22px;
}
.guide-teaser img { width: 180px; height: auto; }
.guide-cta { text-align: center; }

/* Guide page: one row per feature, screenshot beside the steps. */
.guide-row {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 32px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.guide-row:first-of-type { border-top: none; }
.guide-row h2 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.guide-row p { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.guide-row ol { margin: 0 0 0 20px; color: var(--muted); font-size: 15px; }
.guide-row li { margin: 6px 0; }
.guide-row li strong { color: var(--text); }
.guide-shot img { width: 100%; height: auto; display: block; }
.guide-note {
  color: var(--dim);
  font-size: 13px;
  margin-top: 8px;
}

/* Guide legend: each control button beside what it does. */
.legend-title { margin-top: 38px; }
.legend { max-width: 620px; margin: 0 auto; }
.legend-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.legend-row:first-child { border-top: none; }
/* The crops are untouched screenshots; no restyling, or the buttons stop
   looking like the app. */
.legend-row img {
  width: 78px;
  height: auto;
  justify-self: center;
}
.legend-row img.wide { width: 150px; }
.legend-row img.row { width: 100%; max-width: 320px; }
.legend-row h3 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.legend-row p { color: var(--muted); font-size: 14px; }
.settings-legend { max-width: 700px; }
.settings-row { grid-template-columns: 300px 1fr; }
.settings-row img { width: 100%; max-width: 300px; }
.guide-badges { margin-bottom: 20px; }

/* Footer. */
footer {
  border-top: 1px solid var(--line);
  background: var(--raised);
  padding: 30px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
footer p { margin: 6px 0; }

/* Responsive. */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-text { text-align: center; }
  .brand { justify-content: center; }
  .brand h1 { font-size: 27px; }
  .section-intro { text-align: center; }
  .phone { max-width: 244px; }
  .features { grid-template-columns: 1fr; }
  .guide-teaser { gap: 12px; }
  .guide-teaser img { width: calc((100vw - 64px) / 3); max-width: 140px; }
  .guide-row { grid-template-columns: 1fr; }
  .guide-shot { max-width: 244px; margin: 0 auto; }
  .settings-row { grid-template-columns: 1fr; }
  .settings-row img { justify-self: start; }

  .nav-toggler { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--raised);
    border-bottom: 1px solid var(--line);
    padding: 6px 12px 10px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 10px 8px; }
}
