/* Landing page. Reuses the tokens from style.css so the docs and the tool look
   like the same product; only the layout is new. */

body.landing {
  max-width: none;
  padding: 0;
  color: var(--ink);
  line-height: 1.6;
}
.landing a { color: var(--series-1); }

/* ------------------------------------------------------------------- nav -- */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.lp-brand { font-weight: 650; letter-spacing: -0.01em; }
.lp-nav nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.lp-nav nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.lp-nav nav a:hover { color: var(--ink); }
.lp-nav .lp-ghost {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* ------------------------------------------------------------------ hero -- */
.lp-hero {
  max-width: 780px;
  margin: 0 auto;
  padding: 88px 24px 40px;
  text-align: center;
}
.lp-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 660;
}
.lp-lede {
  color: var(--ink-2);
  font-size: 17px;
  margin: 0 auto 28px;
  max-width: 68ch;
}
.lp-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lp-btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--ink);
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
}
.lp-btn:hover { border-color: var(--baseline); }
.lp-btn.primary {
  background: var(--series-1);
  border-color: var(--series-1);
  color: #fff;
}
.lp-btn.primary:hover { filter: brightness(1.06); }
.lp-note {
  margin: 26px auto 0;
  max-width: 60ch;
  font-size: 14px;
  color: var(--muted);
}

/* --------------------------------------------------------------- screens -- */
.lp-shot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
}
.lp-shot img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
}
.lp-shot.inline { padding: 20px 0 0; }

/* -------------------------------------------------------------- sections -- */
.lp-section {
  padding: 64px 24px;
}
.lp-section > * {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.lp-section > .lp-cards { max-width: 940px; }
.lp-section.alt { background: var(--surface-1); border-block: 1px solid var(--border); }
.lp-section h2 {
  font-size: 27px;
  letter-spacing: -0.02em;
  /* keep the `auto` side margins — a `0` here would yank the heading out of the
     centered column that every sibling sits in */
  margin: 0 auto 16px;
}
.lp-h3 { margin-top: 40px; font-size: 19px; }
.lp-section p { color: var(--ink-2); }
.lp-section code {
  background: var(--wash);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ----------------------------------------------------------------- cards -- */
.lp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 28px auto 8px;
}
.lp-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--page);
}
.lp-section.alt .lp-card { background: var(--surface-1); }
.lp-card h3 { margin: 0 0 8px; font-size: 15px; }
.lp-card p { margin: 0; font-size: 14px; }

/* ----------------------------------------------------------------- steps -- */
.lp-steps { counter-reset: step; list-style: none; padding: 0; margin: 28px auto 0; }
.lp-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  margin-bottom: 26px;
}
.lp-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wash);
  color: var(--series-1);
  font-weight: 650;
  font-size: 14px;
}
.lp-steps h3 { margin: 4px 0 6px; font-size: 16px; }
.lp-steps p { margin: 0; font-size: 15px; }

/* ---------------------------------------------------------------- tables -- */
/* wider than the reading column: three columns of prose need the room */
.lp-table-wrap { overflow-x: auto; margin: 24px auto; max-width: 940px; }
.lp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}
.lp-table th, .lp-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.lp-table thead th { color: var(--muted); font-weight: 550; font-size: 13px; }
.lp-table tbody th { font-weight: 500; color: var(--ink); }
.lp-table td { color: var(--ink-2); }
.lp-table td.good { color: var(--good-text); font-weight: 550; }
.lp-table td.warn { color: var(--serious); font-weight: 550; }

/* ------------------------------------------------------------------ code -- */
.lp-code {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
}
.lp-section.alt .lp-code { background: var(--page); }
.lp-code code { background: none; padding: 0; }
kbd {
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 12px;
  font-family: inherit;
}

/* ------------------------------------------------------------------- faq -- */
.lp-faq {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.lp-faq summary {
  cursor: pointer;
  font-weight: 550;
  font-size: 15px;
}
.lp-faq p { margin: 10px 0 2px; font-size: 15px; }

/* ------------------------------------------------------------------ foot -- */
.lp-foot {
  padding: 40px 24px 56px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
}
.lp-foot p { margin: 4px 0; }
