:root {
  --bg: #ffffff;
  --bg-soft: #f5f5fb;
  --text: #16162a;
  --muted: #4b4b66;
  --line: #dcdce8;
  --primary: #4f46e5;
  --primary-ink: #ffffff;
  --link: #4338ca;
  --focus: #4f46e5;
  --shadow: 0 10px 30px rgba(30, 27, 90, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e1c;
    --bg-soft: #16162b;
    --text: #ececf8;
    --muted: #b4b4cc;
    --line: #2e2e4a;
    --link: #a5b4fc;
    --focus: #a5b4fc;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 1.0625rem/1.65 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
nav.main ul { list-style: none; display: flex; gap: 4px 18px; margin: 0; padding: 0; flex-wrap: wrap; }
nav.main a { color: var(--text); text-decoration: none; padding: 6px 2px; display: inline-block; }
nav.main a:hover, nav.main a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; }

.btn { display: inline-block; background: var(--primary); color: var(--primary-ink); padding: 12px 22px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 2px solid var(--primary); }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--link); border-color: var(--line); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }
.small { font-size: .92rem; color: var(--muted); }

.hero { padding: 56px 0 32px; text-align: center; }
.hero p.lead { font-size: 1.25rem; color: var(--muted); max-width: 40rem; margin: 0 auto 1em; }
.hero .btn-row { justify-content: center; }
.shot { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); background: var(--bg-soft); overflow: hidden; }
.hero .shot { margin-top: 32px; }

section.block { padding: 48px 0; }
section.block.alt { background: var(--bg-soft); }
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 820px) {
  .split { grid-template-columns: 1fr 1.25fr; gap: 48px; }
  .split.flip > :first-child { order: 2; }
}
.badge { display: inline-block; font-size: .8rem; font-weight: 600; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 99px; padding: 1px 10px; color: var(--muted); }
.alt .badge { background: var(--bg); }
figcaption { font-size: .9rem; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--line); background: var(--bg); }
figure { margin: 0; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 20px; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--bg); }
.card h3 { margin-bottom: .3em; }
.card .btn { margin-top: 8px; }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .95rem; }
footer.site ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0 0 12px; }

main.page { padding: 40px 0 56px; }
main.page ul, main.page ol { padding-left: 1.3em; }
main.page li { margin-bottom: .4em; }
.note { border-left: 4px solid var(--primary); background: var(--bg-soft); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 1em 0; }
.os-mac .only-win, .os-win .only-mac { display: none; }
code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .92em; }
