/* Remember Windows website. System fonts only, no external requests. */

:root {
  color-scheme: light dark;

  --bg: #fbfbfd;
  --bg-soft: #f3f4f8;
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --text: #1d1d1f;
  --text-2: #45464f;
  --text-3: #6b6c76;
  --line: rgba(24, 26, 48, 0.1);
  --line-strong: rgba(24, 26, 48, 0.16);
  --accent: #3550e6;
  --accent-text: #2f48d6;
  --accent-soft: rgba(61, 92, 240, 0.09);
  --accent-ink: #ffffff;
  --btn-a: #4a69f6;
  --btn-b: #3a3bc9;
  --glow-a: rgba(108, 140, 255, 0.28);
  --glow-b: rgba(126, 92, 236, 0.18);
  --dot: rgba(40, 50, 120, 0.13);
  --note-bg: #f2f4ff;
  --note-line: rgba(61, 92, 240, 0.22);
  --code-bg: rgba(24, 26, 48, 0.06);
  --shadow: 0 1px 2px rgba(15, 20, 60, 0.05), 0 8px 24px rgba(15, 20, 60, 0.06);
  --focus: #3d5cf0;

  /* illustration */
  --ill-win: #ffffff;
  --ill-bar: #f1f2f6;
  --ill-side: #eceef5;
  --ill-line: #d9dce6;
  --ill-head: #b9bdcb;
  --ill-ghost: rgba(255, 255, 255, 0.9);
  --ill-ghost-fill: rgba(255, 255, 255, 0.14);
  --ill-menubar: rgba(255, 255, 255, 0.55);
  --ill-menu-ink: rgba(29, 29, 31, 0.45);
  --ill-wall-a: #a5c2ff;
  --ill-wall-b: #7189f6;
  --ill-wall-c: #5b50d8;
  --ill-metal-a: #e6e8ed;
  --ill-metal-b: #c4c7cf;
  --ill-bezel: #1c1d22;
  --ill-desk: rgba(26, 32, 80, 0.16);
  --ill-tile-0: #dfe5ff;
  --ill-tile-1: #ffe3d2;
  --ill-tile-2: #dcf3e6;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --font-rounded: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1080px;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c11;
    --bg-soft: #111219;
    --surface: #15161e;
    --surface-2: #1a1c25;
    --text: #f5f5f7;
    --text-2: #c2c3cc;
    --text-3: #9596a2;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.15);
    --accent: #8197ff;
    --accent-text: #93a6ff;
    --accent-soft: rgba(129, 151, 255, 0.12);
    --btn-a: #4a67f2;
    --btn-b: #3a3bc9;
    --glow-a: rgba(80, 110, 255, 0.24);
    --glow-b: rgba(130, 80, 240, 0.18);
    --dot: rgba(160, 175, 255, 0.11);
    --note-bg: rgba(129, 151, 255, 0.08);
    --note-line: rgba(129, 151, 255, 0.25);
    --code-bg: rgba(255, 255, 255, 0.08);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.3);
    --focus: #93a6ff;

    --ill-win: #2a2b33;
    --ill-bar: #33343d;
    --ill-side: #30313a;
    --ill-line: #4a4c58;
    --ill-head: #6c6f7d;
    --ill-ghost: rgba(255, 255, 255, 0.75);
    --ill-ghost-fill: rgba(255, 255, 255, 0.07);
    --ill-menubar: rgba(20, 20, 30, 0.45);
    --ill-menu-ink: rgba(255, 255, 255, 0.55);
    --ill-wall-a: #3b4fae;
    --ill-wall-b: #2c2f8a;
    --ill-wall-c: #1d1650;
    --ill-metal-a: #4a4d56;
    --ill-metal-b: #2c2e35;
    --ill-bezel: #050507;
    --ill-desk: rgba(0, 0, 0, 0.5);
    --ill-tile-0: #3a4378;
    --ill-tile-1: #5a3f3a;
    --ill-tile-2: #2f4d40;
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 76px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

