/* datakumi.com — the app's design language ("calm and precise"): neutral surfaces, the logo's purple for the one
   thing to do next, Geist and Geist Mono, soft corners, space rather than lines. Dark by default, like the app.
   Pages are written by scripts/build_site.py. No JavaScript: menus and FAQs are CSS and <details>. */

@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0f0f12; --bg-2: #0b0b0e; --surface: #17171c; --raised: #1f1f26;
  --text: #ededf0; --text-2: #b4b4bd; --muted: #8e8e98; --line: #24242b; --line-soft: #1a1a1f;
  --accent: #8b7dff; --accent-ink: #0f0f12; --accent-hover: #a99fff; --accent-soft: rgba(139, 125, 255, .14);
  --accent-text: #b3a9ff; --accent-line: rgba(139, 125, 255, .3);
  --green: #6ee7a0; --red: #fca5a5;
  --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .06);
  --card-shadow: none; --logo-c: #e4e4e7; --logo-t: #fafafa; --logo-b: #a1a1aa;
  --radius: 6px; --radius-lg: 12px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafaf9; --bg-2: #f4f4f2; --surface: #ffffff; --raised: #ffffff;
    --text: #18181b; --text-2: #52525b; --muted: #63636b; --line: #e7e5e4; --line-soft: #f0efed;
    --accent: #6d5dfc; --accent-ink: #ffffff; --accent-hover: #5a49f0; --accent-soft: #eeebff;
    --accent-text: #5444e0; --accent-line: #d9d3ff; --green: #15803d; --red: #b91c1c;
    --shadow-lg: 0 12px 32px -8px rgba(24, 24, 27, .22), 0 0 0 1px rgba(24, 24, 27, .06);
    --card-shadow: 0 1px 2px rgba(24, 24, 27, .06), 0 0 0 1px #ececea;
    --logo-c: #18181b; --logo-t: #52525b; --logo-b: #18181b;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; }
a { color: inherit; }
code, .mono { font-family: var(--mono); font-size: .875em; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; font-weight: 600; }
h1 { font-size: clamp(34px, 5.6vw, 64px); letter-spacing: -.035em; }
h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.03em; }
h3 { font-size: 18px; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 120px 0; }
.alt { background: var(--bg-2); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text);
  margin-bottom: 16px; display: block; }
.lead { font-size: 19px; color: var(--text-2); max-width: 620px; }
.head { max-width: 720px; margin-bottom: 56px; }
.head .lead { margin-top: 16px; }
.center { text-align: center; }
.center .head, .center .lead, .head.center { margin-left: auto; margin-right: auto; }
.head.center { text-align: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--radius);
  font: 500 15px/1 var(--font); text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.center .actions { justify-content: center; }
