/* ══════════════════════════════════════════════════════════════════════════
   MAGIC BOTS LAB — the written pages.

   The guides people arrive on from a search, rather than from the app. They
   wear the landing page's own ground — the same radial and linear gradients,
   the same near-black, the same light-blue Start button — so somebody who
   lands here from Google and then clicks through to the product never feels
   handed to a different site.

   Full width, with the grids opening to three and four columns on a desktop
   and folding to one on a phone. Every size is in clamp() so a single set of
   rules holds from 360px to a wide monitor with no breakpoint list to keep.
   ══════════════════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; }

:root {
  --blue-a: #2563eb;
  --blue-b: #0ea5e9;
  --blue-soft: #7dd3fc;
  --accent: #ff9a3c;
  --success: #24d970;
  --danger: #ff5f6d;
  --warn: #fcd34d;

  --text: #e5e7eb;
  --muted: #9aa8bd;
  --faint: #6b7b91;
  --border: rgba(255, 255, 255, 0.09);
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
}

body {
  margin: 0;
  color: var(--text);
  background: #020617;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-soft); }

/* `fixed` so the gradient covers the screen whatever the page's length,
   instead of tiling down it. */
.page {
  min-height: 100vh;
  width: 100%;
  position: relative;
  background:
    radial-gradient(circle at 14% 22%, rgba(255, 255, 255, 0.12), transparent 25%),
    radial-gradient(circle at 74% 12%, rgba(255, 255, 255, 0.10), transparent 34%),
    linear-gradient(180deg, #000 0%, #050510 45%, #000 100%);
  background-attachment: fixed;
}
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: clamp(18px, 4vw, 42px); }

/* ── Nav ─────────────────────────────────────────────────────────────── */

.nav { position: relative; z-index: 2; }
.nav-in { display: flex; align-items: center; gap: 18px; padding-block: 22px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; text-decoration: none; }
.logo-mark {
  width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid rgba(203, 213, 225, 0.85);
  transform: rotate(45deg); display: inline-block;
}
.nav .go-btn { margin-left: auto; }

/* The landing page's Start button, to the pixel. Every one of these points at
   /?start=1, because the OAuth redirect is built from the current path and
   only the home page's is registered — so connecting has to begin there. */
.go-btn {
  border: 0; border-radius: 999px; cursor: pointer; font-family: inherit; text-decoration: none;
  background: linear-gradient(135deg, var(--blue-a), var(--blue-b));
  color: #fff; padding: 11px 22px; font-size: 14px; font-weight: 900;
  letter-spacing: 0.06em; text-transform: uppercase; display: inline-block;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
  transition: transform .12s ease, box-shadow .18s ease;
}
.go-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 38px rgba(37, 99, 235, 0.36); }
.go-btn--lg { padding: 15px 34px; font-size: 15.5px; }

.line-btn {
  border: 1px solid var(--border); background: transparent; color: var(--text);
  border-radius: 999px; padding: 14px 26px; font-size: 14px; font-weight: 700;
  text-decoration: none; display: inline-block; font-family: inherit; cursor: pointer;
}
.line-btn:hover { background: var(--panel-2); }

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero { padding-block: clamp(30px, 5vw, 62px) clamp(24px, 3.5vw, 40px); }
.kick {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-bottom: 18px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-soft); border: 1px solid rgba(14, 165, 233, 0.35);
  background: rgba(14, 165, 233, 0.08); border-radius: 999px;
}
.kick i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-b); display: block; }
.kick--ok { color: var(--success); border-color: rgba(36,217,112,0.35); background: rgba(36,217,112,0.08); }
.kick--ok i { background: var(--success); }

