:root {
  color-scheme: dark;
  --ink: #141425;
  --panel: #1e1d34;
  --paper: #eeeaff;
  --muted: #c1bbd7;
  --lavender: #c6b3ff;
  --rule: #77709055;
  --display: 'Avenir Next', 'Trebuchet MS', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  background: var(--ink);
  color: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body, figure, p, h1, h2, h3 { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
button { font: inherit; }
kbd { font: .88em var(--mono); white-space: nowrap; }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; letter-spacing: -.045em; }
.wrap { width: min(76rem, calc(100% - 6rem)); margin-inline: auto; }

.site-header, .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.site-header { min-height: 5.75rem; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: .65rem; font: 700 1.17rem var(--display); text-decoration: none; }
.brand img { display: block; }
.site-header nav { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); color: var(--muted); }
.site-header nav a { text-decoration-color: transparent; }
.site-header nav a:hover { text-decoration-color: currentColor; }

.hero { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); align-items: center; gap: clamp(2rem, 5vw, 5.25rem); padding-block: clamp(3.5rem, 8vw, 7.5rem); }
.eyebrow { color: var(--lavender); font: 600 .88rem var(--mono); margin-bottom: 1.25rem; }
h1 { font-size: clamp(3rem, 5.5vw, 5.6rem); line-height: .99; }
h1 span { color: var(--lavender); }
.intro { margin-block: 1.55rem 1.85rem; max-width: 31rem; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.22rem); }
.download { display: inline-flex; justify-content: center; align-items: center; min-height: 3.15rem; padding: .6rem 1.35rem; font-weight: 700; background: var(--lavender); color: #191328; border-radius: .65rem; text-decoration: none; }
.download:hover { background: #e3d8ff; }
.compatibility { margin-top: .7rem; color: var(--muted); font-size: .91rem; }

.demo { border: 1px solid #46415e; border-radius: 1.2rem; background: var(--panel); box-shadow: 0 1.4rem 3.5rem #09081772; min-width: 0; overflow: hidden; }
.demo-toolbar, .demo-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem 1rem; padding: .85rem 1.05rem; }
.demo-toolbar p { font: 600 .89rem var(--mono); }
.demo-keys { display: inline-flex; gap: .35rem; }
.demo-keys kbd { font-size: .75rem; color: var(--muted); border: 1px solid #605879; border-radius: .28rem; padding: .18rem .38rem; }
.desktop { position: relative; isolation: isolate; overflow: hidden; height: clamp(17rem, 28vw, 24rem); border-block: 1px solid #46415e; background: radial-gradient(ellipse at 68% 68%, #534980, transparent 64%), linear-gradient(135deg, #323051, #1c1b33 68%); }
.browser { --x: 9%; --y: 26%; --w: 61%; --h: 58%; --accent: #ffab99; }
.notes { --x: 35%; --y: 11%; --w: 57%; --h: 59%; --accent: #c6b3ff; }
.files { --x: 42%; --y: 53%; --w: 51%; --h: 37%; --accent: #c6ee94; }
.window, .outline { position: absolute; inset: var(--y) auto auto var(--x); width: var(--w); height: var(--h); border-radius: .62rem; }
.window { overflow: hidden; background: #262540; box-shadow: 0 .6rem 1.5rem #0f0d2499; opacity: .75; }
.window.browser { z-index: 3; }
.window.notes { z-index: 2; }
.window.files { z-index: 1; }
.desktop[data-front='browser'] .window.browser,
.desktop[data-front='notes'] .window.notes,
.desktop[data-front='files'] .window.files { z-index: 4; opacity: 1; }
.desktop[data-preview]::after { position: absolute; inset: 0; content: ''; z-index: 5; background: #141425b0; pointer-events: none; }
.desktop[data-preview='browser'] .window.browser,
.desktop[data-preview='notes'] .window.notes,
.desktop[data-preview='files'] .window.files { z-index: 6; opacity: 1; }
.outline { z-index: 7; border: 2px solid var(--accent); opacity: .43; pointer-events: none; }
.desktop[data-preview] .outline { opacity: .2; }
.desktop[data-preview='browser'] .outline.browser,
.desktop[data-preview='notes'] .outline.notes,
.desktop[data-preview='files'] .outline.files { opacity: 1; }
.target { position: absolute; z-index: 8; top: calc(var(--y) + .4rem); right: calc(100% - var(--x) - var(--w) + .4rem); min-height: 2.05rem; border: 1px solid var(--accent); padding: .2rem .57rem; border-radius: .35rem; cursor: pointer; color: var(--accent); background: #1c1c30; font-size: .9rem; font-weight: 700; }
.target:hover, .target:focus-visible { background: var(--accent); color: #171326; }
.window-bar { min-height: 2.85rem; display: flex; align-items: center; gap: .24rem; padding-inline: .65rem; border-bottom: 1px solid #ffffff20; background: #f3eaff0c; }
.window-bar i { width: .38rem; height: .38rem; border-radius: 50%; background: #cebdd477; }
.window-bar span { margin-inline-start: .28rem; font-size: .7rem; color: #ccc3e0; }
.browser-body, .notes-body, .files-body { padding: .8rem; }
.browser-body div { max-width: 84%; border-radius: .35rem; background: linear-gradient(150deg, #785b79, #3d446b); padding: .4rem .6rem; font: 700 clamp(.8rem, 2vw, 1.2rem) var(--display); }
.browser-body i { display: block; width: 62%; height: .26rem; margin-top: .55rem; border-radius: 1rem; background: #9a91c87d; }
.browser-body i:last-child { width: 38%; }
.notes-body { display: grid; gap: .2rem; color: #e3daf6; line-height: 1.3; font-size: clamp(.69rem, 1.4vw, .95rem); }
.notes-body strong { font: 700 clamp(.85rem, 1.6vw, 1.2rem) var(--display); margin-bottom: .3rem; }
.notes-body span:first-of-type { color: #c9acd9; }
.files-body { display: flex; gap: .55rem; }
.files-body i { margin-top: .1rem; width: 1.6rem; height: 1.15rem; background: #9bd6a9; border-radius: .13rem .22rem .22rem .22rem; }
.demo-caption { color: var(--muted); font-size: .9rem; line-height: 1.4; }
#demo-status { color: var(--paper); font-weight: 600; }

.steps-section { background: var(--paper); color: #262039; padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem 2rem; padding-bottom: 2.1rem; }
.section-heading p { max-width: 26rem; color: #4c4263; }
h2 { font-size: clamp(2.15rem, 4.35vw, 3.8rem); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; padding: 0; margin: 0; }
.steps li { border-top: 2px solid #bdb0de; padding-top: 1.2rem; }
.step-number { color: #564484; font: 600 .9rem var(--mono); }
.steps h3 { font-size: 1.58rem; margin-top: .55rem; }
.steps p { color: #4c4263; margin-top: .65rem; }
.steps kbd { padding: .1em .35em; border-radius: .18rem; background: #ded5f1; color: #342653; }

.setup, .privacy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(3rem, 7vw, 5.7rem); border-bottom: 1px solid var(--rule); scroll-margin-top: 1rem; }
.setup p, .privacy p { margin-top: .8rem; color: var(--muted); }
.setup ol { margin: 0; padding-left: 1.4rem; color: var(--muted); }
.setup li { padding-left: .4rem; }
.setup li + li { margin-top: 1rem; }
.setup li::marker, .setup strong { color: var(--paper); }
.privacy { align-items: center; }
.release { justify-self: start; }
.release details { margin-top: .55rem; color: var(--muted); font-size: .88rem; }
.release summary { width: fit-content; cursor: pointer; }
.release code { display: block; margin-top: .35rem; overflow-wrap: anywhere; }
.site-footer { padding-block: 1.5rem; color: var(--muted); font-size: .92rem; }

@media (max-width: 64rem) { .wide-break { display: none; } }
@media (max-width: 52rem) {
  .wrap { width: min(42rem, calc(100% - 3rem)); }
  .hero, .section-heading, .setup, .privacy { grid-template-columns: 1fr; }
  .hero { gap: 2.5rem; }
  .desktop { height: clamp(16rem, 65vw, 23rem); }
}
@media (max-width: 33rem) {
  .wrap { width: calc(100% - 2rem); }
  .site-header { min-height: 4.65rem; }
  .site-header nav { gap: .8rem; }
  .steps { grid-template-columns: 1fr; gap: 1.25rem; }
  .demo-toolbar, .demo-caption { padding-inline: .75rem; }
  .target { min-height: 2.75rem; top: calc(var(--y) + .25rem); right: calc(100% - var(--x) - var(--w) + .25rem); }
  .window-bar span { display: none; }
  .brand { gap: .25rem; }
}
