:root {
  --bg: #ffffff; --band: #f7f6fb; --surface: #ffffff; --ink: #1d1d1f; --body: #4b4a57; --muted: #6b6a78;
  --line: #e6e4ef; --line-strong: #c9c6db; --kbd-bg: #f3f2f8;
  --accent: #5b4bdb; --accent-ink: #4b3fc6; --accent-on: #ffffff; --tint: #efedfc;
  --ok: #1f9d55;
  --zone: rgba(91, 75, 219, .18); --zone-line: rgba(91, 75, 219, .55);
  --screen-a: #e6e3f8; --screen-b: #d3cef1; --screen-line: #c7c2e4;
  --dark: #15141c; --dark-2: #1f1e29; --dark-3: #292836; --dark-line: #3a3949; --dark-text: #cfcdd9; --dark-muted: #9b99aa; --dark-accent: #a89dff;
  --radius: 16px; --radius-s: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121118; --band: #19181f; --surface: #1c1b24; --ink: #f2f2f5; --body: #bcbac8; --muted: #9593a4;
    --line: #2a2935; --line-strong: #3d3c4b; --kbd-bg: #23222d;
    --accent: #6a5be6; --accent-ink: #a89dff; --accent-on: #ffffff; --tint: #262246;
    --ok: #4fc97f;
    --zone: rgba(143, 130, 255, .22); --zone-line: rgba(143, 130, 255, .6);
    --screen-a: #262441; --screen-b: #1d1b33; --screen-line: #353254;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 "Manrope", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Focus and skip link */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .tabs button:focus-visible { outline-offset: 2px; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-on); font-weight: 700; }
.skip:focus { top: 12px; text-decoration: none; }

/* Header */
header.top { border-bottom: 1px solid var(--line); background: var(--bg); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.01em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.links { display: flex; gap: 28px; align-items: center; }
nav.links a { color: var(--body); font-weight: 600; font-size: 15px; }
nav.links a:hover, nav.links a[aria-current] { color: var(--ink); text-decoration: none; }
nav.links a[aria-current] { color: var(--accent-ink); }

/* Buttons: capsules, like the app */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 17px; border: 1.5px solid var(--line-strong); color: var(--ink); background: var(--surface); white-space: nowrap; }
.btn:hover { text-decoration: none; background: var(--kbd-bg); }
.btn.primary { background: var(--accent); color: var(--accent-on); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.08); background: var(--accent); }
.btn.small { height: 44px; padding: 0 20px; font-size: 15px; }
.btn svg { flex: none; }

