/* ===================================================
   LivingLedger Marketing Site — v2
   Design: bold, AI-forward, modern SaaS
   =================================================== */

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

:root {
  --blue:        #2563eb;
  --blue-dark:   #1d4ed8;
  --blue-light:  #eff6ff;
  --green:       #10b981;
  --green-light: #f0fdf4;
  --slate-900:   #0f172a;
  --slate-800:   #1e293b;
  --slate-600:   #475569;
  --slate-500:   #64748b;
  --slate-400:   #94a3b8;
  --slate-300:   #cbd5e1;
  --slate-200:   #e2e8f0;
  --slate-100:   #f1f5f9;
  --slate-50:    #f8fafc;
  --white:       #ffffff;
  --radius:      14px;
  --radius-lg:   24px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.14);
  --max-w:       1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--slate-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; }
.container { width: 90%; max-width: var(--max-w); margin: 0 auto; }
.text-center { text-align: center; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
  z-index: 100; padding: 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 75px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--slate-600); font-size: .95rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.btn { color: #fff; }
.nav-links a.btn:hover { color: #fff; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: .7rem 1.6rem; border-radius: 8px;
  font-weight: 600; font-size: 1rem; background: var(--blue); color: #fff;
  transition: background .2s, transform .15s, box-shadow .2s;
  border: 2px solid transparent; cursor: pointer;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,99,235,.35); }
