/* ==========================================================================
   LANDING PAGE
   ========================================================================== */

:root {
  --lp-nav-bg: rgba(19, 17, 15, 0.92);
}

[data-theme="light"] {
  --lp-nav-bg: rgba(250, 247, 242, 0.92);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body.lp { overflow-x: hidden; }
:where(.lp a) { color: inherit; text-decoration: none; }

/* ---- nav ---- */
.lp-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(20px, calc((100vw - 1120px) / 2));
  background: var(--lp-nav-bg);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.lp-nav.scrolled { border-bottom-color: var(--border-subtle); }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; }
.lp-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.lp-brand-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; }
.lp-brand-name b { color: var(--accent); font-weight: 600; }
.lp-brand small { font-size: .72rem; color: var(--text-muted); font-weight: 500; }
.lp-logo { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-size: .95rem; }
.lp-links { display: flex; gap: 4px; }
.lp-links a { padding: 8px 12px; border-radius: 8px; font-size: .9rem; font-weight: 500; color: var(--text-muted); transition: color .15s ease, background .15s ease; }
.lp-links a:hover { color: var(--text-main); background: var(--bg-glass-active); }
.lp-nav-actions { display: flex; align-items: center; gap: 10px; }
.lp-icon-btn { width: 36px; height: 36px; border-radius: 8px; cursor: pointer; background: transparent; border: 1px solid var(--border-subtle); color: var(--text-muted); transition: color .15s ease, border-color .15s ease; }
.lp-icon-btn:hover { color: var(--text-main); border-color: var(--border-strong); }
.lp-link-login { font-size: .9rem; font-weight: 600; color: var(--text-muted); padding: 8px 6px; }
.lp-link-login:hover { color: var(--text-main); }

/* ---- buttons ---- */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: inherit; font-weight: 600; border-radius: 10px; cursor: pointer; border: 1px solid transparent; transition: background .15s ease, border-color .15s ease, color .15s ease; white-space: nowrap; }
.lp-btn-sm { padding: 8px 15px; font-size: .86rem; }
.lp-btn-lg { padding: 13px 22px; font-size: .97rem; }
.lp-btn-primary { background: var(--accent); color: #fff; }
.lp-btn-primary:hover { background: var(--accent-hover); }
.lp-btn-ghost { background: var(--bg-secondary); border-color: var(--border-strong); color: var(--text-main); }
.lp-btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.lp-btn i.fa-arrow-right { transition: transform .15s ease; }
.lp-btn:hover i.fa-arrow-right { transform: translateX(3px); }

/* ---- hero ---- */
.lp-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; max-width: 1120px; margin: 0 auto; padding: 80px 20px 64px; }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--accent-ink); }
.lp-pill::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.lp-hero h1 { font-family: var(--font-heading); font-weight: 600; font-size: clamp(2.3rem, 4.6vw, 3.5rem); line-height: 1.08; letter-spacing: -0.025em; margin: 18px 0 20px; }
.lp-accent { color: var(--accent); font-style: italic; }
.lp-lead { font-size: 1.1rem; color: var(--text-muted); max-width: 520px; line-height: 1.65; }
.lp-lead strong { color: var(--text-main); font-weight: 600; }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lp-trust-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: .86rem; color: var(--text-muted); }
.lp-trust-row i { color: var(--accent); margin-right: 6px; }

/* ---- hero mock ---- */
.lp-mock { background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.lp-mock-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border-subtle); font-size: .78rem; color: var(--text-muted); background: var(--bg-glass); }
.lp-dots { display: inline-flex; gap: 6px; }
.lp-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.lp-mock-file { flex: 1; }
.lp-scan { color: var(--text-muted); font-weight: 600; }
.lp-scan.done { color: var(--risk-high); }
.lp-mock-body { padding: 20px 22px; font-size: .93rem; line-height: 1.8; color: var(--text-muted); }
.lp-mock-body p + p { margin-top: 10px; }
.lp-mock-body mark { background: transparent; color: inherit; border-radius: 3px; padding: 1px 2px; transition: background .4s ease, color .4s ease; }
.lp-mock-body mark.on { background: var(--clause-highlight); color: var(--text-main); }
.lp-mock-result { display: flex; align-items: center; gap: 18px; padding: 16px 22px 20px; border-top: 1px solid var(--border-subtle); }
.lp-mock-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.lp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; font-size: .74rem; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity .35s ease, transform .35s ease; }
.lp-chip.on { opacity: 1; transform: none; }
.lp-chip-bad { background: var(--risk-high-bg); color: var(--risk-high); }
.lp-verdict { opacity: 0; transition: opacity .4s ease; }
.lp-verdict.on { opacity: 1; }
.lp-mock-result .trust-ring { width: 84px; height: 84px; flex-shrink: 0; }
.lp-mock-result .trust-ring-inner { width: 66px; height: 66px; }
.lp-mock-result .trust-ring-inner strong { font-size: 1.4rem; }

