/* =========================================================================
   MultiMind AI — Landing overlay styles
   All selectors scoped with .lp-* to avoid collision with app styles.
   Reuses design tokens from styles.css (--bg, --accent, --panel-strong, etc).
   ========================================================================= */

html.lp-hide #lp-overlay {
  display: none;
}
html.lp-show body {
  overflow: hidden;
}

.lp-overlay {
  position: fixed;
  inset: 0;
  z-index: 51;
  overflow-y: auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(184, 92, 56, 0.18), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(57, 113, 139, 0.14), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(184, 92, 56, 0.08), transparent 40%),
    linear-gradient(180deg, #f7f1e7 0%, #efe6d9 100%);
  color: var(--text);
  font-family: var(--font-body);
  --lp-max: 1120px;
  --lp-gutter: clamp(20px, 4vw, 48px);
  --lp-section-gap: clamp(64px, 10vh, 128px);
  --lp-ink: var(--text);
  --lp-ink-soft: rgba(23, 32, 39, 0.72);
  --lp-ink-muted: rgba(23, 32, 39, 0.58);
}

.lp-overlay *,
.lp-overlay *::before,
.lp-overlay *::after {
  box-sizing: border-box;
}

.lp-overlay ::selection {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* ------- Nav ------- */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 32px);
  background: rgba(247, 241, 231, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.lp-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--lp-ink);
  letter-spacing: 0.2px;
}

.lp-wordmark-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

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

/* ------- Buttons ------- */
.lp-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  min-height: 44px;
  font: 600 0.95rem/1 var(--font-body);
  letter-spacing: 0.2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 200ms ease, color 200ms ease,
    border-color 200ms ease, box-shadow 200ms ease;
}
.lp-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.lp-btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(184, 92, 56, 0.28);
}
.lp-btn--primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 14px 36px rgba(143, 67, 38, 0.34);
}
.lp-btn--ghost {
  background: rgba(255, 252, 246, 0.7);
  color: var(--lp-ink);
  border-color: var(--border);
}
.lp-btn--ghost:hover {
  background: rgba(255, 252, 246, 1);
  border-color: rgba(28, 39, 45, 0.28);
}
.lp-btn--lg {
  padding: 16px 28px;
  font-size: 1rem;
  min-height: 52px;
}

/* ------- Section primitive ------- */
.lp-main {
  display: block;
}
.lp-section {
  max-width: var(--lp-max);
  margin-inline: auto;
  padding-inline: var(--lp-gutter);
  padding-block: var(--lp-section-gap) 0;
}
.lp-section:last-of-type {
  padding-bottom: var(--lp-section-gap);
}
.lp-section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 14px;
}
.lp-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--lp-ink);
}
.lp-section-lede {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--lp-ink-soft);
  max-width: 68ch;
  margin: 0 0 28px;
}

/* ========================================================================= */
/* HERO                                                                      */
/* ========================================================================= */
.lp-hero {
  padding-top: clamp(48px, 9vh, 96px);
  text-align: center;
}
.lp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.lp-hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: lp-pulse 2.4s ease-in-out infinite;
}
@keyframes lp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.3); }
}

.lp-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 auto 22px;
  max-width: 18ch;
  color: var(--lp-ink);
}
.lp-hero-title em {
  font-style: italic;
  color: var(--accent-strong);
  font-weight: 500;
}
.lp-hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--lp-ink-soft);
  max-width: 60ch;
  margin: 0 auto 34px;
}
.lp-hero-ctas {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 34px;
}
.lp-trust {
  list-style: none;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  padding: 0;
  margin: 0;
}
.lp-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--lp-ink-soft);
  font-weight: 500;
}
.lp-trust-icon {
  width: 16px;
  height: 16px;
  color: var(--ok);
  flex-shrink: 0;
}

