/* KnowIT site — shared styles. No external resources. */
:root {
  --bg: #0B0F17;
  --surface: #151B26;
  --surface-2: #1C2432;
  --border: #263042;
  --text: #F3F4F6;
  --muted: #A3ABBA;
  --accent: #5856D6;        /* buttons (white text on this = 5.1:1) */
  --accent-text: #A5A4F4;   /* links/text on dark bg (7.6:1) */
  --amber: #FBBF24;
  --radius: 16px;
  --max: 960px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: #C7C6FA; }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--amber); color: #111827; padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; z-index: 10; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.125rem;
}
.brand svg { width: 36px; height: 36px; flex: none; }
.nav { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block; padding: 10px 12px; min-height: 44px;
  color: var(--muted); text-decoration: none; font-weight: 500; border-radius: 10px;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero {
  padding: 56px 0 48px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(88, 86, 214, .28), transparent 70%);
}
.hero .icon { width: 112px; height: 112px; margin: 0 auto 24px; filter: drop-shadow(0 16px 32px rgba(37, 99, 235, .35)); }
.hero h1 {
  margin: 0 0 8px; font-size: clamp(2.25rem, 8vw, 3.5rem);
  line-height: 1.08; letter-spacing: -0.02em; font-weight: 800;
}
.tagline {
  margin: 0 0 18px; font-size: clamp(1.25rem, 4.5vw, 1.625rem); font-weight: 600; color: var(--text);
}
.cursor { color: var(--amber); }
.lede { max-width: 620px; margin: 0 auto 28px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border-radius: 14px;
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
}
.btn:hover { background: #4A48C2; color: #fff; }
.btn svg { width: 22px; height: 22px; }
.btn small { display: block; font-size: .75rem; font-weight: 500; opacity: .9; line-height: 1.1; }
.btn span { text-align: left; line-height: 1.15; }

.facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 24px 0 0; padding: 0; list-style: none;
}
.facts li {
  padding: 6px 14px; border-radius: 999px; font-size: .9375rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}

/* Sections */
section { padding: 40px 0; }
h2 { font-size: 1.625rem; line-height: 1.25; margin: 0 0 20px; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; line-height: 1.35; margin: 0 0 6px; }

.features {
  display: grid; gap: 14px; grid-template-columns: 1fr;
  margin: 0; padding: 0; list-style: none;
}
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.card p { margin: 0; color: var(--muted); }
.card .badge {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
}
.card .badge svg { width: 24px; height: 24px; }
.b-orange { background: rgba(234, 88, 12, .18); color: #FB923C; }
.b-blue { background: rgba(37, 99, 235, .2); color: #60A5FA; }
.b-red { background: rgba(220, 38, 38, .18); color: #F87171; }
.b-green { background: rgba(22, 163, 74, .2); color: #4ADE80; }
.b-purple { background: rgba(124, 58, 237, .22); color: #C4B5FD; }
.b-amber { background: rgba(251, 191, 36, .18); color: var(--amber); }

.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.topics li { padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .9375rem; border: 1px solid var(--border); background: var(--surface); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }

.cta { text-align: center; }
.cta p { color: var(--muted); margin: 0 0 20px; }

/* Long-form pages (privacy, support) */
.page { padding: 40px 0 24px; }
.page h1 { font-size: clamp(2rem, 7vw, 2.75rem); line-height: 1.1; margin: 0 0 8px; letter-spacing: -0.02em; }
.page .meta { color: var(--muted); margin: 0 0 28px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.375rem; margin: 36px 0 10px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 6px; }
.summary {
  background: var(--surface); border: 1px solid var(--border); border-left-width: 1px;
  border-radius: var(--radius); padding: 18px 20px; margin: 0 0 8px;
}
.summary p { margin: 0; }

.contact-card { margin: 0 0 32px; }
.contact-card p { margin: 0 0 8px; color: var(--text); }
.contact-card .email { font-size: 1.25rem; font-weight: 600; word-break: break-all; }

.faq { margin: 0; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; padding: 16px 48px 16px 20px; min-height: 44px;
  font-weight: 600; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--accent-text);
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: var(--radius); }
.faq details > div { padding: 0 20px 16px; color: var(--muted); }
.faq details > div p { margin: 0 0 10px; }
.faq details > div p:last-child { margin-bottom: 0; }

code { font-family: ui-monospace, Menlo, "SF Mono", monospace; font-size: .95em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 32px; padding: 28px 0 40px; color: var(--muted); font-size: .9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--muted); display: inline-block; padding: 8px 0; }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a { transition: background-color .15s ease, color .15s ease; }
}
