/* marketing.css — Shared base styles for LensPilot marketing/info pages
   Used by: landing.html, pricing.html, docs.html, changelog.html, privacy.html, tos.html
   v2 — 2026-07 visual refresh (same selectors & variable names, richer design tokens) */

/* ── Theme Variables ── */
:root, [data-theme="light"] {
  --bg: #f6f8fc; --bg2: #ffffff; --bg3: #eef2f9;
  --text: #0f172a; --text2: #525f7a; --text3: #8b95ab;
  --brand: #3b82f6; --brand2: #8b5cf6; --border: #e3e9f4;
  --accent: #f59e0b; --green: #22c55e; --red: #ef4444;
  --grad: linear-gradient(135deg, var(--brand), var(--brand2));
  --nav-bg: rgba(255, 255, 255, .72);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-md: 0 10px 30px -6px rgba(15, 23, 42, .1);
  --shadow-lg: 0 24px 60px -12px rgba(15, 23, 42, .16);
  --ring: 0 0 0 4px rgba(59, 130, 246, .12);
}
[data-theme="dark"] {
  --bg: #07080f; --bg2: #0f1120; --bg3: #171a2c;
  --text: #e9ebf4; --text2: #9aa0b6; --text3: #646a82;
  --brand: #5b95ff; --brand2: #a78bfa; --border: #22263e;
  --accent: #f59e0b; --green: #22c55e; --red: #ef4444;
  --grad: linear-gradient(135deg, var(--brand), var(--brand2));
  --nav-bg: rgba(9, 10, 18, .68);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-md: 0 10px 30px -6px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .55);
  --ring: 0 0 0 4px rgba(91, 149, 255, .18);
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.7; transition: background .3s, color .3s;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { text-decoration: underline; }
::selection { background: rgba(59, 130, 246, .22); }

/* ── Navigation (shared across all marketing pages) ── */
#topnav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; padding-top: max(14px, env(safe-area-inset-top));
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: background .3s, box-shadow .3s;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 4px 24px -8px rgba(15, 23, 42, .06);
}
#topnav .brand {
  font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px;
  color: var(--text); text-decoration: none; letter-spacing: .2px;
}
#topnav .brand:hover { text-decoration: none; }
#topnav .brand svg { vertical-align: middle; margin-top: -2px; }
#topnav .nav-links { display: flex; gap: 6px; align-items: center; }
#topnav .nav-links a {
  color: var(--text2); text-decoration: none; font-size: 13px;
  padding: 6px 12px; border-radius: 8px; transition: color .2s, background .2s;
}
#topnav .nav-links a:hover { color: var(--text); text-decoration: none; background: var(--bg3); }

#theme-btn {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); padding: 6px 10px; border-radius: 8px;
  cursor: pointer; font-size: 16px; line-height: 1;
  transition: all .2s;
}
#theme-btn:hover { color: var(--text); border-color: var(--brand); box-shadow: var(--ring); }

/* ── Buttons (shared) ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 12px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: all .25s cubic-bezier(.2, .6, .2, 1);
  text-decoration: none; position: relative; overflow: hidden;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 6px 24px -4px rgba(59, 130, 246, .45);
}
.btn-primary::after { /* shine sweep */
  content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .55s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px -6px rgba(99, 102, 241, .55);
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:active { transform: translateY(0); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text2); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--ring); }
.btn-disabled { background: var(--bg3); color: var(--text3); cursor: not-allowed; }
.btn-disabled:hover { transform: none; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 8px; }
.btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer (shared) ── */
footer {
  text-align: center; padding: 48px 20px 40px; color: var(--text3);
  font-size: 13px; border-top: 1px solid var(--border);
  background: var(--bg2);
}
footer a { color: var(--text2); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--brand); }

/* ── Section Helpers ── */
.section { padding: 96px 20px; max-width: 1200px; margin: 0 auto; }
.section-label {
  display: table; margin: 0 auto 14px; padding: 5px 16px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 3px;
  color: var(--brand); font-weight: 700;
  background: rgba(59, 130, 246, .08);
  border: 1px solid rgba(59, 130, 246, .18);
  border-radius: 999px;
}
.section h2 {
  text-align: center; font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  letter-spacing: -.5px; margin-bottom: 16px;
}
.section .subtitle {
  text-align: center; color: var(--text2); font-size: 16px;
  margin-bottom: 60px; max-width: 760px; margin-left: auto; margin-right: auto;
}
.section .subtitle strong, .section .subtitle b { color: var(--text); }

/* ── Content Pages (privacy, tos, docs) ── */
.content-page { max-width: 800px; margin: 0 auto; padding: 64px 20px 80px; }
.content-page h1 { font-size: 32px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 8px; }
.content-page h2 { font-size: 21px; font-weight: 700; margin: 40px 0 12px; padding-top: 28px; border-top: 1px solid var(--border); }
.content-page h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.content-page p { margin-bottom: 12px; font-size: 15px; color: var(--text2); line-height: 1.85; }
.content-page ul, .content-page ol { margin: 8px 0 16px 24px; font-size: 14px; color: var(--text2); }
.content-page li { margin-bottom: 6px; }
.content-page table {
  width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.content-page th, .content-page td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.content-page th { background: var(--bg3); font-weight: 600; }
.content-page td { color: var(--text2); }
.last-updated { color: var(--text3); font-size: 13px; margin-bottom: 32px; }

/* ── Coming Soon / Empty State ── */
.coming-soon { font-size: 11px; color: var(--text3); margin-top: 4px; }

/* ── Scroll Reveal (opt-in via JS) ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .6, .2, 1), transform .7s cubic-bezier(.2, .6, .2, 1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  #topnav .nav-links { gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #topnav .nav-links a { font-size: 12px; white-space: nowrap; padding: 5px 8px; }
  .section { padding: 56px 16px; }
  .content-page { padding: 40px 16px 56px; }
}
