.guide {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.guide section {
  margin-top: 2.5rem;
  padding: 1.6rem;
  border: 1px solid #d8e0ea;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 44, 88, 0.05);
}

.guide .hero {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.eyebrow {
  margin-bottom: 0.3rem;
  color: #176b87;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  color: #102c58;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
}

h2 {
  margin-top: 0;
}

p,
li {
  line-height: 1.6;
}

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

pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 7px;
  color: #e7edf7;
  background: #172033;
  line-height: 1.55;
}

.callout {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid #176b87;
  border-radius: 4px;
  background: #e9f4f6;
  line-height: 1.55;
}

.callout.warning {
  border-left-color: #c87800;
  background: #fff4dc;
}

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.8rem;
  margin: 1.4rem 0;
}

.flow-node {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  padding: 1rem;
  border: 1px solid #b9c9dc;
  border-radius: 8px;
  background: #f5f8fb;
  text-align: center;
}

.flow-node small {
  color: #176b87;
  font-weight: 800;
}

.flow-node span {
  color: #53647e;
  font-size: 0.8rem;
}

.flow-node.response {
  border-color: #60a58b;
  background: #ecf8f1;
}

.arrow {
  color: #176b87;
  font-size: 1.5rem;
  font-weight: 800;
}

.tree {
  overflow-x: auto;
  padding: 1.2rem;
  border-radius: 7px;
  background: #f5f8fb;
  line-height: 1.9;
}

.tree em {
  color: #176b87;
  font-style: normal;
}

.level-2 { padding-left: 2rem; }
.level-3 { padding-left: 4rem; }
.level-4 { padding-left: 6rem; }

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

.note {
  color: #53647e;
  font-size: 0.9rem;
}

.button {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  color: #fff;
  background: #176b87;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 880px) {
  .flow {
    grid-template-columns: 1fr;
  }

  .arrow {
    transform: rotate(90deg);
    text-align: center;
  }

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