/* ============================================
   FOLIOLYTIC LANDING PAGE STYLES (SHARED)
   Used by all /*-calculator, /*-tracker, /*-analyzer pages
   Scoped under .lp-* classes to avoid conflict with app CSS
   ============================================ */

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

body.lp-body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: #fafaf8;
  color: #1a1a18;
  line-height: 1.6;
}

/* ── Navigation ──────────────────────────── */
.lp-nav {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lp-nav-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: #1a1a18;
  transition: opacity 0.2s ease;
}

.lp-nav-logo:hover { opacity: 0.7; }
.lp-nav-logo svg { width: 20px; height: 20px; opacity: 0.6; }
.lp-nav-logo span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.lp-nav-links a {
  font-size: 11.5px;
  font-weight: 500;
  color: #7a7974;
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: color 0.2s ease;
}

.lp-nav-links a:hover { color: #1a1a18; }

/* ── Content wrapper ─────────────────────── */
.lp-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero ─────────────────────────────────── */
.lp-hero {
  padding: 72px 0 56px;
  text-align: center;
}

.lp-hero-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0066ff;
  margin-bottom: 16px;
}

.lp-hero h1 {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #1a1a18;
}

.lp-hero h1 strong {
  font-weight: 700;
  letter-spacing: -0.045em;
}

.lp-hero-sub {
  font-size: 14px;
  font-weight: 400;
  color: #7a7974;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
  letter-spacing: 0.005em;
}

/* ── Section styling ─────────────────────── */
.lp-section { margin-bottom: 56px; }

.lp-section h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #1a1a18;
  margin-bottom: 20px;
}

.lp-section h2 strong {
  font-weight: 600;
  letter-spacing: -0.04em;
}

.lp-section h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1a1a18;
  margin: 24px 0 8px;
}

.lp-section p {
  font-size: 13.5px;
  font-weight: 400;
  color: #5a5955;
  line-height: 1.75;
  letter-spacing: 0.005em;
  margin-bottom: 14px;
}

.lp-section p strong { font-weight: 600; color: #3a3a38; }

.lp-section a {
  color: #0066ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 102, 255, 0.2);
  transition: border-color 0.2s ease;
}

.lp-section a:hover { border-bottom-color: rgba(0, 102, 255, 0.6); }

.lp-section ul, .lp-section ol {
  margin: 0 0 14px 20px;
  font-size: 13.5px;
  color: #5a5955;
  line-height: 1.75;
}

.lp-section li { margin-bottom: 4px; }

/* ── Comparison table ─────────────────────── */
.lp-table-wrap {
  overflow-x: auto;
  margin: 24px 0 8px;
  border-radius: 10px;
  border: 1px solid #e8e6e1;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.lp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.lp-table thead th {
  padding: 13px 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a7974;
  text-align: left;
  background: #fafaf8;
  border-bottom: 1px solid #e8e6e1;
}

.lp-table thead th:first-child { border-radius: 10px 0 0 0; }
.lp-table thead th:last-child { border-radius: 0 10px 0 0; }

.lp-table tbody td {
  padding: 12px 16px;
  color: #5a5955;
  line-height: 1.55;
  border-bottom: 1px solid #f0eeea;
  vertical-align: top;
}

.lp-table tbody tr:last-child td { border-bottom: none; }

.lp-table tbody td:first-child {
  font-weight: 600;
  color: #1a1a18;
  white-space: nowrap;
}

.lp-table tbody tr.lp-table-highlight td { background: rgba(0, 102, 255, 0.03); }
.lp-table tbody tr.lp-table-highlight td:first-child { color: #0066ff; }

/* ── Step cards ───────────────────────────── */
.lp-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0 8px;
}

.lp-step {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e8e6e1;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.lp-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 102, 255, 0.06);
  color: #0066ff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.lp-step-body h3 {
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1a18;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.lp-step-body p {
  font-size: 12.5px;
  color: #6b6a65;
  line-height: 1.65;
  margin: 0;
}

/* ── Scenario grid ────────────────────────── */
.lp-scenarios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0 8px;
}

