/* blackbook landing — aligns with app dark/light tokens */
:root {
  --lp-bg: #0e1116;
  --lp-surface: #151e2b;
  --lp-surface-2: #121821;
  --lp-border: #2a3850;
  --lp-text: #f4f6f8;
  --lp-muted: #a6b7cf;
  --lp-accent: #5b8cff;
  --lp-accent-hover: #84b7ff;
  --lp-good: #2f8f54;
  --lp-bad: #b5435d;
  --lp-radius: 12px;
  --lp-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --lp-max: 1120px;
}

body.landing-body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--lp-bg);
  color: var(--lp-text);
  line-height: 1.55;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.landing-body.light-mode {
  --lp-bg: #f5f8fc;
  --lp-surface: #ffffff;
  --lp-surface-2: #e8eef7;
  --lp-border: #c8d6ea;
  --lp-text: #121821;
  --lp-muted: #5a6b82;
  --lp-shadow: 0 12px 40px rgba(18, 40, 76, 0.08);
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 17, 22, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lp-border);
}

body.landing-body.light-mode .landing-nav {
  background: rgba(245, 248, 252, 0.92);
}

.landing-nav-inner {
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.landing-brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--lp-text);
  text-decoration: none;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.landing-nav-links a {
  color: var(--lp-muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.landing-nav-links a:hover {
  color: var(--lp-accent-hover);
  background: rgba(91, 140, 255, 0.08);
}

.landing-nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-logout-form {
  margin: 0;
}

.landing-logout-form button {
  font: inherit;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  color: var(--lp-text);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.landing-btn:hover {
  transform: translateY(-1px);
  border-color: var(--lp-accent);
  box-shadow: 0 6px 20px rgba(91, 140, 255, 0.15);
}

.landing-btn-primary {
  background: linear-gradient(135deg, #4a7cff 0%, #5b8cff 100%);
  border-color: transparent;
  color: #fff;
}

.landing-btn-primary:hover {
  box-shadow: 0 8px 24px rgba(74, 124, 255, 0.35);
}

.landing-btn-ghost {
  background: transparent;
}

.landing-section {
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 72px 20px;
}

.landing-section--tight {
  padding-top: 48px;
  padding-bottom: 48px;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 80px;
}

@media (max-width: 900px) {
  .landing-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.landing-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.landing-hero .sub {
  font-size: 1.05rem;
  color: var(--lp-muted);
  margin: 0 0 28px;
  max-width: 34rem;
}

.landing-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.landing-mock {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow);
  padding: 20px;
  overflow: hidden;
}

.landing-mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.landing-mock-dots {
  display: flex;
  gap: 6px;
}

.landing-mock-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-border);
}

.landing-mock-dots span:first-child {
  background: var(--lp-bad);
  opacity: 0.7;
}
.landing-mock-dots span:nth-child(2) {
  background: #e6a23c;
  opacity: 0.8;
}
.landing-mock-dots span:nth-child(3) {
  background: var(--lp-good);
  opacity: 0.8;
}

.landing-mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.landing-mock-card {
  background: var(--lp-surface-2);
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  padding: 10px;
  font-size: 0.72rem;
  color: var(--lp-muted);
}

.landing-mock-card strong {
  display: block;
  color: var(--lp-text);
  font-size: 0.95rem;
  margin-top: 4px;
}

.landing-mock-chart {
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--lp-border);
}

.landing-mock-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--lp-accent), rgba(91, 140, 255, 0.35));
  min-height: 20%;
  animation: lp-bar 2.4s ease-in-out infinite alternate;
}

.landing-mock-bar:nth-child(2) {
  animation-delay: 0.2s;
}
.landing-mock-bar:nth-child(3) {
  animation-delay: 0.4s;
}
.landing-mock-bar:nth-child(4) {
  animation-delay: 0.6s;
}
.landing-mock-bar:nth-child(5) {
  animation-delay: 0.8s;
}
.landing-mock-bar:nth-child(6) {
  animation-delay: 1s;
}
.landing-mock-bar:nth-child(7) {
  animation-delay: 1.2s;
}
.landing-mock-bar:nth-child(8) {
  animation-delay: 1.4s;
}

@keyframes lp-bar {
  from {
    height: 25%;
    opacity: 0.85;
  }
  to {
    height: 95%;
    opacity: 1;
  }
}

.landing-section-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.landing-section-lead {
  color: var(--lp-muted);
  margin: 0 0 28px;
  max-width: 36rem;
}

.landing-problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.landing-problem-item {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 20px;
  border-left: 3px solid var(--lp-bad);
}

.landing-problem-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.landing-problem-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--lp-muted);
}

.landing-solution-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.landing-solution-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 10px;
  padding: 14px 16px;
}

.landing-solution-list li::before {
  content: "✓";
  color: var(--lp-good);
  font-weight: 800;
  flex-shrink: 0;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.landing-feature-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.landing-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--lp-shadow);
}

.landing-feature-card .icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
  line-height: 1;
}

.landing-feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.landing-feature-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--lp-muted);
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.landing-step {
  position: relative;
  padding: 20px;
  background: var(--lp-surface-2);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
}

.landing-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(91, 140, 255, 0.2);
  color: var(--lp-accent-hover);
  font-weight: 800;
  margin-bottom: 12px;
}

.landing-step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.landing-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--lp-muted);
}

.landing-proof {
  text-align: center;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 40px 24px;
}

.landing-proof p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--lp-muted);
}

.landing-proof p + p {
  margin-top: 12px;
}

.landing-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.landing-price-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 28px;
}

.landing-price-card--pro {
  border-color: var(--lp-accent);
  box-shadow: 0 0 0 1px rgba(91, 140, 255, 0.25);
}

.landing-price-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.landing-price-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lp-accent-hover);
  margin-bottom: 16px;
}

.landing-price-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--lp-muted);
  font-size: 0.92rem;
}

.landing-price-card li {
  margin-bottom: 8px;
}

.landing-final {
  text-align: center;
  padding-bottom: 80px;
}

.landing-final h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.landing-footer {
  border-top: 1px solid var(--lp-border);
  padding: 24px 20px;
  text-align: center;
  color: var(--lp-muted);
  font-size: 0.85rem;
}

.landing-footer button#landingTheme {
  margin-top: 12px;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.85;
}

.landing-footer button#landingTheme:hover {
  opacity: 1;
}

@media (max-width: 900px) {
  .landing-nav-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }
  .landing-nav-links {
    justify-content: center;
    width: 100%;
  }
  .landing-nav-cta {
    width: 100%;
    justify-content: center;
  }
  .landing-section {
    padding: 52px 14px;
  }
  .landing-section--tight {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .landing-mock-cards {
    grid-template-columns: 1fr;
  }
  .landing-feature-grid,
  .landing-pricing,
  .landing-steps,
  .landing-problem-grid {
    grid-template-columns: 1fr;
  }
  .landing-final {
    padding-bottom: 48px;
  }
}
