/* =========================================================
   DentIQ — Landing + Docs shared styles
   Aesthetic: modern professional + warm, medical trust
   ========================================================= */

:root {
  /* Type */
  --font-display: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Lexend", "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Colors — cool clean, confident indigo + fresh sage accent */
  --bg: #f7f8fb;
  --bg-tint: #eef0f6;
  --surface: #ffffff;
  --surface-2: #f9fafd;
  --ink: #0b1020;
  --ink-2: #1f2638;
  --muted: #5a6478;
  --muted-2: #8b94a8;
  --line: #e3e6ee;
  --line-2: #eaedf4;

  /* Primary — confident indigo */
  --primary: oklch(0.42 0.16 265);
  --primary-strong: oklch(0.34 0.18 265);
  --primary-soft: oklch(0.965 0.022 265);
  --primary-tint: oklch(0.92 0.045 265);
  --primary-ink: #ffffff;

  /* Accent — fresh sage / mint healthcare */
  --accent: oklch(0.68 0.11 165);
  --accent-soft: oklch(0.96 0.025 165);

  /* Status */
  --success: oklch(0.6 0.13 155);
  --success-soft: oklch(0.95 0.03 155);
  --warn: oklch(0.7 0.13 75);
  --danger: oklch(0.58 0.17 25);

  /* Layout */
  --container: 1200px;
  --container-narrow: 960px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(11, 16, 32, 0.04), 0 1px 1px rgba(11, 16, 32, 0.02);
  --shadow: 0 1px 3px rgba(11, 16, 32, 0.05), 0 4px 12px rgba(11, 16, 32, 0.04);
  --shadow-lg: 0 14px 40px -10px rgba(11, 16, 32, 0.18), 0 6px 16px rgba(11, 16, 32, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* ---------- Type ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 5.8vw, 68px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.028em; font-weight: 600; }
h3 { font-size: clamp(18px, 2.2vw, 26px); line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; }
h4 { font-size: 17px; line-height: 1.35; font-weight: 600; }

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

mark {
  background: linear-gradient(180deg, transparent 60%, var(--primary-tint) 60%);
  color: inherit;
  padding: 0 0.05em;
}

::selection {
  background: var(--primary-tint);
  color: var(--primary-strong);
}

/* ---------- Utility ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.lede {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--ink-2);
  color: #fff;
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--ink-2);
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--bg-tint);
  color: var(--ink);
}
.btn-lg {
  padding: 14px 24px;
  font-size: 16px;
}
.btn-sm {
  padding: 8px 14px;
  font-size: 14px;
}
.btn .arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(2px); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled { border-bottom-color: var(--line); }
.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark svg { 
  width: auto; height: 16px; 
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .15s;
}
.nav-links a:hover { background: var(--bg-tint); color: var(--ink); }
.nav-links a.active { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 8px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding: 64px 0 32px;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
  max-width: 32ch;
}
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  color: var(--ink-2);
}
.footer-col a:hover { color: var(--primary); }
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-base { flex-direction: column; gap: 8px; text-align: center; }
  .site-footer { padding: 40px 0 24px; margin-top: 48px; }
}

/* ---------- Section primitives ---------- */
section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-header {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-header h2 {
  margin-top: 12px;
}
.section-header p {
  color: var(--muted);
  font-size: 18px;
  margin-top: 16px;
  max-width: 56ch;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .15s, transform .15s;
}
.card:hover {
  border-color: var(--ink);
}

/* ---------- Pill / tag ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.pill.pill-primary {
  border-color: var(--primary-tint);
  background: var(--primary-soft);
  color: var(--primary-strong);
}
.pill.pill-accent {
  border-color: oklch(0.85 0.06 45);
  background: var(--accent-soft);
  color: oklch(0.45 0.13 45);
}
.pill.pill-success {
  border-color: oklch(0.85 0.06 155);
  background: var(--success-soft);
  color: oklch(0.4 0.13 155);
}

/* ---------- Misc UI ---------- */
.divider {
  height: 1px;
  background: var(--line);
  margin: 0;
}

.kbd {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 6px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-2);
}
