:root {
  color-scheme: light;
  --ink: #31312f;
  --muted: #575a53;
  --secondary-label: #949494;
  --selection-label: #56675a;
  --input-border: #ededed;
  --green: #365841;
  --link-hover: #1d6a49;
  --accent: #6e8c72;
  --selection: #c1d7c1;
  --workspace: #eeebe7;
  --panel: #fff;
  --cream: #faf9f6;
  --inset: #f5f4f0;
  --line: #dfded7;
  font: 100%/1.65 system-ui, -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--cream); }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--link-hover); text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid #cd7829;
  outline-offset: 4px;
}
button { font: inherit; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }

.wrap { width: min(1240px, calc(100% - 3rem)); margin-inline: auto; }
.site-header { background: var(--cream); }
.navigation, .nav-links, .wordmark { display: flex; align-items: center; }
.navigation { justify-content: space-between; min-height: 68px; gap: 1rem; }
.nav-links { gap: clamp(.8rem, 3vw, 2rem); font-size: .94rem; }
.nav-links a, .wordmark { text-decoration: none; font-weight: 650; }
.wordmark { gap: .55rem; font-size: 1.2rem; letter-spacing: -.035em; }
.wordmark img { display: block; }
.nav-download { border: 1px solid #bacabb; border-radius: 7px; padding: .35rem .85rem; }
.nav-download:hover { background: var(--selection); border-color: #8aa68b; }

.hero { background: var(--workspace); border-block: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .33fr) minmax(0, .67fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 4rem);
  padding-block: clamp(2.75rem, 6vw, 5rem);
}
.platform { color: var(--green); font-weight: 680; letter-spacing: .07em; }
h1 { font-size: 5rem; font-weight: 550; line-height: 1.08; letter-spacing: -.035em; margin: .3rem 0 1.25rem; }
.hero-subtitle { display: block; margin: .45rem 0 0 .2rem; color: var(--green); font-size: .875rem; font-weight: 500; letter-spacing: .04em; }
.hero h2 { font-size: 1.95rem; font-weight: 550; letter-spacing: .015em; line-height: 1.48; }
.intro { color: var(--muted); margin-top: 1.05rem; max-width: 23rem; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .74rem 1.35rem; border-radius: 8px; text-decoration: none; font-weight: 750; }
.primary { gap: .5rem; border: 1px solid transparent; color: var(--panel); background: var(--green); }
.apple-mark, .github-mark { flex: none; }
.primary:hover { color: var(--panel); background: #426b50; }
.download-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; width: min(100%, 22rem); }
.download-buttons .button { gap: .5rem; padding-inline: .45rem; font-weight: 400; white-space: nowrap; }
.github-pending { border: 1px solid #141414; background: #141414; color: #fff; opacity: 1; cursor: default; -webkit-text-fill-color: currentColor; }
.hero .download-buttons { margin-top: 1.45rem; }
.download-compat { color: #686e66; font-size: .75rem; font-weight: 400; text-align: center; }
.hero .download-compat { width: min(100%, 22rem); margin-top: .45rem; }

.demo { align-self: center; min-width: 0; -webkit-user-select: none; user-select: none; }
.demo .speed-value:enabled { -webkit-user-select: text; user-select: text; }
.demo-window { overflow: hidden; border-radius: 15px; border: 1px solid #d8d6d0; background: var(--workspace); box-shadow: 0 15px 32px #40362b22; font-size: .875rem; }
.demo-title { display: flex; justify-content: space-between; align-items: center; padding: .5rem .85rem; border-bottom: 1px solid var(--line); background: var(--panel); }
.demo-label { color: var(--muted); }
.window-controls { display: flex; gap: 6px; }
.window-controls i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.window-controls i:nth-child(2) { background: #febc2e; }
.window-controls i:nth-child(3) { background: #28c840; }
.demo-workspace { display: grid; grid-template-columns: minmax(16rem, 39%) minmax(0, 1fr); }
.demo-sidebar { display: grid; align-content: start; gap: .55rem; min-width: 0; padding: .72rem; border-right: 1px solid var(--line); }
.demo-brand { display: flex; align-items: center; gap: .5rem; margin: .15rem .2rem .35rem; color: #8db990; font-size: 1.0625rem; font-weight: 800; }
.demo-brand img { width: 34px; height: 34px; border-radius: 50%; }
.demo-card { min-inline-size: 0; margin: 0; padding: .6rem; border: 1px solid #0000000d; border-radius: 10px; background: var(--panel); box-shadow: 0 3px 9px #28231c08; }
.demo-card p { color: var(--secondary-label); font-size: .6875rem; font-weight: 600; margin-bottom: .33rem; }
.demo-card .demo-hint { font-weight: 400; margin: .34rem 0 0; }
.demo-tools, .demo-library { display: flex; gap: .3rem; }
.demo-tools > *, .demo-library > *, .demo-chip { min-width: 0; padding: .22rem .28rem; border: 0; border-radius: 6px; background: var(--inset); font-weight: 650; text-align: center; white-space: nowrap; }
.demo-tools > *, .demo-library > * { flex: 1; }
.demo .selected, .speed-presets button[aria-pressed="true"] { background: var(--selection); color: var(--selection-label); }
.demo-connection-status { display: flex; justify-content: space-between; align-items: center; gap: .35rem; margin-top: .42rem; color: var(--secondary-label); }
.demo-connection-status > span:first-child::before { content: ""; display: inline-block; width: .42rem; height: .42rem; margin-right: .3rem; border-radius: 50%; background: var(--accent); vertical-align: .12em; }
.demo-search { display: flex; align-items: stretch; gap: 6px; height: 28px; font-size: 15px; }
.demo-search-placeholder { flex: 1; min-width: 0; overflow: hidden; padding: 0 7px; line-height: 26px; border: 1px solid var(--input-border); border-radius: 6px; background: #fcfcfc; color: var(--secondary-label); white-space: nowrap; text-overflow: ellipsis; }
.demo-search .demo-chip { display: grid; place-items: center; padding: 0 7px; }
.demo-search .history-icon { flex: 0 0 28px; width: 28px; height: 28px; padding: 0; }
.speed-presets { gap: 4px; }
.speed-presets button { padding: .2rem 1px; color: var(--ink); font-size: .65rem; }
.speed-presets button:enabled:hover { background: #d6e5d5; }
.speed-slider { appearance: none; display: block; width: calc(100% - 40px); height: 20px; margin: 5px 20px; background: linear-gradient(to right, var(--accent) 0 var(--speed-progress, 0%), #e8e8e8 var(--speed-progress, 0%) 100%) center / 100% 6px no-repeat; border-radius: 20px; cursor: pointer; }
.speed-slider::-webkit-slider-runnable-track { height: 6px; background: transparent; }
.speed-slider::-moz-range-track { height: 6px; background: transparent; }
.speed-slider::-webkit-slider-thumb { appearance: none; width: 20px; height: 16px; margin-top: -5px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 1px 5px #00000026; }
.speed-slider::-moz-range-thumb { width: 20px; height: 16px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 1px 5px #00000026; }
.speed-readout { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.speed-readout > span { color: var(--secondary-label); }
.speed-readout input { width: 62px; padding: .1rem .4rem; font: inherit; border: 1px solid var(--input-border); border-radius: 6px; background: #fcfcfc; color: var(--ink); font-variant-numeric: tabular-nums; }
.demo-main { min-width: 0; display: grid; grid-template-rows: auto 1fr; }
.demo-library { padding: .45rem .55rem; background: var(--panel); border-bottom: 1px solid var(--line); }
.map { position: relative; display: grid; min-height: 20rem; background: #eae9de; }
.map canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.no-script { text-align: center; align-self: center; padding: 1rem; z-index: 1; }
.demo-state { position: absolute; right: .55rem; bottom: .55rem; padding: .2rem .45rem; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.setup, #download { padding-block: 5.5rem; }
.section h2 { font-size: 2.5rem; letter-spacing: -.04em; line-height: 1.25; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.25rem); margin-top: 2.15rem; }
.feature-grid article { border-top: 1px solid var(--line); padding-top: 1.2rem; scroll-margin-top: 1.25rem; }
.feature-grid article:target { border-color: var(--accent); }
.feature-grid h3 { margin: .65rem 0 .35rem; font-size: 1.14rem; }
.feature-grid p, .setup p, .setup-steps span { color: var(--muted); }
.feature-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 9px; background: #e6eee3; color: var(--green); }
.feature-icon::before, .feature-icon::after { content: ""; grid-area: 1 / 1; }
.pin::before { width: 15px; height: 15px; border: 2px solid; border-radius: 50% 50% 50% 0; rotate: -45deg; translate: 0 -2px; }
.pin::after { width: 4px; height: 4px; border-radius: 50%; background: currentColor; translate: 0 -2px; }
.path::before { width: 19px; height: 11px; border: solid; border-width: 2px 0; border-radius: 7px; rotate: -28deg; }
.path::after { width: 4px; height: 4px; border-radius: 50%; background: currentColor; translate: 8px -6px; box-shadow: -16px 12px currentColor; }
.layers::before, .layers::after { width: 13px; height: 13px; border: 2px solid; rotate: 45deg; }
.layers::before { translate: 0 -3px; background: #e6eee3; z-index: 1; }
.layers::after { translate: 0 3px; }
.spots::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: -7px 6px currentColor, 7px 6px currentColor; translate: 0 -4px; }
.bookmark::before { width: 12px; height: 18px; background: currentColor; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
.coordinates::before { width: 17px; height: 17px; border: 2px solid; border-radius: 3px; }
.coordinates::after { width: 7px; height: 7px; border: 2px solid; border-radius: 50%; }

.setup { background: var(--inset); }
.setup-grid { display: grid; grid-template-columns: .83fr 1.17fr; gap: 1.35rem 4rem; align-items: start; }
.setup p { margin-top: .8rem; }
.connection-notes { grid-column: 1 / -1; max-width: 42rem; color: var(--muted); font-size: .925rem; }
.connection-notes summary { cursor: pointer; font-weight: 650; }
.connection-notes summary:hover { color: var(--link-hover); }
.connection-notes p { margin-top: .55rem; }
.setup-steps { list-style: none; counter-reset: steps; padding: 0; margin: 0; display: grid; gap: 1.05rem; }
.setup-steps li { position: relative; padding: 0 0 1rem 2.9rem; border-bottom: 1px solid var(--line); }
.setup-steps li::before { counter-increment: steps; content: counter(steps) / ""; position: absolute; left: 0; top: 0; width: 2rem; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--selection); font-weight: 700; }
.setup-steps span { display: block; margin-top: .2rem; }

#download { container: download / inline-size; }
.download-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); align-items: center; gap: 1.6rem; padding: 3rem; background: var(--inset); border: 1px solid var(--line); border-radius: 16px; }
.download-card p { margin-top: .65rem; color: var(--muted); }
.download-info { min-width: 0; }
.download-card:has(.install-guide[open]) { align-items: start; }
.install-guide { margin-top: .65rem; font-size: .875rem; }
.install-guide summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .55rem; list-style: none; cursor: pointer; color: var(--muted); }
.install-guide summary::-webkit-details-marker { display: none; }
#install-guide-label { color: var(--green); font-weight: 650; text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
.install-guide summary:hover #install-guide-label { color: var(--link-hover); text-decoration: none; }
#install-guide-label::after { display: inline-block; content: ""; width: .35em; height: .35em; margin-left: .45em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-.15em) rotate(45deg); }
.install-guide[open] #install-guide-label::after { transform: rotate(225deg); }
.install-guide-body { container: install-guide / inline-size; margin-block-start: .9rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.install-guide-body ol { display: grid; gap: .5rem; margin: 0 0 1rem; padding-inline-start: 1.3rem; }
.settings-example { overflow: hidden; border: 1px solid #d7d8db; border-radius: 13px; background: #fbfbfd; color: #25262a; }
.settings-example-title { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .35rem; padding: .55rem .75rem; border-bottom: 1px solid #e3e4e8; background: linear-gradient(#fcfcfd, #f2f2f5); }
.settings-example-badge { justify-self: end; padding: .08rem .38rem; border-radius: 5px; background: #e8ece4; color: var(--green); font-size: .75rem; white-space: nowrap; }
.settings-example-layout { display: grid; grid-template-columns: minmax(9rem, .82fr) minmax(0, 2fr); }
.settings-example-sidebar, .settings-example-content { display: grid; align-content: start; gap: .6rem; padding: .75rem; }
.settings-example-sidebar { background: #eff0f4; border-inline-end: 1px solid #e1e2e7; }
.settings-example-search { padding: .2rem .5rem; border-radius: 6px; background: #e4e5eb; color: #5e606a; }
.settings-example-selected { padding: .3rem .45rem; border-radius: 6px; color: #fff; background: #1562ce; }
.settings-example-heading { font-size: 1rem; padding-bottom: .25rem; }
.settings-example-blur { display: grid; gap: .4rem; padding: .4rem .5rem; opacity: .65; }
.settings-example-blur i { display: block; width: 72%; height: 1rem; border-radius: 5px; background: linear-gradient(90deg, #acb9d2 15%, #c3c5cc 15%, #d5d6dd); filter: blur(2.5px); }
.settings-example-blur i:nth-child(2) { width: 56%; }
.settings-example-blur i:nth-child(3) { width: 63%; }
.settings-example-content > .settings-example-blur, .settings-example-group { border-radius: 8px; background: #f0f1f4; }
.settings-example-highlight { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem; margin: 0 .25rem .25rem; padding: .45rem; border: 2px solid #699571; border-radius: 7px; background: #fff; }
.settings-example-highlight > span:first-child { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.settings-example-action { display: inline-block; padding: .12rem .55rem; border-radius: 5px; color: #fff; background: #1562ce; font-weight: 650; }
.settings-example figcaption { padding: .5rem .65rem; border-top: 1px solid #e3e4e8; background: #fff; color: var(--muted); font-size: .8rem; }
.download-actions { display: grid; justify-items: center; gap: .55rem; width: min(100%, 22rem); }
.download-card .download-compat { margin: 0; color: #686e66; }
.download-card .download-source { margin: 0; font-size: .875rem; text-align: center; }
.footer { font-size: .875rem; }
.footer { border-top: 1px solid var(--line); padding-block: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; color: var(--muted); }

@container download (max-width: 46rem) {
  .download-card { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .download-info { width: min(100%, 36rem); }
  .download-info > h2, .download-info > p, .install-guide summary { text-align: center; }
  .install-guide summary { justify-content: center; }
}
@container install-guide (max-width: 23rem) {
  .settings-example-layout { grid-template-columns: 1fr; }
  .settings-example-sidebar { border-inline-end: 0; border-bottom: 1px solid #e1e2e7; }
  .settings-example-sidebar .settings-example-blur, .settings-example-search { display: none; }
}

@media (max-width: 1220px) {
  .hero h1 { font-size: 4rem; }
  .hero h2 { font-size: 1.75rem; }
}
@media (max-width: 1100px), (max-width: 1400px) and (pointer: coarse) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy h1 { font-size: 3.75rem; }
  .hero h2 { font-size: 1.625rem; }
  #features h2 { font-size: 2rem; }
  .hero-copy h1, .hero-subtitle, .hero-copy .intro,
  .hero .download-buttons, .hero .download-compat, .demo { margin-inline: auto; }
  .hero-copy .intro { text-wrap: balance; }
  .demo { width: min(100%, 750px); }
}
@media (max-width: 700px) {
  .hero-copy h1 { font-size: 3.25rem; }
  .hero h2 { font-size: 1.45rem; }
  .section h2, #features h2 { font-size: 1.625rem; }
  .setup, #download { padding-block: 3.25rem; }
  .setup-grid { grid-template-columns: 1fr; }
  .download-card { padding: 1.5rem; }
  .install-guide-body { padding: .8rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-viewport { position: relative; overflow: hidden; height: var(--preview-height, 56vw); border-radius: 8px; }
  .demo-window { position: absolute; inset: 0 auto auto 0; width: 780px; transform-origin: top left; transform: scale(var(--preview-scale, .4)); }
  .demo-speed { pointer-events: none; }
  .demo-speed input:disabled { opacity: 1; -webkit-text-fill-color: currentColor; }
}
@media (max-width: 480px) {
  .download-card { padding-inline: .7rem; }
  .download-buttons { gap: .4rem; }
  .download-buttons .button { gap: .3rem; padding-inline: .2rem; font-size: .875rem; }
  .apple-mark, .github-mark { width: 16px; height: 16px; }
}
@media (max-width: 390px) {
  .wrap { width: calc(100% - 2rem); }
  .feature-grid { grid-template-columns: 1fr; }
}
