/* ---------- marketing homepage ---------- */
/* Layered on top of styles.css — reuses the same tokens/fonts/topbar so the jump from
   marketing page into the app at /app feels like one product, not two. */

body.home { background: var(--bg); }

.home-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13.5px;
  font-weight: 600;
}
.home-nav a { color: var(--text-dim); text-decoration: none; }
.home-nav a:hover { color: var(--text); }
.topbar-actions .btn { text-decoration: none; display: inline-flex; align-items: center; }
.home-nav-cta { width: auto; padding: 9px 16px; font-size: 13px; }

.home-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 96px;
}

/* ---------- hero ---------- */
.hero {
  padding: 88px 0 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 620px;
}
.hero-sub {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 0 32px;
}
.hero-hook { font-size: 14.5px; font-weight: 600; color: var(--accent); margin: 0 0 28px; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero .btn-large { width: auto; padding: 15px 30px; text-decoration: none; }
.hero-note { margin: 0; font-size: 12.5px; font-family: var(--font-mono); color: var(--text-dim); }

.hero-platforms {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 56px;
}
.hero-platform-icon { width: 40px; height: 40px; position: relative; }
.hero-platform-icon svg { width: 100%; height: 100%; display: block; }
.hero-platform-icon--soon svg { filter: grayscale(1); opacity: 0.5; }
.hero-platform-icon--soon span {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ---------- value props ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}
.value-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.value-icon svg { width: 20px; height: 20px; }
.value-card h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.005em; }
.value-card p { font-size: 13.5px; line-height: 1.55; color: var(--text-dim); margin: 0; }

/* ---------- how it works ---------- */
.how-it-works { text-align: center; }
.how-it-works h2, .pricing h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 40px;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}
.how-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 14px;
}
.how-step h4 { font-size: 14.5px; font-weight: 700; margin: 0 0 6px; }
.how-step p { font-size: 13.5px; line-height: 1.55; color: var(--text-dim); margin: 0; }

/* ---------- pricing ---------- */
.pricing { text-align: center; }
.pricing-card {
  max-width: 360px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.pricing-trial {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.pricing-amount { font-size: 34px; font-weight: 700; letter-spacing: -0.01em; }
.pricing-amount-loading { font-size: 15px; font-weight: 500; color: var(--text-dim); }
.pricing-amount .pricing-interval { font-size: 15px; font-weight: 500; color: var(--text-dim); }
.pricing-card .hint { margin: 0 0 10px; }
.pricing-card .btn-large { width: 100%; text-decoration: none; }

/* ---------- footer ---------- */
.home-footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  flex-wrap: wrap;
}
.home-footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.home-footer-brand .brand-mark { width: 24px; height: 24px; border-radius: 7px; }
.home-footer-links { display: flex; gap: 20px; }
.home-footer-links a { color: var(--text-dim); font-size: 13px; text-decoration: none; }
.home-footer-links a:hover { color: var(--text); }
.home-footer-copy { color: var(--text-dim); font-size: 12px; font-family: var(--font-mono); }

@media (max-width: 720px) {
  .hero { padding-top: 56px; }
  .hero h1 { font-size: 34px; }
  .value-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .home-nav { display: none; }
  .home-footer { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  body.home .topbar { padding: 12px 16px; }
  body.home .brand-tagline { display: none; }
  /* "Sign in" and "Get started" both land on the same /app gate — keep just the one CTA
     so the two buttons stop competing for space next to the wordmark. */
  body.home .topbar-actions .btn:not(.btn-primary) { display: none; }
  body.home .home-nav-cta { padding: 8px 12px; font-size: 12.5px; }
}
