/* /api: Walter-style hero with a live request/response window, then Stripe/Resend-style docs */
.api-hero { padding-bottom: 64px; }
.api-hero h1 { max-width: 17ch; }

/* Hero request/response window */
.hero-cb { max-width: 1100px; margin: 44px auto 0; text-align: left; border-radius: 18px; box-shadow: 0 60px 120px -60px rgba(46, 16, 101, .65), 0 2px 8px rgba(15, 20, 25, .08); }
.hero-cb .cb-bar { padding: 8px 14px; gap: 16px; }
.hero-cb .dots { display: inline-flex; gap: 6px; margin-right: 4px; }
.hero-cb .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; background: #ff5f57; }
.hero-cb .dots i:nth-child(2) { background: #febc2e; } .hero-cb .dots i:nth-child(3) { background: #28c840; }
.hero-real { margin-left: auto; }
.pdot-live { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: live 2s infinite; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.hs-col { min-width: 0; display: grid; align-content: start; }
.hs-col + .hs-col { border-left: 1px solid #1d2130; background: #0c0e14; }
.hs-lbl { display: flex; gap: 10px; align-items: center; padding: 14px 18px 0; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #7d869c; }
.hs-lbl em { font-style: normal; color: #4ade80; letter-spacing: .02em; text-transform: none; font-weight: 500; }
.hero-split pre { max-height: 400px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2a3040 transparent; }
.hs-note { padding: 0 18px 16px; font-size: 13px; color: #7d869c; }
.hs-note a { color: #c4b5fd; }
.hero-cb [role="tabpanel"]:not([hidden]) { animation: panein .3s ease; }
@keyframes panein { from { opacity: 0; } }

/* Docs */
.docs-wrap { max-width: 1320px; padding-block: 24px 40px; }
.docs-body { min-width: 0; }
.baseurl { display: flex; align-items: center; gap: 12px; margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 14px; background: #fcfcfe; flex-wrap: wrap; }
.baseurl span { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.baseurl code { font: 500 15px var(--mono); color: var(--fg); flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ep-table td:first-child a { text-decoration: none; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.ep-table td:last-child { white-space: nowrap; }
.mode { font: 600 11px var(--mono); color: #9a4a06; background: #fff1db; border-radius: 5px; padding: 3px 6px; }
.dtable td:first-child code { white-space: nowrap; }
.qs-cb { margin-top: 18px; }
.resp-cb { margin-top: 12px; }
.resp-cb pre, .resp-tall { max-height: 460px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2a3040 transparent; }
.st-ok { font: 700 11px/1 var(--mono); color: #052e16; background: #4ade80; border-radius: 5px; padding: 4px 6px; }
.qs-notes { list-style: none; padding: 0 !important; margin-top: 18px !important; display: grid; gap: 10px !important; }
.qs-notes li { position: relative; padding: 12px 14px 12px 40px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; line-height: 1.55; background: #fff; }
.qs-notes li::before { content: ""; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border-radius: 50%; background: #ede9fe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4.5v4M8 11v.1' stroke='%236d28d9' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.qs-notes b { color: var(--fg); }

/* Endpoint sections */
.ep-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.ep-head code { font: 600 15px var(--mono); color: var(--fg); }
.ep-head .pill { margin-left: 4px; }
.ep-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; margin-top: 8px; align-items: start; }
.ep-doc h3:first-child { margin-top: 22px; }
.ep-code { position: sticky; top: 96px; display: grid; gap: 12px; margin-top: 28px; min-width: 0; }
.ep-code .cb pre { max-height: 420px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2a3040 transparent; }
.fields .param { padding: 13px 0; }
.mcp-url { margin-top: 18px; max-width: 620px; }
.docs-body > .dsec > .cb { margin-top: 14px; }

/* Tool cards */
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.tool-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 8px; align-content: start; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tool-card:hover { border-color: #d9cffb; box-shadow: 0 18px 36px -26px rgba(76, 29, 149, .4); transform: translateY(-2px); }
.tc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tc-top code { font: 600 15px var(--mono); color: #3b2a6b; }
.tool-card p { margin: 0; font-size: 15px; }
.tool-card a { color: #6d28d9; font-weight: 600; }
.tc-args { display: flex; gap: 6px; flex-wrap: wrap; }
.tc-args span { font: 500 12px var(--mono); color: #4a4f5a; background: #f4f3f8; border-radius: 6px; padding: 3px 7px; }
.tc-args.muted { font: 500 12.5px var(--mono); color: var(--faint); }

@media (max-width: 1200px) {
  .ep-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ep-code { position: static; margin-top: 22px; }
}
@media (max-width: 860px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); }
  .hs-col + .hs-col { border-left: 0; border-top: 1px solid #1d2130; }
  .hero-real { display: none; }
  .hero-split pre { max-height: 300px; }
}
@media (max-width: 760px) {
  .hero-cb { margin-top: 32px; border-radius: 14px; }
  .hero-cb .dots { display: none; }
  .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .dsec { padding-block: 36px; }
  .err-table td:last-child { min-width: 200px; }
}
@media (max-width: 600px) {
  .ep-table thead { display: none; }
  .ep-table, .ep-table tbody, .ep-table tr, .ep-table td { display: block; width: 100%; }
  .ep-table tr { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .ep-table td { border: 0; padding: 0; }
  .ep-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 14.5px; }
  .ep-table td:last-child { grid-column: 2; grid-row: 1; justify-self: end; }
  .err-table thead { display: none; }
  .err-table, .err-table tbody, .err-table tr, .err-table td { display: block; width: 100%; }
  .err-table tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .err-table td { border: 0; padding: 2px 0; min-width: 0 !important; }
  .err-table td:last-child { color: var(--muted); font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .pdot-live, .hero-cb [role="tabpanel"] { animation: none !important; } }
