:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #5b6472;
  --line: #d9e2e0;
  --teal: #0f766e;
  --teal-2: #14b8a6;
  --blue: #2563eb;
  --coral: #ef6f5e;
  --lemon: #f5c542;
  --dark: #102d2f;
  --shadow: 0 16px 40px rgba(16, 45, 47, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  padding-top: 60px;
}

main {
  height: calc(100dvh - 60px);
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--dark);
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 72px);
  z-index: 100;
}

.site-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.site-nav button,
.nav-link-button {
  padding: 8px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.site-nav button:hover,
.site-nav button.is-active,
.nav-link-button:hover {
  background: rgba(255, 255, 255, 0.13);
  color: white;
}

.settings-modal[hidden] {
  display: none;
}

.settings-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
}

.settings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 28, 0.42);
  backdrop-filter: blur(8px);
}

.settings-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(16, 45, 47, 0.22);
}

.settings-dialog h2 {
  margin-top: 0;
  font-size: clamp(32px, 4vw, 48px);
}

.settings-dialog > p {
  color: var(--muted);
  font-size: 18px;
}

.settings-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f2f7f5;
  color: var(--teal);
  font: inherit;
  font-size: 24px;
  font-weight: 850;
  cursor: pointer;
}

.settings-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.settings-groups h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.switch-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f6faf9;
}

.switch-button {
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.switch-button.is-selected {
  background: var(--dark);
  color: white;
  box-shadow: 0 8px 20px rgba(16, 45, 47, 0.14);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo {
  height: 36px;
  width: auto;
}

.site-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
}

code,
pre {
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 60px);
  padding: clamp(48px, 8vw, 90px) clamp(20px, 5vw, 72px) 56px;
}

.screen {
  display: none;
  height: calc(100dvh - 60px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.screen.is-screen-active {
  display: grid;
  animation: screenEnter 360ms ease both;
}

.setup-plan.screen.is-screen-active,
.choice-screen.screen.is-screen-active,
.guide-shell.screen.is-screen-active {
  display: block;
}

@keyframes screenEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.setup-hero {
  padding-top: clamp(64px, 8vw, 96px);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.button.secondary {
  background: white;
  color: var(--dark);
}

.term {
  display: inline;
  padding: 0 2px;
  border: 0;
  border-bottom: 2px dotted rgba(15, 118, 110, 0.55);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: help;
}

.term:hover,
.term:focus-visible {
  color: var(--teal);
  outline: 0;
}

.inline-term {
  font-weight: inherit;
}

.term-popover {
  position: fixed;
  z-index: 50;
  width: min(340px, calc(100vw - 32px));
  padding: 18px 20px;
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(16, 45, 47, 0.28);
  color: white;
}

.term-popover strong {
  display: block;
  margin-right: 28px;
  font-size: 18px;
}

.term-popover p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.term-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.hero-image {
  width: 100%;
  min-height: 320px;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.setup-plan,
.choice-screen,
.guide-shell {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.setup-plan,
.choice-screen {
  background: #f2f7f5;
  border-block: 1px solid var(--line);
}

.screen-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(26px, 4vw, 44px);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.plan-grid-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plan-grid li {
  min-height: 174px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 45, 47, 0.05);
}

.plan-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  background: var(--teal);
  border-radius: 8px;
  color: white;
  font-weight: 850;
}

.plan-grid li:nth-child(2) span,
.plan-grid li:nth-child(5) span {
  background: var(--blue);
}

.plan-grid li:nth-child(3) span {
  background: var(--coral);
}

.plan-grid li:nth-child(4) span {
  background: var(--lemon);
  color: var(--dark);
}

.plan-grid strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.plan-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1040px;
}

.choice-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 430px;
  padding: clamp(26px, 4vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.choice-card h3 {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
}

.choice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.choice-badge {
  width: max-content;
  max-width: 100%;
  border-radius: 8px;
  font-weight: 800;
}

.choice-badge {
  padding: 7px 10px;
  background: #e8f4f1;
  color: var(--teal);
  font-size: 13px;
  text-transform: uppercase;
}

.alt-badge {
  background: #edf2ff;
  color: var(--blue);
}

.guide-shell {
  min-height: 100vh;
  background: var(--paper);
}

.guide-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.progress-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 750;
}

.progress-track {
  height: 10px;
  margin-bottom: 30px;
  overflow: hidden;
  background: #e3ecea;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  border-radius: inherit;
  transition: width 260ms ease;
}

.step-jump {
  display: none;
  gap: 8px;
}

.step-jump button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 100px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.step-jump span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 6px;
  background: #e8f4f1;
  color: var(--teal);
}

.step-jump button.is-active {
  border-color: var(--teal);
  background: var(--dark);
  color: white;
}

.step-jump button.is-active span { background: var(--teal); color: white; }

.setup-step-jump {
  margin: 0;
}

.step-purpose-toast {
  position: fixed;
  top: 92px;
  right: 22px;
  z-index: 80;
  width: min(430px, calc(100vw - 44px));
  padding: 20px 56px 20px 22px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-left: 7px solid var(--teal);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--dark);
  box-shadow: 0 18px 44px rgba(16, 45, 47, 0.16);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.42;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 220ms ease, transform 220ms ease;
  backdrop-filter: blur(12px);
}

