/* TripSync marketing site — shared styles
 * Dark theme matching in-app brand. Used by home, about, how-it-works, contact.
 * Privacy + terms pages keep their existing light legal-doc style.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0a0c14;
  --bg-elev: #161a2c;
  --bg-card: #1c2138;
  --border: rgba(108, 99, 255, 0.18);
  --border-soft: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #6b7280;
  --primary: #6c63ff;
  --primary-soft: rgba(108, 99, 255, 0.18);
  --gold: #f59e0b;
  --ok: #10b981;
  --max-w: 1100px;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

/* ── Header / nav ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 20, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
.nav-cta:hover { text-decoration: none; opacity: 0.9; }

@media (max-width: 720px) {
  .nav-links { gap: 18px; }
  .nav-links .nav-link-extra { display: none; }
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 24px 64px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 50% -100px, rgba(108, 99, 255, 0.18), transparent 70%),
    var(--bg);
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 24px 48px; }
}
.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  color: var(--primary);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--primary), #b9b3ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.55;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 120ms ease, transform 120ms ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff !important; }
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text) !important; border-color: var(--border-soft); }
.btn-ghost:hover { background: var(--bg-elev); }

.hero-visual {
  position: relative;
  aspect-ratio: 9/16;
  max-height: 600px;
  border-radius: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(108, 99, 255, 0.1);
  margin: 0 auto;
  width: 100%;
  max-width: 320px;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ── Section / content blocks ──────────────────────────────────── */
section {
  padding: 80px 24px;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  max-width: 700px;
  margin-bottom: 16px;
}
.section-lede {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 56px;
}

.alt-bg {
  background:
    linear-gradient(180deg, transparent 0%, rgba(108, 99, 255, 0.03) 100%),
    var(--bg);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

/* ── Card grid ─────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 28px;
}
.card-icon {
  font-size: 28px;
  margin-bottom: 14px;
}
.card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}
.card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ── Step list ─────────────────────────────────────────────────── */
.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  counter-reset: step;
}
.step {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 32px 28px 28px;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 6px 18px rgba(108, 99, 255, 0.35);
}
.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 8px;
}
.step p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ── Long-form prose (about, how-it-works) ─────────────────────── */
.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}
.prose h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-top: 48px;
  margin-bottom: 16px;
}
.prose h3 {
  font-size: 19px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--primary);
}
.prose p {
  margin-bottom: 18px;
  color: var(--text);
}
.prose p.muted {
  color: var(--text-muted);
}
.prose ul, .prose ol {
  margin: 0 0 18px 22px;
  color: var(--text);
}
.prose li {
  margin-bottom: 8px;
}
.prose strong {
  color: var(--text);
  font-weight: 700;
}
.prose blockquote {
  border-left: 3px solid var(--primary);
  padding: 8px 0 8px 20px;
  margin: 24px 0;
  color: var(--text-muted);
  font-style: italic;
}

/* ── CTA strip ─────────────────────────────────────────────────── */
.cta-strip {
  background:
    radial-gradient(800px 300px at 50% 50%, rgba(108, 99, 255, 0.22), transparent 70%),
    var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
}
.cta-strip h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.cta-strip p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  padding: 56px 24px 32px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 12px;
}
.footer-meta {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-legal {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-dim);
  font-size: 12px;
}

/* ── Eyebrow live dot ──────────────────────────────────────────── */
.eyebrow .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 6px;
  vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ── Beta-signup form ──────────────────────────────────────────── */
.beta-form {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  max-width: 460px;
}
.beta-form-center {
  margin-left: auto;
  margin-right: auto;
  margin-top: 24px;
  margin-bottom: 0;
}
.beta-form input[type="email"] {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 120ms ease;
}
.beta-form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
}
.beta-form input[type="email"]::placeholder {
  color: var(--text-dim);
}
.beta-form button {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}
.beta-micro {
  font-size: 12px;
  color: var(--text-dim);
}
.beta-success {
  font-size: 15px;
  color: var(--ok);
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  max-width: 460px;
}

@media (max-width: 560px) {
  .beta-form { flex-direction: column; }
  .beta-form input[type="email"] { width: 100%; }
}

/* ── iPhone phone-frame mockup ─────────────────────────────────── */
.phone-stage {
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone {
  position: relative;
  width: 290px;
  aspect-ratio: 9/19.5;
  background: #0d0f1a;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 44px;
  padding: 8px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(108, 99, 255, 0.10),
    0 0 60px -20px rgba(108, 99, 255, 0.4);
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #0a0c14;
  position: relative;
}
.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Product preview row ───────────────────────────────────────── */
.preview-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.preview {
  margin: 0;
}
.preview-frame {
  background: #0d0f1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 6px;
  aspect-ratio: 9/16;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  margin-bottom: 14px;
}
.preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.preview figcaption {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.preview figcaption strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

/* ── Utility ───────────────────────────────────────────────────── */
.center { text-align: center; }
.mb-32 { margin-bottom: 32px; }
.mt-48 { margin-top: 48px; }
.muted { color: var(--text-muted); }
