/* Video to Photo Sequence site styles. Theme matches the app: flat near-black
   greys with hairline borders and the gold accent. No gradients, no textures. */

:root {
  --bg: #161618;
  --surface: #232326;
  --surface-raised: #2C2C30;
  --gold: #E0B34A;
  --gold-ink: #1A1400;
  --text: #F2F2F2;
  --muted: #9A9AA0;
  --line: #3A3A3F;
}

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

html { scroll-behavior: smooth; }

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

/* Fixed navbar: brand on the left, links centered, hamburger on mobile. */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  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(--gold);
  font-weight: 800;
  font-size: 17px;
}
.nav-brand:hover { text-decoration: none; color: var(--text); }
.nav-mark { width: 34px; height: 34px; flex: none; border-radius: 7px; }
.nav-menu {
  list-style: none;
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.nav-menu a {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  white-space: nowrap;
}
.nav-menu a:hover { color: var(--gold); 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(--gold); 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 .mark { width: 64px; height: 64px; flex: none; border-radius: 13px; }
.brand h1 { font-size: 32px; font-weight: 800; letter-spacing: 0.3px; line-height: 1.15; }
.tagline {
  color: var(--gold);
  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; }
/* The call to action: gold button with the store badges below it side by
   side, all centered on the hero text column. */
.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(--gold);
  color: var(--gold-ink);
  font-weight: 800;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 8px;
}
.cta-btn:hover { text-decoration: none; background: var(--text); }
.store-badge { height: 50px; width: auto; transition: transform 0.2s ease; }
a .store-badge:hover { transform: scale(1.05); }
.works-on {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* The phone: framed screenshots stacked and cross-faded. The frame is baked
   into each image with transparency, so the container adds no chrome. */
.phone {
  max-width: 264px;
  margin: 0 auto;
  position: relative;
  background: transparent;
}
.phone img { width: 100%; height: auto; display: block; }
.shot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
}
.shot:first-child { position: relative; opacity: 1; }
.phone.loaded .shot:nth-child(1) { animation: shotCycle1 21s ease-in-out infinite; }
.phone.loaded .shot:nth-child(2) { animation: shotCycle2 21s ease-in-out infinite; }
.phone.loaded .shot:nth-child(3) { animation: shotCycle3 21s ease-in-out infinite; }
.phone.loaded .shot:nth-child(4) { animation: shotCycle4 21s ease-in-out infinite; }
.phone.loaded .shot:nth-child(5) { animation: shotCycle5 21s ease-in-out infinite; }
.phone.loaded .shot:nth-child(6) { animation: shotCycle6 21s ease-in-out infinite; }
.phone.loaded .shot:nth-child(7) { animation: shotCycle7 21s ease-in-out infinite; }

/* Single-image case (the current placeholder) simply stays put; the cycle
   only matters once several screenshots are stacked. */
.phone.loaded .shot:only-child { animation: none; opacity: 1; }

@keyframes shotCycle1 { 0% { opacity: 1; } 43% { opacity: 1; } 48% { opacity: 0; } 100% { opacity: 0; } }
@keyframes shotCycle2 { 0% { opacity: 0; } 5% { opacity: 0; } 10% { opacity: 1; } 53% { opacity: 1; } 58% { opacity: 0; } 100% { opacity: 0; } }
@keyframes shotCycle3 { 0% { opacity: 0; } 19% { opacity: 0; } 24% { opacity: 1; } 67% { opacity: 1; } 72% { opacity: 0; } 100% { opacity: 0; } }
@keyframes shotCycle4 { 0% { opacity: 0; } 33% { opacity: 0; } 38% { opacity: 1; } 81% { opacity: 1; } 86% { opacity: 0; } 100% { opacity: 0; } }
@keyframes shotCycle5 { 0% { opacity: 0; } 48% { opacity: 0; } 53% { opacity: 1; } 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes shotCycle6 { 0% { opacity: 0; } 62% { opacity: 0; } 67% { opacity: 1; } 100% { opacity: 1; } }
@keyframes shotCycle7 { 0% { opacity: 0; } 76% { opacity: 0; } 81% { opacity: 1; } 100% { opacity: 1; } }

/* Sections and panels. */
/* Anchor jumps land with the section title clear of the fixed navbar. */
section { padding: 34px 0; scroll-margin-top: 64px; }
.section-title {
  color: var(--gold);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  text-align: center;
  margin-bottom: 22px;
}
/* Two columns keep every card title on a single line. */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 20px 18px;
}
.card h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }
.card .pip {
  color: var(--gold);
  font-size: 14px;
  margin-right: 9px;
  font-weight: 400;
}

.section-intro {
  color: var(--muted);
  font-size: 16px;
  text-align: left;
  max-width: 620px;
  margin: -10px auto 24px;
}

/* How It Works: the same numbered step list the app opens with. */
.steps {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
}
.step-num {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 17px; font-weight: 800; margin-bottom: 3px; }
.step p { color: var(--muted); font-size: 15px; }
.step-tip svg { flex: none; fill: var(--gold); }

/* Device showcase: captures and the Mac window mock. */
.device-shot {
  margin: 26px auto 0;
  max-width: 880px;
}
.device-shot > img,
.device-shot > video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.device-shot figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
/* Placeholder wells until real captures and the demo video land. */
.demo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 300px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.demo-placeholder.wide { min-height: 340px; }
.mac-window {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.mac-window .demo-placeholder { border: none; border-radius: 0; }
.mac-titlebar {
  position: relative;
  height: 36px;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
}
.mac-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
}
.mac-dot:nth-child(1) { background: #FF5F57; }
.mac-dot:nth-child(2) { background: #FEBC2E; }
.mac-dot:nth-child(3) { background: #28C840; }
.mac-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.mac-window img {
  display: block;
  width: 100%;
  height: auto;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding: 26px 0 34px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
footer p { margin-bottom: 6px; }

@media (max-width: 760px) {
  .hero { padding: 36px 0 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .hero-visual { order: -1; }
  .brand { justify-content: center; }
  .brand h1 { font-size: 26px; }
  .phone { max-width: 224px; }
  .features { grid-template-columns: 1fr; }
  .section-intro { text-align: center; }

  /* Collapsed nav: hamburger toggles a dropdown under the bar. */
  .nav-toggler { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 6px 0 10px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 24px; }
}
