/* landing.css
   ------------------------------------------------------------------------
   Styles specific to the marketing/landing page (public/landing.html).
   Deliberately reuses design tokens AND shared components already defined
   in app.css (buttons, plan cards, FAQ, footer, brand, item-card/float-gauge
   preview) so the landing page looks like the same product as the
   dashboard, not a bolted-on microsite. Only page-specific layout lives
   here.
   ------------------------------------------------------------------------ */

.landing-body {
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(91, 140, 255, 0.14), transparent 60%),
    radial-gradient(900px 520px at -6% 8%, rgba(168, 140, 255, 0.10), transparent 55%),
    var(--bg);
  min-height: 100%;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  max-width: 1180px;
  margin: 0 auto;
}
.landing-nav-left { display: flex; align-items: center; gap: 18px; }
.landing-nav .brand { padding: 0; }
.landing-nav-right { display: flex; align-items: center; gap: 22px; }
.landing-nav-right a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}
.landing-nav-right a:hover { color: var(--text); }

/* CTA in the nav is the "sign in / open dashboard" button - deliberately
   placed as the first item on the left, ahead of the brand mark. */
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #06122b;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 8px 20px -8px rgba(91, 140, 255, 0.6);
  transition: filter var(--transition), transform var(--transition);
}
.nav-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ==========================================================================
   Hero - copy left, a real (static) dashboard preview card right. The
   float-gauge is the product's own signature visual element, so the hero
   shows it doing its job instead of a generic illustration.
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1080px;
  margin: 72px auto 96px;
  padding: 0 28px;
}
.hero-copy h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.18;
  margin-bottom: 18px;
}
.hero-lede {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 26px;
  max-width: 46ch;
}
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 12px; color: var(--text-faint); }

.hero-secondary-link {
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.hero-secondary-link:hover { color: var(--text); border-color: var(--text-muted); }

.hero-preview { display: flex; flex-direction: column; gap: 12px; }
.hero-preview .item-card { pointer-events: none; }
.hero-preview-caption { font-size: 11.5px; color: var(--text-faint); line-height: 1.5; max-width: 34ch; }

/* ==========================================================================
   Generic section shell
   ========================================================================== */

.landing-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px 28px;
  border-top: 1px solid var(--border);
}
.landing-section h2 { font-size: 25px; margin: 6px 0 14px; max-width: 34ch; }
.section-intro { font-size: 14px; color: var(--text-muted); max-width: 58ch; margin-bottom: 30px; line-height: 1.6; }
#faq h2 { margin-bottom: 30px; }

/* ==========================================================================
   Features
   ========================================================================== */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  transition: border-color var(--transition);
}
.feature-card:hover { border-color: var(--border-strong); }
.feature-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 14.5px; margin-bottom: 8px; }
.feature-card p { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }
.feature-card a { color: var(--accent); }

.feature-card-visual-demo {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 14px 12px;
  margin-bottom: 14px;
}
.feature-card-visual-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.feature-card-visual-tags span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   How it works
   ========================================================================== */

.steps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; max-width: 620px; }
.steps-list li { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
}
.steps-list h3 { font-size: 14px; margin-bottom: 4px; }
.steps-list p { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }

/* ==========================================================================
   Pricing - reuses .plans-grid / .plan-card from app.css. Cards aren't
   clickable here (unlike Settings), so the pointer/hover-lift is removed.
   ========================================================================== */

.landing-plans-grid .plan-card { cursor: default; }
.landing-plans-grid .plan-card:hover { transform: none; }

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta { text-align: center; }
.final-cta .section-title,
.final-cta h2 { margin-left: auto; margin-right: auto; }
.final-cta p { color: var(--text-muted); font-size: 14px; margin-bottom: 26px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
  .hero-preview { order: 2; }
}

@media (max-width: 760px) {
  .landing-nav { flex-direction: column; align-items: flex-start; gap: 12px; }
  .landing-nav-right { flex-wrap: wrap; gap: 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .landing-plans-grid { grid-template-columns: 1fr; }
}
