:root {
  color-scheme: dark;
  --background: #141915;
  --panel: #1b221c;
  --ink: #f3f5ee;
  --muted: #b6c1b6;
  --accent: #ccf9a6;
  --line: #38443a;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
svg { display: block; }
p { line-height: 1.75; margin: 0; }
.shell { inline-size: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; inset: 1rem auto auto 1rem; translate: 0 -200%; padding: .65rem 1rem; background: var(--accent); color: #131b14; }
.skip:focus { translate: 0; z-index: 1; }
.masthead { min-block-size: 78px; display: flex; gap: 1rem; justify-content: space-between; align-items: center; border-block-end: 1px solid var(--line); }
.brand, nav, nav a, .actions, .primary { display: flex; align-items: center; }
.brand { font-weight: 700; gap: .68rem; text-decoration: none; }
.brand svg { inline-size: 32px; color: var(--accent); }
nav { gap: clamp(.75rem, 2.5vw, 2rem); }
nav a { min-block-size: 44px; gap: .25rem; font-size: .88rem; text-decoration: none; color: var(--muted); }
nav a:hover, .site-footer a:hover { color: var(--accent); }
nav svg, .primary svg { fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
nav svg { inline-size: 14px; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); align-items: center; gap: clamp(2rem, 5vw, 5.5rem); padding-block: clamp(3.2rem, 7.5vw, 6.2rem) clamp(3.75rem, 8vw, 7rem); }
.eyebrow { color: var(--accent); font: 600 .76rem/1.3 "SFMono-Regular", Consolas, monospace; letter-spacing: .17em; }
h1 { font-size: clamp(2.7rem, 6.1vw, 5.1rem); line-height: 1.1; letter-spacing: -.07em; margin: 1rem 0 1.35rem; font-weight: 750; }
h1 span { color: var(--accent); }
.intro { color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.12rem); max-inline-size: 28rem; }
.actions { flex-wrap: wrap; gap: .75rem; margin-block: 1.85rem 1rem; }
.primary, .secondary { min-block-size: 46px; justify-content: center; padding: .68rem 1rem; border-radius: 7px; text-decoration: none; font-weight: 700; font-size: .88rem; }
.primary { gap: .5rem; background: var(--accent); color: #172117; }
.primary:hover { background: #e1ffc9; }
.primary svg { inline-size: 18px; }
.secondary { display: inline-flex; align-items: center; border: 1px solid #546354; }
.secondary:hover { background: #28352a; }
.requirements { color: var(--muted); font-size: .78rem; }

.preview { --icon-light: #9bd88c; --icon-dark: #3a6848; --icon-border: #b4e899; --icon-text: #dcffb8; border: 1px solid #4d5a4e; background: #202822; margin: 0; border-radius: 18px; box-shadow: 0 22px 55px #0005; }
.preview[data-active-palette="sky"] { --icon-light: #a5cbe9; --icon-dark: #405a88; --icon-border: #c1ddff; --icon-text: #d3eaff; }
.preview[data-active-palette="ochre"] { --icon-light: #e4b474; --icon-dark: #8c5b37; --icon-border: #ffd7a3; --icon-text: #ffdb9d; }
.preview-bar, figcaption { min-block-size: 56px; display: flex; align-items: center; gap: .8rem; padding-inline: clamp(1rem, 3vw, 1.45rem); font-size: .84rem; color: var(--muted); }
.window-lights { display: flex; gap: 6px; }
.window-lights i { block-size: 8px; inline-size: 8px; border-radius: 50%; background: #59685c; }
.window-lights i:first-child { background: #8da28b; }
.preview-stage { display: grid; place-items: center; position: relative; aspect-ratio: 1.62; border-block: 1px solid var(--line); background: radial-gradient(ellipse at center, #344938 0%, #222c25 50%, #1c251f 100%); }
.stage-grid { position: absolute; inset: 0; background-image: linear-gradient(90deg, #b7dcbb14 1px, transparent 1px), linear-gradient(#b7dcbb14 1px, transparent 1px); background-size: 25px 25px; background-position: center; }
.sample-icon { inline-size: clamp(104px, 31%, 166px); position: relative; filter: drop-shadow(0 13px 20px #0009); }
figcaption { justify-content: space-between; }
.swatches { display: flex; gap: .22rem; }
.swatches button { inline-size: 44px; block-size: 44px; border-radius: 50%; border: 1px solid transparent; background: transparent; display: grid; place-items: center; cursor: pointer; }
.swatches button::after { content: ""; inline-size: 18px; block-size: 18px; border-radius: 50%; background: var(--swatch); }
.swatches button[aria-pressed="true"]::after { outline: 1px solid var(--ink); outline-offset: 4px; }
.swatches [data-palette="moss"] { --swatch: #b7df97; }
.swatches [data-palette="sky"] { --swatch: #a5cbe9; }
.swatches [data-palette="ochre"] { --swatch: #e4b474; }

.section { border-block-start: 1px solid var(--line); padding-block: clamp(2.35rem, 5vw, 4.35rem); }
h2 { margin: 0; font-size: clamp(1.5rem, 3.2vw, 2.25rem); letter-spacing: -.045em; }
.section-head { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; align-items: baseline; margin-block-end: 1.6rem; }
.section p { color: var(--muted); font-size: .93rem; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.steps li, .price { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: clamp(1.15rem, 2.5vw, 1.75rem); }
.steps h3 { margin: 0 0 .45rem; font-size: 1.13rem; }
code { color: var(--accent); overflow-wrap: anywhere; }
.price, .support, .site-footer { display: flex; gap: 1rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.details h2 { margin-block-end: 1rem; }
details { border-block-end: 1px solid var(--line); }
details p { max-inline-size: 55rem; padding: 0 0 1rem; }
summary { cursor: pointer; padding-block: .85rem; }
summary:hover, .support a { color: var(--accent); }
.support { justify-content: flex-start; margin-block-start: 1.3rem; color: var(--muted); font-size: .91rem; }
.site-footer { padding-block: 1.3rem; border-block-start: 1px solid var(--line); color: var(--muted); font-size: .83rem; }

@media (max-width: 740px) {
  .shell { inline-size: calc(100% - 36px); }
  .masthead { min-block-size: 67px; }
  .hero, .steps { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 2.25rem; }
  h1 { font-size: clamp(2.75rem, 10vw, 4.1rem); }
}
@media (max-width: 365px) {
  .masthead { gap: .6rem; }
  .brand { font-size: .84rem; gap: .4rem; }
  .brand svg { inline-size: 26px; }
  nav { gap: .55rem; }
  nav svg { display: none; }
}

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.plans .price { display: grid; align-content: start; justify-content: stretch; justify-items: start; }
.price h3 { margin: 0 0 .45rem; font-size: 1.22rem; }
.price strong { color: var(--accent); font: 700 1.4rem/1.2 system-ui, sans-serif; }
.price small { color: var(--muted); font-size: .75rem; font-weight: 500; }
.snapshot-plan { border-color: #708b67; }
.snapshot-example { margin-block-start: 1rem; }
.snapshot-example:target, details:target { border-color: var(--accent); }
pre { margin-block: 0 1rem; padding: .95rem; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; white-space: pre-wrap; }
@media (max-width: 740px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
}
