/* Kitebox Labs site. No third-party requests: the one web font is served from this folder. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #f6f8fb; --surface: #ffffff; --ink: #14203a; --muted: #56607a; --rule: #dfe4ee;
  --kite: #2f6fed; --fern: #1f8a6a; --plum: #7a4fd6; --tool: var(--kite);
  --head: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #10141d; --surface: #171c28; --ink: #e9edf6; --muted: #9aa4bb; --rule: #2a3142; --kite: #6f9bf7; --fern: #4cc29a; --plum: #a98bf0; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
a { color: var(--kite); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--kite); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(38px, 6.2vw, 66px); font-weight: 750; }
h2 { font-size: clamp(27px, 3.4vw, 36px); font-weight: 700; margin-top: 88px; }
h3 { font-size: 21px; font-weight: 650; letter-spacing: -0.01em; }
p, li { color: var(--muted); }
p { margin: 14px 0 0; max-width: 68ch; }
strong { color: var(--ink); }
.t-table { --tool: var(--kite); } .t-page { --tool: var(--fern); } .t-chat { --tool: var(--plum); }

/* Top bar */
.top { display: flex; align-items: center; gap: 24px; padding-block: 22px; } /* padding-block: keep .wrap's side padding */
.brand { display: flex; align-items: center; gap: 10px; font: 700 19px var(--head); color: var(--ink); text-decoration: none; margin-right: auto; }
.brand img { border-radius: 8px; }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }

/* Hero: the claim on the left, the proof (a table becoming a file) on the right */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 44px 0 20px; }
.hero p { font-size: 20px; line-height: 1.5; margin-top: 22px; max-width: 34ch; }
.proof { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 18px; }
.proof table { border-collapse: collapse; width: 100%; font-size: 14px; }
.proof th, .proof td { border: 1px solid var(--rule); padding: 5px 9px; text-align: left; color: var(--ink); }
.proof th { background: var(--paper); }
.proof td:last-child, .proof th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.proof .turn { display: flex; align-items: center; gap: 10px; margin: 14px 2px; font-size: 14px; color: var(--muted); }
.proof .turn::before { content: ""; width: 2px; height: 26px; background: var(--kite); border-radius: 2px; }
pre.file { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; font: 13.5px/1.55 var(--mono); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
pre.file b { font-weight: 400; color: var(--muted); }

/* Buttons that go to a browser store */
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.btn { display: inline-block; text-decoration: none; font: 600 15.5px var(--body); padding: 10px 16px; border-radius: 10px; background: var(--tool); color: #fff; border: 2px solid var(--tool); }
.btn:hover { filter: brightness(1.08); }
.btn.alt { background: transparent; color: var(--tool); }
.soon { font-size: 14.5px; color: var(--muted); }
@media (prefers-color-scheme: dark) { .btn { color: #0c1018; } .btn.alt { color: var(--tool); } }

/* Tools: one row each; the colour bar says which tool, the file sample says what you get */
.tools { margin-top: 26px; border-top: 1px solid var(--rule); }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 40px; padding: 34px 0 34px 22px; border-bottom: 1px solid var(--rule); border-left: 6px solid var(--tool); margin-left: -22px; scroll-margin-top: 16px; }
.tool .more { display: inline-block; margin-top: 14px; font-size: 15.5px; color: var(--tool); }
.tool pre.file { align-self: start; }

/* Tool pages */
.lead { font-size: 20px; line-height: 1.5; max-width: 60ch; margin-top: 20px; }
.page-head { padding: 34px 0 6px; border-left: 6px solid var(--tool); padding-left: 22px; margin-left: -22px; }
.shots { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
.shots img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--rule); }
.shots .small { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
ol.steps { margin: 18px 0 0; padding-left: 22px; max-width: 68ch; }
ol.steps li { margin: 8px 0; padding-left: 4px; }
ul.plain { margin: 14px 0 0; padding-left: 20px; max-width: 68ch; }
ul.plain li { margin: 6px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 8px; }
.two h3 { margin-top: 28px; }
dl.faq { margin: 12px 0 0; max-width: 72ch; }
dl.faq dt { font: 650 19px var(--head); color: var(--ink); margin-top: 26px; }
dl.faq dd { margin: 6px 0 0; color: var(--muted); }
.others { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 16px; }

main.wrap { padding-bottom: 88px; } /* main.wrap, not main: .wrap sets padding too and would win */
footer { border-top: 1px solid var(--rule); padding-block: 26px 48px; font-size: 14.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero, .tool, .two { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding-top: 20px; }
  h2 { margin-top: 64px; }
  .shots .small { grid-template-columns: 1fr; }
  .top { flex-wrap: wrap; gap: 10px 24px; }
}
