/* Same colour tokens and type as the apps. Follows the visitor's light or dark setting. */
@font-face { font-family: "Fira Sans"; font-weight: 400; font-display: swap; src: url("/fonts/fira-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 600; font-display: swap; src: url("/fonts/fira-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 700; font-display: swap; src: url("/fonts/fira-sans-700.woff2") format("woff2"); }
@font-face { font-family: "Fira Code"; font-weight: 400; font-display: swap; src: url("/fonts/fira-code-400.woff2") format("woff2"); }

:root {
  --bg: #0f172a; --card: #1b2336; --card2: #252e43; --line: #2a3550; --strong: #64748b; --text: #f8fafc;
  --muted: #9aa8bc; --accent: #7db3ff; --primary: #2563eb; --pattern: rgb(125 179 255 / 0.09); color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f1f5f9; --card: #fff; --card2: #eef2f7; --line: #dde3ec; --strong: #7c8ba1; --text: #0f172a;
    --muted: #475569; --accent: #1d4ed8; --primary: #1d4ed8; --pattern: rgb(29 78 216 / 0.09); color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 "Fira Sans", "Segoe UI", system-ui, sans-serif;
  overflow-wrap: break-word;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--pattern);
  -webkit-mask: url("/pattern.svg") repeat; mask: url("/pattern.svg") repeat;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h1 { margin: 0 auto 16px; max-width: 18ch; font-size: clamp(2.25rem, 6vw, 3.75rem); letter-spacing: -0.02em; }
h2 { margin: 0 0 24px; font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { margin: 0 0 6px; font-size: 1.125rem; }
p { margin: 0 0 12px; }
code, pre { font-family: "Fira Code", Consolas, monospace; font-size: 0.9em; }
code { background: var(--card2); border-radius: 4px; padding: 1px 5px; }
pre { margin: 0 0 12px; padding: 12px; background: var(--card2); border-radius: 8px; overflow-x: auto; }
pre code { background: none; padding: 0; }

.wrap { width: min(1128px, 100% - 32px); margin-inline: auto; }
section.wrap { padding-block: 40px; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 20; padding: 10px 16px; border-radius: 8px; background: var(--primary); color: #fff; }
.skip:focus { top: 12px; }

.top { position: sticky; top: 0; z-index: 10; background: var(--card); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--text); text-decoration: none; line-height: 1.1; }
.brand small { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; }
.brand strong { font-size: 1.3rem; }
.brand em { font-style: normal; color: var(--accent); }
nav { display: flex; gap: 4px; }
nav a { display: grid; place-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border: 1px solid var(--strong); border-radius: 10px; background: var(--card); color: var(--text);
  font-weight: 600; text-decoration: none; transition: background-color 150ms, filter 150ms;
}
.button:hover { background: var(--card2); }
.button.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.button.primary:hover { filter: brightness(1.12); }
.button.small { min-height: 44px; padding: 0 18px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.hero { text-align: center; padding-top: 64px !important; }
.lead { max-width: 56ch; margin: 0 auto 28px; font-size: 1.2rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 16px; }
.fine { font-size: 0.875rem; color: var(--muted); }

figure { margin: 0; }
.screen img { width: 100%; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 60px rgb(0 0 0 / 0.3); background: var(--card); }
.hero .screen { margin-top: 40px; }
figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--muted); }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.cards li, .steps li, details, .facts { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.cards li { padding: 24px; }
.cards svg { width: 28px; height: 28px; margin-bottom: 14px; color: var(--accent); }
.cards p, .steps p, details p { color: var(--muted); }
.cards p:last-child, .steps p:last-child { margin: 0; }
strong { color: var(--text); }

.steps { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.steps li { position: relative; padding: 20px 20px 20px 76px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700;
}

details { padding: 0 20px; margin-bottom: 12px; }
summary { min-height: 56px; padding: 14px 0; cursor: pointer; font-weight: 600; }
details[open] { padding-bottom: 8px; }

.facts { margin: 0; padding: 20px 20px 20px 40px; display: grid; gap: 10px; color: var(--muted); }
.closing { text-align: center; }

footer { margin-top: 40px; padding: 32px 0; background: var(--card); border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); text-align: center; }

@media (max-width: 640px) {
  nav { display: none; }
  .actions .button { width: 100%; }
  .steps li { padding: 68px 20px 20px; }
}

/* Phone screenshots: three side by side, swipeable on narrow screens. */
.phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 40px; }
.phones img { width: min(280px, 100%); border: 8px solid var(--card2); border-radius: 32px; box-shadow: 0 24px 60px rgb(0 0 0 / 0.3); background: var(--card); }
.phones figcaption { flex-basis: 100%; margin: 0; }
.widgets { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; }
.widget-wide { width: min(480px, 100%); }
.widget-small { width: min(220px, 100%); }
@media (max-width: 640px) { .phones img { width: min(250px, 80%); } }
