/*
 * Colour tokens and fonts match the dashboard (web/src/index.css). No JavaScript on this page, so the theme follows
 * the system setting only.
 */
:root {
  color-scheme: dark;
  --bg: #0d1117;
  --panel: #141a22;
  --line: #252d38;
  --text: #e7ebf0;
  --muted: #a3adba;
  --accent: #5b9bff;
  --accent-ink: #0b1220;
  --accent-soft: rgba(91, 155, 255, 0.14);
  --good: #3dd68c;
  --code: #0a0e13;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f4f6f8;
    --panel: #ffffff;
    --line: #e1e5ea;
    --text: #16191f;
    --muted: #4f5968;
    --accent: #0052cc;
    --accent-ink: #ffffff;
    --accent-soft: rgba(0, 82, 204, 0.09);
    --good: #0e7a45;
    --code: #f3f5f8;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "IBM Plex Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  max-width: 20ch;
}

h2 {
  font-size: 1.6rem;
  font-weight: 600;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

.mono {
  white-space: nowrap;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.92em;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* Header */
.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.brand-cloud {
  color: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
}

.nav-link:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  filter: none;
}

.btn-small {
  padding: 6px 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 12px;
}

/* Sections */
.hero {
  padding-top: 72px;
  padding-bottom: 48px;
}

.eyebrow {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.15rem;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
}

.section > p {
  max-width: 70ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.card p,
.steps p {
  margin: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps h3::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
}

.checklist {
  max-width: 75ch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.45em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--good);
  border-bottom: 2px solid var(--good);
  transform: rotate(-45deg);
}

.cta {
  padding-top: 48px;
  padding-bottom: 64px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta .actions {
  justify-content: center;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
}

@media (max-width: 480px) {
  .hero {
    padding-top: 40px;
  }

  .actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }
}