.btn-lg { padding: .9rem 2.2rem; font-size: 1.05rem; border-radius: 10px; }
.btn-sm { padding: .45rem 1rem; font-size: .9rem; }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--blue-light); box-shadow: none; transform: translateY(-1px); }
.btn-green { background: var(--green); }
.btn-green:hover { background: #059669; box-shadow: 0 4px 14px rgba(16,185,129,.35); }

/* ---- Hero ---- */
.hero {
  padding: 4rem 0 0;
  background: linear-gradient(150deg, #eff6ff 0%, #f0fdf4 60%, #fafafa 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center; padding-bottom: 3rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(37,99,235,.1); color: var(--blue);
  font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem .85rem; border-radius: 100px; margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.12; letter-spacing: -0.03em; color: var(--slate-900); margin-bottom: 1.25rem;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-sub { font-size: 1.15rem; color: var(--slate-600); margin-bottom: 2rem; max-width: 460px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 2.5rem; }
.hero-social-proof { display: flex; align-items: center; gap: .75rem; font-size: .88rem; color: var(--slate-500); }
.hero-social-proof .stars { color: #f59e0b; }
.hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }

/* Phone mockup */
.phone-wrap { position: relative; width: 240px; flex-shrink: 0; }
.phone-frame {
  width: 240px; background: var(--slate-900); border-radius: 38px; padding: 12px;
  box-shadow: 0 30px 80px rgba(15,23,42,.35), 0 0 0 1px rgba(255,255,255,.08);
  position: relative; z-index: 2;
}
.phone-screen {
  background: var(--white); border-radius: 28px; overflow: hidden;
  aspect-ratio: 9/19.5;
}
.phone-screenshot {
  width: 100%; height: 100%; object-fit: cover; object-position: top; display: block;
}
.phone-badge {
  position: absolute; background: var(--white); border-radius: 12px;
  padding: .55rem .85rem; box-shadow: var(--shadow-lg);
  font-size: .78rem; font-weight: 600; white-space: nowrap;
  display: flex; align-items: center; gap: .4rem; z-index: 10;
}
.phone-badge.top-left { top: 8%; left: -30%; }
.phone-badge.bottom-right { bottom: 8%; right: -26%; }

/* Logos bar */
.logos-bar { border-top: 1px solid var(--slate-200); padding: 1.25rem 0; background: var(--white); }
.logos-bar-inner { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.logos-bar-label { font-size: .8rem; color: var(--slate-500); font-weight: 500; white-space: nowrap; }
.tech-pill {
  display: flex; align-items: center; gap: .35rem;
  background: var(--slate-100); border-radius: 100px;
  padding: .3rem .8rem; font-size: .78rem; color: var(--slate-600); font-weight: 500;
}

/* ---- Sections ---- */
.section { padding: 5rem 0; }
.section-alt { background: var(--slate-100); }
.section-label {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .5rem;
  display: block;
}
.section h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -0.025em; margin-bottom: .6rem; line-height: 1.2; }
.section-sub { color: var(--slate-500); font-size: 1.05rem; margin-bottom: 3rem; max-width: 560px; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 1.25rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* Pain cards */
.pain-grid { max-width: 860px; margin: 2.5rem auto 0; }
.pain-card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.pain-card .icon { font-size: 1.6rem; margin-bottom: .75rem; }
.pain-card h3 { font-size: 1rem; margin-bottom: .3rem; color: var(--slate-800); }
.pain-card p { font-size: .92rem; color: var(--slate-500); line-height: 1.6; }

/* AI Feature Spotlight */
.ai-feature {
  background: var(--slate-900); border-radius: var(--radius-lg); padding: 3.5rem;
  color: var(--white); display: grid; grid-template-columns: 1fr;
  gap: 2rem; align-items: center;
}
.ai-feature-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(124,58,237,.25); color: #c4b5fd;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .75rem; border-radius: 100px; margin-bottom: 1rem;
}
.ai-feature h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.025em;
  margin-bottom: 1rem; line-height: 1.2; color: var(--white);
}
.ai-feature p { color: #94a3b8; font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.5rem; }
.ai-bullets { list-style: none; display: flex; flex-direction: column; gap: .65rem; margin-bottom: 2rem; }
.ai-bullets li { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; color: #cbd5e1; }
.ai-bullets li::before { content: "✦"; color: #a78bfa; font-size: .7rem; margin-top: .25rem; flex-shrink: 0; }

.scan-demo {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 1.5rem;
}
.scan-demo-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #94a3b8; margin-bottom: 1rem; display: block;
}
.scan-item {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: .65rem .85rem; margin-bottom: .5rem;
  display: flex; align-items: center; gap: .75rem;
}
.scan-item-icon { font-size: 1.1rem; flex-shrink: 0; }
.scan-item-info { flex: 1; }
.scan-item-name { font-weight: 600; color: var(--white); font-size: .82rem; }
.scan-item-meta { color: #94a3b8; font-size: .72rem; }
.scan-confidence {
  font-size: .68rem; font-weight: 700;
  background: rgba(16,185,129,.2); color: #34d399;
  padding: .15rem .45rem; border-radius: 4px; white-space: nowrap;
}
.scan-footer {
  margin-top: .75rem; padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .72rem; color: #64748b;
  display: flex; align-items: center; justify-content: space-between;
}
.scan-footer strong { color: #a78bfa; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.step { text-align: center; padding: 0 1rem; position: relative; }
.step:not(:last-child)::after {
  content: "→"; position: absolute; right: -1.1rem; top: 1.1rem;
  font-size: 1.5rem; color: var(--slate-200);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 50%; background: var(--blue); color: #fff;
  font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem;
  box-shadow: 0 0 0 6px #dbeafe;
}
.step h3 { font-size: 1.05rem; margin-bottom: .4rem; color: var(--slate-800); }
.step p { font-size: .92rem; color: var(--slate-500); line-height: 1.65; max-width: 240px; margin: 0 auto; }
.step-tag {
  display: inline-block; margin-top: .6rem; font-size: .72rem; font-weight: 700;
  background: var(--blue-light); color: var(--blue); padding: .15rem .5rem; border-radius: 4px;
}

/* Features grid */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 3rem; }
.feat-card {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
}
.feat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feat-icon { font-size: 2rem; margin-bottom: .85rem; }
.feat-card h3 { font-size: 1.1rem; margin-bottom: .4rem; color: var(--slate-800); }
.feat-card p { font-size: .93rem; color: var(--slate-500); line-height: 1.65; }
.feat-chip {
  display: inline-block; margin-top: .75rem; font-size: .72rem; font-weight: 700;
  background: var(--green-light); color: var(--green); padding: .2rem .55rem; border-radius: 4px;
}

/* PWA bar */
.pwa-bar { background: var(--slate-900); color: var(--white); padding: 1.5rem 0; }
.pwa-bar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.pwa-bar-text strong { display: block; font-size: 1rem; }
.pwa-bar-text span { font-size: .88rem; color: #94a3b8; }
.pwa-platforms { display: flex; gap: .5rem; flex-wrap: wrap; }
.pwa-pill {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; padding: .4rem .9rem; font-size: .82rem; color: #cbd5e1;
  display: flex; align-items: center; gap: .4rem;
  cursor: pointer; text-decoration: none; transition: background .2s;
}
.pwa-pill:hover { background: rgba(255,255,255,.15); }

/* Pricing */
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem; max-width: 700px; margin: 3rem auto 0;
}
.pricing-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
  max-width: 960px;
}
.pricing-card {
  background: var(--white); border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg); padding: 2rem; text-align: center;
}
.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}
.pricing-badge {
  display: inline-block; background: var(--blue); color: white;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .25rem .7rem; border-radius: 100px; margin-bottom: .75rem;
}
.pricing-card h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.price { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price span { font-size: 1rem; font-weight: 400; color: var(--slate-500); }
.price-sub { font-size: .85rem; color: var(--slate-500); margin: .5rem 0 1.5rem; }
.price-sub s { color: var(--slate-400); text-decoration: line-through; }
.pricing-card ul {
  list-style: none; text-align: left; margin-bottom: 1.75rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.pricing-card li { font-size: .92rem; color: var(--slate-600); display: flex; align-items: flex-start; gap: .5rem; }
.pricing-card li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }
.pricing-card li.muted { color: var(--slate-400); }
.pricing-card li.muted::before { content: "·"; color: var(--slate-300); }
.pricing-card li.pro-only { color: var(--slate-500); }
.pricing-card li.pro-only::before { content: ""; width: 0; margin: 0; }
.pro-badge {
  display: inline-block; margin-left: .35rem;
  background: var(--blue-light); color: var(--blue);
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  padding: .1rem .4rem; border-radius: 4px;
}
.pricing-card .btn { width: 100%; text-align: center; display: block; }

/* Pricing Trust Badges */
.pricing-trust {
  display: flex; align-items: center; justify-content: center; gap: 2rem;
  margin-top: 2rem; flex-wrap: wrap;
}
.pricing-trust span {
  font-size: .88rem; color: var(--slate-500); font-weight: 500;
  display: flex; align-items: center; gap: .4rem;
}

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: 12px;
  padding: 1.5rem; text-align: left; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; position: relative;
}
.testimonial-mark {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem; line-height: 1; color: var(--blue);
  font-weight: 700; margin-bottom: .5rem;
}
.testimonial-quote {
  font-style: italic; font-size: .98rem; color: var(--slate-800);
  line-height: 1.6; margin-bottom: 1.25rem; flex: 1;
}
.testimonial-meta {
  border-top: 1px solid var(--slate-200);
  padding-top: .85rem;
}
.testimonial-name { font-size: .92rem; font-weight: 700; color: var(--slate-800); margin-bottom: .15rem; }
.testimonial-id { font-size: .82rem; color: var(--slate-500); }

/* Hero how-link */
.hero-how-link { margin-bottom: 1.5rem; }
.hero-how-link a { font-size: .92rem; color: var(--blue); font-weight: 500; }
.hero-how-link a:hover { text-decoration: underline; }

/* Prompt section */
.prompt-section { background: linear-gradient(150deg, #eff6ff 0%, #f0fdf4 100%); }

/* Demo steps (AI scanner) */
.demo-steps { display: flex; flex-direction: column; gap: 1.25rem; margin: 1.5rem 0 1.5rem; }
.demo-step {
  display: flex; align-items: flex-start; gap: 1rem;
}
.demo-step-icon {
  width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); border-radius: 10px;
  font-size: 1.1rem;
}
.demo-step strong { color: var(--white); font-size: .95rem; display: block; margin-bottom: .15rem; }
.demo-step p { color: #94a3b8; font-size: .88rem; line-height: 1.5; margin: 0; }
.ai-feature-note { font-size: .88rem; color: #94a3b8; font-weight: 600; margin-bottom: 1.5rem; }

/* Comparison table */
.compare-table-wrap { overflow-x: auto; margin-top: 2.5rem; }
.compare-table {
  width: 100%; border-collapse: collapse; min-width: 600px;
  font-size: .92rem;
}
.compare-table th, .compare-table td {
  padding: .85rem 1rem; text-align: center; border-bottom: 1px solid var(--slate-200);
}
.compare-table th { font-weight: 700; color: var(--slate-800); background: var(--slate-50); }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; font-weight: 500; color: var(--slate-600); }
.compare-table .compare-highlight { background: rgba(37,99,235,.06); color: var(--blue); font-weight: 700; }
.compare-table th.compare-highlight { background: rgba(37,99,235,.1); color: var(--blue); }
.compare-table tbody tr:hover { background: var(--slate-50); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.5rem; max-width: 900px; margin-left: auto; margin-right: auto; }
.faq-item { text-align: left; }
.faq-item h3 { font-size: 1rem; color: var(--slate-800); margin-bottom: .35rem; }
.faq-item p { font-size: .92rem; color: var(--slate-500); line-height: 1.65; }

/* CTA Section */
.cta-section {
  background: linear-gradient(150deg, var(--blue) 0%, #1d4ed8 50%, #4f46e5 100%);
  padding: 5rem 0; text-align: center;
}
.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white); letter-spacing: -0.025em; margin-bottom: .75rem;
}
.cta-section p { color: rgba(255,255,255,.75); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-note { font-size: .85rem; color: rgba(255,255,255,.55); margin-top: 1rem; }

/* Footer */
.footer { padding: 2rem 0; border-top: 1px solid var(--slate-200); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-logo { display: inline-flex; align-items: center; }
.footer-logo img { height: 75px; width: auto; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: .88rem; color: var(--slate-500); transition: color .15s; }
.footer-links a:hover { color: var(--blue); }
.footer-copy { font-size: .85rem; color: var(--slate-400); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-bottom: 2rem; }
  .hero-ctas { justify-content: center; }
  .hero-social-proof { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-visual { margin-top: 1rem; }
  .phone-badge.top-left { left: -10%; }
  .phone-badge.bottom-right { right: -10%; }
  .ai-feature { grid-template-columns: 1fr; padding: 2.5rem; }
  .steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .step::after { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .pricing-grid.three-col { grid-template-columns: 1fr; max-width: 420px; }
  .cols-2 { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .faq-grid { grid-template-columns: 1fr; }
  .hero-how-link { text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 560px) {
  /* Nav */
  .nav-links a:not(.btn) { display: none; }
  .nav-logo img { height: 50px; }

  /* Hero */
  .hero { padding: 2.5rem 0 0; }
  .hero h1 { font-size: 1.8rem; }
  .hero-badge { font-size: .72rem; }
  .hero-sub { font-size: 1rem; }
  .hero-ctas { flex-direction: column; align-items: center; gap: .75rem; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .hero-social-proof { flex-direction: column; gap: .25rem; font-size: .8rem; text-align: center; }
  .phone-badge { display: none; }

  /* Tech bar */
  .logos-bar-inner { gap: .5rem; }
  .tech-pill { font-size: .7rem; padding: .2rem .6rem; }
  .logos-bar-label { font-size: .72rem; }

  /* Sections */
  .section { padding: 3rem 0; }
  .section h2 { font-size: 1.5rem; }
  .section-sub { font-size: .95rem; margin-bottom: 2rem; }

  /* Pain cards */
  .pain-grid { margin-top: 1.5rem; }

  /* Testimonials */
  .testimonial-card { padding: 1.25rem; }
  .testimonial-mark { font-size: 2.8rem; }
  .testimonial-quote { font-size: .92rem; }

  /* Comparison table */
  .compare-table { font-size: .82rem; }
  .compare-table th, .compare-table td { padding: .6rem .5rem; }

  /* FAQ */
  .faq-item h3 { font-size: .95rem; }
  .faq-item p { font-size: .88rem; }

  /* Pricing trust */
  .pricing-trust { gap: 1rem; flex-direction: column; }
  .pricing-trust span { font-size: .8rem; }

  /* AI feature */
  .ai-feature { padding: 1.75rem; border-radius: 16px; }
  .ai-feature h2 { font-size: 1.4rem; }
  .ai-feature p { font-size: .95rem; }
  .ai-bullets li { font-size: .88rem; }

  /* Steps */
  .step p { font-size: .88rem; }

  /* Features */
  .feat-card { padding: 1.25rem; }
  .feat-card p { font-size: .88rem; }

  /* PWA bar */
  .pwa-bar-inner { flex-direction: column; text-align: center; }
  .pwa-platforms { justify-content: center; flex-wrap: wrap; }
  .pwa-pill { font-size: .75rem; padding: .3rem .7rem; }

  /* Pricing */
  .pricing-card { padding: 1.5rem; }
  .price { font-size: 2.2rem; }
  .pricing-card li { font-size: .88rem; }

  /* CTA */
  .cta-section { padding: 3.5rem 0; }
  .cta-section h2 { font-size: 1.5rem; }
  .cta-section p { font-size: 1rem; }

  /* Footer */
  .footer-logo img { height: 50px; }
  .footer-links { gap: 1rem; }
  .footer-links a { font-size: .82rem; }
}

/* Install Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem;
  max-width: 560px; width: 90%; max-height: 85vh; overflow-y: auto;
  position: relative; box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute; top: .75rem; right: 1rem; background: none; border: none;
  font-size: 1.8rem; cursor: pointer; color: var(--slate-400); line-height: 1;
}
.modal-close:hover { color: var(--slate-700); }
.modal h2 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.install-block { margin-bottom: 1.5rem; }
.install-block:last-child { margin-bottom: 0; }
.install-block h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.install-block ol { padding-left: 1.25rem; }
.install-block li { font-size: .92rem; color: var(--slate-600); margin-bottom: .35rem; line-height: 1.5; }
.install-block li strong { color: var(--slate-800); }
.feat-link {
  display: inline-block; margin-top: .5rem; font-size: .85rem;
  color: var(--blue); font-weight: 600; text-decoration: none;
}
.feat-link:hover { text-decoration: underline; }
}