.step-purpose-toast::before {
  display: block;
  margin-bottom: 6px;
  color: var(--teal);
  content: "Зачем этот шаг";
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-purpose-toast.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.step-purpose-toast[hidden] {
  display: none;
}

.step-purpose-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  background: #f2f7f5;
  color: var(--teal);
  font: inherit;
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.step-purpose-close:hover {
  background: #e8f4f1;
}

@media (min-width: 1280px) {
  .setup-plan,
  .choice-screen,
  .guide-shell {
    padding-left: 240px;
  }

  .step-jump {
    position: fixed;
    top: 80px;
    bottom: 20px;
    left: 18px;
    z-index: 30;
    display: flex;
    width: 196px;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
  }

  .step-jump button {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
  }
}

.info-page { padding: clamp(42px, 6vw, 72px) clamp(20px, 5vw, 72px); }
.info-page.screen.is-screen-active { display: block; }
.token-help-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); gap: clamp(24px, 5vw, 54px); align-items: stretch; }
.glossary-search { display: block; max-width: 560px; margin-bottom: 28px; font-weight: 750; }
.glossary-search span { display: block; margin-bottom: 8px; }
.glossary-search input { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font: inherit; }
.glossary-search input:focus { outline: 3px solid rgba(20, 184, 166, 0.2); border-color: var(--teal); }
.glossary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.glossary-card { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: start; min-height: 180px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, #fff, #f6faf9); box-shadow: 0 10px 28px rgba(16, 45, 47, 0.07); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.glossary-card:hover { transform: translateY(-3px); border-color: rgba(15, 118, 110, 0.4); box-shadow: 0 16px 34px rgba(16, 45, 47, 0.11); }
.glossary-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, var(--teal), var(--blue)); color: white; font-size: 18px; font-weight: 850; letter-spacing: -0.04em; box-shadow: 0 8px 18px rgba(15, 118, 110, 0.2); }
.glossary-card:nth-child(3n + 2) .glossary-icon { background: linear-gradient(135deg, var(--blue), #6d5ce7); }
.glossary-card:nth-child(3n) .glossary-icon { background: linear-gradient(135deg, var(--coral), #ef9c5e); }
.glossary-card h3 { margin-top: 3px; color: var(--dark); }
.glossary-card p { margin: 8px 0 0; color: var(--muted); }
.empty-message { color: var(--muted); font-size: 18px; }
.quiz-card { max-width: 900px; padding: clamp(22px, 4vw, 38px); border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: var(--shadow); }
.quiz-question { margin: 0; padding: 24px 0; border: 0; border-bottom: 1px solid var(--line); }
.quiz-question:first-child { padding-top: 0; }
.quiz-question legend { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 19px; font-weight: 800; }
.quiz-question legend span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--teal); color: white; font-size: 14px; }
.quiz-question label { display: flex; gap: 10px; margin: 9px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.quiz-question label:has(input:checked) { border-color: var(--teal); background: #e8f4f1; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.quiz-result { margin-top: 22px; padding: 18px 20px; border-radius: 8px; background: #e8f4f1; color: var(--dark); }
.quiz-result strong { font-size: 24px; }
.quiz-result p { margin: 4px 0 0; }

.guide-step {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: stretch;
}

.guide-step.is-active {
  display: grid;
  animation: stepFade 320ms ease both;
}

.guide-step.single-step {
  grid-template-columns: minmax(0, 920px);
}

.platform-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 12px;
  margin-top: 30px;
}

.platform-button {
  min-height: 58px;
  padding: 12px 18px;
  background: #f6faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.platform-button.is-selected {
  background: var(--dark);
  border-color: var(--dark);
  color: white;
}

[data-platform-panel][hidden] {
  display: none;
}

@keyframes stepFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-copy,
.screen-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.step-copy {
  padding: clamp(26px, 4vw, 42px);
}

.step-copy h3 {
  max-width: 720px;
  font-size: clamp(34px, 4vw, 52px);
}

.step-copy > p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.action-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: action;
}

.action-list li {
  counter-increment: action;
  position: relative;
  min-height: 52px;
  padding: 14px 18px 14px 58px;
  background: #f6faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 18px;
}

.action-list li::before {
  content: counter(action);
  position: absolute;
  left: 14px;
  top: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--teal);
  border-radius: 7px;
  color: white;
  font-weight: 850;
  font-size: 14px;
}

.inline-help-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-left: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: #e8f4f1;
  color: var(--teal);
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
}

.inline-help-button:hover {
  border-color: var(--teal);
  background: #dff2ee;
}

.beginner-note,
.danger-note,
.code-sample {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 8px;
  font-size: 17px;
}

.code-sample code {
  color: inherit;
  overflow-wrap: anywhere;
}

.action-list-continued {
  margin-top: 18px;
}

.placeholder-panel {
  margin-top: 30px;
  padding: 28px;
  background: #f6faf9;
  border: 1px dashed var(--teal);
  border-radius: 8px;
}

.placeholder-panel strong {
  font-size: 22px;
}

