:root {
  --ink: #121417;
  --muted: #626a72;
  --line: rgba(18, 20, 23, 0.12);
  --paper: #ffffff;
  --soft: #ece8df;
  --page: #f6f4ef;
  --black: #11161a;
  --black-soft: #1b2328;
  --green: #1f9f63;
  --green-soft: rgba(31, 159, 99, 0.12);
  --blue: #36aebd;
  --blue-soft: rgba(54, 174, 189, 0.12);
  --amber: #c8a65a;
  --amber-soft: rgba(200, 166, 90, 0.15);
  --red: #c94747;
  --red-soft: rgba(201, 71, 71, 0.12);
  --radius: 8px;
  --shadow: 0 24px 70px rgba(17, 22, 26, 0.16);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--black);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}
.guide-page main { overflow: hidden; background: var(--page); }

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
code {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: .92em;
}

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 22, 26, 0.94);
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: white;
  backdrop-filter: blur(16px);
}
.topbar-inner {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}
.brand { display: inline-grid; gap: 2px; color: white; line-height: 1; text-decoration: none; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--black);
  color: white;
  border-radius: 6px;
  font-weight: 800;
}
.brand strong, .brand span { display: block; }
.brand strong { color: white; font-size: 1.12rem; font-weight: 900; }
.brand > span { color: var(--amber); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
nav { display: flex; justify-content: center; gap: 6px; min-width: 0; }
nav a, .site-home {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 12px;
  color: rgba(255,255,255,.74);
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
nav a:hover, .site-home:hover { color: white; background: rgba(255,255,255,.08); }
.site-home { border: 1px solid rgba(200,166,90,.45); color: white; background: rgba(200,166,90,.12); }

.intro {
  position: relative;
  min-height: 68vh;
  display: grid;
  align-items: center;
  isolation: isolate;
  padding: 64px 0 38px;
  background: var(--black);
  color: white;
}
.intro-image, .intro-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-image { z-index: -3; object-fit: cover; object-position: center; }
.intro-shade {
  z-index: -2;
  background:
    radial-gradient(circle at 74% 40%, rgba(54,174,189,.18), rgba(54,174,189,0) 35%),
    linear-gradient(90deg, rgba(10,13,16,.92) 0%, rgba(10,13,16,.78) 42%, rgba(10,13,16,.46) 100%),
    linear-gradient(180deg, rgba(10,13,16,.22) 0%, rgba(10,13,16,.82) 100%);
}
.intro-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,420px); gap: 36px; align-items: end; }
.intro-copy { max-width: 720px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.16; margin-top: 0; letter-spacing: 0; }
h1 { max-width: 720px; margin: 0; color: white; font-size: clamp(3.4rem, 7.2vw, 6.2rem); line-height: .94; }
h2 { margin-bottom: 14px; font-size: clamp(28px, 3.4vw, 40px); }
h3 { margin-bottom: 12px; font-size: 21px; }
.lead { max-width: 650px; margin: 22px 0 0; color: rgba(255,255,255,.82); font-size: clamp(1.02rem,1.8vw,1.22rem); line-height: 1.58; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-facts span { border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 8px 12px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.78); font-size: .82rem; font-weight: 700; }
.version-box { padding: 22px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(15,20,23,.82); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.version-box span, .version-box strong { display: block; }
.version-box h2 { margin: 0 0 18px; color: white; font-size: 1.45rem; }
.version-box .eyebrow { margin-bottom: 8px; }
.version-line { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.12); }
.version-line span { color: rgba(255,255,255,.66); font-size: 12px; }
.version-line strong { color: white; font-size: 13px; text-align: right; overflow-wrap: anywhere; }
.version-box > p:last-child { margin: 15px 0 0; color: rgba(255,255,255,.66); font-size: 13px; }

