/* landing.css — marketing landing page (public/index.html).
 * Consumes the app's design tokens ONLY (Theme.md): light/dark/auto come for free.
 * No new colour/size literals except the intentional translucent overlays. */

.lp { min-height: 100vh; display: flex; flex-direction: column; }
.lp-container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--sp-6); }

/* ---------- Header / nav ---------- */
.lp-header {
  position: sticky; top: 0; z-index: var(--z-topbar);
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.lp-header .lp-container { display: flex; align-items: center; justify-content: space-between; height: var(--topbar-h); gap: var(--sp-4); }
.lp-brand { display: flex; align-items: center; gap: 9px; font-weight: var(--fw-bold); font-size: var(--fs-md); color: var(--text); }
.lp-brand:hover { text-decoration: none; }
.lp-mark {
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  background: var(--brand-gradient); color: #fff;
  display: grid; place-items: center; font-weight: var(--fw-bold); font-size: var(--fs-md);
}
.lp-nav { display: flex; align-items: center; gap: var(--sp-4); }
.lp-nav a { color: var(--text-muted); font-weight: var(--fw-medium); }
.lp-nav a:hover { color: var(--text); text-decoration: none; }
.lp-head-right { display: flex; align-items: center; gap: var(--sp-3); }
.lp-theme { line-height: 1; padding: 6px 10px; }
.lp-menu { display: none; }

/* ---------- Hero ---------- */
.lp-hero { padding: var(--sp-8) 0 var(--sp-7); background: linear-gradient(180deg, var(--primary-soft), transparent 70%); }
.lp-hero .lp-container { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--sp-8); align-items: center; }
.lp-eyebrow { display: inline-block; font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: .08em; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); padding: 4px 10px; border-radius: var(--radius-pill); }
.lp-title { font-size: clamp(28px, 4.6vw, 44px); font-weight: var(--fw-bold); line-height: 1.1; margin: var(--sp-4) 0 var(--sp-3); }
.lp-lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 34em; }
.lp-ctas { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-5); align-items: center; }
.lp-ctas .btn { padding: 12px 20px; font-size: var(--fs-md); }
.lp-chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-5); }
.lp-chip { font-size: var(--fs-xs); color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 5px 11px; background: var(--surface); }

/* Hero side card */
.lp-herocard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: var(--sp-5); }
.lp-herocard h3 { margin-bottom: var(--sp-3); }

/* ---------- Sections ---------- */
.lp-section { padding: var(--sp-8) 0; }
.lp-section.alt { background: var(--surface-2); }
.lp-h2 { font-size: clamp(22px, 3.2vw, 30px); font-weight: var(--fw-bold); text-align: center; margin-bottom: var(--sp-2); }
.lp-sub { text-align: center; color: var(--text-muted); margin-bottom: var(--sp-6); }

/* Features */
.lp-features { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.lp-feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5); box-shadow: var(--shadow-1); }
.lp-feature .ico { font-size: 22px; }
.lp-feature h3 { margin: var(--sp-3) 0 var(--sp-1); }
.lp-feature p { color: var(--text-muted); margin: 0; }