main { flex: 1 0 auto; }
.site-header, .site-footer { flex: none; }

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.12;
}

p { margin: 0 0 1em; }

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--code-bg);
  padding: 0.12em 0.4em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 2.1em;
  height: 2.1em;
  padding: 0 0.5em;
  font-family: var(--font-rounded);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-bottom-width: 3px;
  border-radius: 9px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 14px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav ul {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav ul a {
  display: block;
  padding: 6px 11px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.9rem;
}
.site-nav ul a:hover { color: var(--text); text-decoration: none; background: var(--accent-soft); }
.site-nav ul a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 980px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  color: var(--accent-ink);
  background: linear-gradient(180deg, var(--btn-a), var(--btn-b));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 18px rgba(58, 70, 220, 0.32);
  padding: 15px 30px 15px 24px;
  font-size: 1.06rem;
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 26px rgba(58, 70, 220, 0.38); }
.btn-primary svg { width: 20px; height: 20px; flex: none; }

.btn-small {
  color: var(--accent-ink);
  background: linear-gradient(180deg, var(--btn-a), var(--btn-b));
  padding: 6px 15px;
  font-size: 0.86rem;
  margin-left: 6px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.link-arrow::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.6px solid currentColor;
  border-top: 1.6px solid currentColor;
  transform: rotate(45deg);
  margin-left: 3px;
  transition: transform 0.2s var(--ease);
}
.link-arrow:hover::after { transform: translateX(2px) rotate(45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 8px;
  isolation: isolate;
}

.hero::before {
  /* map-grid dots, fading out toward the edges */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 30%, transparent 75%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 46%;
  width: min(1100px, 140vw);
  height: 620px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 38% 55%, var(--glow-a), transparent),
    radial-gradient(closest-side at 66% 45%, var(--glow-b), transparent);
  filter: blur(10px);
}

