/* The integrations page: a list of tools on the left, the chosen tool's setup on the right.
   Without script every setup is shown in turn, so the page still reads top to bottom. */
.int-hero { padding-bottom: 64px; }
.int-facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 32px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.int-facts b { margin-right: 4px; font: 400 24px/32px var(--display); color: var(--ink); }
.int-section { padding: 64px 0 96px; }

.int-picker { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: start; }
.int-side { position: sticky; top: calc(var(--top) + 24px); display: flex; flex-direction: column; max-height: calc(100vh - var(--top) - 48px); }
.int-search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.int-search input { width: 100%; height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font: 400 16px/24px var(--text); color: var(--ink); transition: border-color 300ms var(--ease); }
.int-search input:focus { border-color: var(--ink); outline: 2px solid var(--accent); outline-offset: 2px; }
.int-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 12px 0; }
.int-tabs button { padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font: 500 12px/20px var(--text); color: var(--ink-2); cursor: pointer; transition: color 300ms var(--ease), border-color 300ms var(--ease), background-color 300ms var(--ease); }
.int-tabs button:hover { border-color: var(--ink); color: var(--ink); }
.int-tabs button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.int-list { min-height: 0; margin: 0 -8px; padding: 0 8px 8px; overflow-y: auto; scrollbar-width: thin; }
.int-group p { margin: 16px 0 4px; font: 500 12px/16px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.int-group a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; color: inherit; text-decoration: none; transition: background-color 300ms var(--ease); }
.int-group a:hover { background: var(--tint); }
.int-group a.on { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }
.int-group i, .int-pane header i { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--ink); font: 500 12px/16px var(--mono); font-style: normal; color: #fff; }
.int-group a.on i { background: var(--accent); color: var(--accent-ink); }
.int-group span { min-width: 0; }
.int-group b { display: block; font-size: 14px; line-height: 20px; font-weight: 600; }
.int-group small { display: block; overflow: hidden; font-size: 12px; line-height: 16px; color: var(--ink-3); white-space: nowrap; text-overflow: ellipsis; }
.int-none { margin: 16px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-2); }
[hidden] { display: none !important; }

.int-panes { min-width: 0; }
.int-back { display: none; }
.int-pane { padding: 32px; border: 1px solid var(--line-2); border-radius: 16px; background: #fff; scroll-margin-top: calc(var(--top) + 24px); }
.int-pane + .int-pane { margin-top: 24px; }
.int-picker.js .int-pane { display: none; margin-top: 0; }
.int-picker.js .int-pane.on { display: block; }
.int-pane header { display: flex; gap: 16px; align-items: flex-start; }
.int-pane header i { width: 48px; height: 48px; border-radius: 12px; background: var(--accent); font-size: 14px; color: var(--accent-ink); }
.int-pane header div { flex: 1; min-width: 0; }
.int-cat { margin: 0; font: 500 12px/16px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-ink); }
.int-pane h2 { margin: 4px 0 0; font: 400 36px/40px var(--display); letter-spacing: -0.015em; text-wrap: balance; }
.int-pane header div p:last-child { margin: 8px 0 0; color: var(--ink-2); }
.int-auth { flex: none; padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; line-height: 20px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.int-steps { margin: 32px 0 0; padding: 0; list-style: none; counter-reset: step; }
.int-steps li { position: relative; padding: 12px 0 12px 48px; border-top: 1px solid var(--line); counter-increment: step; text-wrap: pretty; }
.int-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 16px; font: 500 12px/16px var(--mono); letter-spacing: 0.08em; color: var(--amber-ink); }
.int-code { margin: 16px 0 0; overflow: hidden; border-radius: 12px; background: #0a0d12; }
.int-code figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.09); font: 500 12px/16px var(--mono); color: #7a8290; }
.int-code button { padding: 4px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); font: 500 12px/20px var(--text); color: #fff; cursor: pointer; transition: background-color 300ms var(--ease); }
.int-code button:hover { background: rgba(255, 255, 255, 0.2); }
.int-code button:active { transform: scale(0.98); }
.int-code pre { margin: 0; padding: 16px; border: 0; border-radius: 0; background: none; overflow-x: auto; font: 400 14px/24px var(--mono); color: #e6e9ee; }
.int-code code { padding: 0; border: 0; background: none; font: inherit; color: inherit; }
.int-more { margin: 24px 0 0; }
.int-more a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); text-decoration: none; }
.int-more svg { width: 16px; height: 16px; transition: transform 300ms var(--ease); }
.int-more a:hover svg { transform: translateX(4px); }

.int-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.int-ways a { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line-2); border-radius: 16px; background: #fff; color: inherit; text-decoration: none; transition: border-color 300ms var(--ease), transform 500ms var(--ease); }
.int-ways a:hover { border-color: var(--ink); transform: translateY(-2px); }
.int-ways b { font: 400 30px/36px var(--display); letter-spacing: -0.015em; }
.int-ways span { flex: 1; margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--ink-2); text-wrap: pretty; }
.int-ways code { margin-top: 24px; padding: 8px 12px; overflow: hidden; border: 0; border-radius: 8px; background: var(--tint); font: 400 12px/16px var(--mono); color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }

@media (max-width: 960px) {
  .int-picker { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .int-side { position: static; max-height: none; }
  .int-list { overflow: visible; }
  .int-ways { grid-template-columns: minmax(0, 1fr); }
  .int-picker.js .int-back { display: inline-block; margin-bottom: 24px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
  .int-picker.js .int-back::before { content: "\2191  "; }
}
@media (max-width: 860px) {
  .int-section { padding: 40px 0 64px; }
  .int-pane { padding: 24px 16px; }
  .int-pane header { flex-wrap: wrap; }
  .int-pane header div { flex-basis: calc(100% - 64px); }
  .int-pane h2 { font-size: 30px; line-height: 36px; }
  .int-auth { order: 3; margin-left: 64px; }
  .int-steps li { padding-left: 40px; }
  .int-code pre { font-size: 12px; line-height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .int-ways a, .int-group a, .int-more svg { transition: none; }
}