/* Product preview — mksoc-style carousel: swipe / arrows / dots, tap to enlarge */
.lp-shots { position: relative; }
.lp-shots-track { display: flex; gap: var(--sp-4); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: var(--sp-1); }
.lp-shots-track::-webkit-scrollbar { display: none; }
.lp-slide { flex: 0 0 100%; width: 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.lp-window { display: block; background: var(--window-bg); border-radius: 18px; padding: 10px; box-shadow: var(--shadow-3); overflow: hidden; }
.lp-window-bar { display: flex; gap: 6px; padding: 6px 8px 10px; }
.lp-window-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--window-dot); }
.lp-window-bar span:nth-child(1) { background: var(--mac-red); }
.lp-window-bar span:nth-child(2) { background: var(--mac-amber); }
.lp-window-bar span:nth-child(3) { background: var(--mac-green); }
.lp-shot-zoom { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; border-radius: 18px; cursor: zoom-in; }
.lp-shot-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--surface-2); }
.lp-shot-caption { text-align: center; font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--sp-3); }
.lp-shots-controls { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); margin-top: var(--sp-4); }
.lp-shots-nav { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: var(--fs-lg); line-height: 1; box-shadow: var(--shadow-1); transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.lp-shots-nav:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.lp-shots-nav[disabled] { opacity: .4; cursor: default; }
.lp-shots-dots { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .45rem; }
.lp-shots-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--border-strong); transition: background-color .2s var(--ease), transform .2s var(--ease); cursor: pointer; }
.lp-shots-dot:hover { background: var(--primary-hover); }
.lp-shots-dot[aria-current="true"] { background: var(--primary); transform: scale(1.25); }
.lp-shots-hint { text-align: center; font-size: var(--fs-xs); color: var(--text-muted); margin: var(--sp-4) 0 0; }
/* Lightbox (a <dialog>, like mksoc) */
.lp-lightbox { width: min(1200px, 92vw); max-width: 92vw; padding: 0; border: 0; border-radius: 16px; background: transparent; overflow: visible; }
.lp-lightbox::backdrop { background: rgba(15, 23, 42, .78); }
.lp-lightbox-img { display: block; width: 100%; height: auto; max-height: 88vh; object-fit: contain; border-radius: 16px; background: var(--window-bg); box-shadow: var(--shadow-3); }
.lp-lightbox-close { position: absolute; top: -14px; right: -14px; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: #0f172a; font-size: var(--fs-md); box-shadow: var(--shadow-2); cursor: pointer; }
.lp-lightbox-close:hover { background: var(--primary); color: #fff; }

/* Sample PDF cards */
.lp-samples { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; }
.lp-sample { display: flex; align-items: center; gap: var(--sp-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); box-shadow: var(--shadow-1); color: var(--text); min-width: min(320px, 100%); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.lp-sample:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--border-strong); }
.lp-sample-ico { font-size: 24px; }
.lp-sample small { display: block; color: var(--text-muted); font-size: var(--fs-xs); }

/* Steps */
.lp-steps { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.lp-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5); }
.lp-step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: var(--fw-bold); }
.lp-step h3 { margin: var(--sp-3) 0 var(--sp-1); }
.lp-step p { color: var(--text-muted); margin: 0; }

/* Pricing */
.lp-plans { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.lp-plans-single { grid-template-columns: minmax(0, 720px); justify-content: center; }
.lp-plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5); box-shadow: var(--shadow-1); position: relative; }
.lp-plan.popular { border-color: var(--primary); box-shadow: var(--shadow-2); }
.lp-plan .tag { position: absolute; top: -12px; left: var(--sp-5); background: var(--primary); color: #fff; font-size: var(--fs-xs); font-weight: var(--fw-semibold); padding: 3px 10px; border-radius: var(--radius-pill); }
.lp-plan h3 { margin-bottom: var(--sp-1); }
.lp-plan .for { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.lp-plan ul { list-style: none; padding: 0; margin: 0 0 var(--sp-4); }
.lp-plan li { padding: 6px 0 6px 24px; position: relative; border-bottom: 1px solid var(--border); }
.lp-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: var(--fw-bold); }

/* FAQ */
.lp-faq { max-width: 800px; margin: 0 auto; }
.lp-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-2); }
.lp-faq summary { cursor: pointer; font-weight: var(--fw-semibold); }
.lp-faq details p { color: var(--text-muted); margin: var(--sp-2) 0 0; }

/* About + stats */
.lp-about { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--sp-7); align-items: center; }
.lp-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.lp-stat { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-4); text-align: center; background: var(--surface); }
.lp-stat .n { font-size: var(--fs-xl); font-weight: var(--fw-bold); color: var(--primary); }
.lp-stat .l { font-size: var(--fs-xs); color: var(--text-muted); }

