:root {
  color-scheme: dark;
  --bg: #181b22;
  --panel: #22262f;
  --panel-soft: #1e2128;
  --panel-hover: #2a303a;
  --border: #343b48;
  --text: #e2e6ed;
  --muted: #a8b0be;
  --quiet: #6f7785;
  --green: #36b887;
  --green-soft: #85d6b0;
  --radius: 12px;
  --page-content-max: 1420px;
  --page-gutter: clamp(1rem, 3.2vw, 3rem);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  min-width: 320px;
  margin: 0;
  background: linear-gradient(180deg, #1b1f27 0, var(--bg) 36rem);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.page-width { width: min(var(--page-content-max), calc(100% - 2 * var(--page-gutter))); margin-inline: auto; }
html body.allow-page-scroll { overflow-x: clip; overflow-y: visible; }

#site-header-root {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: clamp(3.5rem, 4vw, 4rem);
}

.site-footer a { color: var(--muted); font-size: .82rem; font-weight: 600; text-decoration: none; transition: color .16s ease; }
.site-footer a:hover { color: var(--green-soft); }

.guide-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(400px, .97fr);
  align-items: center;
  gap: clamp(40px, 7vw, 92px);
  padding-top: clamp(46px, 7vw, 84px);
  padding-bottom: clamp(54px, 8vw, 98px);
}
.guide-hero::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #1d2128;
  content: "";
}
.eyebrow { margin: 0; color: var(--green-soft); font-size: .68rem; font-weight: 800; letter-spacing: .16em; line-height: 1.5; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 10px; }
.hero-copy > .eyebrow span { width: 4px; height: 4px; border-radius: 50%; background: var(--green); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 680px; margin: 15px 0 18px; font-size: clamp(2.8rem, 6.2vw, 5rem); font-weight: 600; letter-spacing: -.065em; line-height: .99; }
.hero-description { max-width: 580px; margin-bottom: 27px; color: var(--muted); font-size: clamp(.98rem, 1.5vw, 1.1rem); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 23px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 20px; border: 1px solid transparent; border-radius: 9px; font-size: .95rem; font-weight: 700; text-decoration: none; transition: background .16s ease, transform .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--green); color: #10281d; }
.button-primary:hover { background: #45c493; }
.text-link { color: var(--text); font-size: .95rem; font-weight: 600; text-decoration: none; }
.text-link:hover { color: var(--green-soft); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 32px; color: var(--quiet); font-size: .7rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(54, 184, 135, .45); }

.goal-preview-image { display: block; width: 100%; max-width: 540px; height: auto; justify-self: center; border: 1px solid var(--border); border-radius: 15px; box-shadow: 0 30px 85px rgba(0, 0, 0, .24); }

.guide-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(34px, 6vw, 84px); padding-top: clamp(32px, 4vw, 48px); padding-bottom: 96px; }
.guide-toc { position: sticky; top: calc(clamp(3.5rem, 4vw, 4rem) + 18px); align-self: start; display: flex; flex-direction: column; gap: 9px; padding: 16px 0; }
.guide-toc p { margin: 0 0 6px; color: var(--quiet); font-size: .62rem; font-weight: 800; letter-spacing: .14em; }
.guide-toc a { padding: 4px 0; color: var(--muted); font-size: .85rem; text-decoration: none; }
.guide-toc a:hover { color: var(--green-soft); }
.guide-section { padding: 44px 0 56px; border-top: 1px solid rgba(226,230,237,.1); scroll-margin-top: 22px; }
.guide-content > .guide-section:first-child { border-top: 0; }
.guide-section--last { padding-bottom: 0; }
.section-heading { display: flex; align-items: center; gap: 17px; margin-bottom: 28px; }
.section-number { color: #596271; font-size: .78rem; font-weight: 700; letter-spacing: .06em; }
.section-heading .eyebrow { margin-bottom: 3px; font-size: .59rem; }
h2 { margin-bottom: 0; color: #edf0f5; font-size: clamp(1.45rem, 2.8vw, 2rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.2; }
h3 { margin-bottom: 12px; color: #e5e9f0; font-size: 1.08rem; font-weight: 700; letter-spacing: -.015em; }
.guide-content > .guide-section > h3 { margin-top: 40px; margin-bottom: 18px; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.guide-content p { margin-bottom: 1rem; color: var(--muted); font-size: .95rem; line-height: 1.65; }
.guide-content strong { color: #dfe5ec; font-weight: 700; }
.guide-content > .guide-section > p > strong { color: #d4dae3; font-size: .92rem; font-weight: 600; }
.guide-content code { padding: 3px 6px; border: 1px solid #39404c; border-radius: 5px; background: #191d24; color: #a9e8cc; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .95rem; }
.section-lead { max-width: 67ch; margin-bottom: 22px; }
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.step-card { min-height: 190px; padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: rgba(34,38,47,.75); }
.step-index { display: block; margin-bottom: 22px; color: var(--green-soft); font-family: ui-monospace, monospace; font-size: .68rem; font-weight: 700; }
.step-card h3 { font-size: .86rem; }
.step-card p { margin-bottom: 14px; font-size: .73rem; line-height: 1.65; }
.step-card a { color: var(--green-soft); font-size: .7rem; font-weight: 700; text-decoration: none; }
.step-card a:hover { color: #b3f1d1; }
.note-card { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 14px 16px; border: 1px solid rgba(54,184,135,.22); border-radius: 9px; background: rgba(54,184,135,.055); }
.note-card p { margin: 0; font-size: .95rem; }
.note-icon { flex: 0 0 auto; display: grid; width: 20px; height: 20px; place-items: center; border: 1px solid rgba(133,214,176,.5); border-radius: 50%; color: var(--green-soft); font-size: .72rem; font-weight: 700; }
.guide-figure { width: min(100%, 560px); overflow: hidden; margin: 36px 0; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.05); }
.guide-figure img { width: 100%; max-height: 360px; height: auto; margin-inline: auto; object-fit: contain; }
.guide-customization-intro { margin: 28px 0 0; padding: 16px 0; color: var(--muted); font-size: .8rem; line-height: 1.7; }
.guide-figure--original-size { width: fit-content; max-width: 100%; }
.guide-figure--original-size img { width: auto; max-width: 100%; max-height: none; }
.guide-figure--compact { width: min(100%, 250px); }
.guide-figure--compact img { width: 100%; max-width: 100%; }
.guide-figure figcaption { padding: 12px 16px; border-top: 1px solid var(--border); background: var(--panel); color: var(--muted); font-size: .85rem; }
.instruction-list { display: grid; gap: 16px; margin: 28px 0 34px; padding: 0; list-style: none; }
.instruction-list li { display: flex; align-items: flex-start; gap: 12px; }
.instruction-list li > span { flex: 0 0 23px; display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid #3f4c4c; border-radius: 50%; color: var(--green-soft); font-size: .68rem; font-weight: 700; }
.instruction-list p { margin: 0; font-size: .95rem; line-height: 1.65; }
.goal-type-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 13px 0 0; border-top: 1px solid rgba(226,230,237,.08); }
.goal-type-row > span { margin-right: 4px; color: var(--quiet); font-size: .67rem; }
.goal-type-row b { padding: 5px 9px; border: 1px solid #3d4651; border-radius: 999px; background: var(--panel); color: #d6dce4; font-size: .65rem; font-weight: 600; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 23px; }
.settings-card { min-height: 160px; padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.settings-icon { display: inline-grid; width: 27px; height: 27px; place-items: center; margin-bottom: 12px; border: 1px solid rgba(54,184,135,.28); border-radius: 8px; background: rgba(54,184,135,.09); color: var(--green-soft); font-size: .82rem; font-weight: 700; }
.settings-card h3 { margin: 0 0 8px; font-size: .95rem; }
.settings-card p { margin: 0; font-size: .95rem; line-height: 1.65; }
.mode-callout { display: grid; grid-template-columns: 80px minmax(0, 1fr) 80px minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 18px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); }
.mode-swatch { height: 9px; border-radius: 999px; background: linear-gradient(90deg,#ed69c6,#75c9e8,#63d69e,#f3d86a); }
.mode-swatch--distribute { background: linear-gradient(90deg,#ed69c6,#75c9e8,#63d69e,#f3d86a); position: relative; }
.mode-swatch--distribute::after { display: block; width: 32%; height: 100%; border-radius: inherit; background: #11151b; content: ""; float: right; }
.mode-callout strong { color: var(--text); font-size: .75rem; }
.mode-callout p { margin: 2px 0 0; font-size: .95rem; line-height: 1.65; }
.command-list { overflow: hidden; margin-top: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-soft); }
.command-list > div { display: grid; grid-template-columns: minmax(210px, .8fr) 1fr; align-items: center; gap: 18px; padding: 13px 16px; border-bottom: 1px solid rgba(226,230,237,.075); }
.command-list > div:last-child { border-bottom: 0; }
.command-list > div > code { justify-self: start; color: #a9e8cc; font-size: .95rem; }
.command-list > div > span { color: var(--muted); font-size: .95rem; }
.command-list em { display: block; margin-top: 5px; color: var(--quiet); font-size: .82rem; font-style: normal; }
.small-note { margin: 14px 0 0; color: var(--quiet) !important; font-size: .95rem !important; line-height: 1.65; }
.obs-steps { display: grid; gap: 0; margin: 24px 0 0; padding: 0; list-style: none; }
.obs-steps li { position: relative; display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 12px; padding-bottom: 21px; }
.obs-steps li:not(:last-child)::before { position: absolute; top: 35px; bottom: 0; left: 17px; width: 1px; background: #38414b; content: ""; }
.obs-steps li > span { z-index: 1; display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid rgba(54,184,135,.38); border-radius: 50%; background: var(--panel); color: var(--green-soft); font-size: .73rem; font-weight: 700; }
.obs-steps h3 { margin: 2px 0 4px; font-size: .83rem; }
.obs-steps p { margin: 0; font-size: .95rem; line-height: 1.65; }
.note-card--subtle { border-color: var(--border); background: var(--panel); }
.note-card--subtle .note-icon { border-color: rgba(133,214,176,.28); }
.guide-section details { border-bottom: 1px solid rgba(226,230,237,.09); }
.guide-section details:first-of-type { border-top: 1px solid rgba(226,230,237,.09); }
.guide-section summary { position: relative; padding: 15px 30px 15px 0; color: #dce1e8; font-size: .8rem; font-weight: 600; cursor: pointer; list-style: none; }
.guide-section summary::-webkit-details-marker { display: none; }
.guide-section summary::after { position: absolute; top: 15px; right: 4px; color: var(--green-soft); content: "+"; font-size: 1rem; }
.guide-section details[open] summary::after { content: "−"; }
.guide-section details p { max-width: 72ch; margin: 0 0 17px; font-size: .75rem; }
.final-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding: 22px; border: 1px solid var(--border); border-radius: 11px; background: linear-gradient(110deg, #252b32, #20242c); }
.final-cta .eyebrow { margin-bottom: 6px; font-size: .58rem; }
.final-cta h2 { font-size: 1.2rem; }
.site-footer { width: min(var(--page-content-max), calc(100% - 2 * var(--page-gutter))); min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto; border-top: 1px solid rgba(226,230,237,.08); }
.site-footer span { color: var(--quiet); font-size: .7rem; }

@media (max-width: 900px) {
  .guide-hero { grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr); gap: 34px; }
  .guide-layout { grid-template-columns: 155px minmax(0, 1fr); gap: 34px; }
  .step-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 0; }
  .step-index { margin-bottom: 10px; }
}
@media (max-width: 680px) {
  .page-width, .site-footer { width: min(100% - 32px, 560px); }
  .guide-hero { grid-template-columns: 1fr; gap: 35px; padding-top: 30px; padding-bottom: 42px; }
  h1 { font-size: clamp(2.65rem, 12vw, 4rem); }
  .guide-layout { display: block; padding-top: 32px; padding-bottom: 60px; }
  .guide-toc { position: sticky; top: clamp(6rem, 15vw, 7rem); z-index: 5; display: flex; flex-direction: row; gap: 9px; overflow-x: auto; margin-bottom: 10px; padding: 12px 0 16px; border-bottom: 1px solid rgba(226,230,237,.08); background: var(--bg); scrollbar-width: none; }
  .guide-toc::-webkit-scrollbar { display: none; }
  .guide-toc p { display: none; }
  .guide-toc a { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); font-size: .66rem; }
  .guide-section { padding: 36px 0 44px; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-card { min-height: 0; }
  .mode-callout { grid-template-columns: 66px minmax(0,1fr); gap: 10px 13px; }
  .command-list > div { grid-template-columns: 1fr; gap: 5px; }
  .final-cta { align-items: flex-start; flex-direction: column; }
  .site-footer { flex-wrap: wrap; justify-content: space-between; padding: 17px 0; }
  .site-footer span { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

.install-image-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; margin: 34px 0 40px; }
.install-image-grid .guide-figure { width: min(100%, 380px); min-width: 0; flex: 0 1 380px; margin: 0; }
.install-image-grid .guide-figure img { height: 240px; max-height: none; object-fit: contain; }

.guide-image-expand {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.guide-image-expand:focus-visible {
  outline: 3px solid #b3a1ff;
  outline-offset: 4px;
}
.guide-image-viewer {
  position: fixed;
  inset: 0;
  margin: auto;
  box-sizing: border-box;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 56px 24px;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
}
.guide-image-viewer[open] {
  display: grid;
  place-items: center;
}
.guide-image-viewer::backdrop {
  background: #000c;
}
.guide-image-viewer img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1400px, 100%);
  max-height: calc(100dvh - 112px);
  object-fit: contain;
  margin: 0 auto;
}
.guide-image-viewer-close {
  display: grid;
  place-items: center;
  position: absolute;
  top: 8px;
  right: 12px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: white;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
