.onboarding-body {
  background:
    linear-gradient(135deg, rgba(42, 157, 143, 0.08), transparent 30%),
    linear-gradient(315deg, rgba(231, 111, 81, 0.08), transparent 34%),
    #edf3f4;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  padding: 2px 5px;
  background: #eef3f5;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.guide-topbar,
.guide-hero,
.guide-band,
.guide-section,
.guide-footer {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
}

.onboarding-shell {
  min-height: 100vh;
  padding: 18px 0 34px;
}

.guide-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 20px;
}

.guide-brand {
  color: var(--ink);
}

.guide-open {
  min-width: 128px;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.1fr);
  gap: 26px;
  align-items: center;
  min-height: min(680px, calc(100vh - 112px));
  padding: 16px 0 32px;
}

.hero-copy h2,
.guide-section h2,
.guide-footer h2 {
  margin-top: 8px;
  font-size: clamp(2.1rem, 5.8vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.guide-section h2,
.guide-footer h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.hero-lede,
.section-copy {
  max-width: 62ch;
  margin-top: 18px;
  color: #47545e;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.product-visual {
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(219, 226, 231, 0.96);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.visual-toolbar {
  display: flex;
  gap: 7px;
  padding: 13px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.visual-toolbar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line);
}

.visual-toolbar span:nth-child(1) {
  background: var(--coral);
}

.visual-toolbar span:nth-child(2) {
  background: var(--gold);
}

.visual-toolbar span:nth-child(3) {
  background: var(--teal);
}

.visual-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 12px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(79, 124, 172, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(79, 124, 172, 0.07) 1px, transparent 1px),
    #f8faf9;
  background-size: 28px 28px;
}

.visual-inbox,
.visual-stops,
.visual-now,
.example-box,
.guide-band article,
.stop-directory article,
.mode-list article,
.notes-section article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.visual-inbox,
.visual-stops,
.visual-now {
  padding: 12px;
}

.visual-inbox {
  display: grid;
  gap: 8px;
}

.visual-inbox p {
  padding: 9px 10px;
  color: #48565f;
  background: var(--surface-soft);
  border: 1px solid #e4eaee;
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 750;
}

.visual-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.visual-stops {
  display: grid;
  gap: 8px;
}

.visual-stop {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 7px 9px;
  border-left: 5px solid var(--accent);
  border-radius: 7px;
  background: #fbfcfc;
  font-weight: 850;
}

.visual-stop svg {
  color: var(--accent);
}

.visual-stop.phone {
  --accent: #4f7cac;
}

.visual-stop.money {
  --accent: #2a9d8f;
}

.visual-stop.kitchen {
  --accent: #e9a93b;
}

.visual-stop.outside {
  --accent: #3f8f78;
}

.visual-stop strong {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-size: 0.8rem;
}

.visual-now {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  border-left: 6px solid var(--blue);
}

.visual-now .visual-label {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.visual-now b {
  overflow-wrap: anywhere;
  font-size: 1.28rem;
  line-height: 1.05;
}

.visual-now small {
  color: var(--muted);
  font-weight: 800;
}

.visual-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
  font-weight: 850;
}

.guide-band {
  display: grid;
  gap: 12px;
  padding: 0 0 22px;
}

.three-up {
  grid-template-columns: repeat(3, 1fr);
}

.guide-band article {
  padding: 18px;
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font-weight: 900;
}

.guide-band h3,
.stop-directory h3,
.mode-list strong,
.notes-section h3,
.example-box h3 {
  display: block;
  margin-top: 14px;
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.guide-band p,
.stop-directory p,
.mode-list p,
.notes-section p {
  margin-top: 8px;
  color: #59666f;
  line-height: 1.45;
}

.guide-section {
  padding: 34px 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(360px, 1.22fr);
  gap: 28px;
  align-items: start;
}

.syntax-table {
  display: grid;
  gap: 10px;
}

.syntax-table > div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.syntax-table p {
  color: #59666f;
  line-height: 1.45;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 18px;
}

.stop-directory {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stop-directory article {
  min-height: 168px;
  padding: 16px;
  border-top: 5px solid var(--accent);
}

.stop-directory svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.mode-list {
  display: grid;
  gap: 10px;
}

.mode-list article {
  padding: 15px;
  border-left: 5px solid var(--teal);
}

.mode-list article:nth-child(2) {
  border-left-color: var(--gold);
}

.mode-list article:nth-child(3) {
  border-left-color: var(--coral);
}

.mode-list strong {
  margin-top: 0;
}

.example-flow {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  gap: 14px;
  align-items: center;
}

.example-box {
  padding: 16px;
}

.example-box h3 {
  margin: 0 0 12px;
}

.example-box p {
  padding: 10px 11px;
  color: #48565f;
  background: var(--surface-soft);
  border: 1px solid #e4eaee;
  border-radius: 7px;
  font-weight: 720;
}

.example-box p + p {
  margin-top: 8px;
}

.example-box.output {
  border-left: 6px solid var(--teal);
}

.flow-arrow {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
}

.notes-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.notes-section article {
  padding: 18px;
}

.notes-section h3 {
  margin-top: 0;
}

.guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 24px;
  color: #fff;
  background: #172026;
  border-radius: var(--radius);
}

.guide-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.guide-footer .eyebrow {
  color: rgba(255, 255, 255, 0.68);
}

.guide-footer h2 {
  color: #fff;
}

.guide-footer .primary-action {
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}

.guide-footer .footer-sample {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 900px) {
  .guide-hero,
  .split-section,
  .example-flow,
  .notes-section {
    grid-template-columns: 1fr;
  }

  .guide-hero {
    min-height: auto;
    padding-top: 10px;
  }

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

  .stop-directory {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-arrow {
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .guide-topbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .guide-open,
  .guide-topbar .primary-action,
  .hero-actions .primary-action,
  .hero-actions .secondary-action,
  .guide-footer .primary-action,
  .guide-footer .secondary-action {
    width: 100%;
  }

  .hero-copy h2 {
    font-size: clamp(2.15rem, 13vw, 3.4rem);
  }

  .visual-grid,
  .stop-directory,
  .syntax-table > div {
    grid-template-columns: 1fr;
  }

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

  .visual-button {
    width: 100%;
  }

  .guide-footer {
    display: grid;
    padding: 18px;
  }

  .guide-footer-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
