/* Postari marketing theme — matches app dark mode (deep navy) */
:root {
  --bg: #0c0e14;
  --rail: #101420;
  --panel: #131722;
  --panel2: #1a2030;
  --ink: #e8eaef;
  --muted: #9aa3b5;
  --faint: #6b7289;
  --line: #252d3d;
  --accent: #b4ec45;
  --accent-dim: #7a9e2a;
  --accent-soft: rgba(180, 236, 69, 0.12);
  --ai: #8b7cf0;
}

/* Shared site header (all marketing pages) */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--ink);
  text-decoration: none;
}

.brand svg,
.brand .mark {
  display: block;
}

.brand .mark {
  width: 56px;
  height: 56px;
}

.brand .name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.9px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-right a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-right a:hover {
  color: var(--ink);
}

.nav-right .links a.is-active {
  color: var(--ink);
}

.btn {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  padding: 10px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 12px 20px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #c4f55a;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.32), 0 8px 26px -8px rgba(180, 236, 69, 0.55);
  color: #000;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.rise {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.d1 { animation-delay: 0.05s; }

/* Shared responsive styles for Postari marketing pages */

@media (max-width: 720px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }

  nav {
    flex-wrap: wrap;
    gap: 12px 14px;
    padding-top: max(14px, env(safe-area-inset-top, 0px));
    padding-bottom: 10px;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand .mark {
    width: 44px;
    height: 44px;
  }

  .brand .name {
    font-size: 26px;
    letter-spacing: -0.65px;
  }

  .nav-right {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
  }

  .nav-right .links {
    display: none !important;
  }

  .nav-right .btn {
    font-size: 13px;
    padding: 9px 14px;
    white-space: nowrap;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .cta-row .btn {
    width: 100%;
    justify-content: center;
  }

  .cuelayer-badge {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 32px);
    text-align: center;
  }

  body > footer {
    flex-wrap: wrap;
    justify-content: center;
    padding-left: max(16px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(16px, env(safe-area-inset-right, 0px)) !important;
    text-align: center;
  }

  /* Prevent iOS zoom on form focus */
  .fi {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
  }

  nav {
    gap: 10px;
  }

  .nav-right .btn-ghost {
    padding: 9px 12px;
  }

  .eyebrow {
    font-size: 10.5px;
    letter-spacing: 0.06em;
    padding: 6px 12px;
    line-height: 1.4;
    max-width: 100%;
  }

  .sub,
  .lede {
    font-size: 16px;
  }

  .micro {
    font-size: 11px;
    line-height: 1.5;
  }
}

@media (max-width: 380px) {
  .nav-right {
    width: 100%;
    justify-content: stretch;
  }

  .nav-right .btn {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
  }
}

/* Mobile app open banner (injected by mobile-app.js) */
.postari-mobile-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: max(10px, env(safe-area-inset-top, 0px)) 12px 10px 14px;
  background: rgba(12, 14, 20, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.postari-mobile-bar__text {
  flex: 1 1 140px;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

.postari-mobile-bar__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.postari-mobile-bar__open,
.postari-mobile-bar__store {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.postari-mobile-bar__open {
  background: #b4ec45;
  color: #0a0a0c;
}

.postari-mobile-bar__store {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.postari-mobile-bar__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--faint);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  margin-left: auto;
}

@media (max-width: 720px) {
  body:has(.postari-mobile-bar) {
    padding-top: calc(52px + env(safe-area-inset-top, 0px));
  }

  body:has(.postari-mobile-bar) .cuelayer-badge {
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
}

/* Legal pages (terms, privacy) */
.legal-page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0 80px;
}

.legal-page h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4.5vw, 44px);
  letter-spacing: -1.2px;
  line-height: 1.05;
  margin-bottom: 10px;
}

.legal-page .updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 32px;
}

.legal-page h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--ink);
}

.legal-page p,
.legal-page li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 1.25rem;
  margin-bottom: 12px;
}

.legal-page a {
  color: var(--accent);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 12.5px;
  color: var(--faint);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}
