/* ============================================================
   landing.css — public marketing page (/welcome)
   Self-contained: does not depend on site.css or Bootstrap.
   Brand tokens mirror wwwroot/css/variables.css.
   ============================================================ */

.landing {
  --lp-primary: #009B8D;
  --lp-primary-hover: #00796B;
  --lp-primary-light: #E0F2F1;
  --lp-navy: #0D2B3A;
  --lp-navy-surface: #163344;
  --lp-bg: #F8FAFC;
  --lp-surface: #FFFFFF;
  --lp-border: #E2E8F0;
  --lp-text: #191b22;
  --lp-text-2: #434653;
  --lp-muted: #94A3B8;
  --lp-warn: #D97706;
  --lp-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --lp-font-head: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  margin: 0;
  font-family: var(--lp-font);
  color: var(--lp-text);
  background: var(--lp-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.landing h1, .landing h2, .landing h3 {
  font-family: var(--lp-font-head);
  line-height: 1.15;
  margin: 0 0 16px;
}

.landing section { padding: 72px 24px; }
.landing section > h2 { text-align: center; font-size: 32px; margin-bottom: 40px; }

/* ---------- Buttons ---------- */
.lp-btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.15s ease, transform 0.1s ease;
}
.lp-btn-sm { padding: 8px 16px; font-size: 14px; }
.lp-btn-primary { background: var(--lp-primary); color: #fff; }
.lp-btn-primary:hover { background: var(--lp-primary-hover); }
.lp-btn-ghost { color: var(--lp-primary); background: transparent; border: 1px solid var(--lp-border); }
.lp-btn-ghost:hover { background: var(--lp-primary-light); }
.lp-btn-light { background: #fff; color: var(--lp-navy); }
.lp-btn-light:hover { transform: translateY(-1px); }

/* ---------- Nav ---------- */
.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--lp-surface);
  border-bottom: 1px solid var(--lp-border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.lp-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--lp-text);
  font-family: var(--lp-font-head);
  font-size: 20px;
}
.lp-nav-brand strong { color: var(--lp-primary); }
.lp-nav-logo { height: 34px; }
.lp-nav-links { display: flex; align-items: center; gap: 22px; }
.lp-nav-links a { text-decoration: none; color: var(--lp-text-2); font-size: 15px; }
.lp-nav-links a:hover { color: var(--lp-primary); }
.lp-nav-signin { font-weight: 600; }

/* ---------- Hero ---------- */
.lp-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 88px;
  padding-bottom: 88px;
}
.lp-hero h1 { font-size: 46px; font-weight: 800; }
.lp-hero-sub { font-size: 19px; color: var(--lp-text-2); margin-bottom: 28px; }
.lp-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.lp-hero-trust { margin-top: 16px; font-size: 13.5px; color: var(--lp-muted); }

/* CSS dashboard mock */
.lp-mock {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(13, 43, 58, 0.14);
  overflow: hidden;
}
.lp-mock-titlebar { background: var(--lp-navy); padding: 10px 14px; display: flex; gap: 6px; }
.lp-mock-titlebar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.lp-mock-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px;
}
.lp-mock-stat {
  background: var(--lp-bg);
  border: 1px solid var(--lp-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--lp-muted);
}
.lp-mock-stat em {
  display: block;
  font-style: normal;
  font-family: var(--lp-font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--lp-text);
}
.lp-mock-stat-warn em { color: var(--lp-warn); }
.lp-mock-heatmap { padding: 0 16px 16px; }
.lp-mock-heatmap-label { font-size: 11px; color: var(--lp-muted); margin-bottom: 8px; }
.lp-mock-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
}
.lp-cell { aspect-ratio: 1; border-radius: 3px; }
.lp-cell-0 { background: #EEF2F6; }
.lp-cell-1 { background: #B2DFDB; }
.lp-cell-2 { background: #4DB6AC; }
.lp-cell-3 { background: var(--lp-primary); }

/* ---------- Proof bar ---------- */
.lp-proof {
  background: var(--lp-navy);
  color: #fff;
  text-align: center;
  padding: 36px 24px;
}
.lp-proof p { margin: 0 0 14px; font-size: 17px; }
.lp-proof ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.lp-proof li { color: var(--lp-muted); font-size: 14px; }
.lp-proof li em {
  display: block;
  font-style: normal;
  font-family: var(--lp-font-head);
  font-weight: 800;
  font-size: 26px;
  color: #fff;
}

/* ---------- Heartbeat ---------- */
.lp-heartbeat {
  max-width: 1120px;
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 52px;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(77, 182, 172, 0.22), transparent 36%),
    linear-gradient(135deg, var(--lp-navy) 0%, #123f50 100%);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(13, 43, 58, 0.16);
}
.lp-heartbeat h2 {
  color: #fff;
  font-size: 34px;
  margin-top: 14px;
}
.lp-heartbeat-copy > p {
  margin: 0;
  color: #cbd9df;
}
.lp-heartbeat-copy > p + p { margin-top: 16px; }
.lp-heartbeat-lead {
  color: #fff !important;
  font-size: 18px;
  line-height: 1.65;
}
.lp-heartbeat-kicker {
  display: inline-flex;
  align-items: center;
  color: #9ce9df;
  background: rgba(0, 155, 141, 0.18);
  border: 1px solid rgba(156, 233, 223, 0.3);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lp-heartbeat-visual {
  background: rgba(255, 255, 255, 0.98);
  color: var(--lp-text);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 16px 38px rgba(2, 18, 28, 0.24);
}
.lp-heartbeat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}
.lp-heartbeat-card-header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.lp-heartbeat-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lp-primary);
  box-shadow: 0 0 0 6px rgba(0, 155, 141, 0.13);
  animation: lp-heartbeat-pulse 2.2s ease-out infinite;
}
.lp-heartbeat-preview {
  color: var(--lp-primary-hover);
  background: var(--lp-primary-light);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.lp-heartbeat-trace {
  height: 112px;
  margin: 14px 0;
  border-top: 1px solid var(--lp-border);
  border-bottom: 1px solid var(--lp-border);
  background:
    linear-gradient(rgba(226, 232, 240, 0.58) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, 0.58) 1px, transparent 1px);
  background-size: 28px 28px;
}
.lp-heartbeat-trace svg {
  display: block;
  width: 100%;
  height: 100%;
}
.lp-heartbeat-gridline {
  fill: none;
  stroke: #cbd5e1;
  stroke-width: 1;
  stroke-dasharray: 5 7;
}
.lp-heartbeat-line {
  fill: none;
  stroke: var(--lp-primary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 3px 4px rgba(0, 155, 141, 0.18));
}
.lp-heartbeat-signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.lp-heartbeat-signals > div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.lp-heartbeat-signals span:last-child {
  display: grid;
  min-width: 0;
}
.lp-heartbeat-signals strong {
  font-size: 12px;
  line-height: 1.25;
}
.lp-heartbeat-signals small {
  margin-top: 2px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.3;
}
.lp-signal-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
}
.lp-signal-good { background: #16a34a; }
.lp-signal-watch { background: var(--lp-warn); }

@keyframes lp-heartbeat-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 155, 141, 0.35); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(0, 155, 141, 0); }
}

