@font-face {
  font-family: "Lexend";
  font-weight: 100 900;
  font-display: swap;
  src: url("lexend.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lexend";
  font-weight: 100 900;
  font-display: swap;
  src: url("lexend-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --band: #eceffa;
  --text: #1d2233;
  --muted: #4c5470;
  --border: #dfe3f0;
  --primary: #4f5bd5;
  --primary-hover: #4350c4;
  --on-primary: #ffffff;
  --focus: #f0a400;
  --shadow: 0 1px 2px rgb(24 32 70 / 6%), 0 12px 32px rgb(24 32 70 / 10%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161f;
    --surface: #1c1f2b;
    --band: #1a1d2a;
    --text: #eceef5;
    --muted: #b4bad0;
    --border: #2d3245;
    --primary: #8e98ff;
    --primary-hover: #a5adff;
    --on-primary: #14161f;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Lexend",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  letter-spacing: 0.012em;
  word-spacing: 0.05em;
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  text-align: center;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1rem;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 20;
}

.skip:focus {
  left: 0.5rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

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

.topbar nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar nav a:not(.button) {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.topbar nav a:not(.button):hover {
  color: var(--primary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem 1.4rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  border-color: var(--primary);
}

.button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

.button.primary:hover {
  background: var(--primary-hover);
}

.button.small {
  min-height: 40px;
  padding: 0.3rem 1rem;
}

main > section {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem);
}

main > section > * {
  max-width: 68rem;
  margin-inline: auto;
}

.band {
  background: var(--band);
}

.hero {
  text-align: center;
  padding-top: clamp(2.5rem, 7vw, 5rem);
}

.hero h1,
.hero .lead {
  max-width: 46rem;
}

.eyebrow {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.lead {
  color: var(--muted);
  font-size: 1.15em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.75rem auto;
}

.demo {
  margin: 2.5rem auto 0;
  max-width: 62rem;
}

.demo img,
.gallery img,
.two img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: var(--surface);
}

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

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

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}

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

.cards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.25rem;
}

.cards li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 2rem;
  align-items: center;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checks li {
  position: relative;
  padding: 0.6rem 0 0.6rem 2rem;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.55rem;
  color: var(--primary);
  font-weight: 700;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1.75rem;
}

.gallery figure {
  margin: 0;
}

.install {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin: 1.5rem auto;
}

.install h3 {
  margin-bottom: 0.5rem;
}

pre {
  margin: 0;
  padding: 1rem 1.2rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 12px;
  background: #14161f;
  color: #eceef5;
  font-size: 0.9rem;
  line-height: 1.5;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0;
}

p code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.05rem 0.4rem;
}

.narrow {
  max-width: 44rem;
  text-align: center;
  color: var(--muted);
}

footer {
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 3rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 720px) {
  .topbar nav a:not(.button) {
    display: none;
  }
}

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