:root {
  color-scheme: light;
  --bg: #f6f4fc;
  --surface: #ffffff;
  --border: #dcd7f5;
  --text: #1e1b4b;
  --muted: #4a4775;
  --accent: #5b3df5;
  --button: #1e1b4b;
  --button-text: #ffffff;
  --mint: #3ddbb0;
  --amber: #9a5b00;
  --coral: #c43d22;
  --error: #b42318;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --hand: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

a { color: var(--accent); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.025em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, .mono { font-family: var(--mono); font-size: .9em; overflow-wrap: anywhere; }
svg { display: block; width: 100%; height: auto; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 680px; }
.hand { font-family: var(--hand); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

section { padding: 72px 0; }
.section-lede, .lede, section p { color: var(--muted); }
.section-lede, .lede { max-width: 58ch; }
.split { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); align-items: start; }

.band-white { background: var(--surface); }
.band-white .chat { background: var(--bg); }
.band-dark { background: var(--text); color: #fff; }
.band-dark p { color: #cfcaf2; }
.band-dark .flow-zone { border-color: #5a56a8; }
.band-dark .flow-zone-label { color: #cfcaf2; }
.band-dark .flow-node { background: #34307a; box-shadow: none; }
.band-dark .flow-arrow, .band-dark .steps li::before { color: var(--mint); }

.site-header { padding: 20px 0; }
.site-header.on-hero { position: absolute; top: 0; left: 0; right: 0; z-index: 1; }
.site-header .wrap, .site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { color: var(--text); font-weight: 700; font-size: 1.05rem; letter-spacing: -.015em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.header-cta { font-size: .92rem; font-weight: 600; color: var(--text); text-decoration: none; padding: 8px 16px; border-radius: 999px; background: #ffffffb3; box-shadow: 0 0 0 1px #b9b2e6; }
.header-cta:hover { background: var(--button); color: var(--button-text); box-shadow: none; }

.hero {
  padding: 120px 0 80px;
  background-image: linear-gradient(to bottom, transparent 70%, var(--bg)), radial-gradient(55% 80% at 90% 0%, #dcd6ff 0, transparent 70%), radial-gradient(40% 60% at 0% 100%, #c9f2e3 0, transparent 70%);
}
.hero-grid { display: grid; gap: 36px; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
.sticker {
  display: inline-block; margin: 0 0 22px; padding: 4px 12px;
  background: #fff6c9; color: var(--text); font-size: .9rem;
  transform: rotate(-2deg); box-shadow: 2px 3px 0 #1e1b4b1f;
}
.scribble { position: relative; white-space: nowrap; }
.scribble svg { position: absolute; left: -2%; bottom: -.2em; width: 104%; height: .34em; z-index: -1; }
h1 { position: relative; z-index: 0; }
.lede { font-size: 1.12rem; }

.panel { margin: 0; background: var(--surface); border-radius: 18px; padding: 14px 14px 10px; box-shadow: 0 24px 60px -24px #5b3df566, 0 0 0 1px #e3def8; transform: rotate(.6deg); }
.panel figcaption, .aside { color: var(--muted); font-size: .85rem; text-align: right; margin: 6px 4px 0; }
.svg-mono { font-family: var(--mono); }
.svg-hand { font-family: var(--hand); }

.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; max-width: 500px; }
.signup input[type="email"] {
  flex: 1 1 210px; min-width: 0; padding: 12px 14px;
  background: var(--surface); color: var(--text);
  border: 1px solid #b9b2e6; border-radius: 10px; font: inherit;
  box-shadow: 0 1px 2px #1e1b4b14;
}
.signup button {
  padding: 12px 18px; border: 0; border-radius: 10px;
  background: var(--button); color: var(--button-text);
  font: inherit; font-weight: 600; cursor: pointer;
}
.signup button:hover { background: #2d2970; }
.signup button:disabled { opacity: .6; cursor: default; }
.signup input:focus-visible, .signup button:focus-visible, a:focus-visible, summary:focus-visible, .form-success:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gotcha { display: none; }
.form-status { flex-basis: 100%; margin: 0; color: var(--error); font-size: .95rem; }
.form-status:empty { display: none; }
.form-success { margin-top: 26px; padding: 14px 16px; background: #e6faf3; border-radius: 10px; max-width: 500px; color: var(--text); }
.form-note { font-size: .88rem; margin-top: 10px; }

.chat { background: var(--surface); border-radius: 14px; padding: 16px 18px; box-shadow: 0 0 0 1px #e3def8; transform: rotate(-.5deg); }
.chat-head { font-weight: 700; color: var(--text); margin-bottom: 10px; }
.chat li { display: grid; grid-template-columns: 44px auto 1fr; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid #efecfa; font-size: .95rem; color: var(--text); }
.chat time { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.who { font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #ece8ff; color: var(--accent); white-space: nowrap; }
.who.bot { background: #fff1ee; color: var(--coral); }

.preview { background: var(--surface); border-radius: 16px; padding: 22px; margin-top: 28px; box-shadow: 0 0 0 1px #e3def8, 0 18px 40px -28px #1e1b4b55; }
.preview-label { font-family: var(--mono); font-size: .8rem; color: var(--accent); letter-spacing: .04em; }
.preview-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid #efecfa; color: var(--text); }
.badge { font-size: .85rem; padding: 3px 10px; border-radius: 999px; background: #fff1ee; color: var(--coral); }
.timeline li { display: grid; grid-template-columns: 78px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid #efecfa; color: var(--text); }
.timeline time { color: var(--muted); }
.timeline .next { border-bottom: 0; background: #f3fdf9; margin: 6px -10px 0; padding: 14px 10px; border-radius: 10px; }
.timeline .next .hand { color: var(--amber); font-size: .9rem; transform: rotate(-4deg); }
.preview-foot { font-size: .9rem; margin: 10px 0 0; }

.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.flow-zone { border: 1.5px dashed #b9b2e6; border-radius: 14px; padding: 12px 14px; }
.flow-zone-label { display: block; font-family: var(--hand); font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.flow-nodes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flow-node { background: var(--surface); border-radius: 9px; padding: 8px 14px; font-weight: 600; box-shadow: 0 0 0 1px #c9c4ee; }
.flow-arrow { font-family: var(--mono); font-size: .85rem; color: var(--accent); }

.steps { counter-reset: step; margin-top: 32px; max-width: 720px; }
.steps li { position: relative; padding: 0 0 22px 56px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -6px;
  font-family: var(--hand); font-size: 1.7rem; color: var(--accent);
}
.steps p { margin: 0; }

.checks { display: grid; gap: 14px; margin-top: 22px; }
.checks li { padding-left: 30px; position: relative; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 15px; height: 8px; border-left: 3px solid #18b88c; border-bottom: 3px solid #18b88c; transform: rotate(-48deg); border-radius: 1px; }
.checks strong { color: var(--text); }

.note { background: #fffbe0; padding: 22px 24px; transform: rotate(.8deg); box-shadow: 3px 5px 0 #1e1b4b14; }
.note p { color: var(--text); font-size: .98rem; }
.note p:last-child { margin: 0; }
.note-title { font-size: 1.1rem; }

.pricing { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; max-width: 720px; }
.plan { background: var(--surface); border-radius: 14px; padding: 22px; box-shadow: 0 0 0 1px #e3def8; }
.plan p { margin: 0; }
.plan .price { font-size: 2rem; font-weight: 700; color: var(--text); margin-bottom: .2em; }
.price span { font-size: .95rem; font-weight: 400; color: var(--muted); }

details { border-bottom: 1px solid var(--border); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; }

.closing { background-image: radial-gradient(50% 90% at 50% 100%, #dcd6ff 0, transparent 70%); }

.site-footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: .9rem; }

.prose { padding: 48px 0 72px; }
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.2rem; margin-top: 1.6em; }
.prose p { color: var(--muted); }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 96px; }
  .header-cta { display: none; }
  section { padding: 56px 0; }
  .panel, .chat, .note { transform: none; }
  .chat li { grid-template-columns: 44px 1fr; }
  .chat li span:last-child { grid-column: 1 / -1; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}

/* Screenshots of the product. */
.shot { margin: 28px 0 0; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px #e3def8, 0 24px 50px -28px #1e1b4b88; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 10px 16px 12px; font-size: .88rem; color: var(--muted); }
.shot-bar { display: flex; gap: 6px; padding: 9px 14px; background: #ece8ff; }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #b9b2e6; }
.gallery { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); margin-top: 22px; }
.gallery .shot { margin-top: 0; }
.shot.phone { max-width: 300px; margin-left: auto; margin-right: auto; margin-top: 34px; }

.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 28px; }
.features li { background: var(--bg); border-radius: 14px; padding: 18px 20px; box-shadow: 0 0 0 1px #e3def8; }
.features h3 { margin-bottom: .35em; }
.features p { margin: 0; font-size: .96rem; }

.where-title { margin-top: 18px; }
.where { max-width: 62ch; margin: 0; }

@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
}
.gallery .shot a { display: block; cursor: zoom-in; }

/* The download and support buttons. */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.button { display: inline-block; padding: 12px 20px; border-radius: 10px; background: var(--button); color: var(--button-text); font-weight: 600; text-decoration: none; }
.button:hover { background: #2d2970; }
.button.ghost { background: transparent; color: var(--text); box-shadow: 0 0 0 1px #b9b2e6; }
.button.ghost:hover { background: #ffffffb3; }
.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
pre.code { margin: 18px 0 8px; padding: 14px 16px; background: var(--text); color: #e8e5ff; border-radius: 10px; overflow-x: auto; font-size: .85rem; line-height: 1.5; }
pre.code code { font-family: var(--mono); }

/* The way back to the personal site this page may be embedded in. */
.header-back { font-size: .9rem; color: var(--muted); text-decoration: none; }
.header-back:hover { color: var(--text); text-decoration: underline; }

/* The table of Kafka versions that were tried. */
.matrix-wrap { overflow-x: auto; margin-top: 24px; border-radius: 12px; box-shadow: 0 0 0 1px #e3def8; background: var(--surface); }
.matrix { width: 100%; border-collapse: collapse; font-size: .95rem; }
.matrix th, .matrix td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #efecfa; white-space: nowrap; }
.matrix thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #faf9ff; }
.matrix tbody th { font-family: var(--mono); color: var(--text); }
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }
.matrix td.yes { color: #0f7a5c; font-weight: 700; }
.matrix td.no { color: var(--muted); }
.matrix-note { font-size: .92rem; margin: 14px 0 0; max-width: 78ch; }
