/* ==========================================================
   10 · Integrations hub (node connectors), resource cards,
   closing CTA (ribbon bookend) and footer
   ========================================================== */
.integrations { padding: 120px 0 40px; }
.ig-head { display: grid; gap: 20px; justify-items: center; text-align: center; margin-bottom: 40px; }
.ig-head .h2 { text-wrap: balance; }

/* ---------- Hub stage (1200 × 440 coordinate space) ---------- */
.ig-stage {
  position: relative;
  aspect-ratio: 1200 / 440;
  border-radius: var(--r-2xl);
  background:
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.ig-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.ig-wires use { fill: none; stroke: var(--ink-200); stroke-width: 1.5; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.ig-dot { fill: var(--cobalt-500); }
.ig-dot.d1 { fill: var(--teal-500); }
.ig-dot.d2 { fill: var(--amber-500); }

.ig-hub { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; translate: -50% -50%; display: grid; place-items: center; }
.ig-core {
  position: relative; z-index: 1;
  width: 84px; height: 84px; border-radius: 24px;
  display: grid; place-items: center;
  background: var(--white);
  border: 1px solid var(--ink-150);
  box-shadow: 0 0 0 8px rgba(255,255,255,.8), 0 18px 40px -10px rgba(20,50,140,.35);
}
.ig-mark { width: 60px; height: 60px; border-radius: 16px; box-shadow: none; }

.ig-tiles { list-style: none; margin: 0; padding: 0; }
.ig-tile {
  position: absolute; width: 174px; height: 56px;
  display: flex; align-items: center; gap: 11px;
  padding: 0 14px 0 10px;
  background: var(--white);
  border: 1px solid var(--ink-150);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ig-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
/* real brand marks on a small raised white tile (same depth as the
   site's coins: lit top edge, a visible rim, a soft contact shadow) */
.ig-lg {
  width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(180deg, #FFFFFF, #F3F5F9);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(16,24,48,.08), 0 1.5px 0 rgba(16,24,48,.08), 0 4px 10px -4px rgba(16,24,48,.25);
}
.ig-lg svg { width: 19px; height: 19px; fill: var(--c); }
.ig-tile b { display: block; font-size: 14px; font-weight: 600; color: var(--ink-950); }
.ig-tile small { display: block; font-size: 12px; color: var(--ink-500); }

/* ---------- Resource cards ---------- */
.rs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.rs-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease;
}
.rs-title { display: flex; align-items: center; gap: 12px; }
.rs-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.rs-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.rs-card h3 { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.rs-card p { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-500); }
.rs-search { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--ink-150); background: var(--ink-50); font-size: 13.5px; color: var(--ink-600); }
.rs-code { margin: 8px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--ink-950); color: #C9CEDB; font: 12.5px/1.6 ui-monospace, "SF Mono", Menlo, monospace; overflow-x: auto; }
.rs-code i { font-style: normal; }
.rs-code .k { color: #8EF0E0; font-weight: 600; }
.rs-code .s { color: #FFC25A; }
.rs-steps { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--ink-500); }
.rs-steps span { padding: 5px 10px; border-radius: 99px; border: 1px solid var(--ink-150); white-space: nowrap; }
.rs-steps span.on { background: var(--teal-50); border-color: var(--teal-100); color: #08715F; font-weight: 500; }
.rs-steps i { flex: 1; min-width: 8px; height: 1px; background: var(--ink-200); }
.rs-link { margin-top: auto; padding-top: 10px; font-size: 15px; font-weight: 500; color: var(--cobalt-600); }
.rs-card:hover .rs-link span { display: inline-block; transform: translateX(3px); transition: transform .2s; }

/* ---------- Closing CTA ---------- */
.cta { padding: 120px 0 80px; }
.cta-box {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; justify-items: center; text-align: center; gap: 22px;
  padding: 96px 32px;
  border-radius: 32px;
  background:
    var(--wash-cobalt);
  border: 1px solid var(--cobalt-100);
}
.cta-ribbon { z-index: -1; }
.cta .h2 { font-size: clamp(36px, 4.6vw, 64px); text-wrap: balance; }
.cta .lead { max-width: 42ch; color: var(--ink-600); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.cta-actions .btn { --h: 48px; padding: 0 22px; font-size: 16px; }
.cta-note { margin: 0; font-size: 14px; color: var(--ink-600); text-wrap: balance; }

/* ---------- Footer ---------- */
.footer { padding: 24px 0 40px; border-top: 1px solid var(--border); background: var(--white); }
.ft-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 64px; padding: 48px 0 40px; }
.ft-brand { display: grid; gap: 16px; align-content: start; justify-items: start; }
.ft-brand p { margin: 0; max-width: 36ch; text-wrap: pretty; font-size: 15px; line-height: 1.55; color: var(--ink-500); }
.ft-news { display: flex; gap: 8px; width: 100%; max-width: 380px; margin-top: 6px; }
.ft-news input {
  flex: 1; min-width: 0; height: 36px; padding: 0 12px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  font: inherit; font-size: 14px; color: var(--ink-950); background: var(--white);
}
.ft-news input::placeholder { color: var(--ink-500); }
.ft-news input:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.ft-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ft-cols h3 { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-950); }
.ft-cols a { display: block; padding: 5px 0; font-size: 15px; color: var(--ink-500); transition: color .15s; }
.ft-cols a:hover { color: var(--ink-950); }
.ft-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--ink-500); }
.ft-bottom a { text-decoration: underline; text-underline-offset: 2px; }
.ft-bottom a:hover { color: var(--ink-950); }
.ft-status { display: inline-flex; align-items: center; gap: 7px; }
.ft-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-50); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  /* hub becomes a simple grid: wires off, hub on top, tiles in two columns */
  .ig-stage { aspect-ratio: auto; padding: 28px 20px 20px; display: grid; gap: 22px; justify-items: center; }
  .ig-lines { display: none; }
  .ig-hub { position: relative; left: auto; top: auto; translate: none; }
  .ig-tiles { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; position: relative; }
  .ig-tile { position: static; width: auto; }
  .rs-grid { grid-template-columns: minmax(0, 1fr); }
  .ft-top { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 767px) {
  .integrations { padding: 72px 0 24px; }
  .ig-head { justify-items: start; text-align: left; }
  .ig-tiles { grid-template-columns: 1fr 1fr; }
  .ig-tile { padding: 0 10px 0 8px; gap: 9px; height: 52px; }
  .ig-lg { width: 30px; height: 30px; border-radius: 9px; }
  .ig-lg svg { width: 17px; height: 17px; }
  .ig-tile b { font-size: 13.5px; }
  .rs-card { padding: 22px; border-radius: var(--r-xl); }
  .cta { padding: 72px 0 48px; }
  .cta-box { padding: 64px 20px; border-radius: 24px; }
  .cta-actions { width: 100%; flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .ft-cols { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .ft-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .ig-dots { display: none; }
}


/* help cards: the outline icon sits in line with the heading, no box */
.rs-ic { display: inline-grid; place-items: center; flex: none; color: var(--ink-800); }
.rs-ic .i { width: 20px; height: 20px; }
.rs-title { gap: 10px; }

/* footer brand column: stretch its children so the paragraph and the
   newsletter form can never be wider than the column on small phones */
.ft-top > * { min-width: 0; }
.ft-brand { justify-items: stretch; }
.ft-brand > .logo { justify-self: start; }
.ft-brand p { max-width: min(36ch, 100%); }
.ft-news { width: auto; max-width: 380px; }
.ft-news .btn { flex: none; }