/* Sections */
section { padding: 104px 0; }
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 12px; color: var(--accent-ink); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
h2 { margin: 0 0 12px; font-size: 44px; line-height: 1.08; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
.sub { margin: 0; font-size: 18px; line-height: 1.55; color: var(--body); max-width: 40em; }
.intro { margin-bottom: 48px; }
.intro.center { text-align: center; }
.intro.center .sub { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 96px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--accent-ink); font-weight: 700; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 24px; }
h1 { margin: 0 0 24px; font-size: 64px; line-height: 1.02; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.lede { margin: 0 0 32px; font-size: 20px; line-height: 1.55; color: var(--body); max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { margin: 24px 0 0; font-size: 14px; color: var(--muted); font-weight: 600; }

/* Hero illustration: a display with zones and a window being dropped */
.screen { position: relative; width: 100%; aspect-ratio: 16 / 10.5; border-radius: var(--radius); background: linear-gradient(160deg, var(--screen-a) 0%, var(--screen-b) 100%); border: 1px solid var(--screen-line); box-shadow: 0 30px 60px -30px rgba(29, 22, 64, .35); overflow: hidden; }
.screen .bar { position: absolute; inset: 0 0 auto 0; height: 24px; background: rgba(255,255,255,.75); display: flex; align-items: center; gap: 12px; padding: 0 14px; font-size: 11px; font-weight: 700; color: #3b3a48; }
.screen .bar i { width: 12px; height: 12px; border-radius: 3px; background: #1d1d1f; }
.screen .bar span { color: #6b6a78; }
.screen .zones { position: absolute; left: 14px; right: 14px; top: 38px; bottom: 14px; display: grid; grid-template-columns: 1fr 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.zone { border: 2px dashed var(--zone-line); border-radius: var(--radius-s); background: rgba(255,255,255,.35); display: grid; place-items: center; font-weight: 800; font-size: 20px; color: var(--accent-ink); }
.zone.tall { grid-row: span 2; }
.zone.hit { border-style: solid; border-color: var(--accent); background: var(--zone); }
.win { position: absolute; left: 34%; top: 30%; width: 40%; height: 46%; border-radius: var(--radius-s); background: #fff; border: 1px solid #cfcde0; box-shadow: 0 24px 48px -16px rgba(29,22,64,.45); transform: rotate(-2deg); overflow: hidden; }
.win .lights { height: 28px; background: #f3f2f8; border-bottom: 1px solid #e6e4ef; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.win .lines { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.win .lines i { display: block; height: 10px; border-radius: 5px; background: #e6e4ef; width: 70%; }
.win .lines i:nth-child(2) { width: 90%; }
.win .lines i:nth-child(3) { width: 55%; }
.badge { position: absolute; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #1d1d1f; color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); }
.badge kbd { background: #3a3949; border: 0; color: #fff; }

/* Trust strip */
.trust { padding: 24px 0; }
.trust .wrap { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; }
.trust div { display: flex; align-items: center; gap: 10px; color: var(--body); font-weight: 600; font-size: 15px; }
.trust svg { color: var(--accent-ink); flex: none; }

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.card:hover { border-color: var(--line-strong); }
.card .icon { width: 44px; height: 44px; border-radius: var(--radius-s); background: var(--tint); color: var(--accent-ink); display: grid; place-items: center; }
.card h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--body); }

kbd, code { font: 600 13px "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--kbd-bg); border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 6px; color: var(--ink); overflow-wrap: anywhere; }
kbd { border-bottom-width: 2px; white-space: nowrap; }
code { font-weight: 500; border-color: var(--line); }
pre { margin: 0 0 20px; padding: 14px 16px; border-radius: var(--radius-s); background: var(--kbd-bg); border: 1px solid var(--line); overflow-x: auto; font: 500 13px/1.6 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); }
pre code { padding: 0; border: 0; background: none; font: inherit; }

/* Screenshots (always dark) */
.shots { background: var(--dark); color: #fff; }
.shots .eyebrow { color: var(--dark-accent); }
.shots h2 { color: #fff; }
.shots .sub { color: var(--dark-text); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin: 0; padding: 0; list-style: none; }
.gallery li:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; border-radius: var(--radius-s); border: 1px solid var(--dark-line); background: var(--dark-2); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.gallery figcaption { padding: 14px 0 0; font-size: 15px; line-height: 1.5; color: var(--dark-text); }

/* Keyboard */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
.keys { list-style: none; margin: 0; padding: 0; }
.keys li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600; }
.keys li:last-child { border-bottom: 0; }
.keys kbd { font-size: 14px; padding: 3px 9px; background: var(--surface); }

/* Download + buy */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 920px; margin: 0 auto; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 36px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 30px 60px -40px rgba(91,75,219,.5); }
.plan .tag { position: absolute; top: -14px; left: 36px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.plan .kind { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.plan h3 { margin: 0 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.plan .price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.plan .price b { font-size: 48px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.plan .price s { font-size: 22px; font-weight: 700; color: var(--muted); }
.plan .price span { font-size: 16px; color: var(--body); font-weight: 600; }
.plan > p { margin: 0; font-size: 16px; color: var(--body); line-height: 1.5; }
.plan .launch { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--tint); color: var(--accent-ink); font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--body); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 2px; color: var(--accent-ink); }
.plan .foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.plan .foot .btn { width: 100%; }
.plan .note { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.plan .note a { color: var(--accent-ink); }
.terms-line { margin: 28px auto 0; max-width: 920px; text-align: center; font-size: 14px; color: var(--muted); }

/* FAQ */
.faq .split { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.faq .list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; font-size: 18px; font-weight: 700; letter-spacing: -.01em; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 22px; height: 22px; background: currentColor; color: var(--accent-ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
details[open] summary::after { transform: rotate(180deg); }
details p { margin: 0; padding: 0 40px 22px 0; font-size: 16px; line-height: 1.6; color: var(--body); }

/* Footer */
footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 32px 40px 48px; font-size: 14px; color: var(--muted); }
footer .brand-small { display: flex; align-items: center; gap: 10px; }
footer .brand-small img { width: 24px; height: 24px; border-radius: 6px; }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer nav a { color: var(--muted); font-weight: 600; }

/* Secondary pages */
.prose { max-width: 720px; padding-top: 56px; padding-bottom: 96px; }
.prose h1 { font-size: 44px; margin-bottom: 12px; }
.prose h2 { font-size: 24px; margin: 36px 0 8px; }
.prose h3 { font-size: 18px; margin: 28px 0 6px; }
.prose p, .prose li { color: var(--body); }
.prose li { margin: 4px 0; }
.prose .date { color: var(--muted); font-size: 15px; }
.prose table, .doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .doc th { text-align: left; font-weight: 700; color: var(--ink); }
.prose th, .prose td, .doc th, .doc td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--body); }
.table-wrap { overflow-x: auto; margin: 0 0 20px; }

/* Press kit */
.icons { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px; margin: 16px 0 8px; padding: 0; list-style: none; }
.icons li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.icons img { display: block; border-radius: 22.37%; }
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; font-size: 16px; }
.facts dt { font-weight: 700; color: var(--ink); }
.facts dd { margin: 0; color: var(--body); }
.press .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.press .gallery img { border-color: var(--line); box-shadow: none; background: var(--band); }
.press .gallery figcaption { color: var(--body); }
.files { margin: 8px 0 0; padding-left: 20px; }

/* Help */
.help { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 96px; }
.toc { position: sticky; top: 24px; }
.toc .toc-title, .toc-m summary { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol, .toc-m ol { list-style: none; margin: 0; padding: 0; counter-reset: ch; }
.toc li, .toc-m li { margin: 0; }
.toc a, .toc-m a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 9px; color: var(--body); font-weight: 600; font-size: 14px; line-height: 1.35; }
.toc a::before, .toc-m a::before { counter-increment: ch; content: counter(ch); flex: none; width: 1.6em; color: var(--muted); font-variant-numeric: tabular-nums; }
.toc a:hover, .toc-m a:hover { text-decoration: none; background: var(--kbd-bg); color: var(--ink); }
.toc a[aria-current], .toc-m a[aria-current] { background: var(--tint); color: var(--accent-ink); }
.toc a[aria-current]::before { color: inherit; }
.toc .home, .toc-m .home { margin-bottom: 8px; }
.toc .home a::before, .toc-m .home a::before { content: ""; counter-increment: none; }
.toc-m { display: none; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0 14px; margin-bottom: 24px; }
.toc-m summary { padding: 14px 0; margin: 0; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.toc-m ol { padding-bottom: 10px; }
.doc { max-width: 720px; min-width: 0; }
.doc h1 { font-size: 40px; margin: 0 0 20px; }
.doc .chapter { margin: 0 0 6px; color: var(--accent-ink); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.doc h2 { font-size: 26px; margin: 44px 0 12px; scroll-margin-top: 24px; }
.doc h3 { font-size: 19px; margin: 28px 0 8px; letter-spacing: -.01em; scroll-margin-top: 24px; }
.doc p, .doc li { color: var(--body); font-size: 17px; line-height: 1.6; }
.doc p { margin: 0 0 18px; }
.doc ul, .doc ol { margin: 0 0 18px; padding-left: 24px; }
.doc li { margin: 6px 0; }
.doc li p { margin: 0 0 8px; }
.doc li pre { margin: 10px 0; }
.doc figure { margin: 24px 0 28px; }
.doc figure img { display: block; border-radius: var(--radius-s); border: 1px solid var(--line); }
.doc figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.doc strong { color: var(--ink); }
.doc .lead { font-size: 19px; }
.doc .faq-list p { margin-bottom: 20px; }
.doc .faq-list strong { display: block; margin-bottom: 4px; font-size: 18px; letter-spacing: -.01em; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: 2px; max-width: 48%; font-weight: 700; }
.pager a small { font-size: 13px; font-weight: 600; color: var(--muted); }
.pager a.next { margin-left: auto; text-align: right; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.chapters a { display: block; height: 100%; padding: 16px 18px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.chapters a:hover { text-decoration: none; border-color: var(--line-strong); }
.chapters strong { display: block; margin-bottom: 4px; font-size: 16px; }
.chapters span { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }
.support-box { margin-top: 40px; padding: 20px 22px; border-radius: var(--radius-s); background: var(--band); border: 1px solid var(--line); }
.support-box p { margin: 0; }

@media (max-width: 900px) {
  .wrap { padding: 0 16px; }
  footer .wrap { padding: 28px 16px 40px; }
  header.top .wrap { height: 64px; }
  nav.links { display: none; }
  section { padding: 64px 0; }
  .hero { padding: 48px 0 40px; }
  .hero .wrap, .grid, .split, .plans, .faq .split, .gallery, .press .gallery, .chapters { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 32px; }
  .chapters { gap: 10px; }
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .lede { font-size: 18px; }
  .cta { flex-direction: column; align-items: stretch; }
  .cta .btn { width: 100%; }
  .fine { text-align: center; }
  .trust .wrap { flex-direction: column; gap: 12px; align-items: flex-start; }
  .card { flex-direction: row; padding: 18px; }
  .card .icon { flex: none; width: 40px; height: 40px; }
  .plan { padding: 24px; }
  .plan .price b { font-size: 40px; }
  details p { padding-right: 0; }
  .prose h1, .doc h1 { font-size: 34px; }
  .help { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 24px; padding-bottom: 64px; }
  .toc { display: none; }
  .toc-m { display: block; }
  .facts { grid-template-columns: 1fr; gap: 2px 0; }
  .facts dd { margin-bottom: 10px; }
  .pager { flex-direction: column; }
  .pager a { max-width: none; }
  .pager a.next { margin-left: 0; text-align: left; }
}