/* ---------- Problem ---------- */
.lp-problem { max-width: 1020px; margin: 0 auto; text-align: center; }
.lp-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.lp-problem-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  padding: 28px 22px;
  font-size: 15.5px;
  color: var(--lp-text-2);
}
.lp-problem-icon { font-size: 28px; display: block; margin-bottom: 12px; }
.lp-problem-punch { font-size: 19px; }

/* ---------- Features ---------- */
.lp-features {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.lp-feature {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  padding: 26px 30px;
}
.lp-feature h3 { font-size: 21px; margin-bottom: 6px; }
.lp-feature p { margin: 0; color: var(--lp-text-2); font-size: 15.5px; }
.lp-feature-tag {
  flex-shrink: 0;
  background: var(--lp-primary-light);
  color: var(--lp-primary-hover);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Steps ---------- */
.lp-steps { max-width: 680px; margin: 0 auto; }
.lp-steps ol { padding-left: 22px; font-size: 17px; display: grid; gap: 14px; }

/* ---------- Founder ---------- */
.lp-founder {
  background: var(--lp-surface);
  border-top: 1px solid var(--lp-border);
  border-bottom: 1px solid var(--lp-border);
}
.lp-founder h2 { text-align: center; }
.lp-founder p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--lp-text-2);
}

/* ---------- Pricing ---------- */
.lp-pricing { max-width: 1020px; margin: 0 auto; text-align: center; }
.lp-partner-banner {
  display: inline-block;
  background: var(--lp-primary-light);
  color: var(--lp-primary-hover);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 14.5px;
  margin-bottom: 32px;
}
.lp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}
.lp-plan {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  padding: 28px;
  position: relative;
}
.lp-plan-featured { border: 2px solid var(--lp-primary); box-shadow: 0 8px 28px rgba(0,155,141,0.14); }
.lp-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lp-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.lp-plan h3 { font-size: 18px; }
.lp-plan-price { font-family: var(--lp-font-head); font-weight: 800; font-size: 38px; margin-bottom: 16px; }
.lp-plan-price span { font-size: 15px; font-weight: 500; color: var(--lp-muted); }
.lp-plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--lp-text-2); }
.lp-plan li::before { content: "\2713\00a0\00a0"; color: var(--lp-primary); font-weight: 700; }
.lp-pricing-notes { margin-top: 28px; font-size: 14.5px; color: var(--lp-text-2); }

/* ---------- FAQ ---------- */
.lp-faq { max-width: 680px; margin: 0 auto; }
.lp-faq details {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 10px;
}
.lp-faq summary { font-weight: 600; cursor: pointer; font-size: 16px; }
.lp-faq details p { margin: 12px 0 0; color: var(--lp-text-2); font-size: 15px; }

/* ---------- Final CTA ---------- */
.lp-final {
  background: var(--lp-navy);
  color: #fff;
  text-align: center;
}
.lp-final h2 { color: #fff; }
.lp-final p { color: var(--lp-muted); margin-top: 14px; font-size: 14px; }

/* ---------- Footer ---------- */
.lp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px 24px;
  font-size: 14px;
  color: var(--lp-muted);
  border-top: 1px solid var(--lp-border);
}
.lp-footer > div { display: flex; align-items: center; gap: 10px; }
.lp-footer-logo { height: 26px; }
.lp-footer-links { display: flex; gap: 20px; }
.lp-footer-links a { color: var(--lp-text-2); text-decoration: none; }
.lp-footer-links a:hover { color: var(--lp-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .lp-hero h1 { font-size: 34px; }
  .lp-heartbeat {
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 40px 16px 0;
    padding: 48px 28px;
  }
  .lp-problem-grid, .lp-pricing-grid { grid-template-columns: 1fr; }
  .lp-plan-featured { order: -1; }
  .lp-feature { flex-direction: column; align-items: flex-start; }
  .lp-nav-links { gap: 12px; }
  .lp-nav-links a:not(.lp-btn):not(.lp-nav-signin) { display: none; }
}

@media (max-width: 560px) {
  .lp-heartbeat h2 { font-size: 29px; }
  .lp-heartbeat-card-header { align-items: flex-start; }
  .lp-heartbeat-signals { grid-template-columns: 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-heartbeat-live-dot { animation: none; }
}
