/* ─── Layout overrides now live in app.css via body.lp-body (loaded in <head>) ─── */

/* ─── Defensive resets against v2 app.css element-selector leaks ─────────
   app.css line 27 sets `nav { display:flex; gap:1rem; align-items:center }`
   and line 33 sets `footer { text-align:center }`. Both leak through .lp-scope
   wrapper since v1 didn't need them scoped. Undo both. */
.lp-scope nav.lp-nav { display: block; gap: 0; align-items: initial; }
.lp-scope footer.ddv-footer { text-align: left; }
/* DDV footer buttons: restore explicit colors. `.lp-scope a { color: inherit }`
   has specificity (0,1,1) which beats the unscoped .ddv-footer-btn-primary
   (0,1,0), so the white text gets clobbered. Bump specificity here. */
.lp-scope a.ddv-footer-btn-primary { color: #fff; }
.lp-scope a.ddv-footer-btn-ghost   { color: var(--text); }
.lp-scope a.ddv-footer-btn-ghost:hover { color: var(--accent); }

/* ─── v1 landing page styles (ported verbatim, scoped under .lp-scope) ───── */
.lp-scope { --accent: #0c4a6e; --accent-dark: #083956; --accent-light: #dbeafe; --bg: #f5f7fb; --surface: #ffffff; --text: #0f172a; --muted: #475569; --border: #dbe3ef; --radius: 12px; color: var(--text); background: var(--bg); line-height: 1.6; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.lp-scope *, .lp-scope *::before, .lp-scope *::after { box-sizing: border-box; margin: 0; padding: 0; }
.lp-scope a { text-decoration: none; color: inherit; }
.lp-scope .container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.lp-scope nav.lp-nav { position: sticky; top: 0; background: rgba(245,247,251,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); z-index: 100; }
.lp-scope .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.lp-scope .logo { font-size: 1.4rem; font-weight: 900; color: var(--accent); letter-spacing: -0.04em; }
.lp-scope .nav-right { display: flex; align-items: center; gap: 20px; }
.lp-scope .nav-link { font-size: 0.88rem; color: var(--muted); font-weight: 500; }
.lp-scope .nav-link:hover { color: var(--text); }
.lp-scope .btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 20px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; border: none; }
.lp-scope .btn-primary { background: var(--accent); color: #fff; }
.lp-scope .btn-primary:hover { background: var(--accent-dark); }
.lp-scope .btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.lp-scope .btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.lp-scope .btn-white { background: #fff; color: var(--accent); font-weight: 700; }
.lp-scope .btn-white:hover { background: var(--accent-light); }
.lp-scope .btn-lg { padding: 12px 28px; font-size: 1rem; }
.lp-scope #hero { background: radial-gradient(circle at 0 0, var(--accent-light), var(--bg) 60%); padding: 96px 0 80px; text-align: center; }
.lp-scope .hero-badge { display: inline-block; background: var(--accent-light); color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 14px; border-radius: 999px; margin-bottom: 24px; border: 1px solid #bfdbfe; }
.lp-scope #hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; max-width: 720px; margin-left: auto; margin-right: auto; }
.lp-scope .hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 520px; margin: 0 auto 24px; }
.lp-scope .hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lp-scope section { padding: 80px 0; }
.lp-scope .section-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 12px; }
.lp-scope .section-header { text-align: center; margin-bottom: 56px; }
.lp-scope .section-header h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 12px; }
.lp-scope .section-header p { color: var(--muted); max-width: 480px; margin: 0 auto; }
.lp-scope #how { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-scope .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.lp-scope .step { text-align: center; padding: 32px 24px; }
.lp-scope .step-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-light); color: var(--accent); font-size: 1rem; font-weight: 800; margin-bottom: 18px; border: 1.5px solid #bfdbfe; }
.lp-scope .step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.lp-scope .step p { font-size: 0.88rem; color: var(--muted); }
.lp-scope #examples { background: var(--bg); }
.lp-scope .examples-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.lp-scope .example-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.lp-scope .example-card:hover { box-shadow: 0 12px 32px rgba(15,23,42,0.1); transform: translateY(-2px); }
.lp-scope .example-preview { width: 100%; height: 200px; display: flex; flex-direction: column; overflow: hidden; }
.lp-scope .browser-bar { background: #e8edf5; padding: 8px 14px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #d1d9e6; flex-shrink: 0; }
.lp-scope .browser-dot { width: 9px; height: 9px; border-radius: 50%; }
.lp-scope .browser-dot--red { background: #ff5f56; }
.lp-scope .browser-dot--yellow { background: #ffbd2e; }
.lp-scope .browser-dot--green { background: #27c93f; }
.lp-scope .lp-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lp-scope .browser-url { margin-left: 8px; font-size: 0.68rem; color: #64748b; background: #fff; border: 1px solid #d1d9e6; border-radius: 4px; padding: 2px 10px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-scope .browser-content { flex: 1; overflow: hidden; }
.lp-scope .mockup-zkz { background: linear-gradient(135deg,#f0fdf4 0%,#dcfce7 100%); height: 100%; padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.lp-scope .mockup-zkz .mock-nav { display: flex; justify-content: space-between; align-items: center; }
.lp-scope .mockup-zkz .mock-logo { font-size: 0.62rem; font-weight: 800; color: #16a34a; }
.lp-scope .mockup-zkz .mock-btn { font-size: 0.55rem; font-weight: 700; background: #16a34a; color: #fff; padding: 2px 8px; border-radius: 4px; }
.lp-scope .mockup-zkz .mock-h1 { font-size: 0.8rem; font-weight: 900; color: #111827; line-height: 1.2; }
.lp-scope .mockup-zkz .mock-sub { font-size: 0.6rem; color: #6b7280; }
.lp-scope .mockup-zkz .mock-ctas { display: flex; gap: 5px; }
.lp-scope .mockup-zkz .mock-cta-p { font-size: 0.55rem; font-weight: 700; background: #16a34a; color: #fff; padding: 2px 8px; border-radius: 4px; }
.lp-scope .mockup-zkz .mock-cta-o { font-size: 0.55rem; font-weight: 600; border: 1px solid #e2e8f0; color: #374151; padding: 2px 8px; border-radius: 4px; }
.lp-scope .mockup-zyb { background: linear-gradient(135deg,#fffaf6 0%,#f8f5f2 100%); height: 100%; padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.lp-scope .mockup-zyb .mock-nav { display: flex; justify-content: space-between; align-items: center; }
.lp-scope .mockup-zyb .mock-logo { font-size: 0.62rem; font-weight: 800; color: #8B5C2A; }
.lp-scope .mockup-zyb .mock-btn { font-size: 0.55rem; font-weight: 700; background: #8B5C2A; color: #fff; padding: 2px 8px; border-radius: 4px; }
.lp-scope .mockup-zyb .mock-h1 { font-size: 0.8rem; font-weight: 900; color: #3B2F23; line-height: 1.2; }
.lp-scope .mockup-zyb .mock-sub { font-size: 0.6rem; color: #a98467; }
.lp-scope .mockup-zyb .mock-ctas { display: flex; gap: 5px; }
.lp-scope .mockup-zyb .mock-cta-p { font-size: 0.55rem; font-weight: 700; background: #8B5C2A; color: #fff; padding: 2px 8px; border-radius: 4px; }
.lp-scope .mockup-zyb .mock-cta-o { font-size: 0.55rem; font-weight: 600; border: 1px solid #e3d9ce; color: #3B2F23; padding: 2px 8px; border-radius: 4px; }
.lp-scope .example-body { padding: 20px 24px; }
.lp-scope .example-tag { display: inline-block; font-size: 0.7rem; font-weight: 600; background: var(--bg); color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; margin-bottom: 8px; font-family: ui-monospace, "Cascadia Code", monospace; }
.lp-scope .example-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.lp-scope .example-body p { font-size: 0.83rem; color: var(--muted); margin-bottom: 14px; }
.lp-scope .example-link { font-size: 0.83rem; font-weight: 600; color: var(--accent); }
.lp-scope .example-link:hover { text-decoration: underline; }
.lp-scope #features { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-scope .features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lp-scope .feature-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px; }
.lp-scope .feature-icon { font-size: 1.5rem; margin-bottom: 12px; display: block; }
.lp-scope .feature-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.lp-scope .feature-card p { font-size: 0.83rem; color: var(--muted); }
.lp-scope #testimonials { background: var(--bg); }
.lp-scope .testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-scope .testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.lp-scope .testimonial-quote { font-size: 0.88rem; color: var(--text); flex: 1; }
.lp-scope .testimonial-author { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.lp-scope .t-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-light); color: var(--accent); font-size: 0.72rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1.5px solid #bfdbfe; letter-spacing: 0.03em; }
.lp-scope .t-name { font-size: 0.82rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.lp-scope .t-role { font-size: 0.75rem; color: var(--muted); line-height: 1.3; }
.lp-scope #pricing { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-scope .billing-toggle { display: flex; justify-content: center; gap: 4px; margin-bottom: 28px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 4px; width: fit-content; margin-left: auto; margin-right: auto; }
.lp-scope .billing-btn { padding: 7px 18px; border-radius: 7px; font-size: 0.85rem; font-weight: 600; border: none; cursor: pointer; background: transparent; color: var(--muted); transition: background 0.15s, color 0.15s; }
.lp-scope .billing-btn.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.lp-scope .save-badge { background: #dcfce7; color: #166534; font-size: 0.72rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.lp-scope .pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 720px; margin: 0 auto; }
.lp-scope .pricing-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 960px; }
.lp-scope .price-card { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 24px 20px; display: flex; flex-direction: column; gap: 12px; }
.lp-scope .price-card.featured { border-color: #93c5fd; box-shadow: 0 10px 24px rgba(12, 74, 110, 0.1); background: #eff6ff; }
.lp-scope .price-title { font-size: 1rem; font-weight: 700; }
.lp-scope .price-amount { font-size: 1.7rem; font-weight: 900; letter-spacing: -0.02em; }
.lp-scope .price-amount .price-per { font-size: 0.88rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.lp-scope .price-billed-note { font-size: 0.78rem; color: var(--muted); min-height: 1.1em; margin: -4px 0; }
.lp-scope .price-desc { font-size: 0.82rem; color: var(--muted); }
.lp-scope .price-list { list-style: none; display: flex; flex-direction: column; gap: 6px; padding: 0; margin: 0; flex: 1; }
.lp-scope .price-list li { font-size: 0.82rem; color: var(--text); }
.lp-scope .price-list li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.lp-scope .price-cta { width: 100%; margin-top: 4px; text-decoration: none; text-align: center; }
.lp-scope #faq { background: var(--bg); }
.lp-scope .faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.lp-scope .faq-item { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; background: var(--surface); }
.lp-scope .faq-q { font-size: 0.92rem; font-weight: 700; margin-bottom: 6px; }
.lp-scope .faq-a { font-size: 0.84rem; color: var(--muted); }
.lp-scope #cta-bottom { background: var(--accent); padding: 80px 0; text-align: center; color: #fff; }
.lp-scope #cta-bottom h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 12px; }
.lp-scope #cta-bottom p { opacity: 0.8; margin-bottom: 32px; font-size: 1.05rem; }
.lp-scope .hero-typed { margin: 0 auto 28px; font-size: 0.9rem; color: var(--muted); min-height: 1.5em; }
.lp-scope .typed-prompt { color: var(--accent); font-style: italic; font-weight: 500; }
.lp-scope .typed-cursor { display: inline-block; width: 2px; height: 0.85em; background: var(--accent); margin-left: 1px; vertical-align: text-bottom; animation: lp-blink 0.85s step-end infinite; }
@keyframes lp-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.lp-scope .fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.lp-scope .fade-up.visible { opacity: 1; transform: none; }
@media (max-width: 768px) {
  .lp-scope .steps { grid-template-columns: 1fr; gap: 0; }
  .lp-scope .step { border-bottom: 1px solid var(--border); padding: 28px 16px; }
  .lp-scope .step:last-child { border-bottom: none; }
  .lp-scope .examples-grid { grid-template-columns: 1fr; }
  .lp-scope .features-grid { grid-template-columns: 1fr 1fr; }
  .lp-scope .testimonials-grid { grid-template-columns: 1fr; }
  .lp-scope .pricing-grid, .lp-scope .pricing-grid-3 { grid-template-columns: 1fr; }
  .lp-scope .nav-link { display: none; }
}
@media (max-width: 480px) {
  .lp-scope .features-grid { grid-template-columns: 1fr; }
  .lp-scope .hero-actions { flex-direction: column; align-items: center; }
  .lp-scope .hero-actions .btn { width: 100%; max-width: 280px; }
}

/* ─── DDV footer styles (ported from v1 DDV_FOOTER_CSS) ────────────────── */
.ddv-footer { margin-top: 60px; background: var(--surface, #fff); border-top: 1px solid var(--border, #e5e7eb); padding: 56px 24px 0; color: var(--muted, #475569); font-size: 0.92rem; }
.ddv-footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.3fr; gap: 48px; align-items: start; padding-bottom: 32px; }
.ddv-footer-brand { max-width: 340px; display: grid; gap: 12px; }
.ddv-footer-logo { font-size: 1.1rem; font-weight: 800; color: var(--text, #0f172a); letter-spacing: -0.01em; }
.ddv-footer-desc { margin: 0; line-height: 1.55; font-size: 0.9rem; }
.ddv-footer-copy, .ddv-footer-parent { margin: 0; font-size: 0.82rem; color: var(--muted, #475569); }
.ddv-footer-logo-img { display: block; width: 40px; height: auto; margin-top: 4px; opacity: 0.9; }
.ddv-footer-head { margin: 0 0 12px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text, #0f172a); }
.ddv-footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ddv-footer-links a { color: var(--muted, #475569); text-decoration: none; transition: color 0.15s ease; font-size: 0.92rem; }
.ddv-footer-links a:hover { color: var(--accent, #0c4a6e); }
.ddv-footer-account { display: grid; gap: 10px; }
.ddv-footer-btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; text-decoration: none; border: 1.5px solid var(--border, #dbe3ef); cursor: pointer; transition: all 0.15s ease; font-family: inherit; }
.ddv-footer-btn-ghost { background: transparent; color: var(--text, #0f172a); }
.ddv-footer-btn-ghost:hover { border-color: var(--accent, #0c4a6e); color: var(--accent, #0c4a6e); }
.ddv-footer-btn-primary { background: var(--accent, #0c4a6e); color: #fff; border-color: var(--accent, #0c4a6e); }
.ddv-footer-btn-primary:hover { filter: brightness(1.08); }
.ddv-footer-apps { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 7px 10px; border-radius: 8px; color: var(--muted, #475569); text-decoration: none; font-size: 0.88rem; transition: all 0.15s ease; }
.ddv-footer-apps:hover { background: var(--accent-light, #dbeafe); color: var(--accent, #0c4a6e); }
.ddv-footer-apps-icon { fill: currentColor; flex-shrink: 0; }
.ddv-footer-newsletter { max-width: 1200px; margin: 0 auto; padding: 28px 0; border-top: 1px solid var(--border, #dbe3ef); display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 24px; align-items: center; }
.ddv-footer-newsletter-head { margin: 0 0 4px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text, #0f172a); }
.ddv-footer-newsletter-sub { margin: 0; font-size: 0.9rem; color: var(--muted, #475569); line-height: 1.5; }
.ddv-footer-newsletter-form { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.ddv-footer-newsletter-input { flex: 1 1 220px; min-width: 180px; padding: 9px 14px; border-radius: 8px; border: 1.5px solid var(--border, #dbe3ef); background: #fff; color: var(--text, #0f172a); font-size: 0.92rem; outline: none; transition: border-color 0.15s ease; font-family: inherit; }
.ddv-footer-newsletter-input:focus { border-color: var(--accent, #0c4a6e); }
.ddv-footer-newsletter-button { padding: 9px 18px; border-radius: 8px; border: 1.5px solid var(--accent, #0c4a6e); background: var(--accent, #0c4a6e); color: #fff; font-weight: 600; font-size: 0.92rem; cursor: pointer; transition: filter 0.15s ease; font-family: inherit; }
.ddv-footer-newsletter-button:hover { filter: brightness(1.08); }
.ddv-footer-newsletter-button:disabled { opacity: 0.6; cursor: not-allowed; }
.ddv-footer-newsletter-status { grid-column: 1 / -1; margin: 0; font-size: 0.84rem; color: var(--muted, #475569); min-height: 1.25em; }
.ddv-footer-newsletter-status[data-status="error"] { color: #b91c1c; }
.ddv-footer-newsletter-status[data-status="success"] { color: #166534; }
.ddv-footer-attribution { max-width: 1200px; margin: 0 auto; padding: 18px 0 28px; border-top: 1px solid var(--border, #dbe3ef); font-size: 0.82rem; color: var(--muted, #475569); line-height: 1.6; }
.ddv-footer-attribution p { margin: 0; }
@media (max-width: 960px) {
  .ddv-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ddv-footer-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 640px) {
  .ddv-footer-inner, .ddv-footer-newsletter { grid-template-columns: 1fr; gap: 24px; }
  .ddv-footer { padding: 40px 20px 0; }
}