/* Contact */
.lp-contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: start; }
.lp-form { display: grid; gap: var(--sp-3); }
.lp-form label { font-size: var(--fs-xs); font-weight: var(--fw-bold); display: block; margin-bottom: 4px; }
.lp-contact-info a { display: block; color: var(--text); padding: var(--sp-2) 0; border-bottom: 1px solid var(--border); }

/* Footer */
.lp-footer { background: var(--sidebar-bg); color: var(--sidebar-text); padding: var(--sp-7) 0 var(--sp-5); margin-top: auto; }
.lp-footer .lp-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-5); }
.lp-footer a { color: var(--sidebar-text); display: block; padding: 3px 0; }
.lp-footer a:hover { color: #fff; }
.lp-footer h4 { color: #fff; margin-bottom: var(--sp-3); }
.lp-copy { text-align: center; color: var(--sidebar-text); border-top: 1px solid rgba(255,255,255,.1); margin-top: var(--sp-6); padding-top: var(--sp-4); font-size: var(--fs-xs); }

/* ---------- Helpers (keep markup free of inline styles) ---------- */
.lp-list { list-style: none; padding: 0; margin: 0; }
.lp-list li { padding: 5px 0; }
.lp-h2.left { text-align: left; }
.lp-center { text-align: center; }
.lp-note { color: var(--text-muted); font-size: var(--fs-xs); margin: 0; }
.lp-footer-brand { color: #fff; }
.lp-footer-brand + p, .lp-footer .lp-brand + p { color: var(--sidebar-text); margin-top: 10px; }
.lp-copy a { color: inherit; text-decoration: underline; }
.lp-copy .lp-by-logo { height: 26px; width: auto; vertical-align: middle; margin-right: 8px; background: #fff; border-radius: 5px; padding: 2px 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .lp-hero .lp-container { grid-template-columns: 1fr; }
  .lp-about, .lp-contact { grid-template-columns: 1fr; }
  .lp-footer .lp-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .lp-container { padding: 0 var(--sp-4); }
  .lp-menu { display: inline-block; }
  .lp-nav { display: none; }
  .lp-nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3);
    position: absolute; top: var(--topbar-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: var(--sp-4) var(--sp-4) var(--sp-5); box-shadow: var(--shadow-2);
  }
  .lp-footer .lp-foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .lp-stats { grid-template-columns: 1fr; }
}

/* ---------- Legal / document pages (privacy, terms, disclaimer) ---------- */
.lp-doc { max-width: 820px; margin: 0 auto; padding: var(--sp-7) 0; }
.lp-doc h1 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: var(--sp-2); }
.lp-doc .updated { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-5); }
.lp-doc h2 { font-size: var(--fs-lg); margin-top: var(--sp-6); }
.lp-doc p, .lp-doc li { color: var(--text-muted); }
.lp-doc ul, .lp-doc ol { padding-left: var(--sp-5); }
.lp-back { display: inline-block; margin-bottom: var(--sp-4); }
.lp-doc code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.lp-doc h3 { font-size: var(--fs-md); margin-top: var(--sp-5); }
.lp-doc a { color: var(--primary); }
.lp-doc blockquote { margin: var(--sp-4) 0; padding: var(--sp-3) var(--sp-4); border-left: 3px solid var(--border-strong); background: var(--surface-2); border-radius: 0 6px 6px 0; }
.lp-doc blockquote p { margin: 0; }
.lp-doc pre { overflow-x: auto; padding: var(--sp-3) var(--sp-4); background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; }
.lp-doc pre code { background: none; padding: 0; }
.lp-doc table { width: auto; max-width: 100%; border-collapse: collapse; margin: var(--sp-4) 0; }
.lp-doc th, .lp-doc td { border: 1px solid var(--border); padding: var(--sp-2) var(--sp-3); text-align: left; }
.lp-doc th { background: var(--surface-2); font-weight: 600; }
.lp-doc :where(h2, h3)[id] { scroll-margin-top: var(--sp-5); }