/* ---- strip ---- */
.lp-strip { max-width: 1120px; margin: 0 auto 8px; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.lp-strip div { padding: 22px 20px; display: flex; flex-direction: column; gap: 2px; }
.lp-strip div + div { border-left: 1px solid var(--border-subtle); }
.lp-strip strong { font-family: var(--font-heading); font-weight: 600; font-size: 1.8rem; color: var(--text-main); line-height: 1.2; }
.lp-strip span { font-size: .84rem; color: var(--text-muted); }

/* ---- sections ---- */
.lp-section { max-width: 1120px; margin: 0 auto; padding: 96px 20px 0; }
.lp-head { text-align: center; max-width: 660px; margin: 0 auto 44px; }
.lp-tag { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.lp-head h2, .lp-honest h2 { font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; }
.lp-head p, .lp-honest p { color: var(--text-muted); margin-top: 12px; font-size: 1.02rem; }

.lp-card { background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 26px; position: relative; transition: border-color .2s ease; }
.lp-card:hover { border-color: var(--border-strong); }
.lp-card h3 { font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; margin: 18px 0 8px; letter-spacing: -0.01em; }
.lp-card p { color: var(--text-muted); font-size: .93rem; line-height: 1.6; }

.lp-ico { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; background: var(--accent-soft); color: var(--accent-ink); }

.lp-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-step-num { position: absolute; top: 22px; right: 24px; font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--text-dim); }
.lp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-feature-tag { display: inline-block; margin-top: 16px; font-size: .76rem; font-weight: 600; color: var(--text-muted); }
.lp-feature-tag::before { content: "— "; color: var(--accent); }

/* ---- demo ---- */
.lp-demo { max-width: 860px; margin: 0 auto; background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-md); }
.lp-tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-tertiary); border-radius: 10px; margin-bottom: 14px; }
.lp-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border: none; background: transparent; color: var(--text-muted); font: inherit; font-size: .86rem; font-weight: 600; border-radius: 7px; cursor: pointer; transition: color .15s ease, background .15s ease; }
.lp-tab:hover { color: var(--text-main); }
.lp-tab.active { background: var(--bg-secondary); color: var(--text-main); box-shadow: var(--shadow-sm); }
.lp-tab.active i { color: var(--accent); }
.lp-demo-panel { display: grid; grid-template-columns: 230px 1fr; gap: 24px; padding: 14px 16px 18px; align-items: start; }
.lp-demo-score { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.lp-demo-score .trust-ring { width: 128px; height: 128px; }
.lp-demo-score .trust-ring-inner { width: 102px; height: 102px; }
.lp-demo-score .trust-ring-inner strong { font-size: 2.1rem; }
.lp-demo-note { font-size: .82rem; color: var(--text-muted); }
.lp-signals { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lp-signals li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg-glass); border: 1px solid var(--border-subtle); font-size: .88rem; animation: lpIn .35s ease both; }
.lp-signals li i { margin-top: 3px; }
.lp-signals li.bad i { color: var(--risk-high); }
.lp-signals li.good i { color: var(--risk-low); }
.lp-signals li.info i { color: var(--text-dim); }
.lp-signals li small { display: block; color: var(--text-muted); font-size: .79rem; margin-top: 1px; }
@keyframes lpIn { from { opacity: 0; transform: translateY(6px); } }
.lp-fine { max-width: 760px; margin: 18px auto 0; text-align: center; font-size: .8rem; color: var(--text-dim); }

/* ---- honesty ---- */
.lp-honest { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: 18px; padding: 44px; }
.lp-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.lp-list li { display: flex; gap: 14px; align-items: flex-start; font-size: .95rem; color: var(--text-muted); line-height: 1.55; }
.lp-list li i { flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-ink); font-size: .9rem; }
.lp-list strong { color: var(--text-main); }

/* ---- faq ---- */
.lp-faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--border-subtle); }
.lp-faq details { border-bottom: 1px solid var(--border-subtle); padding: 0 4px; }
.lp-faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--accent); transition: transform .2s ease; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { padding: 0 0 20px; color: var(--text-muted); font-size: .95rem; line-height: 1.65; }

/* ---- footer ---- */
.lp-footer { max-width: 1120px; margin: 96px auto 0; padding: 40px 20px; border-top: 1px solid var(--border-subtle); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--text-muted); font-size: .86rem; }
.lp-footer .lp-brand-text { align-items: flex-start; }
.lp-footer i { color: var(--text-dim); margin-right: 6px; }
.lp-foot-contact a { color: var(--accent-ink); font-weight: 600; }
.lp-foot-contact a:hover { text-decoration: underline; }

/* ---- scroll reveal ---- */
.lp-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.lp-reveal.in { opacity: 1; transform: none; }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .lp-hero { grid-template-columns: 1fr; padding-top: 48px; gap: 40px; }
  .lp-links { display: none; }
  .lp-strip { grid-template-columns: repeat(2, 1fr); }
  .lp-strip div:nth-child(3) { border-left: none; }
  .lp-strip div:nth-child(n+3) { border-top: 1px solid var(--border-subtle); }
  .lp-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-honest { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
}
@media (max-width: 640px) {
  .lp-nav { padding: 10px 16px; }
  .lp-nav .lp-brand small { display: none; }
  .lp-grid-3 { grid-template-columns: 1fr; }
  .lp-demo-panel { grid-template-columns: 1fr; }
  .lp-tab { font-size: .76rem; padding: 9px 6px; gap: 5px; }
  .lp-mock-result { flex-direction: column; align-items: flex-start; }
  .lp-btn-lg { width: 100%; }
  .lp-section { padding-top: 72px; }
}

/* Motion off (follows the OS "reduce motion" setting) */
html[data-motion="off"] .lp-reveal { opacity: 1; transform: none; transition: none; }
html[data-motion="off"] .lp-chip, html[data-motion="off"] .lp-verdict { opacity: 1; transform: none; transition: none; }
html[data-motion="off"] .lp-signals li { animation: none; }
html[data-motion="off"] { scroll-behavior: auto; }
