/* KeibiDrop site stylesheet.
   Extracted from the existing per-page inline blocks. Values are unchanged.
   New pages link this file. Existing pages keep their inline block until
   migrated, so the two must stay visually identical.

   Page width: set a width class on <body>.
     (default)   960px  pillar pages, homepage, companies
     .w-wide    1100px  wide sections
     .w860       860px  docs
     .w720       720px  guides, comparisons, install, legal
     .w680       680px  blog posts
*/

:root {
  --bg: #111;
  --bg-alt: #0d0d0d;
  --surface: #1a1a1a;
  --code-bg: #0a0a0a;
  --text: #e5e5e5;
  --heading: #fff;
  --muted: #999;
  --muted-2: #888;
  --muted-3: #777;
  --muted-4: #666;
  --foot: #444;
  --foot-link: #555;
  --link: #4d9fff;
  --brand: #177DF5;
  --brand-hover: #1565c0;
  --ok: #22c55e;
  --line: rgba(255, 255, 255, 0.06);
  --line-hover: rgba(255, 255, 255, 0.15);
  --line-code: rgba(255, 255, 255, 0.08);
  --tint-bg: rgba(23, 125, 245, 0.06);
  --tint-line: rgba(23, 125, 245, 0.15);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  --wrap: 960px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.w-wide { --wrap: 1100px; }
body.w860 { --wrap: 860px; }
body.w720 { --wrap: 720px; }
body.w680 { --wrap: 680px; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  position: sticky; top: 0; z-index: 100;
  background: rgba(17, 17, 17, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
nav img { height: 22px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--heading); text-decoration: none; }
.nav-links a.here { color: var(--heading); }
.nav-links .btn-sm {
  background: var(--brand); color: #fff; padding: 7px 18px;
  border-radius: 6px; font-size: 13px; font-weight: 600;
}
.nav-links .btn-sm:hover { background: var(--brand-hover); }

/* Headings */
h1 {
  font-size: 40px; font-weight: 700; color: var(--heading);
  margin-bottom: 12px; letter-spacing: -0.3px;
  text-align: center; padding-top: 80px;
}
.sub {
  text-align: center; color: var(--muted-3); margin-bottom: 60px;
  font-size: 16px; max-width: 560px; margin-left: auto; margin-right: auto;
}
h2 {
  font-size: 24px; font-weight: 600; color: var(--heading);
  margin: 48px 0 16px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
h2:first-of-type { border-top: none; margin-top: 0; }
h3 { font-size: 16px; font-weight: 600; color: #ccc; margin: 24px 0 8px; }

p { font-size: 15px; color: var(--muted); margin: 8px 0; line-height: 1.7; }
ul, ol { color: var(--muted); font-size: 15px; padding-left: 22px; margin: 8px 0; }
li { margin-bottom: 6px; line-height: 1.7; }
b, strong { color: #ccc; }

/* Hero, used on pillar pages */
.hero { text-align: center; padding: 100px 0 40px; }
.hero h1 {
  font-size: 52px; font-weight: 700; line-height: 1.1;
  margin-bottom: 20px; color: var(--heading);
  letter-spacing: -0.5px; padding-top: 0; text-align: center;
}
.hero .sub {
  font-size: 19px; color: var(--muted-2); max-width: 580px;
  margin: 0 auto 40px; line-height: 1.6;
}
.trust { font-size: 13px; color: var(--foot-link); margin-top: 20px; }
.trust span { color: var(--ok); }

/* Buttons */
.btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 36px; border-radius: 8px;
  font-size: 15px; font-weight: 600; transition: all 0.15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); text-decoration: none; }
.btn-outline { border: 1px solid var(--foot); color: #ccc; }
.btn-outline:hover { border-color: var(--muted-3); text-decoration: none; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--bg-alt); }
.section-sub {
  text-align: center; color: var(--muted-3); max-width: 540px;
  margin: 0 auto 48px; font-size: 16px;
}

/* Code */
pre {
  background: var(--code-bg); border: 1px solid var(--line-code);
  border-radius: 8px; padding: 16px 20px; font-size: 14px;
  color: var(--text); overflow-x: auto; line-height: 1.6; margin: 12px 0;
  font-family: var(--mono);
}
code {
  color: #aaa; background: var(--surface); padding: 2px 6px;
  border-radius: 3px; font-size: 13px; font-family: var(--mono);
}
pre code { background: none; padding: 0; font-size: inherit; color: inherit; }

/* Cards and grids */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  background: var(--surface); border-radius: 10px; padding: 28px;
  border: 1px solid var(--line); transition: border-color 0.2s;
}
.card:hover { border-color: var(--line-hover); }
.card h3 { font-size: 17px; color: var(--heading); margin: 0 0 6px; font-weight: 600; }
.card p { font-size: 14px; color: var(--muted-2); margin: 0; line-height: 1.6; }

.scenarios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.scenario { background: var(--surface); border-radius: 10px; padding: 24px; border: 1px solid var(--line); }
.scenario h4 { font-size: 16px; color: var(--heading); margin-bottom: 6px; font-weight: 600; }
.scenario p { font-size: 14px; color: var(--muted-2); margin: 0; line-height: 1.6; }

/* Steps, used by procedure pages */
.steps { max-width: 600px; margin: 0 auto; }
.step { display: flex; gap: 20px; margin-bottom: 28px; align-items: flex-start; }
.step-n {
  flex-shrink: 0; width: 36px; height: 36px; line-height: 36px;
  text-align: center; border-radius: 50%;
  background: rgba(23, 125, 245, 0.12); color: var(--link);
  font-size: 14px; font-weight: 700;
}
.step h3 { font-size: 16px; color: var(--heading); margin: 0 0 4px; font-weight: 600; }
.step p { font-size: 14px; color: var(--muted-2); margin: 0; line-height: 1.6; }

/* Comparison tables */
.compare { overflow-x: auto; margin: 0 auto; max-width: 820px; }
.compare table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #222; }
.compare thead th { color: var(--foot-link); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.compare thead th:nth-child(2) { color: var(--link); }
.compare td { color: var(--muted-2); }
.compare tr td:first-child { color: #ccc; font-weight: 500; }
.compare tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.y { color: var(--ok); font-weight: 500; }
.n { color: var(--foot); }
.tablewrap { overflow-x: auto; }

/* A step the product removes. Struck through and dimmed, so the saving is
   visible rather than described. */
.gone { color: var(--muted-4); text-decoration: line-through; }
.compare td.gone { color: var(--muted-4); }
.compare tr td:first-child.gone { color: var(--muted-4); }

/* Docs chrome */
.crumbs { font-size: 13px; color: var(--muted-4); text-align: center; padding-top: 48px; margin-bottom: -64px; }
.crumbs a { color: var(--muted-4); }
.crumbs a:hover { color: var(--link); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: -32px 0 48px; justify-content: center; }
.toc a {
  flex: 1 1 auto; text-align: center;
  font-size: 14px; color: var(--muted-2); padding: 8px 20px;
  background: var(--surface); border-radius: 6px;
  border: 1px solid var(--line); font-weight: 500; transition: all 0.15s;
}
.toc a:hover { border-color: var(--line-hover); color: #ccc; text-decoration: none; }

.note {
  background: var(--tint-bg); border: 1px solid var(--tint-line);
  border-radius: 8px; padding: 16px 20px; margin: 16px 0;
}
.note p { color: #aaa; font-size: 14px; margin: 0; }
.note strong { color: var(--link); }

.pn {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 56px;
  padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px;
}
.pn a.next { margin-left: auto; text-align: right; }

img.shot { max-width: 100%; border: 1px solid var(--line-code); border-radius: 10px; margin: 12px 0; }

/* Answer block. First thing on the page, and the block an AI assistant quotes.
   Keep it to three or four sentences. */
.answer {
  background: var(--tint-bg); border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0; padding: 20px 24px; margin: 0 0 32px;
}
.answer p { color: #ccc; font-size: 16px; margin: 0 0 8px; }
.answer p:last-child { margin-bottom: 0; }

/* Honest limits block. Every vertical page carries one. */
.limits {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 20px 24px; margin: 32px 0;
}
.limits h3 { margin-top: 0; color: var(--heading); }
.limits ul { margin-bottom: 0; }
.limits li { color: var(--muted-2); font-size: 14px; }

/* Measured figure with its conditions. The conditions are not optional. */
.figure { margin: 20px 0; }
.figure .num { font-size: 28px; font-weight: 700; color: var(--heading); display: block; }
.figure .cond { font-size: 13px; color: var(--muted-4); display: block; margin-top: 4px; }

/* Media slot. Empty until a recording exists, then the embed replaces it. */
.media-slot { margin: 32px 0; }
.media-slot iframe, .media-slot video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }

/* Question and answer pairs, marked up as FAQPage in JSON-LD */
.qa { margin: 24px 0; }
.qa h3 { font-size: 17px; color: var(--heading); margin: 24px 0 6px; }
.qa p { margin-top: 0; }

/* Interest form. No JavaScript: a plain POST to a same-origin endpoint.
   Falls back to a mailto link for anyone with forms blocked. */
.signup {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 28px; margin: 40px 0;
}
.signup h3 { margin-top: 0; color: var(--heading); font-size: 18px; }
.signup p { font-size: 14px; }
.signup form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.signup input[type="email"], .signup select {
  flex: 1 1 220px; min-width: 0;
  background: var(--code-bg); color: var(--text);
  border: 1px solid var(--line-code); border-radius: 6px;
  padding: 12px 14px; font-size: 14px; font-family: var(--font);
}
.signup input[type="email"]:focus, .signup select:focus {
  outline: none; border-color: var(--brand);
}
.signup button {
  background: var(--brand); color: #fff; border: 0; border-radius: 6px;
  padding: 12px 24px; font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: var(--font);
}
.signup button:hover { background: var(--brand-hover); }
.signup .fineprint { font-size: 12px; color: var(--muted-4); margin-top: 12px; }
/* Honeypot. A real person never sees it, a bot fills it in. */
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.byline { text-align: center; font-size: 13px; color: var(--muted-4); margin: -40px 0 48px; }
.byline a { color: var(--muted-4); }
.byline a:hover { color: var(--link); }

.more { font-size: 14px; color: var(--muted-4); margin-top: 6px; }

/* Footer */
footer {
  text-align: center; padding: 60px 0 28px;
  border-top: 1px solid var(--line); margin-top: 60px;
}
footer p { font-size: 13px; color: var(--foot); margin-bottom: 4px; }
footer a { color: var(--foot-link); }
footer a:hover { color: var(--muted-2); }
footer .legal { font-size: 11px; color: #333; margin-top: 4px; }

@media (max-width: 768px) {
  h1 { font-size: 28px; padding-top: 48px; }
  .hero h1 { font-size: 32px; }
  .hero { padding: 60px 0 24px; }
  h2 { font-size: 22px; }
  section { padding: 56px 0; }
  .grid, .grid-2, .scenarios { grid-template-columns: 1fr; }
  .btns { flex-direction: column; align-items: center; }
  nav { padding: 14px 20px; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .nav-links { gap: 16px; width: 100%; justify-content: center; flex-wrap: wrap; }
  .nav-links a { font-size: 13px; }
}