.hero-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-icon {
  width: 128px;
  height: 128px;
  margin-bottom: 22px;
  filter: drop-shadow(0 12px 22px rgba(50, 60, 190, 0.22));
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.pitch {
  max-width: 34ch;
  margin: 18px auto 34px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  line-height: 1.32;
  letter-spacing: -0.018em;
  color: var(--text-2);
  text-wrap: balance;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 26px;
}

.cta-meta {
  margin: 16px 0 0;
  font-size: 0.86rem;
  color: var(--text-3);
}
.cta-meta span + span::before {
  content: "·";
  margin: 0 0.55em;
  color: var(--text-3);
}

.hero-stage {
  max-width: 1040px;
  margin: 56px auto 0;
  padding: 0 16px;
}

/* ---------- Illustration ---------- */

.hero-art { width: 100%; height: auto; overflow: visible; }

.hero-art .w-body { fill: var(--ill-win); }
.hero-art .w-bar { fill: var(--ill-bar); }
.hero-art .w-side { fill: var(--ill-side); }
.hero-art .w-line { fill: var(--ill-line); }
.hero-art .w-head { fill: var(--ill-head); }
.hero-art .w-avatar.a0 { fill: #8ea2ff; }
.hero-art .w-avatar.a1 { fill: #ffb18c; }
.hero-art .w-avatar.a2 { fill: #7fd3a8; }
.hero-art .w-tile.t0 { fill: var(--ill-tile-0); }
.hero-art .w-tile.t1 { fill: var(--ill-tile-1); }
.hero-art .w-tile.t2 { fill: var(--ill-tile-2); }
.hero-art .dot-r { fill: #ff5f57; }
.hero-art .dot-y { fill: #febc2e; }
.hero-art .dot-g { fill: #28c840; }
.hero-art .ghost { stroke: var(--ill-ghost); fill: var(--ill-ghost-fill); fill-opacity: 1; opacity: 0; }
.hero-art .menubar { fill: var(--ill-menubar); fill-opacity: 1; }
.hero-art .menu-item { fill: var(--ill-menu-ink); fill-opacity: 1; }
.hero-art .status-glyph { stroke: var(--ill-menu-ink); stroke-opacity: 1; }
.hero-art .status-glyph rect + rect { fill: var(--ill-menubar); }
.hero-art .status-pill { fill: transparent; }
.hero-art .wall-a { stop-color: var(--ill-wall-a); }
.hero-art .wall-b { stop-color: var(--ill-wall-b); }
.hero-art .wall-c { stop-color: var(--ill-wall-c); }
.hero-art .metal-a { stop-color: var(--ill-metal-a); }
.hero-art .metal-b { stop-color: var(--ill-metal-b); }
.hero-art .bezel, .hero-art .notch { fill: var(--ill-bezel); }
.hero-art .desk-shadow { fill: var(--ill-desk); fill-opacity: 1; }
.hero-art .menu-card { fill: var(--ill-win); fill-opacity: 0.94; }
.hero-art .menu-line { fill: var(--ill-head); fill-opacity: 0.7; }
.hero-art .menu { opacity: 0; }

@media (prefers-color-scheme: dark) {
  .hero-art .menu-card { stroke: #fff; stroke-opacity: 0.12; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-art .win {
    animation: settle 1.15s var(--ease) both;
    animation-delay: calc(1.75s + var(--i) * 0.09s);
  }
  .hero-art .ghost { animation: ghost 3.4s ease-out 0.25s both; }
  .hero-art .menu { animation: menu 1.5s ease both 0.55s; transform-box: fill-box; transform-origin: top right; }
  .hero-art .menu-sel { animation: select 1.5s ease both 0.55s; }
  .hero-art .status-pill { animation: pill 1.5s ease both 0.55s; }

  .hero-art .w1 { --dx: 150px; --dy: 92px; --i: 0; }
  .hero-art .w2 { --dx: -236px; --dy: 132px; --i: 1; }
  .hero-art .w3 { --dx: -170px; --dy: -46px; --i: 2; }
  .hero-art .w4 { --dx: 214px; --dy: -150px; --i: 3; }
  .hero-art .l1 { --dx: 84px; --dy: -14px; --i: 1.5; }
  .hero-art .l2 { --dx: -128px; --dy: -30px; --i: 2.5; }
}

@keyframes settle {
  from { transform: translate(var(--dx, 0), var(--dy, 0)); }
  to { transform: translate(0, 0); }
}
@keyframes ghost {
  0% { opacity: 0; }
  18%, 85% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes menu {
  0% { opacity: 0; transform: translateY(-4px) scale(0.97); }
  14% { opacity: 1; transform: none; }
  78% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
@keyframes select {
  0%, 38% { fill-opacity: 0; }
  46%, 100% { fill-opacity: 1; }
}
@keyframes pill {
  0% { fill: transparent; }
  10%, 80% { fill: rgba(255, 255, 255, 0.45); }
  100% { fill: transparent; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-art .menu-text { animation: select-text 1.5s ease both 0.55s; }
}
@keyframes select-text {
  0%, 38% { fill: var(--text); }
  46%, 100% { fill: #fff; }
}

/* ---------- Sections ---------- */

.section { padding: 112px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-wrap: balance;
}
.section-head .lede {
  margin: 20px auto 0;
  max-width: 56ch;
  font-size: 1.12rem;
  color: var(--text-2);
  text-wrap: pretty;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--line-strong);
}
.steps li {
  padding: 26px 28px 0 0;
  counter-increment: step;
}
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-text);
  margin-bottom: 14px;
}
.steps h3 { font-size: 1.3rem; margin-bottom: 8px; }
.steps p { color: var(--text-2); margin: 0; }

/* ---------- Features ---------- */

.features { background: var(--bg-soft); }

.bento {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 32px;
  box-shadow: var(--shadow);
}
.card.wide { grid-column: span 2; }
.card h3 {
  font-size: 1.24rem;
  letter-spacing: -0.02em;
  margin: 18px 0 8px;
}
.card p { margin: 0; color: var(--text-2); font-size: 0.98rem; }

.glyph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
}
.glyph svg { width: 24px; height: 24px; }

.card .keys {
  display: flex;
  gap: 6px;
  margin-top: 20px;
  align-items: center;
  color: var(--text-3);
  font-size: 0.85rem;
}
.card .keys span { margin-left: 8px; }

.specs {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.specs li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 6px 10px;
}
.specs span { color: var(--text-3); margin-right: 8px; }

.nowrap { white-space: nowrap; }
@media (max-width: 420px) { .nowrap { white-space: normal; } }

.card.private {
  color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 50%),
    linear-gradient(135deg, #4a69f6, #3a2fb8);
  border-color: transparent;
}
.card.private h3, .card.private p { color: #fff; }
.card.private p { opacity: 0.92; }
.card.private .glyph { color: #fff; background: rgba(255, 255, 255, 0.16); }

/* ---------- Free / download ---------- */

.download {
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.download::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 0;
  width: min(900px, 120vw);
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow-a), transparent);
  opacity: 0.7;
}
.download .big {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 18px;
}
.download .big em {
  font-style: normal;
  background: linear-gradient(120deg, var(--btn-a), #7a4fe0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: dark) {
  .download .big em { background-image: linear-gradient(120deg, #93a6ff, #b79bff); }
}
.download .lede {
  max-width: 52ch;
  margin: 0 auto 34px;
  color: var(--text-2);
  font-size: 1.12rem;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 56px auto 0;
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: left;
  border-top: 1px solid var(--line-strong);
}
.facts li { padding: 18px 18px 0 0; font-size: 0.92rem; color: var(--text-2); }
.facts li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.facts strong {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}

/* ---------- Notes ---------- */

.note {
  display: flex;
  gap: 14px;
  text-align: left;
  background: var(--note-bg);
  border: 1px solid var(--note-line);
  border-radius: 16px;
  padding: 16px 20px;
  color: var(--text-2);
  font-size: 0.95rem;
}
.note > svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.note p { margin: 0; }
.note p + p { margin-top: 0.5em; }
.note strong { color: var(--text); }

.gatekeeper {
  max-width: 640px;
  margin: 34px auto 0;
}

/* ---------- Document pages (install, help, privacy, releases) ---------- */

.doc-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 120% at 50% -20%, var(--accent-soft), transparent 70%);
}
.doc-hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.4rem);
  letter-spacing: -0.032em;
}
.doc-hero .lede {
  margin: 16px 0 0;
  max-width: 60ch;
  font-size: 1.15rem;
  color: var(--text-2);
}

.prose { max-width: 700px; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-size: 1.75rem;
  letter-spacing: -0.025em;
  margin: 2.2em 0 0.6em;
}
.prose h3 {
  font-size: 1.24rem;
  letter-spacing: -0.018em;
  margin: 2em 0 0.5em;
}
.prose h4 { font-size: 1.05rem; margin: 1.6em 0 0.4em; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: 0.35em 0; padding-left: 0.2em; }
.prose li::marker { color: var(--text-3); }
.prose ol li::marker { font-family: var(--font-mono); font-size: 0.88em; color: var(--accent-text); }
.prose .note { margin: 1.4em 0; }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.18em; }
.prose a:hover { text-decoration-color: currentColor; }

.doc-body { padding: 56px 0 120px; }

/* Install guide */

.guide {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: g;
}
.guide > li {
  counter-increment: g;
  position: relative;
  padding: 0 0 44px 64px;
}
.guide > li::before {
  content: counter(g);
  position: absolute;
  left: 0;
  top: -2px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-rounded);
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--note-line);
}
.guide > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 46px;
  bottom: 8px;
  width: 1px;
  background: var(--line-strong);
}
.guide h2 { margin: 4px 0 10px; font-size: 1.4rem; }
.guide .note { margin-top: 16px; }

.side-by-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  align-items: start;
}
.aside-card {
  position: sticky;
  top: 84px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  text-align: center;
}
.aside-card img { width: 72px; height: 72px; margin: 0 auto 12px; }
.aside-card h2 { font-size: 1.1rem; margin-bottom: 4px; }
.aside-card p { font-size: 0.86rem; color: var(--text-3); margin: 0 0 18px; }
.aside-card .btn-primary { width: 100%; padding: 12px 18px; font-size: 0.98rem; }
.aside-card dl {
  margin: 20px 0 0;
  text-align: left;
  font-size: 0.86rem;
  border-top: 1px solid var(--line);
}
.aside-card dl div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.aside-card dt { color: var(--text-3); }
.aside-card dd { margin: 0; color: var(--text); text-align: right; }

/* Help */

.help-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 100px);
  overflow: auto;
  padding-bottom: 20px;
}
.toc h2 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 4px 0 12px 12px;
}
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a {
  display: flex;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.3;
}
.toc a span { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-3); padding-top: 0.15em; }
.toc a:hover { background: var(--accent-soft); color: var(--text); text-decoration: none; }

