/* ════════════════════════════════════
   LeasePilot AI — Shared Stylesheet
════════════════════════════════════ */

:root {
  --blue: #1A6DFF;
  --blue-600: #0E5BE0;
  --blue-700: #0A48B8;
  --blue-50: #EEF4FF;
  --blue-100: #DCE8FF;
  --ink: #0A0E1A;
  --ink-2: #161B2C;
  --ink-3: #1F2638;
  --gray-900: #1F2937;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50: #F8FAFC;
  --bg: #FFFFFF;
  --green: #16A34A;
  --green-50: #ECFDF3;
  --amber: #D97706;
  --amber-50: #FEF6E7;
  --red: #DC2626;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(10,14,26,.06);
  --shadow-md: 0 6px 20px -8px rgba(10,14,26,.18), 0 2px 6px rgba(10,14,26,.06);
  --shadow-lg: 0 30px 60px -20px rgba(10,14,26,.35), 0 10px 24px -10px rgba(10,14,26,.18);
  --shadow-glow: 0 30px 80px -30px rgba(26,109,255,.55);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

.display, h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}
h1 { font-size: clamp(40px, 5.5vw, 72px); }
h2 { font-size: clamp(30px, 3.8vw, 48px); }
h3 { font-size: clamp(18px, 1.8vw, 24px); }
h4 { font-size: 18px; }
p { margin: 0; }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-feature-settings: "tnum"; }
.container { width: min(1160px, 100% - 48px); margin-inline: auto; }
.container-sm { width: min(760px, 100% - 48px); margin-inline: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 16px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap; cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px -8px rgba(26,109,255,.5), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--gray-200); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--blue-50); color: var(--blue-700);
  font-size: 13px; font-weight: 500; border: 1px solid var(--blue-100);
}
.eyebrow .dot {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--blue); color: #fff;
  display: inline-grid; place-items: center; font-size: 11px;
}

/* ── Pills ── */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.pill-blue  { background: var(--blue-50); color: var(--blue-700); }
.pill-green { background: var(--green-50); color: var(--green); }
.pill-amber { background: var(--amber-50); color: var(--amber); }
.pill-gray  { background: var(--gray-100); color: var(--gray-700); }

/* ── Section head ── */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--gray-700); line-height: 1.65; }
.section-head .eyebrow { margin-bottom: 20px; }

/* ── Page hero ── */
.page-hero {
  padding: 80px 0 72px;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
}
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 { max-width: 760px; margin: 0 auto; }
.page-hero p {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--gray-700); line-height: 1.65;
  max-width: 580px; margin: 20px auto 0;
}
.page-hero .hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(10,14,26,.06);
}
.nav-inner {
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--gray-700); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--blue); font-weight: 600; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ── Footer ── */
footer { padding: 64px 0 40px; border-top: 1px solid var(--gray-200); }
.foot-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { font-size: 14px; color: var(--gray-500); line-height: 1.65; max-width: 280px; }
.foot-col h5 { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; margin: 0 0 16px; color: var(--ink); }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; color: var(--gray-500); }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--gray-200); font-size: 13px; color: var(--gray-400); }
.foot-bottom .row { display: flex; gap: 20px; }
.foot-bottom a { color: var(--gray-400); }
.foot-bottom a:hover { color: var(--ink); }

/* ── Shared cards ── */
.card {
  background: var(--bg); border: 1px solid var(--gray-200);
  border-radius: var(--r-xl); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card.dark {
  background: radial-gradient(ellipse at top right, rgba(26,109,255,.2) 0%, transparent 65%), var(--ink);
  border-color: var(--ink-3); color: #E6E9F2;
}
.card.dark:hover { box-shadow: 0 20px 40px -10px rgba(26,109,255,.28), var(--shadow-md); }

/* ── Shared grid ── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.page-hero > * { animation: fadeUp .65s ease both; }
.page-hero .eyebrow { animation: fadeIn .5s ease both; }
.page-hero h1 { animation-delay: .1s; }
.page-hero p { animation-delay: .2s; }
.page-hero .hero-ctas { animation-delay: .3s; }

/* Scroll reveal */
.reveal { opacity: 0; }
.reveal.visible { animation: fadeUp .65s var(--reveal-delay, 0ms) ease both; }

/* ── Legal page layout ── */
.legal-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  padding: 64px 0 96px;
  align-items: start;
}
@media (max-width: 760px) { .legal-body { grid-template-columns: 1fr; gap: 32px; } }
.legal-toc {
  position: sticky; top: 88px;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--r-lg); padding: 20px;
}
.legal-toc h6 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-400); margin: 0 0 12px; }
.legal-toc a { display: block; font-size: 13px; color: var(--gray-500); padding: 5px 0; border-left: 2px solid transparent; padding-left: 10px; }
.legal-toc a:hover, .legal-toc a.active { color: var(--blue); border-color: var(--blue); }
.legal-content { max-width: 680px; }
.legal-content h2 { font-size: 22px; margin: 48px 0 16px; padding-top: 48px; border-top: 1px solid var(--gray-200); }
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content h3 { font-size: 16px; font-weight: 600; margin: 24px 0 10px; color: var(--gray-900); }
.legal-content p { font-size: 15px; color: var(--gray-700); line-height: 1.75; margin-bottom: 16px; }
.legal-content ul { padding-left: 20px; margin-bottom: 16px; }
.legal-content li { font-size: 15px; color: var(--gray-700); line-height: 1.75; margin-bottom: 6px; }
.legal-meta { font-size: 13px; color: var(--gray-400); margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--gray-200); }

/* ── Avatar ── */
.av {
  width: 40px; height: 40px; border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), #7C3AFF);
  display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
  font-family: 'Space Grotesk', sans-serif;
}
.av.b { background: linear-gradient(135deg, #059669, #0D9488); }
.av.c { background: linear-gradient(135deg, #D97706, #F59E0B); }
.av.d { background: linear-gradient(135deg, #7C3AFF, #A855F7); }
.av.e { background: linear-gradient(135deg, #DC2626, #F87171); }
