/* ==========================================================
   KLIQUEIT — Plain static site styles
   No Tailwind, no framework. Pure CSS, works everywhere.
   Tokens: --ink #0B1220  --deep #0B2545  --blue #2F5FE0
   Fonts: Space Grotesk (display) / Inter (body) / IBM Plex Mono (labels)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --ink: #0B1220;
  --deep: #0B2545;
  --blue: #2F5FE0;
  --slate: #64748B;
  --slate-light: #E2E8F0;
  --mist: #EEF2F8;
  --paper: #FFFFFF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
h1, h2, h3 { font-family: 'Space Grotesk', Arial, sans-serif; font-weight: 700; margin: 0; }
p { margin: 0; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

.mono { font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.06em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--slate-light);
  backdrop-filter: blur(6px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); }
.logo-mark { width: 36px; height: 36px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a, .nav .dropdown > button { padding: 10px 16px; font-size: 14px; font-weight: 500; color: #334155; display: inline-flex; align-items: center; gap: 4px; }
.nav a.active, .nav .dropdown.active > button { color: var(--blue); }
.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; width: 300px;
  background: #fff; border: 1px solid var(--slate-light); box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  padding: 8px 0;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 14px; color: #334155; }
.dropdown-menu a:hover { background: var(--mist); }
.dropdown-menu .code { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--blue); opacity: 0.7; }
.header-cta { padding: 10px 20px; background: var(--deep); color: #fff; font-weight: 600; font-size: 14px; }
.menu-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--ink); }

/* Mobile nav */
.mobile-nav { display: none; background: #fff; border-top: 1px solid var(--slate-light); padding: 16px 24px; }
.mobile-nav.open { display: block; }
.mobile-nav details summary { padding: 12px 0; font-weight: 500; color: #334155; border-bottom: 1px solid #F1F5F9; cursor: pointer; }
.mobile-nav details a { display: block; padding: 8px 0 8px 16px; font-size: 14px; color: var(--slate); }
.mobile-nav > a { display: block; padding: 12px 0; font-weight: 500; color: #334155; border-bottom: 1px solid #F1F5F9; }
.mobile-nav .header-cta { display: block; text-align: center; margin-top: 16px; }

@media (max-width: 1024px) {
  .nav, .header-cta.desktop-only { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- Hero / Page hero ---------- */
.hero, .page-hero {
  position: relative; overflow: hidden; background: var(--ink);
  padding: 160px 0 110px;
  background-image:
    linear-gradient(rgba(47,95,224,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,95,224,0.08) 1px, transparent 1px);
  background-size: 44px 44px;
}
.page-hero { padding: 160px 0 80px; }
.hero::before, .page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(47,95,224,0.25), transparent 60%);
}
.hero .container, .page-hero .container { position: relative; }
.eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #93C5FD; }
.hero h1 { font-size: 44px; line-height: 1.15; color: #fff; margin: 16px 0 20px; max-width: 720px; }
.page-hero h1 { font-size: 38px; line-height: 1.2; color: #fff; margin: 12px 0 20px; max-width: 720px; }
.hero p.lead, .page-hero p.lead { font-size: 18px; color: #CBD5E1; max-width: 620px; margin-bottom: 36px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(59,130,246,0.3); padding: 6px 14px; margin-bottom: 28px; }
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; font-weight: 600; font-size: 15px; transition: transform 0.15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid #475569; }
.btn-white { background: #fff; }
.btn-dark { background: var(--deep); color: #fff; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 70px; padding-top: 36px; border-top: 1px solid #1E293B; }
.hero-stats .num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 28px; color: #fff; }
.hero-stats .label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; color: #94A3B8; margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-white { background: #fff; }
.section-mist { background: var(--mist); }
.section-deep { background: var(--deep); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .eyebrow { color: var(--blue); }
.section-head h2 { font-size: 32px; color: var(--ink); margin: 12px 0 16px; }
.section-deep .section-head h2, .section-deep h2 { color: #fff; }
.section-deep .section-head .eyebrow { color: #93C5FD; }
.section-head p { color: var(--slate); font-size: 15px; }

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
@media (min-width: 601px) and (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }

.card { background: var(--mist); border: 1px solid var(--slate-light); padding: 32px; position: relative; }
.card.bracket::before, .card.bracket::after {
  content: ''; position: absolute; width: 14px; height: 14px; border-color: var(--blue);
}
.card.bracket::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.card.bracket::after { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }
.card-icon { width: 48px; height: 48px; background: var(--deep); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p.desc { color: var(--slate); font-size: 14px; margin-bottom: 20px; line-height: 1.6; }
.check-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin-bottom: 8px; color: #334155; }
.check-list li::before { content: '✓'; color: var(--blue); font-weight: 700; flex-shrink: 0; }
.card-link { color: var(--blue); font-weight: 600; font-size: 14px; }

.plain-card { background: #fff; border: 1px solid var(--slate-light); padding: 28px; }

/* ---------- Audit banner ---------- */
.banner { background: var(--blue); padding: 48px 0; }
.banner .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.banner-left { display: flex; align-items: center; gap: 16px; }
.banner-icon { width: 56px; height: 56px; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; flex-shrink: 0; }
.banner h3 { color: #fff; font-size: 22px; }
.banner p { color: #DBEAFE; margin-top: 4px; }
.banner .btn-white { color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid #1E293B; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand p { color: #94A3B8; font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; color: #64748B; margin-bottom: 16px; }
.footer-col a { display: block; color: #CBD5E1; font-size: 14px; margin-bottom: 12px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; flex-wrap: wrap; gap: 12px; }
.footer-bottom span { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #64748B; }

/* ---------- Forms ---------- */
.form-box { background: #fff; border: 1px solid var(--slate-light); padding: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: #334155; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; font-size: 14px; border: 1px solid #CBD5E1; font-family: inherit; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); }
.form-group.error input, .form-group.error select, .form-group.error textarea { border-color: #F87171; }
.error-msg { color: #DC2626; font-size: 12px; margin-top: 6px; display: none; }
.form-group.error .error-msg { display: block; }
.char-count { text-align: right; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #94A3B8; margin-top: 6px; }
.submit-btn { width: 100%; padding: 15px; background: var(--blue); color: #fff; font-weight: 600; font-size: 15px; }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.form-success { text-align: center; padding: 50px 30px; }
.form-success .banner-icon { background: var(--blue); margin: 0 auto 20px; }
.form-success h3 { font-size: 24px; margin-bottom: 10px; }
.form-success p { color: var(--slate); font-size: 14px; margin-bottom: 20px; }
.form-error-msg { color: #DC2626; font-size: 14px; margin-bottom: 16px; display: none; }

/* Utility */
.text-white { color: #fff; }
.mt-8 { margin-top: 32px; }
.mb-8 { margin-bottom: 32px; }
.stat-block .num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 30px; color: var(--deep); }
.stat-block .label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; color: var(--slate); margin-top: 6px; }
.tag-badge { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--blue); border: 1px solid #BFDBFE; padding: 4px 10px; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--slate-light); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin-top: 12px; color: var(--slate); font-size: 14px; line-height: 1.6; }
