/* Nabu marketing homepage (/home). Standalone stylesheet — intentionally
   decoupled from app.css, whose html/body height rules (--app-h, flex
   column) are built for the mobile app shell, not a normal scrolling page.
   Design tokens below mirror app.css so the look matches the product. */

:root {
  --brand: #19323C;
  --primary: #2E86AB;
  --secondary: #A23B72;
  --accent: #F18F01;
  --bg: #F4EFE7;
  --surface: #FFFFFF;
  --text: #1A1A2E;
  --text-secondary: #6B7280;
  --border: #D1D5DB;
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-pill: 9999px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #5BBEDD;
    --primary: #4DABCE;
    --secondary: #C866A0;
    --accent: #F4A634;
    --bg: #0E1117;
    --surface: #181C27;
    --text: #E6EDF3;
    --text-secondary: #8B949E;
    --border: #2A3042;
    --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
  }
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }

h1, h2, h3 { color: var(--brand); line-height: 1.2; }

/* Buttons (mirrors app.css .btn family so CTAs feel native to the product) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1.05rem; }

/* Nav */
.hm-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.hm-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hm-logo { font-size: 1.35rem; font-weight: 800; color: var(--brand); }
.hm-nav-cta { padding: 0.5rem 1.1rem; font-size: 0.95rem; }

/* Hero */
.hm-hero { padding: 4.5rem 1.25rem 3rem; }
.hm-hero-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.hm-hero h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; }
.hm-hero-sub {
  margin-top: 1.1rem;
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hm-hero-ctas {
  margin-top: 2rem;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hm-badges {
  list-style: none;
  margin-top: 1.75rem;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hm-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Section headings shared across sections */
.hm-section-title { font-size: 1.75rem; font-weight: 800; text-align: center; }
.hm-section-sub {
  text-align: center;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0.6rem auto 0;
}

/* Screenshots */
.hm-shots { padding: 3rem 1.25rem 4rem; }
.hm-shots-grid {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}
.hm-shot {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 1rem 1rem 1.25rem;
  text-align: center;
}
.hm-shot img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  box-shadow: var(--shadow-lg);
}
.hm-shot figcaption {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* Features */
.hm-features { padding: 3rem 1.25rem 4rem; background: var(--surface); }
.hm-feature-grid {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.hm-feature-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.hm-feature-icon { font-size: 1.75rem; margin-bottom: 0.6rem; }
.hm-feature-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.hm-feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* Privacy / free callout */
.hm-privacy { padding: 3.5rem 1.25rem; text-align: center; }
.hm-privacy-copy {
  max-width: 640px;
  margin: 1.1rem auto 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Final CTA */
.hm-cta {
  padding: 4rem 1.25rem 5rem;
  text-align: center;
  background: var(--brand);
  color: #fff;
}
.hm-cta h2 { color: #fff; font-size: 1.9rem; margin-bottom: 1.5rem; }
.hm-cta .btn-primary { background: #fff; color: var(--brand); }
.hm-cta .btn-primary:hover { background: #fff; }

/* Footer */
.hm-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.hm-footer nav { display: flex; gap: 1.25rem; }
.hm-footer a { color: var(--text-secondary); }
.hm-footer a:hover { color: var(--primary); }

@media (max-width: 860px) {
  .hm-shots-grid, .hm-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .hm-hero { padding: 3rem 1.25rem 2.5rem; }
  .hm-hero h1 { font-size: 2rem; }
  .hm-br { display: none; }
  .hm-shots-grid, .hm-feature-grid { grid-template-columns: 1fr; }
  .hm-cta h2 { font-size: 1.5rem; }
}