.lp-scenario {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e8e6e1;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.lp-scenario h3 {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a18;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.lp-scenario p {
  font-size: 12px;
  color: #6b6a65;
  line-height: 1.65;
  margin: 0;
}

/* ── CTA block ────────────────────────────── */
.lp-cta {
  text-align: center;
  padding: 48px 32px;
  margin: 56px 0;
  background: #fff;
  border: 1px solid #e8e6e1;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.lp-cta h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #1a1a18;
  margin-bottom: 10px;
}

.lp-cta h2 strong {
  font-weight: 700;
  letter-spacing: -0.04em;
}

.lp-cta p {
  font-size: 13px;
  color: #7a7974;
  margin-bottom: 24px;
  line-height: 1.6;
}

.lp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lp-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.35);
}

.lp-cta-btn svg { width: 16px; height: 16px; }

/* ── FAQ section ──────────────────────────── */
.lp-faq { margin-bottom: 0; }

.lp-faq-list { border-top: 1px solid #e8e6e1; }

.lp-faq-item { border-bottom: 1px solid #e8e6e1; }

.lp-faq-item summary {
  padding: 18px 0;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a18;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.lp-faq-item summary:hover { color: #475569; }
.lp-faq-item summary::-webkit-details-marker { display: none; }

.lp-faq-item summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 300;
  color: #b8b7b1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.lp-faq-item[open] summary::after { content: '\2212'; }

.lp-faq-item .lp-faq-answer {
  font-size: 13px;
  color: #5a5955;
  line-height: 1.75;
  letter-spacing: 0.005em;
  padding: 0 0 18px;
  max-width: 660px;
}

.lp-faq-item .lp-faq-answer a {
  color: #0066ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 102, 255, 0.2);
  transition: border-color 0.2s ease;
}

.lp-faq-item .lp-faq-answer a:hover { border-bottom-color: rgba(0, 102, 255, 0.6); }

/* ── Related tools ──────────────────────────── */
.lp-related {
  margin: 56px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid #e8e6e1;
}

.lp-related-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a7974;
  margin-bottom: 16px;
}

.lp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.lp-related-grid a {
  display: block;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e8e6e1;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  color: #1a1a18;
  letter-spacing: -0.005em;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.lp-related-grid a:hover {
  border-color: #0066ff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.1);
}

.lp-related-grid a small {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: #7a7974;
  margin-top: 2px;
  letter-spacing: 0.005em;
}

/* ── Footer ───────────────────────────────── */
.lp-footer {
  margin-top: 64px;
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid #e8e6e1;
}

.lp-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  list-style: none;
}

.lp-footer-links a {
  font-size: 11.5px;
  font-weight: 500;
  color: #7a7974;
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: color 0.2s ease;
}

.lp-footer-links a:hover { color: #1a1a18; }

.lp-footer-copy {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #c8c7c2;
}

/* ── Formula block ────────────────────────── */
.lp-formula {
  margin: 20px 0;
  padding: 20px 24px;
  background: #f4f3f0;
  border-radius: 10px;
  text-align: center;
}

.lp-formula code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 13px;
  color: #1a1a18;
  letter-spacing: 0.01em;
  line-height: 1.8;
}

.lp-formula-caption {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: #7a7974;
  font-style: italic;
}

/* ── Callout ────────────────────────────── */
.lp-callout {
  margin: 20px 0;
  padding: 16px 20px;
  background: rgba(0, 102, 255, 0.04);
  border-left: 2px solid #0066ff;
  border-radius: 0 8px 8px 0;
  font-size: 12.5px;
  color: #3a3a38;
  line-height: 1.7;
}

.lp-callout strong { color: #0066ff; font-weight: 600; }

/* ── Responsive ───────────────────────────── */
@media (max-width: 640px) {
  .lp-hero { padding: 48px 0 40px; }
  .lp-nav-links { display: none; }
  .lp-scenarios { grid-template-columns: 1fr; }
  .lp-cta { padding: 36px 20px; margin: 40px 0; }
  .lp-table thead th, .lp-table tbody td { padding: 10px 12px; font-size: 11.5px; }
  .lp-step { padding: 16px; }
  .lp-related-grid { grid-template-columns: 1fr; }
}

/* ── Dark mode (respects prefers-color-scheme + body.dark-mode) ──────── */
@media (prefers-color-scheme: dark) {
  body.lp-body:not(.light-mode) {
    background: #0a0f1a;
    color: #dde0e7;
  }
  body.lp-body:not(.light-mode) .lp-nav-logo { color: #dde0e7; }
  body.lp-body:not(.light-mode) .lp-nav-links a { color: #768198; }
  body.lp-body:not(.light-mode) .lp-nav-links a:hover { color: #dde0e7; }
  body.lp-body:not(.light-mode) .lp-hero h1 { color: #dde0e7; }
  body.lp-body:not(.light-mode) .lp-hero-sub { color: #768198; }
  body.lp-body:not(.light-mode) .lp-section h2 { color: #dde0e7; }
  body.lp-body:not(.light-mode) .lp-section h3 { color: #c8cdd8; }
  body.lp-body:not(.light-mode) .lp-section p { color: #8a95ac; }
  body.lp-body:not(.light-mode) .lp-section p strong { color: #c8cdd8; }
  body.lp-body:not(.light-mode) .lp-section a { color: #6e7fff; border-bottom-color: rgba(110, 127, 255, 0.3); }
  body.lp-body:not(.light-mode) .lp-table-wrap { background: #111826; border-color: #253048; }
  body.lp-body:not(.light-mode) .lp-table thead th { background: #0d1422; color: #768198; border-bottom-color: #253048; }
  body.lp-body:not(.light-mode) .lp-table tbody td { color: #8a95ac; border-bottom-color: #1a2338; }
  body.lp-body:not(.light-mode) .lp-table tbody td:first-child { color: #dde0e7; }
  body.lp-body:not(.light-mode) .lp-step,
  body.lp-body:not(.light-mode) .lp-scenario,
  body.lp-body:not(.light-mode) .lp-related-grid a { background: #111826; border-color: #253048; }
  body.lp-body:not(.light-mode) .lp-step-body h3,
  body.lp-body:not(.light-mode) .lp-scenario h3,
  body.lp-body:not(.light-mode) .lp-related-grid a { color: #dde0e7; }
  body.lp-body:not(.light-mode) .lp-step-body p,
  body.lp-body:not(.light-mode) .lp-scenario p,
  body.lp-body:not(.light-mode) .lp-related-grid a small { color: #8a95ac; }
  body.lp-body:not(.light-mode) .lp-cta { background: #111826; border-color: #253048; }
  body.lp-body:not(.light-mode) .lp-cta h2 { color: #dde0e7; }
  body.lp-body:not(.light-mode) .lp-cta p { color: #768198; }
  body.lp-body:not(.light-mode) .lp-formula { background: #0d1422; }
  body.lp-body:not(.light-mode) .lp-formula code { color: #dde0e7; }
  body.lp-body:not(.light-mode) .lp-formula-caption { color: #768198; }
  body.lp-body:not(.light-mode) .lp-faq-list,
  body.lp-body:not(.light-mode) .lp-faq-item { border-color: #253048; }
  body.lp-body:not(.light-mode) .lp-faq-item summary { color: #dde0e7; }
  body.lp-body:not(.light-mode) .lp-faq-item summary::after { color: #3d4a6a; }
  body.lp-body:not(.light-mode) .lp-faq-item .lp-faq-answer { color: #8a95ac; }
  body.lp-body:not(.light-mode) .lp-faq-item .lp-faq-answer a { color: #6e7fff; }
  body.lp-body:not(.light-mode) .lp-related { border-color: #253048; }
  body.lp-body:not(.light-mode) .lp-related-label { color: #768198; }
  body.lp-body:not(.light-mode) .lp-footer { border-color: #253048; }
  body.lp-body:not(.light-mode) .lp-footer-links a { color: #768198; }
  body.lp-body:not(.light-mode) .lp-footer-copy { color: #3d4a6a; }
  body.lp-body:not(.light-mode) .lp-callout { background: rgba(110, 127, 255, 0.08); border-left-color: #6e7fff; color: #c8cdd8; }
  body.lp-body:not(.light-mode) .lp-callout strong { color: #6e7fff; }
}
