:root {
  --bg: #ffffff;
  --band: #f5f7fa;
  --surface: #ffffff;
  --text: #14171c;
  --muted: #5a6575;
  --border: #e0e5ec;
  --accent: #1f5eff;
  --accent-strong: #1747cc;
  --accent-text: #ffffff;
  --accent-soft: #e8efff;
  --ink: #18181b;
  --shadow: 0 24px 60px -20px rgba(20, 30, 60, 0.25), 0 2px 8px rgba(20, 30, 60, 0.06);
  --max: 720px;
  --max-wide: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --band: #151a21;
    --surface: #1a2029;
    --text: #e9ecf1;
    --muted: #9aa5b4;
    --border: #28303b;
    --accent: #6c93ff;
    --accent-strong: #8aa9ff;
    --accent-text: #0b0e12;
    --accent-soft: #1b2644;
    --ink: #000000;
    --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

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

.wrap.wide {
  max-width: var(--max-wide);
}

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 12px 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand img {
  border-radius: 7px;
}

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

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--text);
}

nav a.button {
  color: var(--accent-text);
}

h1 {
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  line-height: 1.1;
  margin: 12px 0 20px;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.08rem;
  margin: 0 0 8px;
}

p {
  margin: 0 0 16px;
}

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

code,
kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--band);
  color: var(--text);
}

code {
  background: var(--band);
  border-radius: 5px;
  padding: 1px 5px;
}

.center {
  text-align: center;
}

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

.lead {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 40em;
}

.sub {
  color: var(--muted);
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
  transition: background 0.15s, transform 0.15s;
}

.button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.button.small {
  padding: 7px 14px;
  font-size: 0.9rem;
}

.button.big {
  padding: 15px 28px;
  font-size: 1.1rem;
  box-shadow: 0 10px 24px -10px var(--accent);
}

.ghost {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  padding: 15px 8px;
}

.ghost:hover {
  color: var(--accent);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 28px 0 16px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.trust li::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}

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

.hero {
  padding: 56px 0 72px;
  background: radial-gradient(900px 400px at 85% -10%, var(--accent-soft), transparent 70%);
}

.stage {
  position: relative;
  margin-top: 48px;
}

.switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 8px 16px 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 4px 14px -6px rgba(20, 30, 60, 0.25);
  cursor: pointer;
  font-weight: 600;
  user-select: none;
}

.switch-input:focus-visible + .switch {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.track {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--border);
  transition: background 0.2s;
}

.thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.switch-input:checked + .switch .track {
  background: var(--accent);
}

.switch-input:checked + .switch .thumb {
  transform: translateX(18px);
}

.off-text {
  display: none;
}

.switch-input:not(:checked) + .switch .on-text {
  display: none;
}

.switch-input:not(:checked) + .switch .off-text {
  display: inline;
}

.frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--band);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shot {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s;
}

.shot-masked {
  opacity: 1;
}

.switch-input:not(:checked) ~ .frame .shot-masked {
  opacity: 0;
}

.caption {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

section {
  padding: 72px 0;
}

.hero {
  padding-bottom: 72px;
}

.band {
  background: var(--band);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cards {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.cards.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.steps {
  list-style: none;
  counter-reset: step;
  max-width: var(--max);
  margin: 32px auto 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 20px 56px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  text-align: center;
  line-height: 38px;
  font-weight: 700;
}

.editor {
  margin: 36px 0 0;
}

.editor img {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.editor figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 32px 0 20px;
}

.chips li {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 500;
}

details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

details:first-of-type {
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
}

details[open] summary::after {
  content: '\2212';
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
}

.final {
  text-align: center;
  background: radial-gradient(700px 300px at 50% 0%, var(--accent-soft), transparent 70%);
}

.final img {
  border-radius: 16px;
}

.final .lead {
  margin-left: auto;
  margin-right: auto;
}

footer.site {
  padding: 24px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site p {
  margin: 0 0 8px;
}

main.doc h1 {
  margin-top: 40px;
  max-width: none;
}

main.doc h2 {
  margin-top: 40px;
}

main.doc ul.plain {
  padding-left: 20px;
  margin: 0 0 16px;
}

main.doc ul.plain li {
  margin-bottom: 8px;
}

@media (max-width: 860px) {
  .cards.three {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  nav a:not(.button) {
    display: none;
  }

  .hero {
    padding: 36px 0 48px;
  }

  section {
    padding: 48px 0;
  }

  .cards.three,
  .cards.two {
    grid-template-columns: 1fr;
  }

  .lead {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
