/* VektKamp website — stylesheet matching the app's brand palette so
   the landing → app handoff doesn't feel like a different product.
   Mirrors apps/mobile/src/theme.ts on key colors. */

:root {
  --bg: #F3EFE8;
  --surface: #FAF8F4;
  --surface-elevated: #FFF9F0;
  --text: #1F1A14;
  --text-secondary: #5C5347;
  --text-muted: #8C8275;
  --accent: #C2543B;
  --accent-dark: #9A3F2A;
  --border: #E8DFD0;
  --border-strong: #C9BFA8;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.55;
  font-size: 17px;
}

/* Container width is generous for hero / screenshot layouts;
   text-only sections nest a `.narrow` inside for readable measure. */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 640px;
}

.container.center {
  text-align: center;
}

/* -- Site header ----------------------------------------------------- */

.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand .logo {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
}

.brand .wordmark {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.header-cta {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 8px;
}

.header-cta:hover {
  background: var(--surface);
}

/* -- Hero ------------------------------------------------------------ */

.hero {
  padding: 56px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-text h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin: 0 0 12px;
  line-height: 1.1;
}

.hero-text .tagline {
  font-size: 22px;
  color: var(--text-secondary);
  margin: 0 0 8px;
  line-height: 1.4;
}

.hero-text .sub-tagline {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.hero-text .small-print {
  margin-top: 12px;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 28px;
  box-shadow:
    0 1px 2px rgba(31, 26, 20, 0.06),
    0 12px 32px rgba(31, 26, 20, 0.10);
}

/* -- Intro lede ------------------------------------------------------ */

.intro {
  padding: 48px 0;
}

.lede {
  font-size: 19px;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

/* -- Brand visual (arm-wrestle illustration between intro and features) -- */

.brand-visual {
  padding: 16px 0 32px;
  text-align: center;
}

.brand-visual img {
  width: 100%;
  max-width: 520px;
  height: auto;
}

/* -- Features grid --------------------------------------------------- */

.features {
  padding: 24px 0 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--border);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

/* -- Section title (for screenshot strip and others) ----------------- */

.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 28px;
  text-align: center;
}

/* -- Screenshot strip ------------------------------------------------ */

.screenshots {
  padding: 48px 0;
}

.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.screenshot-strip figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screenshot-strip img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 24px;
  box-shadow:
    0 1px 2px rgba(31, 26, 20, 0.06),
    0 10px 24px rgba(31, 26, 20, 0.08);
}

.screenshot-strip figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
  max-width: 260px;
}

/* -- Close-out section ----------------------------------------------- */

.close {
  padding: 64px 0 80px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 32px;
  text-align: center;
}

.close h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
}

.close p {
  font-size: 17px;
  margin: 0 0 24px;
  color: var(--text-secondary);
}

/* -- Legal pages (privacy.html, terms.html) — long-form text under
   the same sticky header + footer as the landing. Container.narrow
   gives a readable line measure; .legal supplies the vertical padding
   so the H1 doesn't butt up against the sticky header. */

.legal {
  padding: 48px 0 80px;
}

/* -- Buttons --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--surface);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  height: 44px;
  font-size: 16px;
}

.btn:hover {
  background: var(--accent-dark);
  color: var(--surface);
}

.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}

.btn-large {
  padding: 14px 32px;
  height: 52px;
  font-size: 17px;
  border-radius: 12px;
}

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

.site-footer {
  padding: 32px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 15px;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
}

.footer-nav a:hover {
  color: var(--accent);
}

/* -- Shared typography (kept for sub-pages: privacy.html, terms.html,
   /i/ invite landing, /auth/callback) ------------------------------- */

h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 8px;
}

p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-dark);
}

.card {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}

.tagline {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.app-store-badge {
  display: inline-block;
  margin-top: 8px;
}

.app-store-badge img {
  height: 48px;
}

.muted {
  color: var(--text-muted);
  font-size: 14px;
}

/* Invite landing — centered card with prominent name + CTA. */
.invite-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--surface);
  border-radius: 12px;
  margin: 24px auto;
  max-width: 480px;
}

.invite-card .inviter-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 4px;
}

.invite-card .kamp-summary {
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.error-state {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: var(--text-secondary);
}

/* -- Mobile responsive ----------------------------------------------- */

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 32px 0 16px;
  }

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

  .hero-text h1 {
    font-size: 34px;
  }

  .hero-text .tagline {
    font-size: 19px;
  }

  .hero-image img {
    max-width: 260px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .screenshot-strip {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .screenshot-strip img {
    max-width: 240px;
  }

  .section-title,
  .close h2 {
    font-size: 24px;
  }

  .close {
    padding: 48px 0 56px;
  }
}
