/* ── Code Section ───────────────────────────────── */
.code-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 80px 48px 80px;
}
.code-section-header { margin-bottom: 16px; }
.code-section-intro {
    font-size: 17px;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 32px;
}
.code-block {
    background: var(--black);
    border-radius: 12px;
    padding: 32px 28px;
    overflow-x: auto;
}
.code-block pre {
    font-family: "SF Mono", "Fira Code", Monaco, Consolas, monospace;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin: 0;
}
.comment { color: rgba(255,255,255,0.35); }
.keyword { color: #c084fc; }
.string { color: #86efac; }
.function { color: #93c5fd; }
.json-number { color: #fbbf24; }
.code-footer {
    margin-top: 20px;
}
.code-footer-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.code-footer-link:hover { opacity: 0.6; }

/* ── Webhook Section ─────────────────────────────── */
.webhook-section {
    background-color: var(--warm-grey);
    padding: 64px 72px;
    max-width: 1300px;
    margin: 0 auto 32px auto;
    border-radius: 24px;
}
.webhook-header { margin-bottom: 16px; }
.webhook-intro {
    font-size: 17px;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 48px;
    max-width: 700px;
}
.webhook-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}
.webhook-payload {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
}
.payload-header {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.payload-event {
    font-family: "SF Mono", Monaco, monospace;
    font-size: 14px;
    font-weight: 600;
}
.payload-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    background: var(--warm-grey);
    padding: 3px 10px;
    border-radius: 4px;
}
.webhook-code {
    background: var(--black);
    border-radius: 0;
}
.webhook-code pre {
    font-family: "SF Mono", Monaco, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin: 0;
    padding: 20px;
}
.json-key { color: #93c5fd; }
.json-string { color: #86efac; }
.json-boolean { color: #fbbf24; }
.webhook-annotation {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.webhook-annotation-item {
    display: flex;
    gap: 12px;
    align-items: baseline;
    font-size: 14px;
}
.webhook-annotation-item code {
    font-family: "SF Mono", Monaco, monospace;
    font-size: 12px;
    font-weight: 600;
    background: var(--warm-grey);
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}
.webhook-annotation-item span {
    color: var(--gray);
    line-height: 1.5;
}
.webhook-details h4 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}
.webhook-details > p {
    font-size: 15px;
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 24px;
}
.webhook-headers {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.header-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 13px;
}
.header-item:last-child { border-bottom: none; }
.header-item code {
    font-family: "SF Mono", Monaco, monospace;
    font-size: 12px;
    font-weight: 600;
}
.header-item span {
    font-family: "SF Mono", Monaco, monospace;
    font-size: 12px;
    color: var(--gray);
}

/* ── Mobile Overrides (page-specific) ────────────── */
@media (max-width: 1024px) {
    .code-section { padding: 0 24px 32px 24px; }
    .code-block { padding: 20px; }
    .code-block pre { font-size: 12px; }

    .webhook-section { padding: 40px 24px; margin: 0 12px 12px 12px; }
    .webhook-grid { grid-template-columns: 1fr; gap: 32px; }
    .webhook-intro { font-size: 16px; margin-bottom: 32px; }
    .payload-header { padding: 12px 16px; }
    .webhook-code pre { padding: 16px; font-size: 11px; }
}
