/* Timelapse Maestro — landing site styles.
 *
 * Color tokens are ported from the Flutter app's dark palette
 * (lib/app_colors.dart, AppColors.dark). Keep these in sync if the
 * in-app palette changes — this is a hand copy, not a generated artifact. */

:root {
  /* Backgrounds */
  --bg: #000000;
  --surface: #080808;
  --surface-2: #0d0d0d;
  /* Borders */
  --border: #1a1a1a;
  --border-light: #2a2a2a;
  /* Text */
  --text-primary: #ffffff;
  --text-bright: #cccccc;
  --text-secondary: #999999;
  /* Web bumps muted one step up from the app's #777: on this pure-black
     background #777 lands at ~4.5:1, right on the WCAG-AA edge for the small
     subheads/captions that use it. #888 gives comfortable headroom. (This is
     the one deliberate divergence from the app palette copied above.) */
  --text-muted: #888888;
  --text-faint: #555555;
  /* Brand (red) + axis hues */
  --primary: #cc0000;
  --primary-bright: #ff2a2a;
  --primary-deep: #2a0000;
  --pan: #cc6600;
  --tilt: #cc00cc;
  --green: #7fdca0;

  --maxw: 1080px;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-bright);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-bright);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Top bar ─────────────────────────────────────────────── */
header.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
header.bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}
.brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-bright);
}
nav.bar-links a {
  color: var(--text-secondary);
  margin-left: 22px;
  font-size: 0.92rem;
}
nav.bar-links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}
/* On narrow phones the brand + links don't share a row cleanly (the brand
   wraps). Hide the nav there — the hero's "Try the live demo" button already
   covers the same jump, and mobile users scroll the one-pager anyway. */
@media (max-width: 560px) {
  nav.bar-links {
    display: none;
  }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 72px 0 48px;
  text-align: center;
  background: radial-gradient(
    ellipse at 50% -10%,
    var(--primary-deep) 0%,
    var(--bg) 60%
  );
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-bright);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin: 0 0 16px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.hero .hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.hero p.sub {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
}

/* Store badges */
.badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-primary);
  font-weight: 600;
  transition: border-color 0.15s, transform 0.15s;
}
.badge:hover {
  text-decoration: none;
  border-color: var(--primary);
  transform: translateY(-1px);
}
.badge small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}
.badge.disabled {
  opacity: 0.5;
  pointer-events: none;
}
/* Easter egg: a single clickable letter inside a disabled badge. Inherits the
   surrounding type so it stays hidden until someone hovers right over it. */
.badge.disabled .egg {
  pointer-events: auto;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* "Try it in your browser" CTA under the hero badges */
.try-cta {
  margin: 22px 0 0;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
/* Secondary CTA — outline variant of .btn (used for the waitlist/beta link).
   Selector is .btn.btn-ghost so it outranks the later `.btn` rule's red
   background (equal-specificity, source order would otherwise win). */
.btn.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: none;
}
.btn.btn-ghost:hover {
  background: transparent;
  border-color: var(--primary);
}
/* Waitlist line under the contact email button */
.contact-waitlist {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Hero rig photo ──────────────────────────────────────── */
.hero-photo {
  margin: 48px auto 0;
  max-width: 860px;
}
.hero-photo img {
  display: block;
  width: 100%;
  /* The img carries width/height attributes (to reserve space / avoid CLS);
     height:auto keeps the aspect ratio when width is constrained to 100%. */
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.hero-photo figcaption {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 14px;
}

/* ── Screenshot strip (feature tour, below the feature grid) ──── */
.shots {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 56px;
}
.shot {
  margin: 0;
  text-align: center;
}
.shot img {
  width: 220px;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}
.shot figcaption {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

/* ── Live demo (embedded stage) ──────────────────────────── */
/* The .stage itself is styled by the shared demo.css; this is just the
   section chrome. The stage carries its own bottom padding (72px), so the
   note tucks under it the same way .try-note does on try.html. */
section.demo {
  padding: 56px 0 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.demo-note {
  color: var(--text-faint);
  font-size: 0.82rem;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Real-rig proof video (click-to-load YouTube facade) ──── */
section.realrig {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
/* The facade is a <button> showing the thumbnail until clicked, then it's
   replaced with .video-embed (the real iframe). Both share the framed look. */
.video-facade,
.video-embed {
  display: block;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.video-facade {
  position: relative;
  padding: 0;
  background: var(--surface);
  cursor: pointer;
  aspect-ratio: 16 / 9;
}
.video-facade img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s, opacity 0.3s;
}
.video-facade:hover img {
  transform: scale(1.03);
  opacity: 0.85;
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  border: 1px solid var(--primary-bright);
  color: #fff;
  font-size: 1.9rem;
  padding-left: 6px; /* optically center the play triangle */
  box-shadow: 0 10px 30px rgba(204, 0, 0, 0.45);
  transition: transform 0.15s, background 0.15s;
}
.video-facade:hover .video-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--primary-bright);
}
.video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}
.realrig-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 18px auto 0;
}

/* ── Feature grid ────────────────────────────────────────── */
section.features {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 1.1rem;
}
.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.card .axis-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.card .axis-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Highlight card — the lead "won't lock up" reassurance */
.card.card-hero {
  grid-column: 1 / -1;
  background: linear-gradient(
    135deg,
    var(--primary-deep) 0%,
    var(--surface) 70%
  );
  border-color: var(--primary);
}
.card.card-hero h3 {
  font-size: 1.3rem;
}
.card.card-hero p {
  color: var(--text-bright);
  max-width: 62ch;
}

/* ── Empathy / "sound familiar?" ─────────────────────────── */
section.empathy {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.symptoms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}
.symptom {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.empathy-punch {
  max-width: 640px;
  margin: 36px auto 0;
  color: var(--text-primary);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 600;
}
/* Provenance — a trust asset (real indie dev, not a faceless vendor), so it
   reads as readable body copy, not a faint footnote. */
.provenance {
  max-width: 600px;
  margin: 24px auto 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Inline code chip (e.g. the DP-NMX device name in the compatibility card) */
.card code {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.92em;
  color: var(--text-bright);
}

h2.section-title {
  text-align: center;
  color: var(--text-primary);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 12px;
}
p.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}

/* ── Contact ─────────────────────────────────────────────── */
section.contact {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid var(--primary-bright);
}
.btn:hover {
  text-decoration: none;
  background: var(--primary-bright);
}
/* The hero's primary action — the one thing visitors can do today, so it
   leads the page above the "Coming soon" store badges. */
.btn-hero {
  padding: 17px 38px;
  font-size: 1.1rem;
  box-shadow: 0 10px 30px rgba(204, 0, 0, 0.35);
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-faint);
  font-size: 0.85rem;
}
footer .foot-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer a {
  color: var(--text-muted);
}
footer .disclaimer {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.78rem;
  line-height: 1.5;
  max-width: 760px;
}

/* ── Legal pages ─────────────────────────────────────────── */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal h1 {
  color: var(--text-primary);
  font-size: 2rem;
  margin-bottom: 4px;
}
.legal .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}
.legal h2 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-top: 40px;
}
.legal p,
.legal li {
  color: var(--text-bright);
}
.legal .note {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--text-muted);
}