/* ------- Hero screenshot frame ------- */
.lp-hero-frame {
  margin: 64px auto 0;
  max-width: 1040px;
  padding: 12px;
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(
    180deg,
    rgba(255, 252, 246, 0.85),
    rgba(255, 252, 246, 0.55)
  );
  border: 1px solid var(--border);
  box-shadow:
    0 40px 80px -20px rgba(42, 34, 20, 0.22),
    0 18px 40px -12px rgba(42, 34, 20, 0.14);
}
.lp-hero-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 10px;
}
.lp-hero-frame-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(23, 32, 39, 0.18);
}
.lp-hero-frame-bar span:first-child { background: #e6a48a; }
.lp-hero-frame-bar span:nth-child(2) { background: #e6cd8a; }
.lp-hero-frame-bar span:nth-child(3) { background: #a0c8ae; }
.lp-hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel-strong);
}

/* ========================================================================= */
/* PILLARS                                                                    */
/* ========================================================================= */
.lp-pillars-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .lp-pillars-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .lp-pillars-grid { grid-template-columns: repeat(4, 1fr); }
}
.lp-pillar {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.lp-pillar:hover {
  border-color: rgba(184, 92, 56, 0.35);
  box-shadow: 0 24px 56px rgba(42, 34, 20, 0.16);
}
.lp-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-pillar-icon svg { width: 22px; height: 22px; }
.lp-pillar h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: var(--lp-ink);
  letter-spacing: -0.005em;
}
.lp-pillar p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--lp-ink-soft);
}

/* ========================================================================= */
/* ARCHITECTURE SECTIONS                                                      */
/* ========================================================================= */
.lp-arch {
  display: grid;
  gap: 36px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .lp-arch {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
  }
  .lp-arch--reverse .lp-arch-copy { order: 2; }
  .lp-arch--reverse .lp-arch-visual { order: 1; }
}
.lp-arch-copy {
  min-width: 0;
}
.lp-arch-visual {
  min-width: 0;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.lp-arch-visual figure {
  margin: 0;
}
.lp-arch-visual svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}
.lp-arch-visual figcaption {
  font-size: 0.85rem;
  color: var(--lp-ink-muted);
  margin-top: 14px;
  text-align: center;
  line-height: 1.5;
}
.lp-arch-modes {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.lp-arch-mode {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 252, 246, 0.6);
}
.lp-arch-mode-tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  align-self: start;
}
.lp-arch-mode-body strong {
  display: block;
  font-weight: 600;
  color: var(--lp-ink);
  margin-bottom: 2px;
}
.lp-arch-mode-body span {
  font-size: 0.9rem;
  color: var(--lp-ink-soft);
  line-height: 1.55;
}

/* ========================================================================= */
/* TECH STACK                                                                 */
/* ========================================================================= */
.lp-stack-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .lp-stack-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .lp-stack-grid { grid-template-columns: repeat(3, 1fr); }
}
.lp-stack-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 18px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 252, 246, 0.7);
}
.lp-stack-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lp-stack-icon svg { width: 18px; height: 18px; }
.lp-stack-item h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--lp-ink);
}
.lp-stack-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--lp-ink-soft);
  line-height: 1.55;
}

/* ========================================================================= */
/* PRIVACY                                                                    */
/* ========================================================================= */
.lp-privacy-card {
  background: linear-gradient(
    135deg,
    rgba(184, 92, 56, 0.08),
    rgba(57, 113, 139, 0.06)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .lp-privacy-card { grid-template-columns: auto 1fr; gap: 40px; }
}
.lp-privacy-badge {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
  box-shadow: var(--shadow);
  justify-self: center;
}
.lp-privacy-badge svg { width: 52px; height: 52px; }
.lp-privacy-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .lp-privacy-list { grid-template-columns: repeat(2, 1fr); }
}
.lp-privacy-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--lp-ink);
  font-weight: 500;
}
.lp-privacy-list li svg {
  width: 18px;
  height: 18px;
  color: var(--ok);
  flex-shrink: 0;
}