h1 {
  margin: 0 0 16px; font-size: clamp(2rem, 5.4vw, 3.4rem); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.08; max-width: 20ch;
}
.lede { margin: 0 0 26px; font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--muted); max-width: 68ch; }
.lede strong { color: #fff; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { margin-top: 14px; font-size: 12.5px; color: var(--faint); }

/* ── Sections ────────────────────────────────────────────────────────── */

.sec { padding-block: clamp(30px, 4.6vw, 56px); border-top: 1px solid var(--border); }
.sec-k { margin: 0 0 10px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
h2 { margin: 0 0 10px; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 750; letter-spacing: -0.03em; }
.intro { color: var(--muted); max-width: 72ch; }

/* One card grid, reused everywhere. `auto-fit` with a minimum means the column
   count follows the width rather than a list of breakpoints. */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; margin-top: 22px; }
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.card {
  padding: clamp(18px, 2.2vw, 24px); border: 1px solid var(--border);
  border-radius: 16px; background: var(--panel);
}
.card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 780; letter-spacing: -0.01em; }
.card p { margin: 0 0 10px; font-size: 13.8px; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card strong { color: #fff; }
.card--ok { border-color: rgba(36,217,112,0.3); background: rgba(36,217,112,0.05); }
.card--no { border-color: rgba(255,95,109,0.3); background: rgba(255,95,109,0.05); }
.card--blue { border-color: rgba(14,165,233,0.36); background: rgba(14,165,233,0.06); }
.card--warn { border-color: rgba(255,154,60,0.4); background: rgba(255,154,60,0.06); }
.card--ok h3 { color: var(--success); }
.card--no h3 { color: var(--danger); }
.card--blue h3 { color: var(--blue-soft); }
.card--warn h3 { color: var(--accent); }
.card--wide { grid-column: 1 / -1; }
.card ul { margin: 0; padding-left: 18px; }
.card li { font-size: 13.6px; color: var(--muted); margin-bottom: 6px; }

/* ── Numbered steps ──────────────────────────────────────────────────── */

.steps { margin-top: 22px; padding: 0; list-style: none; counter-reset: s;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }
.steps li {
  counter-increment: s; position: relative; padding: 20px 20px 20px 60px;
  border: 1px solid var(--border); border-radius: 16px; background: var(--panel);
}
.steps li::before {
  content: counter(s); position: absolute; left: 20px; top: 20px;
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-a), var(--blue-b));
  color: #fff; font-size: 12.5px; font-weight: 900;
}
.steps h3 { margin: 0 0 5px; font-size: 14.5px; font-weight: 780; }
.steps p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ── Tables ──────────────────────────────────────────────────────────── */

.scroll-x { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.tbl th { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 800; }
.tbl td { color: var(--muted); }
.tbl td:first-child { color: var(--text); font-weight: 600; }
.tbl--num th:not(:first-child), .tbl--num td:not(:first-child) { text-align: right; }
.tbl tr.hot td { color: var(--danger); font-weight: 800; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */

.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px 30px; margin-top: 22px; }
.faq h3 { margin: 0 0 6px; font-size: 15px; font-weight: 780; }
.faq p { margin: 0; font-size: 13.8px; color: var(--muted); }

/* ── Close, and the small print ──────────────────────────────────────── */

.end { padding-block: clamp(34px, 5vw, 60px); border-top: 1px solid var(--border); text-align: center; }
.end h2 { max-width: 22ch; margin-inline: auto; }
.end p { color: var(--muted); max-width: 58ch; margin: 0 auto 22px; }
.end .cta-row { justify-content: center; }

.more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.more a {
  padding: 9px 16px; font-size: 13px; font-weight: 650; text-decoration: none;
  color: var(--text); border: 1px solid var(--border); border-radius: 999px; background: var(--panel);
}
.more a:hover { background: var(--panel-2); }

footer { border-top: 1px solid var(--border); padding: 26px 0 40px; }
footer p { margin: 0 0 8px; font-size: 12.5px; color: var(--faint); max-width: 90ch; }

@media (max-width: 640px) {
  .nav-in { padding-block: 16px; }
  .go-btn { padding: 10px 16px; font-size: 12.5px; }
  .go-btn--lg { padding: 14px 26px; font-size: 14px; }
}
