/* Cortex Wizard site. The palette is the app's (cortexlab/app/ui/app.css): dark ground,
   the icon's blue as the brand, its near-white blue as the neutral mark. */
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('/fonts/Barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('/fonts/Barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('/fonts/Barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url('/fonts/Barlow-700.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url('/fonts/IBMPlexMono-400.woff2') format('woff2'); }

:root {
  --ground: #10141b;
  --bar: #0c0f14;
  --raised: #1c2330;
  --line: #212a3a;
  --text: #e6e7e9;
  --muted: #a2a9b6;
  --brand: #2e8bff;
  --brand-hover: #4d9dff;
  --brand-ink: #04101f;
  --mark: #e8f4ff;
  --attention: #f5c542;
  --attention-bg: #262113;
  --attention-line: #6b5a1e;
  --width: 1040px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--text);
  font: 400 17px/1.6 'Barlow', system-ui, sans-serif;
}
a { color: var(--brand-hover); }
a:hover { color: var(--mark); }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 16px; }
h2 { font-size: 26px; margin: 40px 0 12px; }
h3 { font-size: 21px; margin: 32px 0 8px; }
code, pre { font-family: 'IBM Plex Mono', ui-monospace, Consolas, monospace; font-size: 0.9em; }
code { background: var(--raised); padding: 1px 6px; border-radius: 4px; }
pre { background: var(--bar); border: 1px solid var(--line); border-radius: 8px; padding: 16px; overflow-x: auto; }
pre code { background: none; padding: 0; }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
blockquote { margin: 24px 0; padding: 4px 20px; border-left: 3px solid var(--brand); color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: 20px; color: var(--muted); max-width: 680px; }
.lead + .sublead { margin-top: -8px; }
.sublead { font-size: 16px; color: var(--muted); max-width: 680px; }

/* header and footer */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: var(--width); margin: 0 auto; padding: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { padding: 8px 14px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--text); background: var(--raised); }
.top nav a[aria-current] { color: var(--text); background: var(--raised); font-weight: 600; }
.top nav a.cta { background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.top nav a.cta:hover { background: var(--brand-hover); color: var(--brand-ink); }
main { max-width: var(--width); margin: 0 auto; padding: 16px 16px 64px; }
.bottom { border-top: 1px solid var(--line); background: var(--bar); padding: 32px 16px; font-size: 14px; }
.bottom > * { max-width: var(--width); margin-left: auto; margin-right: auto; }
.bottom nav { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.bottom nav a { color: var(--text); }
.disclaimer { color: var(--muted); max-width: 720px; margin-left: auto; margin-right: auto; }
.bottom .disclaimer, .bottom p { max-width: var(--width); }

/* home */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 24px 0; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); }
.hero-art { display: block; width: 100%; max-width: 460px; height: auto; justify-self: end; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0; }
.card {
  display: block; padding: 24px; border-radius: 12px; background: var(--raised);
  border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.card:hover { border-color: var(--brand); color: var(--text); }
.card h2 { margin: 0 0 8px; font-size: 22px; }
.card p { margin: 0; color: var(--muted); }
.brand-card { border-color: var(--brand); }

/* lists of guides and articles */
.docs { list-style: none; padding: 0; margin: 24px 0; }
.docs li { border-top: 1px solid var(--line); padding: 16px 0; }
.docs li a { display: block; text-decoration: none; color: var(--text); }
.docs li a strong { display: block; font-size: 20px; }
.docs li a span { color: var(--muted); }
.docs li a:hover strong { color: var(--brand-hover); }
.meta { font-size: 14px; color: var(--muted); display: flex; gap: 12px; margin-top: 4px; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 0 10px; }

/* pages */
.page-head { padding: 32px 0 8px; }
.facts { color: var(--muted); font-size: 15px; }
.doc { max-width: 720px; }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 8px; background: var(--brand);
  color: var(--brand-ink); font-weight: 700; text-decoration: none;
}
.button:hover { background: var(--brand-hover); color: var(--brand-ink); }

/* the app */
.feature {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px; align-items: center;
  padding: 32px 0; border-top: 1px solid var(--line);
}
.feature h2 { margin-top: 0; }
.shot { position: relative; margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
/* the arrows that show the movement, drawn again and again (build.py shot()) */
.shot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.shot path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.shot .halo { stroke: rgba(4, 16, 31, 0.8); }
.shot .ink { stroke: var(--brand); }
/* drawn one after the other, held together, faded together; then again */
.shot .line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw0 5s ease-in-out infinite; }
.shot .head { opacity: 0; animation: tip0 5s ease-in-out infinite; }
.shot .line.n1 { animation-name: draw1; } .shot .head.n1 { animation-name: tip1; }
.shot .line.n2 { animation-name: draw2; } .shot .head.n2 { animation-name: tip2; }
@keyframes draw0 { 0% { stroke-dashoffset: 1; opacity: 1; } 22% { stroke-dashoffset: 0; } 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes draw1 { 0%, 16% { stroke-dashoffset: 1; opacity: 1; } 38% { stroke-dashoffset: 0; } 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes draw2 { 0%, 32% { stroke-dashoffset: 1; opacity: 1; } 54% { stroke-dashoffset: 0; } 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes tip0 { 0%, 20% { opacity: 0; } 24%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tip1 { 0%, 36% { opacity: 0; } 40%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tip2 { 0%, 52% { opacity: 0; } 56%, 88% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .shot .line, .shot .head { animation: none; stroke-dashoffset: 0; opacity: 1; } }
.shot-placeholder {
  aspect-ratio: 16 / 10; border: 1px dashed var(--line); border-radius: 12px;
  display: grid; place-items: center; color: var(--muted); background: var(--bar);
}
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 8px 0 0; }
.caution { background: var(--attention-bg); border: 1px solid var(--attention-line); border-radius: 12px; padding: 0 24px 8px; margin-top: 24px; }
.caution h2 { color: var(--attention); margin-top: 20px; }
.notice { padding: 20px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); }
.form { display: block; width: 100%; height: 290px; border: 0; }
.apply { margin-top: 32px; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .feature, .two { grid-template-columns: 1fr; gap: 16px; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 300px; justify-self: center; }
  .lead { font-size: 18px; }
  .form { height: 560px; }
}