.topic {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.topic:last-child { border-bottom: 0; margin-bottom: 0; }
.topic > h2 {
  margin-top: 0;
  font-size: 2.1rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.topic > h2 .num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-text);
  letter-spacing: 0;
}
.anchor {
  color: var(--text-3);
  font-weight: 400;
  opacity: 0;
  position: absolute;
  margin-left: 0.3em;
  text-decoration: none !important;
  transition: opacity 0.15s;
}
.prose :is(h2, h3):hover .anchor, .anchor:focus-visible { opacity: 1; }
@media (hover: none) { .anchor { display: none; } }

/* Release notes */

.release {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.release:last-child { border-bottom: 0; }
.release-meta { padding-top: 8px; }
.release-meta .version {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}
.release-meta time { display: block; color: var(--text-3); font-size: 0.9rem; margin-top: 4px; }
.release-meta .latest {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-text);
  background: var(--accent-soft);
  border-radius: 99px;
  padding: 3px 10px;
}
.release .prose h2 { margin-top: 0; }

/* 404 */

.lost {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}
.lost .frame {
  width: 150px;
  height: 100px;
  margin: 0 auto 30px;
  border: 2px dashed var(--line-strong);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  color: var(--text-3);
}
.lost h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.03em; margin-bottom: 12px; }
.lost p { color: var(--text-2); max-width: 44ch; margin: 0 auto 26px; }
.lost .links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  font-size: 0.86rem;
  color: var(--text-3);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 22px; height: 22px; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; }
