/* ===== BG ShelfScout marketing page =====
   Brand-matched to the in-app theme and the existing coming-soon page:
   bg #0e1014, surface #1e2228, accent #739ce2, muted text #a8aaae. */

:root {
  --bg: #0e1014;
  --surface: #1e2228;
  --surface-2: #161a1f;
  --text: #f4f5f6;
  --muted: #a8aaae;
  --accent: #739ce2;
  --accent-strong: #5b86d6;
  --max: 1080px;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; }

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

h1, h2 { letter-spacing: -0.03em; line-height: 1.1; }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ===== Phone screenshots ===== */
.phone {
  display: block;
  width: 100%;
  max-width: 270px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

/* ===== Hero ===== */
.hero {
  padding: 72px 24px 56px;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(115, 156, 226, 0.18), transparent 60%),
    var(--bg);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.app-icon {
  border-radius: 20px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--text);
  font-weight: 500;
  margin-bottom: 18px;
}

.lede {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 30em;
  margin-bottom: 30px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  padding: 14px 28px;
}

.cta--primary {
  background: var(--accent);
  color: #0e1014;
  cursor: default;
}

.cta svg { flex-shrink: 0; }

.cta-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 14px;
}

/* Hero art: two overlapping phones */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

.hero-art .phone--lead {
  position: relative;
  z-index: 2;
  transform: translateX(-10%) rotate(-3deg);
  max-width: 250px;
}

.hero-art .phone--trail {
  position: absolute;
  z-index: 1;
  right: 0;
  top: 12%;
  transform: rotate(4deg);
  max-width: 230px;
  opacity: 0.95;
}

/* ===== Feature sections ===== */
.feature { padding: 64px 24px; }
.feature--alt { background: var(--surface-2); }

.feature-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-inner--reverse .feature-text { order: 2; }
.feature-inner--reverse .feature-shot { order: 1; }

.feature-text h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.feature-text p {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 34em;
}

.feature-shot { display: flex; justify-content: center; }

.feature-shot--pair {
  position: relative;
  min-height: 480px;
  align-items: center;
}

.feature-shot--pair .phone { max-width: 240px; }

.feature-shot--pair .phone--offset {
  position: absolute;
  right: 4%;
  bottom: 0;
  max-width: 200px;
  transform: rotate(5deg);
  z-index: 1;
}

.feature-shot--pair .phone:first-child {
  position: relative;
  z-index: 2;
  transform: translateX(-8%) rotate(-4deg);
}

/* ===== Closing CTA ===== */
.closing {
  text-align: center;
  padding: 80px 24px;
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(115, 156, 226, 0.16), transparent 60%),
    var(--bg);
}

.closing h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.closing p {
  font-size: 1.0625rem;
  color: var(--muted);
  margin-bottom: 28px;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 48px 24px 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--surface-2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 0.9375rem;
  margin-bottom: 18px;
}

.footer-links .dot { color: var(--muted); }

.attribution, .copyright {
  font-size: 0.8125rem;
  color: var(--muted);
}

.attribution { margin-bottom: 6px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero { padding: 56px 22px 40px; text-align: center; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .app-icon { margin-left: auto; margin-right: auto; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }

  .hero-art { min-height: 380px; }

  .feature { padding: 48px 22px; }

  .feature-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  /* Keep screenshots below copy regardless of source order */
  .feature-inner--reverse .feature-text { order: 1; }
  .feature-inner--reverse .feature-shot { order: 2; }

  .feature-text p { margin-left: auto; margin-right: auto; }

  .feature-shot--pair { min-height: 440px; }
}

@media (max-width: 420px) {
  .phone { max-width: 220px; }
  .hero-art .phone--lead { max-width: 200px; }
  .hero-art .phone--trail { max-width: 170px; top: 18%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
