/* MotoEye Remote project site.
   Structure follows the Destination ETA / PEV PlugShare project sites;
   identity is its own: HUD-black ink, the app cyan, the icon blue. */

:root {
  color-scheme: dark;
  --ink: #07090c;
  --surface: #0e1319;
  --surface-2: #141b23;
  --line: #1f2a35;
  --line-strong: #33414f;
  --text: #e6ebf0;
  --muted: #9aa7b4;
  --hud: #26c6da;
  --hud-strong: #2196f3;
  --hud-ink: #031216;
  --hud-weak: rgba(38, 198, 218, 0.12);
  --amber: #e0a44a;
  --radius: 10px;
  --radius-sm: 7px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu,
    Cantarell, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--hud); text-underline-offset: 3px; }
a:hover { color: #6fdbe8; }

:focus-visible {
  outline: 2px solid var(--hud);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 10;
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
}

.brand-mark { width: 30px; height: 30px; border-radius: 7px; }
.brand-name { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.01em; }

.head-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.head-nav a { color: var(--muted); text-decoration: none; }
.head-nav a:hover { color: var(--text); }
.head-nav a.btn { color: var(--hud-ink); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--hud);
  color: var(--hud-ink);
  font-weight: 650;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hud);
}

.btn:hover { background: #6fdbe8; color: var(--hud-ink); }

.btn-ghost {
  background: transparent;
  color: var(--hud);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover { background: var(--hud-weak); color: var(--hud); }

.btn-small { padding: 0.35rem 0.85rem; font-size: 0.9rem; }

.cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

/* ---------- hero ---------- */

.hero { padding: 3.5rem 0 4rem; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 600;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  margin: 0 0 1.2rem;
  font-weight: 600;
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 36rem;
  margin: 0;
}

.hero-shots {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 420px;
}

.hero-shots .phone {
  width: min(240px, 44%);
  margin: 0;
}

.hero-shots .phone-behind {
  width: min(210px, 38%);
  margin-left: -2.5rem;
  margin-bottom: 3rem;
  opacity: 0.92;
}

/* ---------- phone frames ---------- */

.frame.phone {
  background: #030507;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.frame.phone img {
  border-radius: 14px;
  width: 100%;
  height: auto;
}

/* ---------- bands / features ---------- */

.band { padding: 3.2rem 0; }
.band-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-lede { color: var(--muted); max-width: 40rem; margin: -0.4rem 0 1.6rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.2rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  color: var(--hud);
}

.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- screenshots ---------- */

.shot-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.4rem;
  align-items: start;
}

.shot-row .frame.phone { margin: 0; }

.shot-row figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.7rem;
}

/* ---------- steps ---------- */

.step-list {
  margin: 0;
  padding-left: 1.3rem;
  max-width: 44rem;
}

.step-list li { margin-bottom: 0.9rem; color: var(--muted); }
.step-list strong { color: var(--text); }

/* ---------- bottom CTA ---------- */

.band-cta {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.cta-block { text-align: center; }
.cta-block p { color: var(--muted); max-width: 36rem; margin: 0 auto; }
.cta-block .cta-row { justify-content: center; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.foot-row nav { display: flex; gap: 1.2rem; }
.foot-row a { color: var(--muted); text-decoration: none; }
.foot-row a:hover { color: var(--text); }

/* ---------- prose pages ---------- */

.prose { max-width: 42rem; padding: 3rem 0 4rem; }
.prose h1 { margin-bottom: 1.4rem; }
.prose h2 { margin-top: 2rem; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }

/* ---------- subpages ---------- */

.page-hero {
  padding: 3.2rem 0 0.4rem;
}

.page-hero .eyebrow {
  display: inline-block;
  color: var(--hud);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.page-hero .lede { margin-top: 0.4rem; }

.page-body { padding-bottom: 3.5rem; }

.feature-list {
  display: grid;
  gap: 1rem;
  margin: 1.6rem 0;
}

.feature-list .card h3 { font-size: 1.05rem; }

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.badge-soon {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  background: var(--hud-weak);
  color: var(--hud);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  margin-left: 0.45rem;
  font-family: var(--sans);
}

.note {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--hud);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin: 1.4rem 0;
}

.note p { margin: 0; color: var(--muted); }
.note strong { color: var(--text); }

.code-block {
  background: #030507;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 0.88rem;
  color: #bfeef4;
  margin: 1rem 0;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shots { min-height: 0; margin-top: 1rem; }
  .hero-shots .phone-behind { display: none; }
  .hero-shots .phone { width: min(260px, 70%); }
}

/* ---------- MotoEye additions ---------- */

/* Keep the main remote shot in front of the one tucked behind it */
.hero-shots .phone { position: relative; z-index: 2; }
.hero-shots .phone-behind { z-index: 1; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--hud);
  color: var(--hud-ink);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  z-index: 20;
}
.skip-link:focus { left: 0.5rem; }

.kicker {
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}

.btn-soon {
  opacity: 0.65;
  cursor: default;
}
.btn-soon:hover { background: transparent; }

.unofficial { color: var(--muted); font-size: 0.85rem; margin-top: 1.1rem; }

.faq { max-width: 46rem; }
.faq details {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.7rem;
}
.faq summary { cursor: pointer; font-weight: 650; color: var(--text); }
.faq details p { color: var(--muted); margin: 0.6rem 0 0; }

.table-scroll { overflow-x: auto; margin: 1rem 0 1.6rem; }
.perm-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.perm-table th,
.perm-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--line);
}
.perm-table th { color: var(--text); font-weight: 650; }
.perm-table td { color: var(--muted); }

.updated { color: var(--muted); font-size: 0.9rem; margin-top: -0.8rem; }

@media (max-width: 560px) {
  .wrap { padding: 0 1rem; }
  .head-nav { gap: 0.9rem; font-size: 0.95rem; }
}
