/* Shared styles for all solution/use-case pages */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --brand: #6366f1;
  --brand-dark: #4f46e5;
  --brand-light: #eef2ff;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #818cf8;
    --brand-dark: #6366f1;
    --brand-light: #1e1b4b;
    --text: #f1f5f9;
    --text-2: #94a3b8;
    --text-3: #475569;
    --surface: #0f172a;
    --surface-2: #1e293b;
    --border: #334155;
  }
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

/* ── Nav ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}

.nav-logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.1rem; }
.nav-logo svg { width: 28px; height: 28px; }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { text-decoration: none; color: var(--text-2); font-size: .9rem; font-weight: 500; transition: color .15s; }
.nav-link:hover { color: var(--brand); }

.nav-cta {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .5rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.nav-cta:hover { background: var(--brand-dark); }

/* ── Hero ── */
.hero {
  padding: 5rem 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem 2rem; }
}

.hero-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .75rem;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  text-wrap: balance;
  margin-bottom: 1.25rem;
}
.hero-title em { font-style: normal; color: var(--brand); }
.hero-desc { color: var(--text-2); font-size: 1.1rem; line-height: 1.7; margin-bottom: 2rem; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary { background: var(--brand); color: #fff; padding: .75rem 1.5rem; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: .95rem; transition: background .15s; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { border: 1px solid var(--border); color: var(--text); padding: .75rem 1.5rem; border-radius: 8px; font-weight: 500; text-decoration: none; font-size: .95rem; transition: border-color .15s; }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }

.hero-visual {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 280px;
  display: flex; flex-direction: column; gap: 1rem;
}

/* ── Doc type cards ── */
.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .75rem 1rem;
  display: flex; align-items: center; gap: .75rem;
  font-size: .85rem;
  font-weight: 500;
}
.doc-icon { font-size: 1.2rem; flex-shrink: 0; }

/* ── Section ── */
.section { padding: 5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: .5rem; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; text-wrap: balance; }
.section-desc { color: var(--text-2); font-size: 1rem; max-width: 580px; line-height: 1.7; margin-bottom: 3rem; }

.section-alt { background: var(--surface-2); }

/* ── Feature grid ── */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.section-alt .feat-card { background: var(--surface); }

.feat-icon {
  width: 42px; height: 42px;
  background: var(--brand-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--brand);
}
.feat-title { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.feat-desc { color: var(--text-2); font-size: .9rem; line-height: 1.6; }

/* ── Doc types strip ── */
.doc-types { padding: 3rem 2rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.doc-types-inner { max-width: 1100px; margin: 0 auto; }
.doc-types-label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1.25rem; }
.doc-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.doc-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem .9rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-2);
}

/* ── Stats ── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.stat { text-align: center; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: .25rem; }
.stat-label { font-size: .8rem; color: var(--text-2); font-weight: 500; }

/* ── CTA banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  color: #fff;
  margin-top: 4rem;
}
.cta-banner h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: .75rem; }
.cta-banner p { opacity: .85; margin-bottom: 1.5rem; font-size: 1rem; }
.btn-white { background: #fff; color: var(--brand); padding: .75rem 1.75rem; border-radius: 8px; font-weight: 700; text-decoration: none; font-size: .95rem; }

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 1rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  font-size: .82rem;
  color: var(--text-3);
  display: flex; align-items: center; gap: .4rem;
}
.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { color: var(--text-3); }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: .82rem;
  color: var(--text-3);
  margin-top: 4rem;
}
.site-footer a { color: var(--text-2); text-decoration: none; margin: 0 .5rem; }
.site-footer a:hover { color: var(--brand); }
