/* ------------------------------------------------------------------ *
 * Deepfin marketing + legal pages — shared styles.
 *
 * Standalone static pages (no build step, no framework). Palette and
 * type mirror the React app's design tokens in ui/src/index.css so the
 * public pages stay visually consistent with the product. No external
 * font/CDN requests — Inter is used where available, system fonts
 * otherwise (keeps the pages tracking-free, matching the privacy policy).
 * ------------------------------------------------------------------ */

:root {
  --background: hsl(0 0% 98%);
  --foreground: hsl(228 33% 8%);
  --card: hsl(0 0% 100%);
  --primary: hsl(218 47% 20%);
  --primary-foreground: hsl(0 0% 100%);
  --muted-foreground: hsl(220 9% 46%);
  --accent: hsl(220 14% 96%);
  --border: hsl(220 13% 91%);
  --positive: hsl(142 72% 37%);
  --dark: hsl(228 33% 8%);
  --dark-foreground: hsl(210 20% 98%);
  --radius: 10px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: hsl(0 0% 100% / 0.85);
  backdrop-filter: blur(8px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.brand img { width: 24px; height: 24px; }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--foreground); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { border-color: var(--border); background: transparent; color: var(--foreground); }
.btn-outline:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--accent); }
.btn-secondary { background: var(--card); color: var(--foreground); }
.btn-secondary:hover { opacity: 0.9; }
.btn-lg { padding: 12px 22px; font-size: 15px; }

/* ---- Hero ---- */
.hero { padding: 80px 0; text-align: center; }
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
}
.hero h1 {
  max-width: 760px;
  margin: 24px auto 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.hero p.lede {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: 18px;
  color: var(--muted-foreground);
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.trust-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  font-size: 14px;
  color: var(--muted-foreground);
}
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.tick { color: var(--positive); font-weight: 700; }

/* ---- Sections ---- */
.section { padding: 72px 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto; text-align: center; }
.section-head h2 { font-size: 30px; letter-spacing: -0.02em; font-weight: 600; margin: 0; }
.section-head p { color: var(--muted-foreground); margin-top: 12px; }

/* ---- Card grid ---- */
.grid { display: grid; gap: 20px; margin-top: 48px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: var(--radius);
  padding: 22px;
  transition: box-shadow 0.15s;
}
.section-alt .card { background: var(--background); }
.card:hover { box-shadow: 0 4px 18px hsl(228 33% 8% / 0.06); }
.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: hsl(218 47% 20% / 0.1);
  color: var(--primary);
  font-size: 20px;
}
.card h3 { margin: 16px 0 6px; font-size: 16px; font-weight: 600; }
.card p { margin: 0; font-size: 14px; color: var(--muted-foreground); }

/* ---- CTA ---- */
.cta { padding: 72px 0; }
.cta-inner {
  background: var(--dark);
  color: var(--dark-foreground);
  border-radius: 18px;
  padding: 56px 32px;
  text-align: center;
}
.cta-inner h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.02em; margin: 0 auto; max-width: 560px; font-weight: 600; }
.cta-inner p { max-width: 520px; margin: 16px auto 0; color: hsl(210 20% 98% / 0.7); }
.cta-inner .hero-actions { margin-top: 30px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); }
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 30px;
  font-size: 14px;
  color: var(--muted-foreground);
}
.site-footer .brand-mini { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--foreground); }
.site-footer .brand-mini img { width: 20px; height: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; color: var(--muted-foreground); }
.footer-links a:hover { color: var(--foreground); }

/* ---- Legal / document pages ---- */
.legal { padding: 56px 0 80px; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: 36px; letter-spacing: -0.02em; margin: 0 0 8px; font-weight: 600; }
.legal .updated { color: var(--muted-foreground); font-size: 14px; margin: 0 0 36px; }
.legal h2 { font-size: 20px; margin: 40px 0 12px; letter-spacing: -0.01em; font-weight: 600; }
.legal h3 { font-size: 16px; margin: 28px 0 8px; font-weight: 600; }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { font-weight: 600; }
.legal .lead {
  font-size: 17px;
  color: var(--foreground);
  border-left: 3px solid var(--border);
  padding-left: 18px;
  margin-bottom: 32px;
}
.legal .note {
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--muted-foreground);
}

/* ---- Tables (sub-processors) ---- */
.table-wrap { overflow-x: auto; margin: 28px 0; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.data th, table.data td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
table.data thead th {
  background: var(--accent);
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
}
table.data tbody tr:hover { background: hsl(220 14% 96% / 0.6); }
table.data td:first-child { font-weight: 600; white-space: nowrap; }