/* ========================================================================= */
/* BENCHMARKS                                                                 */
/* ========================================================================= */
.lp-bench-card {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.lp-bench-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.lp-bench-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.lp-bench-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: lp-pulse 2.4s ease-in-out infinite;
}
.lp-bench-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.lp-bench-table th,
.lp-bench-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.lp-bench-table th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-ink-muted);
}
.lp-bench-table tr:last-child td { border-bottom: 0; }
.lp-bench-table td.lp-bench-num {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--lp-ink);
  font-variant-numeric: tabular-nums;
}
.lp-bench-delta {
  color: var(--ok);
  font-weight: 600;
  font-size: 0.85rem;
}
.lp-bench-note {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--lp-ink-muted);
  font-style: italic;
}

/* ========================================================================= */
/* GET STARTED                                                                */
/* ========================================================================= */
.lp-steps {
  list-style: none;
  counter-reset: lp-steps;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .lp-steps { grid-template-columns: repeat(3, 1fr); }
}
.lp-step {
  counter-increment: lp-steps;
  position: relative;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-step::before {
  content: counter(lp-steps, decimal-leading-zero);
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.38;
  letter-spacing: -0.02em;
}
.lp-step h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--lp-ink);
  padding-right: 56px;
}
.lp-step p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--lp-ink-soft);
}
.lp-kbd {
  display: inline-block;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.82rem;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(23, 32, 39, 0.06);
  border: 1px solid var(--border);
  color: var(--lp-ink);
  margin-top: 6px;
  align-self: flex-start;
}

/* ========================================================================= */
/* FINAL CTA                                                                  */
/* ========================================================================= */
.lp-cta-final {
  text-align: center;
}
.lp-cta-card {
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-strong) 100%
  );
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 56px);
  box-shadow: 0 30px 60px rgba(143, 67, 38, 0.28);
}
.lp-cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 14px;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lp-cta-card p {
  max-width: 52ch;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}
.lp-cta-card .lp-btn--primary {
  background: #fff;
  color: var(--accent-strong);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.lp-cta-card .lp-btn--primary:hover {
  background: #fffaf3;
  color: var(--accent-strong);
}
.lp-cta-card .lp-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.lp-cta-card .lp-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}
.lp-cta-ctas {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ========================================================================= */
/* FOOTER                                                                     */
/* ========================================================================= */
.lp-footer {
  max-width: var(--lp-max);
  margin: clamp(48px, 8vh, 96px) auto 0;
  padding: 28px var(--lp-gutter) 40px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--lp-ink-muted);
}
.lp-footer a {
  color: var(--lp-ink-soft);
  text-decoration: none;
  margin-left: 18px;
  transition: color 180ms ease;
}
.lp-footer a:first-of-type { margin-left: 0; }
.lp-footer a:hover { color: var(--accent-strong); }
.lp-footer-links { display: flex; flex-wrap: wrap; }

/* ========================================================================= */
/* Sidebar revisit button (in the app shell, not overlay)                    */
/* ========================================================================= */
.lp-revisit-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
  margin-top: 12px;
  font-family: var(--font-body);
}
.lp-revisit-button:hover {
  color: var(--accent-strong);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.lp-revisit-button svg { width: 14px; height: 14px; }

/* ========================================================================= */
/* Reduced motion                                                             */
/* ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .lp-overlay *,
  .lp-overlay *::before,
  .lp-overlay *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ========================================================================= */
/* Small screens tweaks                                                       */
/* ========================================================================= */
@media (max-width: 520px) {
  .lp-hero-ctas .lp-btn { width: 100%; }
  .lp-cta-ctas .lp-btn { width: 100%; }
  .lp-nav { padding: 10px 14px; }
  .lp-nav .lp-wordmark { font-size: 1.1rem; }
  .lp-btn { padding: 11px 18px; font-size: 0.9rem; }
}
