/* ── ComplyCheck Design System ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

:root {
  --ink:    #0d1b2e;
  --paper:  #ffffff;
  --accent: #1565c0;
  --rule:   #cdd6e8;
  --muted:  #5a6e8c;
  --dark:   #0a1628;
  --white:  #eef0f5;
  --pad-h:  clamp(1.5rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: 'DM Sans', sans-serif; font-weight: 300; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); padding: 0 var(--pad-h); display: flex; align-items: center; height: 72px; gap: 2rem; }
.nav-logo { font-family: 'DM Serif Display', serif; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.02em; flex-shrink: 0; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 0.25rem; margin-left: auto; list-style: none; align-items: center; }
.nav-links a { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; color: var(--muted); padding: 0.4rem 0.75rem; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { background: var(--accent) !important; color: #fff !important; padding: 0.45rem 1.1rem !important; }
.nav-cta:hover { opacity: 0.88; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); }

/* FOOTER */
footer { background: #0d1929; color: #8a9bb5; padding: 4rem var(--pad-h) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid #162236; }
.footer-brand .nav-logo { color: var(--paper); display: inline-block; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; max-width: 260px; }
.footer-col h4 { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.875rem; text-decoration: none; color: #8a9bb5; transition: color 0.15s; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom a { color: #8a9bb5; text-decoration: none; }
.footer-bottom a:hover { color: var(--paper); }

/* UTILS */
.label { display: inline-block; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem; }
.btn { display: inline-block; padding: 0.85rem 2rem; font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: none; transition: opacity 0.2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: 0.86; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { opacity: 0.88; }
.page-hero { padding: 5rem var(--pad-h) 3.5rem; border-bottom: 1px solid var(--rule); max-width: 820px; }
.page-hero h1 { font-family: 'DM Serif Display', serif; font-size: clamp(2.4rem, 5vw, 3.75rem); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero p { font-size: 1.1rem; color: var(--muted); max-width: 520px; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--paper); padding: 2rem var(--pad-h); gap: 0.5rem; z-index: 99; }
  .nav-links.open a { font-size: 1.1rem; padding: 0.75rem 0; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Logo image styles ── */
.nav-logo-img {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-img img {
  height: 52px;
  width: auto;
  display: block;
}
.footer-logo-img {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 0.75rem;
}
.footer-logo-img img {
  height: 32px;
  width: auto;
  display: block;
}

/* ── New nav brand (icon + wordmark) ── */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-icon {
  height: 42px;
  width: auto;
  display: block;
}
.nav-wordmark {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.nav-wordmark em {
  font-style: normal;
  color: var(--accent);
}

/* ── Footer brand link ── */
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-bottom: 0.75rem;
}
.footer-icon {
  height: 36px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1) opacity(0.9);
}
.footer-wordmark {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--paper);
  line-height: 1;
}
.footer-wordmark em {
  font-style: normal;
  color: #6fa3e0;
}


/* ── Nav login link (added) ── */
.nav-login {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; text-decoration: none; color: var(--muted);
  padding: 0.4rem 0.75rem; transition: color 0.15s;
}
.nav-login:hover { color: var(--ink); }
