/* ============================================================
   Notipa — Landing Page (notipa.org)
   Layered on top of app.css: same tokens (paper white / verified
   green / inventory ink), same type (Space Grotesk display + IBM
   Plex Sans body + IBM Plex Mono data), same component language
   (.btn, .tag, .card, .metric-tile, .page-header__eyebrow, etc.)
   as the product itself — this file only adds what a normal
   scrolling marketing page needs that the fixed app shell doesn't:
   a real document flow, a nav bar, a hero, page sections, and a
   footer. Nothing here overrides app.css's tokens or components,
   it only extends them.
   ============================================================ */

/* app.css sets html/body to height:100% + overflow:hidden, because
   the app itself is a fixed-viewport shell with its own internal
   scroll regions (.sidebar, .page-content). A marketing page is a
   normal scrolling document, so that's undone here. */
html, body { height: auto; overflow: visible; }
body { overflow-x: hidden; }

img, svg { max-width: 100%; }

.landing-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* =====================================================
   NAV
   ===================================================== */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 246, 241, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1.5px solid var(--line);
}
.landing-nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}
.landing-nav__wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.landing-nav__mark {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.landing-nav__mark svg { width: 17px; height: 17px; stroke: var(--ink-on-brand); }
.landing-nav__wordmark-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.landing-nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.landing-nav__links a:not(.btn) {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-muted);
}
.landing-nav__links a:not(.btn):hover { color: var(--ink); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  padding: 76px 0 64px;
  border-bottom: 1.5px solid var(--line);
}
.hero__inner { max-width: 860px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-dim);
  background: var(--brand-soft);
  border: 1.5px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 5px 12px 5px 8px;
  margin-bottom: 22px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 20px;
}
.hero__title em {
  font-style: normal;
  color: var(--brand-dim);
}
.hero__lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0 0 32px;
  max-width: 740px;
}
.hero__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero__note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-dim);
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section { padding: 64px 0; border-bottom: 1.5px solid var(--line); }
.section:last-of-type { border-bottom: none; }
.section--sunken { background: var(--paper-sunken); }
.section__eyebrow {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
  display: block;
}
.section__title {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 14px;
  max-width: 640px;
}
.section__lead {
  font-size: 15.5px;
  color: var(--ink-muted);
  max-width: 640px;
  margin-bottom: 0;
}
.section__header { margin-bottom: 40px; }

/* =====================================================
   THE OLD WAY — three-card comparison
   ===================================================== */
.old-way-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.old-way-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.old-way-card__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--brick-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.old-way-card__icon svg { width: 18px; height: 18px; stroke: var(--brick); }
.old-way-card h3 { margin-bottom: 6px; }
.old-way-card p { font-size: 13.5px; margin: 0; }

/* =====================================================
   FEATURE GRID
   ===================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.feature-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card__icon svg { width: 19px; height: 19px; stroke: var(--brand-dim); }
.feature-card h3 { margin-bottom: 6px; }
.feature-card p { font-size: 13.5px; margin: 0; }

/* =====================================================
   FACT ROW — reuses the metric-tile look for mission facts
   rather than sales stats (kept flush-left, not a dashboard).
   ===================================================== */
.fact-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

/* =====================================================
   SELF-HOSTING / CODE BLOCK
   ===================================================== */
.self-host-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 36px;
}
.self-host-copy ul { margin: 18px 0 0; }
.self-host-copy li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.self-host-copy li svg { width: 16px; height: 16px; stroke: var(--brand); flex-shrink: 0; margin-top: 2px; }

.code-block {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-family: var(--font-data);
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-on-brand);
  overflow-x: auto;
}
.code-block__line { white-space: pre; }
.code-block__prompt { color: var(--brand-bright); margin-right: 8px; }
.code-block__comment { color: #8A928B; }

/* =====================================================
   CTA BAND
   ===================================================== */
.cta-band {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  text-align: center;
}
.cta-band h2 { color: var(--ink-on-brand); }
.cta-band p { color: rgba(245, 246, 241, 0.72); max-width: 480px; margin: 0 auto 28px; }
.cta-band .hero__actions { justify-content: center; }
.cta-band .btn--secondary { background: transparent; border-color: rgba(245, 246, 241, 0.4); color: var(--ink-on-brand); }
.cta-band .btn--secondary:hover { background: rgba(245, 246, 241, 0.08); }
.cta-band__note {
  margin: 24px auto 0;
  max-width: 480px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(245, 246, 241, 0.55);
}

/* =====================================================
   FOOTER
   ===================================================== */
.landing-footer {
  padding: 40px 0 56px;
}
.landing-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.landing-footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 12.5px;
  color: var(--ink-dim);
}
.landing-footer__links { display: flex; gap: 22px; }
.landing-footer__links a { font-size: 12.5px; font-weight: 600; color: var(--ink-muted); }
.landing-footer__links a:hover { color: var(--ink); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .hero__title { font-size: 36px; }
  .old-way-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .fact-row { grid-template-columns: repeat(2, 1fr); }
  .self-host-layout { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 40px 24px; }
}

@media (max-width: 640px) {
  .landing-nav__links { gap: 16px; }
  .landing-nav__links a:not(.btn):not(.landing-nav__login) { display: none; }
  .hero { padding: 52px 0 44px; }
  .hero__title { font-size: 30px; }
  .fact-row { grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 0; }
}