.more { color: var(--accent-text); font-size: 14px; font-weight: 500; text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* header, with CSS-only menus */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line-soft); }
header.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 21px; letter-spacing: -.03em; }
.brand svg { width: 34px; height: 34px; }
.logo-c { stroke: var(--logo-c); } .logo-t { fill: var(--logo-t); } .logo-b { fill: var(--logo-b); } .logo-o { fill: var(--accent); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav > a, .menu > span { display: block; padding: 8px 12px; font-size: 14px; color: var(--text-2); text-decoration: none; cursor: default; border-radius: var(--radius); }
.nav > a:hover, .menu:hover > span, .menu:focus-within > span, .nav [aria-current="page"] { color: var(--text); }
.menu { position: relative; }
.menu > span::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 7px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.menu-panel { display: none; position: absolute; top: 100%; left: -12px; min-width: 460px; padding: 18px; gap: 24px;
  grid-template-columns: 1fr 1fr; background: var(--raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.menu:hover .menu-panel, .menu:focus-within .menu-panel { display: grid; }
.menu-panel.one { min-width: 300px; grid-template-columns: 1fr; }
.menu-panel b { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  font-weight: 500; margin: 0 10px 6px; }
.menu-panel a { display: block; padding: 8px 10px; border-radius: var(--radius); text-decoration: none; font-size: 14px; }
.menu-panel a small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.menu-panel a:hover { background: var(--accent-soft); }
.mnav { display: none; margin-left: auto; }
.mnav summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav[open] .mnav-panel { display: grid; }
.mnav-panel { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 12px 16px 20px; gap: 2px; max-height: calc(100vh - 64px); overflow-y: auto; }
.mnav-panel b { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 14px 0 4px; font-weight: 500; }
.mnav-panel a { padding: 8px 0; text-decoration: none; }

/* hero */
.hero { padding: 104px 0 96px; text-align: center; }
.hero h1 em, .page-hero h1 em { font-style: normal; color: var(--accent-text); }
.hero .lead { margin: 24px auto 0; font-size: 20px; }
.hero .actions { justify-content: center; }
.hero .shot { margin-top: 72px; }
.page-hero { padding: 96px 0 72px; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 54px); max-width: 820px; }
.page-hero .lead { margin-top: 20px; }

/* screenshots: dark or light, following the visitor's theme */
.shot { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); line-height: 0; }
.shot picture { display: block; }
.shot img { width: 100%; height: auto; display: block; }
.shot.tall { max-width: 460px; margin: 0 auto; }

/* one big statement */
.statement h2 { max-width: 860px; }
.statement .lead { margin-top: 20px; }

/* numbered pillars */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.pillar { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.pillar .n { font-family: var(--mono); font-size: 12px; color: var(--accent-text); }
.pillar p { color: var(--text-2); font-size: 15px; flex: 1; }

/* before and after */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ba > div { background: var(--surface); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--card-shadow); }
.ba b { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  font-weight: 500; margin-bottom: 18px; }
.ba .after b { color: var(--accent-text); }
.ba ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.ba li { padding-left: 26px; position: relative; color: var(--text-2); }
.ba li::before { position: absolute; left: 0; font-family: var(--mono); }
.ba .before li::before { content: "✕"; color: var(--red); }
.ba .after li::before { content: "✓"; color: var(--green); }

/* small cards: a title and one sentence */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--card-shadow);
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.alt .card, .alt .ba > div { background: var(--bg); }
.card p { color: var(--text-2); font-size: 15px; }
a.card { transition: box-shadow .15s; }
a.card:hover { box-shadow: 0 0 0 1px var(--accent-line); }
a.card .more { margin-top: auto; padding-top: 8px; }

/* a feature: copy beside a screenshot */
.features { display: grid; gap: 120px; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; scroll-margin-top: 96px; }
.feature.flip > :first-child { order: 2; }
.feature h2 { font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 14px; }
.feature > div > p { color: var(--text-2); margin-bottom: 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 28px; position: relative; color: var(--text-2); font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%238b7dff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* problems on a solution page */
.problems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.problems > div { border-top: 1px solid var(--line); padding-top: 22px; }
.problems h3 { margin-bottom: 8px; }
.problems p { color: var(--text-2); font-size: 15px; }

/* code */
.code { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; min-width: 0; box-shadow: var(--card-shadow); }
.alt .code { background: var(--bg); }
.code .bar { padding: 10px 16px; font: 12px var(--mono); color: var(--muted); border-bottom: 1px solid var(--line-soft); }
.code pre { margin: 0; padding: 18px; overflow-x: auto; font: 13px/1.7 var(--mono); color: var(--text-2); }
.code .c { color: var(--muted); } .code .k { color: var(--accent-text); } .code .s { color: var(--green); }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 17px; display: flex; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-2); padding: 0 0 22px; max-width: 700px; }

/* closing call to action */
.cta h2 { max-width: 760px; margin: 0 auto; }
.cta .lead { margin: 18px auto 0; }

footer { border-top: 1px solid var(--line-soft); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
footer .brand { font-size: 17px; color: var(--text); }
footer .brand svg { width: 26px; height: 26px; }
footer nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 980px) {
  .pillars, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .codes { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature.flip > :first-child { order: 0; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .mnav { display: block; }
  header.top .btn { display: none; }
}
@media (max-width: 720px) {
  section { padding: 80px 0; }
  .wrap { padding: 0 16px; }
  .hero { padding: 64px 0 64px; }
  .hero .shot { margin-top: 48px; }
  .page-hero { padding: 56px 0 40px; }
  .pillars, .cards, .cards.four, .ba, .problems { grid-template-columns: minmax(0, 1fr); }
  .features { gap: 80px; }
  footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
