/* NearVox — group.leafy */

:root {
  --brand: #3B82F6;
  --brand-dark: #2563EB;
  --brand-light: #60A5FA;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg-soft: #f8fafc;
  --footer-bg: #0f172a;
  --radius: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: #fff;
}

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

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header (shared) ---------- */

.site-header {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, var(--brand-light) 100%);
  color: #fff;
  text-align: center;
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.header-inner.compact { padding: 32px 24px 36px; }

.app-icon {
  width: 108px;
  height: 108px;
  margin: 0 auto 18px;
  border-radius: 24px;
  filter: drop-shadow(0 10px 24px rgba(15, 23, 42, 0.28));
}

.compact .app-icon { width: 64px; height: 64px; border-radius: 15px; margin-bottom: 10px; }

.app-name {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.compact .app-name { font-size: 24px; }

.app-name a { color: inherit; }
.app-name a:hover { text-decoration: none; }

.app-name-sub {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.app-subtitle {
  margin: 22px 0 0;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}

/* ---------- App Store button ---------- */

.store-buttons {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-button:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.35);
}

.store-button svg { width: 34px; height: 34px; fill: #fff; flex: none; }

.store-button-label { text-align: left; line-height: 1.2; }

.store-button-label .small {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

.store-button-label .large {
  display: block;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Sections & prose ---------- */

.section { padding: 56px 24px; }
.section.soft { background: var(--bg-soft); }

.section-inner { max-width: 720px; margin: 0 auto; }

.prose h1 {
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.prose h2 {
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
}

.prose h3 { font-size: 18px; margin: 28px 0 10px; }

.prose p, .prose ul, .prose ol { margin: 0 0 16px; }

.prose ul, .prose ol { padding-left: 24px; }

.prose li { margin-bottom: 10px; }

.prose li strong { color: var(--ink); }

.shots-heading {
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  text-align: center;
}

/* ---------- Screenshots strip ---------- */

.shots-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 24px 22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}

.shots-strip::-webkit-scrollbar { height: 8px; }
.shots-strip::-webkit-scrollbar-track { background: transparent; }
.shots-strip::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.shots-strip::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.shots-strip figure {
  margin: 0;
  flex: none;
  scroll-snap-align: center;
}

/* Center the strip when it is narrower than the viewport; auto margins
   collapse to 0 once content overflows, so scrolling still starts at the
   first screenshot. */
.shots-strip figure:first-child { margin-left: auto; }
.shots-strip figure:last-child { margin-right: auto; }

.shots-strip img {
  height: 480px;
  width: auto;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

/* ---------- Closing CTA ---------- */

.cta {
  text-align: center;
  padding: 48px 24px 64px;
}

.cta p {
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 24px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-inner p { margin: 0; }

.footer-links { display: flex; gap: 22px; }

.footer-links a { color: rgba(255, 255, 255, 0.85); }
.footer-links a:hover { color: #fff; }

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .header-inner { padding: 40px 20px 48px; }
  .header-inner.compact { padding: 24px 20px 28px; }

  .app-icon { width: 88px; height: 88px; border-radius: 20px; }
  .app-name { font-size: 30px; }
  .app-subtitle { font-size: 19px; }
  .app-name-sub { font-size: 14px; }

  .section { padding: 40px 20px; }

  .prose h1 { font-size: 26px; }
  .prose h2 { font-size: 20px; }

  .shots-strip { padding: 4px 20px 18px; }
  .shots-strip img { height: 420px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    padding: 22px 20px;
  }
}

@media (max-width: 400px) {
  .shots-strip img { height: 360px; }
  .app-name { font-size: 26px; }
  .store-button-label .large { font-size: 17px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .store-button { transition: none; }
}