.quick-band { background: var(--black-soft); color: white; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.quick-grid div { min-height: 92px; padding: 22px 18px; display: flex; align-items: center; gap: 13px; border-right: 1px solid #303840; }
.quick-grid div:last-child { border-right: 0; }
.quick-grid b { color: var(--blue); font-size: 22px; }
.quick-grid span { font-size: 14px; line-height: 1.35; }

.section { padding: 68px 0; scroll-margin-top: 86px; }
.section-heading { margin-bottom: 34px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading h2 { max-width: 720px; color: var(--ink); font-size: clamp(1.8rem,3vw,2.65rem); line-height: 1.08; font-weight: 800; }
.section-heading .eyebrow { color: var(--amber); }
.steps { display: grid; gap: 18px; border: 0; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: clamp(22px,3.2vw,34px); border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.step-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--black-soft);
  color: white;
  font-weight: 800;
}
.step-body { max-width: 870px; }
.step-body p { color: var(--muted); }
ol { padding-left: 22px; }
li + li { margin-top: 7px; }

.notice { margin: 22px 0 0; padding: 15px 17px; border: 1px solid; border-left-width: 4px; border-radius: var(--radius); font-size: 14px; }
.notice.info { background: var(--blue-soft); border-color: var(--blue); }
.notice.warning { background: var(--amber-soft); border-color: var(--amber); }
.notice.danger { background: var(--red-soft); border-color: var(--red); }

.mt5-window { max-width: 760px; margin: 26px 0; border: 1px solid #b9c0c8; background: #f7f7f7; box-shadow: 0 14px 32px rgba(18,25,32,.12); }
.window-title { padding: 8px 13px; background: white; border-bottom: 1px solid #cfd4da; font-size: 13px; font-weight: 700; }
.window-tabs { display: flex; gap: 0; background: #e9ecef; border-bottom: 1px solid #c4cad0; }
.window-tabs span { padding: 9px 14px; font-size: 12px; border-right: 1px solid #c4cad0; }
.window-tabs .active { background: white; color: var(--blue); font-weight: 750; }
.window-content { padding: 24px; background: white; }
.fake-check { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; font-size: 14px; }
.fake-check i { width: 17px; height: 17px; border: 1px solid #89929c; background: white; }
.fake-check.checked i { position: relative; background: var(--blue); border-color: var(--blue); }
.fake-check.checked i::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.url-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-left: 27px; }
.url-row code { padding: 10px 12px; border: 1px solid #bfc7cf; background: #fafbfc; overflow-wrap: anywhere; }
.url-row button {
  border: 0;
  border-radius: 5px;
  background: var(--green);
  color: white;
  padding: 10px 16px;
  font-weight: 750;
  cursor: pointer;
}

.actual-shot-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 18px;
  margin: 26px 0 18px;
  align-items: start;
}
.actual-shot-grid figure {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9f8f4;
}
.actual-shot-grid img {
  width: 100%;
  border: 1px solid #b9c0c8;
  background: white;
}
.actual-shot-grid figcaption { margin: 10px 2px 0; font-size: 13px; }
.copy-license-url {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 22px;
  padding: 13px;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
}
.copy-license-url span { font-size: 13px; font-weight: 750; }
.copy-license-url code { overflow-wrap: anywhere; font-weight: 750; }
.copy-license-url button {
  border: 0;
  border-radius: 5px;
  padding: 8px 13px;
  background: var(--green);
  color: white;
  font-weight: 750;
  cursor: pointer;
}

.soft-section { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two-column { display: grid; grid-template-columns: .82fr 1.18fr; gap: 48px; align-items: center; }
.license-summary { max-width: 760px; }
figure { margin: 0; }
figure img { width: 100%; border: 1px solid var(--line); background: white; }
figcaption { margin-top: 9px; color: var(--muted); font-size: 12px; }
.status { display: inline-block; margin: 8px 0 15px; padding: 9px 13px; border-radius: 4px; font-family: "Cascadia Code", Consolas, monospace; font-size: 14px; font-weight: 750; }
.status.ok { background: var(--green-soft); color: var(--green); border: 1px solid rgba(31,159,99,.3); }
.wide-figure { margin-top: 36px; }
.wide-figure img { max-height: 560px; object-fit: contain; object-position: left center; }
.settings-figure img { max-height: 480px; }

.preset-section { background: var(--soft); border-bottom: 1px solid var(--line); }
.preset-warning { max-width: none; margin-bottom: 46px; }
.instrument-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 10px;
}
.instrument-heading.separated { margin-top: 58px; padding-top: 42px; border-top: 1px solid var(--line); }
.instrument-heading h3 { margin: 6px 0 0; font-size: 25px; }
.instrument-code {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  background: var(--black);
  color: #72dbc0;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}
.instrument-code.gold { color: #ffd36b; }
.instrument-note { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.risk-label {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}
.risk-label.low { color: #167988; background: var(--blue-soft); border: 1px solid rgba(54,174,189,.3); }
.risk-label.high { color: #9a2630; background: var(--red-soft); border: 1px solid #efc3c8; }
.preset-grid { display: grid; gap: 18px; align-items: start; }
.preset-grid.two-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.preset-grid.single-preset { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); }
.preset-grid.single-preset > .preset-card:only-child { grid-column: 1; }
.preset-card {
  overflow: hidden;
  border: 1px solid #2d3040;
  border-radius: var(--radius);
  background: var(--black-soft);
  color: #d7d9e4;
  box-shadow: 0 12px 28px rgba(18, 22, 28, .12);
}
.preset-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  background: var(--black);
  border-bottom: 1px solid #2d3040;
}
.preset-card-head small, .preset-card-head b { display: block; }
.preset-card-head small { color: var(--amber); font-size: 11px; font-weight: 800; }
.preset-card-head b { color: white; margin-top: 2px; }
.preset-card-head > span { color: #989cad; font-size: 11px; text-align: right; }
.preset-block-title {
  padding: 5px 16px;
  color: var(--blue);
  background: #202a30;
  border-bottom: 1px solid #334047;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}
.preset-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 38px;
  padding: 8px 16px;
  border-bottom: 1px solid #292a38;
}
.preset-row:last-child { border-bottom: 0; }
.preset-row span { color: #aeb1c0; font-size: 13px; }
.preset-row strong { color: #eceef8; font-family: "Cascadia Code", Consolas, monospace; font-size: 13px; }
.preset-row.accent-value strong { color: var(--amber); }
.gold-card { border-color: #756027; }
.gold-caution {
  padding: 24px;
  border: 1px solid rgba(200,166,90,.35);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  background: rgba(200,166,90,.12);
}
.gold-caution b { font-size: 18px; }
.gold-caution p { margin: 9px 0 0; color: #695733; font-size: 14px; }
.coming-soon {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  margin-top: 54px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}
.coming-soon span { font-weight: 800; }
.coming-soon p { margin: 0; color: var(--muted); font-size: 14px; }
.risk-disclaimer { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.lead-small { max-width: 760px; margin: 8px 0 0; color: var(--muted); font-size: 16px; }

.setting-groups { margin-top: 44px; }
.setting-group {
  margin-bottom: 54px;
  scroll-margin-top: 86px;
}
.setting-group-title {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 17px;
}
.setting-group-title > span {
  width: 46px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: #167988;
  font-size: 13px;
  font-weight: 800;
}
.setting-group-title h3 { margin: 0 0 5px; font-size: 24px; }
.setting-group-title p { margin: 0; color: var(--muted); font-size: 14px; }
.field-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 12px 34px rgba(17,22,26,.07); }
.field {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 190px;
  gap: 24px;
  align-items: start;
  padding: 18px 10px;
  border-bottom: 1px solid var(--line);
}
.field:nth-child(even) { background: #f9f8f4; }
.field > code {
  color: #167988;
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.field b { display: block; margin-bottom: 3px; font-size: 14px; }
.field p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.field em {
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}
.protected-group {
  padding: 24px;
  border: 1px solid rgba(200,166,90,.35);
  border-radius: var(--radius);
  background: rgba(200,166,90,.08);
}
.protected-group .field:nth-child(even) { background: #f6f1e5; }

.settings-table { margin-top: 36px; border-top: 1px solid var(--line); }
.settings-row { display: grid; grid-template-columns: 220px 1fr 210px; gap: 24px; align-items: center; padding: 15px 10px; border-bottom: 1px solid var(--line); }
.settings-row:nth-child(even) { background: #fafbfb; }
.settings-row code { color: var(--blue); font-weight: 700; }
.settings-row span { color: var(--muted); font-size: 14px; }
.settings-head { background: var(--black) !important; color: white; }
.risk-examples { margin-top: 46px; }
.risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.risk-grid div { padding: 20px; border: 1px solid var(--line); border-radius: 6px; }
.risk-grid b, .risk-grid span, .risk-grid code { display: block; }
.risk-grid span { margin: 7px 0; color: var(--muted); font-size: 13px; }
.risk-grid code { color: var(--green); font-weight: 750; }
.small-note { margin-top: 15px; color: var(--muted); font-size: 13px; }

.dark-section { background: var(--black); color: white; }
.dark-section .eyebrow { color: var(--amber); }
.chart-section { grid-template-columns: .72fr 1.28fr; align-items: start; }
.dark-section figure img { border-color: #36404a; }
.dark-section figcaption { color: #aeb8c1; }
.process-list { list-style: none; padding: 0; margin: 28px 0 0; }
.process-list li { padding: 16px 0; border-bottom: 1px solid #303840; }
.process-list b, .process-list span { display: block; }
.process-list span { margin-top: 4px; color: #aeb8c1; font-size: 14px; }

.rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rules-grid article { border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 26px; box-shadow: 0 12px 34px rgba(17,22,26,.07); }
.rules-grid b { font-size: 18px; }
.rules-grid p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.error-section { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.error-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 12px 34px rgba(17,22,26,.07); }
details { padding: 0 18px; border-bottom: 1px solid var(--line); }
details:last-child { border-bottom: 0; }
summary { padding: 18px 4px; cursor: pointer; font-weight: 700; }
details p { margin: 0; padding: 0 4px 20px; color: var(--muted); }
summary code { color: var(--red); }

.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.checklist input { width: 19px; height: 19px; accent-color: var(--green); flex: 0 0 auto; }

footer { background: var(--black); color: white; border-top: 1px solid rgba(255,255,255,.12); }
.footer-inner { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner strong, .footer-inner span { display: block; }
.footer-inner span { color: rgba(255,255,255,.62); font-size: 13px; }

@media (max-width: 820px) {
  nav { display: none; }
  .topbar-inner { grid-template-columns: auto auto; justify-content: space-between; }
  .intro { min-height: auto; padding: 70px 0 48px; }
  .intro-grid, .two-column, .chart-section { grid-template-columns: 1fr; gap: 30px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid div:nth-child(2) { border-right: 0; }
  .quick-grid div:nth-child(-n+2) { border-bottom: 1px solid #303840; }
  .settings-row { grid-template-columns: 150px 1fr; }
  .settings-row > :last-child { grid-column: 2; }
  .risk-grid, .rules-grid, .checklist { grid-template-columns: 1fr; }
  .preset-grid.two-presets, .preset-grid.single-preset { grid-template-columns: 1fr; }
  .preset-grid.single-preset > .preset-card:only-child { grid-column: auto; }
  .actual-shot-grid { grid-template-columns: 1fr; }
  .field { grid-template-columns: 160px minmax(0, 1fr); gap: 14px; }
  .field em { grid-column: 2; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 24px, var(--max)); }
  .topbar-inner { min-height: 62px; }
  .site-home { padding: 0 9px; font-size: .72rem; }
  h1 { font-size: 3.1rem; }
  .section { padding: 54px 0; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-grid div { min-height: 66px; border-right: 0; border-bottom: 1px solid #303840; }
  .step { grid-template-columns: 42px 1fr; gap: 14px; }
  .step-number { width: 38px; height: 38px; }
  .window-tabs span:not(.active) { display: none; }
  .url-row { grid-template-columns: 1fr; margin-left: 0; }
  .copy-license-url { grid-template-columns: 1fr; }
  .copy-license-url button { justify-self: start; }
  .settings-row { grid-template-columns: 1fr; gap: 7px; }
  .settings-row > :last-child { grid-column: auto; }
  .settings-head { display: none; }
  .setting-group { margin-bottom: 42px; }
  .instrument-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .instrument-heading.separated { margin-top: 44px; padding-top: 34px; }
  .coming-soon { grid-template-columns: 1fr; gap: 8px; padding: 18px; }
  .preset-card-head { align-items: flex-start; }
  .setting-group-title { grid-template-columns: 42px 1fr; gap: 10px; }
  .setting-group-title > span { width: 38px; height: 30px; }
  .setting-group-title h3 { font-size: 20px; }
  .field { grid-template-columns: 1fr; gap: 7px; padding: 16px 8px; }
  .field em { grid-column: auto; margin-top: 3px; }
  .protected-group { padding: 16px 10px; }
  .footer-inner { padding: 24px 0; align-items: flex-start; flex-direction: column; }
}