.site-footer a { color: var(--text-2); }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card.wide { grid-column: span 2; }
  .side-by-side { grid-template-columns: 1fr; gap: 40px; }
  .aside-card { position: static; max-width: 420px; }
  .help-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; max-height: none; overflow: visible; padding: 0; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .toc a { border: 1px solid var(--line); padding: 6px 12px; border-radius: 99px; font-size: 0.86rem; }
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .site-nav .nav-optional { display: none; }
  .hero { padding-top: 48px; }
  .hero-icon { width: 104px; height: 104px; }
  .hero-stage { margin-top: 40px; padding: 0 8px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li, .steps li + li { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line-strong); }
  .bento { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .card { padding: 24px; }
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 14px 0 0; border-left: 0; }
  .release { grid-template-columns: 1fr; gap: 14px; }
  .release-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-top: 0; }
  .release-meta time, .release-meta .latest { margin-top: 0; }
  .guide > li { padding-left: 54px; }
  .topic > h2 { font-size: 1.75rem; }
  .doc-hero { padding: 44px 0 30px; }
}

@media (max-width: 480px) {
  .header-inner .btn-small { display: none; }
}

@media (max-width: 360px) {
  .brand span { display: none; }
  .site-nav ul a { padding: 6px 8px; }
  .btn-small { padding: 6px 12px; }
}

@media print {
  .site-header, .site-footer, .hero-stage, .btn { display: none; }
}
