/* Everknowledge site. System fonts only, no external requests. Light and dark. */
:root {
  --accent: #4F46E5;
  --accent-hover: #4338CA;
  --accent-text: #4F46E5;
  --accent-soft: #EEF0FF;
  --on-accent: #FFFFFF;
  --text: #1D1D1F;
  --text-muted: #55555B;
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --surface-alt: #ECECF0;
  --border: #D7D7DE;
  --error: #B42318;
  --success: #067647;
  --focus: #4F46E5;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(29, 29, 31, .06);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #4F46E5;
    --accent-hover: #5B54EE;
    --accent-text: #A5B4FC;
    --accent-soft: #23234A;
    --text: #F5F5F7;
    --text-muted: #B4B4BC;
    --bg: #111113;
    --surface: #1C1C1F;
    --surface-alt: #18181B;
    --border: #3A3A40;
    --error: #FDA29B;
    --success: #75E0A7;
    --focus: #A5B4FC;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); font-weight: 750; }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.nav-list { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-list a:not(.button) { color: var(--text); text-decoration: none; font-size: .9375rem; }
.nav-list a:not(.button):hover { color: var(--accent-text); }
.nav-optional { display: none; }
@media (min-width: 720px) { .nav-optional { display: list-item; } }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: background-color .15s ease;
}
.button:hover { background: var(--accent-hover); text-decoration: none; }
.button:disabled { opacity: .7; cursor: progress; }
.button-small { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.button-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.button-ghost:hover { background: var(--surface); }
.button-block { width: 100%; }

/* Hero */
.hero { padding: 48px 0 56px; }
@media (min-width: 900px) { .hero { padding: 88px 0 96px; } }
.hero-inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.25fr .75fr; gap: 56px; } }
.eyebrow { color: var(--accent-text); font-weight: 600; font-size: .9375rem; margin-bottom: 16px; }
.lead { font-size: clamp(1.125rem, 2.4vw, 1.3125rem); color: var(--text-muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.hero-note { font-size: .9375rem; color: var(--text-muted); margin: 0; }
.hero-figure { margin: 0; }

/* Illustration */
.flow {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: 24px; box-shadow: var(--shadow);
}
.flow-sources { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: .8125rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text);
}
.flow-arrow { height: 36px; position: relative; margin: 6px 0; }
.flow-arrow::before {
  content: ""; position: absolute; left: 50%; top: 4px; bottom: 10px; width: 2px; background: var(--border);
}
.flow-arrow::after {
  content: ""; position: absolute; left: calc(50% - 5px); bottom: 4px; width: 8px; height: 8px;
  border-right: 2px solid var(--border); border-bottom: 2px solid var(--border); transform: rotate(45deg);
}
.page-card { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.page-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.page-card-kicker { font-size: .8125rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.page-card-badge { font-size: .75rem; font-weight: 700; color: var(--on-accent); background: var(--accent); padding: 3px 10px; border-radius: 999px; }
.bar { height: 10px; border-radius: 6px; background: var(--border); margin: 10px 0; opacity: .8; }
.bar-title { height: 16px; width: 70%; background: var(--text); opacity: .85; }
.bar-short { width: 55%; }
.bar-mid { width: 80%; }
.page-card-row { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0; }
.check { font-size: .8125rem; font-weight: 600; color: var(--success); display: inline-flex; align-items: center; gap: 6px; }
.check::before {
  content: ""; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-2px);
}

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-alt { background: var(--surface-alt); }
.section-intro { color: var(--text-muted); font-size: 1.125rem; max-width: 40em; margin-bottom: 36px; }

.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature p { color: var(--text-muted); margin: 0; font-size: 1rem; }
.feature-icon {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-text); font-weight: 700; margin-bottom: 16px;
}
.coming { margin: 28px 0 0; color: var(--text-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tag { font-size: .8125rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); background: var(--surface); }

.two-col { display: grid; gap: 32px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }
.two-col p { color: var(--text-muted); font-size: 1.125rem; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; color: var(--text-muted); }
.facts strong { color: var(--text); }

.callout {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: 32px 24px; box-shadow: var(--shadow); text-align: center;
}
@media (min-width: 768px) { .callout { padding: 56px; } }
.callout p { color: var(--text-muted); font-size: 1.125rem; max-width: 36em; margin: 0 auto 24px; }

/* Form */
.form-wrap { display: grid; gap: 32px; }
@media (min-width: 900px) { .form-wrap { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; } }
.form-intro p { color: var(--text-muted); font-size: 1.125rem; }
.waitlist-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: 24px; box-shadow: var(--shadow);
}
@media (min-width: 768px) { .waitlist-form { padding: 32px; } }
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field > label, legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.req, .opt { font-weight: 400; color: var(--text-muted); font-size: .9375rem; }
input[type="email"], input[type="text"] {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
}
input::placeholder { color: var(--text-muted); opacity: .8; }
input[type="email"]:focus-visible, input[type="text"]:focus-visible { outline-offset: 1px; border-color: var(--focus); }
input[aria-invalid="true"] { border-color: var(--error); }
.radio-row { display: flex; flex-wrap: wrap; gap: 12px; }
.radio, .checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.radio {
  align-items: center; padding: 10px 16px; min-height: 48px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--bg);
}
.radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
input[type="radio"], input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }
.checkbox input { margin-top: 3px; }
.checkbox span { font-size: .9375rem; color: var(--text-muted); }
.hint { color: var(--text-muted); font-size: .9375rem; margin: 6px 0 0; }
.error { color: var(--error); font-size: .9375rem; font-weight: 600; margin: 6px 0 0; }
.form-notice {
  margin: 0 0 20px; padding: 12px 16px; border-radius: 10px; background: var(--accent-soft);
  color: var(--text); font-size: .9375rem;
}
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-weight: 600; outline-offset: 2px; }
.form-status-info { background: var(--accent-soft); color: var(--text); }
.form-status-success { background: color-mix(in srgb, var(--success) 14%, var(--surface)); color: var(--text); border: 1px solid var(--success); }
.form-status-error { background: color-mix(in srgb, var(--error) 12%, var(--surface)); color: var(--text); border: 1px solid var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.prose { max-width: 760px; }
.prose p { color: var(--text-muted); }
.prose strong { color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: .9375rem; color: var(--text-muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-inner p { margin: 0; }
.field > .checkbox { font-weight: 400; margin: 0; }
.waitlist-form.is-done .form-status { margin-top: 0; }