.placeholder-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.mode-explainer {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: 20px;
  background: #f6faf9;
  border-left: 4px solid var(--teal);
}

.provider-hint {
  margin: 24px 0 0;
  color: var(--ink);
  font-size: 18px;
}

.mode-explainer p,
.image-caption {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.mode-explainer p + p {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.wide-shot {
  max-height: 480px;
}

.image-caption {
  margin-top: 12px;
}

.beginner-note {
  background: #e8f4f1;
  color: var(--dark);
}

.danger-note {
  background: #fff1ec;
  color: #8f2f23;
  border: 1px solid #ffd4c9;
}

.code-sample {
  background: var(--dark);
  color: white;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  overflow-x: auto;
}

.screen-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  padding: clamp(26px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 42%),
    linear-gradient(315deg, rgba(37, 99, 235, 0.1), transparent 48%),
    var(--surface);
}

.screen-label {
  width: max-content;
  margin-bottom: 18px;
  padding: 6px 10px;
  background: var(--dark);
  border-radius: 8px;
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.screen-card h4 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}

.screen-card p {
  max-width: 480px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.screenshot-link {
  display: block;
  width: 100%;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1117;
}

.instruction-shot {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}

.guide-controls {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}

.guide-controls .button[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
}

.section.alt,
.intro-band {
  background: #f2f7f5;
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.route {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.route li {
  min-height: 136px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 45, 47, 0.05);
  font-size: 18px;
  font-weight: 750;
}

.route span {
  display: block;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 30px;
}

.term-grid,
.publish-grid,
.link-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.term-card,
.link-options article,
.step,
.result-list,
.split > div,
.prompt-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 45, 47, 0.05);
}

.term-card {
  min-height: 180px;
  padding: 24px;
  border-left: 7px solid var(--teal);
}

.term-card:nth-child(2),
.term-card:nth-child(5) {
  border-left-color: var(--blue);
}

.term-card:nth-child(3),
.term-card:nth-child(6) {
  border-left-color: var(--coral);
}

.term-card p,
.step p,
.link-options p,
.result-list,
.split p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.note {
  margin-top: 20px;
  padding: 20px 24px;
  background: var(--dark);
  border-radius: 8px;
  color: white;
  font-size: 18px;
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  align-items: start;
  padding: 22px;
}

.step.small {
  min-height: 164px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--teal);
  border-radius: 8px;
  color: white;
  font-size: 22px;
  font-weight: 850;
}

.step:nth-child(2) .step-number,
.step:nth-child(5) .step-number {
  background: var(--blue);
}

.step:nth-child(3) .step-number,
.step:nth-child(6) .step-number {
  background: var(--coral);
}

.prompt-layout,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.prompt-box {
  padding: 24px;
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}

.prompt-box h3 {
  color: var(--lemon);
}

.prompt-box pre {
  margin: 0;
  white-space: pre-wrap;
}

.prompt-box code {
  color: white;
  font-size: 15px;
  line-height: 1.6;
}

.prompt-box.compact,
.prompt-box.wide {
  border-left: 8px solid var(--lemon);
}

.prompt-box.wide {
  margin-top: 24px;
}

.result-list {
  padding: 24px;
}

.result-list ul,
.clean-list {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 18px;
}

.result-list li,
.clean-list li {
  margin: 10px 0;
}

.split > div:first-child {
  padding: 28px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: timeline;
}

.timeline li {
  counter-increment: timeline;
  min-height: 220px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline li::before {
  content: counter(timeline);
  display: block;
  margin-bottom: 28px;
  color: var(--coral);
  font-size: 28px;
  font-weight: 800;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.link-options article {
  min-height: 190px;
  padding: 24px;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 920px;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
}

.checklist input {
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
  flex: 0 0 auto;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  background: var(--dark);
  color: white;
}

.footer p {
  margin: 0;
}

.footer a {
  color: white;
  font-weight: 750;
}

@media (max-width: 980px) {
  .hero,
  .prompt-layout,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-image {
    min-height: 260px;
  }

  .route,
  .plan-grid,
  .plan-grid-wide,
	  .choice-grid,
	  .settings-groups,
	  .token-help-layout,
	  .term-grid,
  .publish-grid,
  .link-options,
  .timeline,
  .checklist {
    grid-template-columns: 1fr;
  }

  .guide-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-step {
    grid-template-columns: 1fr;
  }

  .screen-card {
    min-height: 260px;
  }

  .screen-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .glossary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body { padding-top: 108px; }
  main, .screen { height: calc(100dvh - 108px); }
  .site-header { height: 108px; padding-block: 10px; flex-wrap: wrap; }
  .site-brand { width: 100%; }
  .site-nav { width: 100%; margin-left: 0; }
  .site-nav button,
  .nav-link-button { flex: 1; text-align: center; }
  .glossary-grid { grid-template-columns: 1fr; }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .guide-controls {
    flex-direction: column-reverse;
  }

	  .platform-choice {
	    grid-template-columns: 1fr;
	  }

	  .switch-row {
	    grid-template-columns: 1fr;
	  }

  .step {
    grid-template-columns: 1fr;
  }
}
