.landing-page {
  max-width: 960px;
  padding: 48px 24px 64px;
}

.landing-page .brand-header {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  justify-content: center;
  margin-bottom: 8px;
  padding: 24px 16px;
  background: var(--bg);
}

.landing-page .brand-logo {
  width: 100%;
  max-width: 720px;
  height: auto;
}

/* Pinned mini header: a separate element, not a resize of the hero logo above.
   Only `opacity`/`transform` animate here — both are compositor-only, so this
   stays smooth no matter how much layout work the page underneath is doing
   while it scrolls. Animating `width`/`padding` instead (the previous approach)
   forces a main-thread layout pass on every frame, which is what read as jerky. */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  will-change: opacity, transform;
}
.sticky-nav.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.sticky-nav-logo {
  display: block;
  width: 120px;
  height: auto;
}

.hero {
  text-align: center;
  margin-bottom: 48px;
}
.hero h1 {
  font-size: 2.25rem;
  margin: 0 0 32px;
}
.tagline {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.3;
  font-style: italic;
}
.tagline-line {
  display: block;
}
.tagline-emphasis {
  display: block;
  margin-top: 4px;
  font-size: 1.3em;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.hero .subtitle {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 24px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
/* .promo-banner itself lives in site.css — the reserved-tag scan page uses the same
   banner and doesn't load this stylesheet. */
.hero-cta .app-store-link { font-size: 1.05rem; }
.coming-soon {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.examples {
  text-align: center;
  margin-bottom: 48px;
}
.examples-label {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}
.example-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.example-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  background: var(--card-bg);
}

.category-explorer {
  display: flex;
  gap: 20px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card-bg);
  padding: 12px;
  min-height: 260px;
}
.category-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  align-content: start;
  flex: 0 0 260px;
  border-right: 1px solid var(--border);
  padding-right: 12px;
  overflow-y: auto;
}
.category-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  font: inherit;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.category-nav-item:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}
.category-nav-item.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.category-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}
.category-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.category-detail {
  flex: 1;
  min-width: 0;
  padding: 8px;
}
.category-panel {
  display: none;
}
.category-panel.is-active {
  display: block;
}
.category-panel .example-chips {
  justify-content: flex-start;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.feature {
  text-align: center;
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.feature h2 {
  font-size: 1.05rem;
  margin: 0 0 6px;
}
.feature p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card-bg);
}
.trust-item h2 {
  font-size: 1rem;
  margin: 0 0 6px;
}
.trust-item p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.screenshots {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  margin-bottom: 8px;
  scroll-snap-type: x proximity;
}
.screenshot-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 220px;
  scroll-snap-align: start;
}
.screenshots img {
  height: 380px;
  width: auto;
  max-width: 100%;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.15s ease;
}
.screenshots img:hover,
.screenshots img:active {
  transform: scale(1.02);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.85);
  cursor: zoom-out;
}
.lightbox.is-open {
  display: flex;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  object-fit: contain;
}
.screenshot-caption {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 420px;
  margin: 0 auto;
  padding: 16px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card-bg);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-card:hover {
  border-color: var(--accent);
  background: var(--owner-bubble);
}
.contact-card-logo {
  height: 28px;
  width: auto;
}
.contact-card-qr {
  width: 64px;
  height: 64px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
}
.contact-card-label {
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .features {
    grid-template-columns: 1fr;
  }
  .trust {
    grid-template-columns: 1fr;
  }
  .category-explorer {
    flex-direction: column;
  }
  .category-nav {
    flex: 0 0 auto;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 12px;
  }
  .screenshot-card {
    width: 170px;
  }
  .screenshots img {
    height: 300px;
  }
}

.site-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 0.85rem;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer-sep {
  color: var(--border);
  margin: 0 6px;
}
.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}
