/* Integrations page. Page-only components are prefixed ig-. */

/* Copy column (the shared .copy class doubles as the copy-button style, so pages use .col-copy) */
.col-copy p:not(.eyebrow){margin-top:20px;font-size:17px;line-height:1.7;max-width:48ch}
.col-copy .eyebrow{margin-bottom:18px}
@media(max-width:1020px){.split-reverse .col-copy{order:-1}}

/* Logo chip: a light tile so single-colour and brand-colour marks both read on the dark ground */
.logo{flex:none;display:grid;place-items:center;width:44px;height:44px;padding:10px;border-radius:13px;background:#f4f6ee;box-shadow:0 1px 0 #ffffffb0 inset,0 10px 24px -14px #000}
.logo img,.logo svg{width:100%;height:100%}
.logo-ico svg{fill:none;stroke:#1b2016;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.logo-lg{width:64px;height:64px;padding:14px;border-radius:18px}

/* .section-head p in site.css outranks .eyebrow; keep the eyebrow at its own size */
.section-head .eyebrow{font-size:11.5px;line-height:1.4;margin-top:0}

/* site.js clears the inline transform after a reveal, which re-exposes the CSS translateY(24px); settle revealed items in place */
.js [data-reveal][style*="opacity: 1"]{transform:none}

/* ── Hero hub ── */
.ig-hero{padding-bottom:clamp(40px,6vw,80px)}
.ig-hub{margin:clamp(40px,6vw,72px) auto 0;max-width:1040px}
.ig-hub-stage{position:relative;aspect-ratio:1000/470;border-radius:var(--r-xl);border:1px solid var(--line);
  background:radial-gradient(40% 55% at 50% 50%,#d7fb8b14,transparent 70%),linear-gradient(180deg,#ffffff07,#ffffff02)}
.ig-hub-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.ig-hub-lines line{stroke-width:1.5;fill:none;stroke-linecap:round}
.ig-hub-lines .l-plan{stroke:#ffffff2e;stroke-dasharray:4 7;opacity:0;transition:opacity .6s var(--ease)}
.ig-hub-lines .l-live{stroke:var(--lime);stroke-width:2.5;filter:drop-shadow(0 0 6px #d7fb8b88)}
.ig-hub-lines .l-flow{stroke:#f4ffd6;stroke-width:3.5;stroke-dasharray:10 90;opacity:0}
.ig-hub.is-built .l-plan{opacity:1}
.ig-hub.is-playing .l-flow{opacity:1;animation:ig-flow 1.6s linear infinite}
@keyframes ig-flow{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}

.ig-core{position:absolute;left:50%;top:50%;width:118px;height:118px;translate:-50% -50%;display:grid;place-items:center;border-radius:50%;background:#0f110e;border:1px solid #d7fb8b40;box-shadow:0 0 0 10px #d7fb8b0a,0 0 60px -10px #d7fb8b55}
.ig-core-lock{display:block;width:64px;height:72px}
.ig-core-ring{position:absolute;inset:-1px;border-radius:50%;border:1px solid var(--lime);opacity:0}
.ig-hub.is-playing .ig-core-ring{animation:ig-ring 1.6s var(--ease-out) infinite}
@keyframes ig-ring{0%{opacity:.6;transform:scale(1)}100%{opacity:0;transform:scale(1.35)}}

.ig-node{position:absolute;left:calc(var(--x)*1%);top:calc(var(--y)*1%);translate:-50% -50%;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;transition:opacity .5s var(--ease),transform .6s var(--ease-out)}
.ig-node b{font-size:13px;font-weight:600;color:var(--soft);letter-spacing:-.01em;line-height:1}
.ig-node em{font:600 9.5px/1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;letter-spacing:.12em;text-transform:uppercase;font-style:normal;color:#6f756c}
.ig-node:not(.is-live) .logo{background:#d9dcd3;opacity:.62;filter:saturate(.35);outline:1px dashed #ffffff40;outline-offset:4px}
.ig-node.is-live .logo{width:58px;height:58px;padding:13px;outline:2px solid var(--lime);outline-offset:4px;box-shadow:0 0 0 10px #d7fb8b14,0 0 40px -6px #d7fb8b88}
.ig-node.is-live b{color:var(--text);font-size:15px}.ig-node.is-live em{color:var(--lime)}
/* Before the hub builds itself */
.js .ig-hub:not(.is-built) .ig-node:not(.is-live){opacity:0;transform:scale(.85)}

.n-github{--x:11;--y:50}.n-gitlab{--x:22;--y:20}.n-vscode{--x:42;--y:11}.n-cursor{--x:67;--y:14}.n-slack{--x:87;--y:34}
.n-linear{--x:87;--y:66}.n-jira{--x:67;--y:86}.n-actions{--x:42;--y:89}.n-bitbucket{--x:22;--y:80}

.ig-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:10px 24px;margin-top:18px;font-size:13px;color:var(--muted)}
.ig-legend span{display:inline-flex;align-items:center;gap:9px}
.ig-legend i{width:28px;height:0;border-top:2px solid var(--lime)}
.ig-legend .lg-plan{border-top:2px dashed #ffffff40}
.ig-hub figcaption{margin-top:10px;text-align:center;font-size:12.5px;color:#6c7269}

/* ── Directory ── */
.ig-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px}
.ig-chips{display:flex;flex-wrap:wrap;gap:8px}
.ig-chips button{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--line-2);background:#ffffff06;font-size:14px;font-weight:600;color:var(--soft);cursor:pointer;
  transition:background var(--t-fast),border-color var(--t-fast),color var(--t-fast),transform var(--t-fast) var(--ease)}
.ig-chips button span{font:600 11px/1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;padding:4px 6px;border-radius:999px;background:#ffffff10;color:var(--muted);transition:inherit}
.ig-chips button:hover{border-color:#ffffff40;color:var(--text)}
.ig-chips button:active{transform:scale(.97)}
.ig-chips button[aria-pressed="true"]{background:var(--lime);border-color:var(--lime);color:var(--lime-ink)}
.ig-chips button[aria-pressed="true"] span{background:#17211322;color:var(--lime-ink)}

.ig-seg{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(3,1fr);padding:4px;border-radius:999px;border:1px solid var(--line-2);background:#ffffff06}
.ig-seg button{position:relative;min-height:34px;padding:0 16px;border:0;background:none;border-radius:999px;font-size:13.5px;font-weight:600;color:var(--soft);cursor:pointer;transition:color var(--t)}
.ig-seg button[aria-pressed="true"]{color:var(--text)}
.ig-seg-thumb{position:absolute;z-index:-1;top:4px;bottom:4px;left:4px;width:calc((100% - 8px)/3);border-radius:999px;background:#ffffff14;border:1px solid var(--line-2);transition:translate .4s var(--ease-out)}
.ig-seg:has([data-value="available"][aria-pressed="true"]) .ig-seg-thumb{translate:100% 0}
.ig-seg:has([data-value="planned"][aria-pressed="true"]) .ig-seg-thumb{translate:200% 0}

.ig-count{margin:22px 0 18px;font:600 12px ui-monospace,"SF Mono",Menlo,Consolas,monospace;letter-spacing:.06em;color:var(--muted)}
.ig-count b{color:var(--text);font-weight:600}

.ig-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.ig-card{display:flex;flex-direction:column;border-radius:var(--r-lg);padding:20px 20px 18px;background:var(--panel);border:1px dashed #ffffff1f;transition:border-color var(--t),background var(--t)}
.ig-card[hidden]{display:none}
.ig-card:hover{border-color:#ffffff38}
.ig-card.is-live{border:1px solid #d7fb8b55;background:linear-gradient(180deg,#d7fb8b12,var(--panel) 55%);box-shadow:0 0 50px -30px #d7fb8b88}
.ig-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.ig-card h3{margin-top:18px;font-size:18px}
.ig-card p{margin-top:6px;font-size:14.5px;line-height:1.55;color:var(--muted)}
.ig-card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:18px;font-size:12.5px;color:#6c7269}
.ig-card-foot a{font-size:13.5px;font-weight:600;padding:6px 0}
.ig-card:not(.is-live) .ig-card-foot a:hover{color:var(--lime)}
.pill .dot{width:6px;height:6px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 0 #d7fb8b88;animation:live 2.2s ease-out infinite}

.ig-empty{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:22px;padding:26px;border-radius:var(--r-lg);border:1px dashed #b9a3ec55;background:#b9a3ec0a}
.ig-empty[hidden]{display:none}
.ig-empty-lock{display:block;width:54px;height:62px}
.ig-empty p{margin-top:4px;font-size:15px;color:var(--muted)}
.ig-empty .actions{margin-top:0}

/* ── GitHub permissions ── */
.ig-checks{margin-top:24px}
.ig-perm{padding:22px}
.ig-perm .tabs-list{margin-bottom:20px}
.ig-perm-head{display:flex;align-items:center;gap:14px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.ig-perm-head b{display:block;font-size:16px}.ig-perm-head small{font-size:13px;color:var(--muted)}
.ig-perm-head .pill{margin-left:auto}
.ig-scopes{display:grid;gap:8px;margin-top:16px}
.ig-scopes li{display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:12px;border:1px solid var(--line);background:#ffffff04;font-size:14.5px;color:var(--soft)}
.ig-scopes li::before{content:"";flex:none;width:18px;height:18px;border-radius:50%;background:center/11px no-repeat}
.ig-scopes em{margin-left:auto;font:600 11px ui-monospace,"SF Mono",Menlo,Consolas,monospace;letter-spacing:.08em;font-style:normal;text-transform:uppercase}
.ig-scopes .s-read::before{background-color:var(--lime);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 8S4 3.5 8 3.5 14.5 8 14.5 8 12 12.5 8 12.5 1.5 8 1.5 8z' fill='none' stroke='%23172113' stroke-width='1.6'/%3E%3Ccircle cx='8' cy='8' r='2' fill='%23172113'/%3E%3C/svg%3E")}
.ig-scopes .s-read em{color:var(--lime)}
.ig-scopes .s-write::before{background-color:var(--amber);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m10.5 2.5 3 3-8 8H2.5v-3z' fill='none' stroke='%23231a08' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E")}
.ig-scopes .s-write{border-color:#f5c46b33}.ig-scopes .s-write em{color:var(--amber)}
.ig-scopes .s-none{color:#7a8076}
.ig-scopes .s-none::before{border:1.5px solid #ffffff30;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8' stroke='%23ffffff60' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E")}
.ig-scopes .s-none em{color:#6c7269}
/* rows settle in when a panel opens */
.ig-perm-panel.is-in .ig-scopes li{animation:ig-row .5s var(--ease-out) both}
.ig-perm-panel.is-in .ig-scopes li:nth-child(2){animation-delay:.07s}.ig-perm-panel.is-in .ig-scopes li:nth-child(3){animation-delay:.14s}.ig-perm-panel.is-in .ig-scopes li:nth-child(4){animation-delay:.21s}
@keyframes ig-row{from{opacity:0;transform:translateX(12px)}}
.ig-perm-note{margin-top:16px;font-size:14px;line-height:1.6;color:var(--muted)}

/* ── Coverage ── */
.ig-cov{border-radius:var(--r-xl);border:1px solid var(--line);background:linear-gradient(180deg,var(--panel-2),var(--panel));padding:clamp(18px,2.4vw,28px);box-shadow:0 30px 80px -40px #000}
.ig-cov-tabs{display:flex;justify-content:center}
.ig-cov-panel{display:grid;grid-template-columns:220px 1fr;gap:clamp(24px,4vw,56px);align-items:start;padding:clamp(24px,3.4vw,44px) clamp(4px,2vw,20px) 6px}
.ig-cov-panel[hidden]{display:none}
.ig-cov-id{display:grid;justify-items:start;gap:14px}
.ig-cov-id code{font:12.5px ui-monospace,"SF Mono",Menlo,Consolas,monospace;color:var(--muted);padding:6px 9px;border-radius:8px;border:1px solid var(--line);background:#ffffff05}
.ig-cov-body h3{font-size:clamp(24px,2.6vw,32px);letter-spacing:-.04em}
.ig-cov-body>p{margin-top:8px;font-size:16px}
.ig-lit{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.ig-lit li{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border-radius:999px;border:1px solid var(--line-2);font-size:14px;font-weight:500;color:#6f756c;background:#ffffff04;transition:color .35s,border-color .35s,background .35s,box-shadow .35s}
.ig-lit li::before{content:"";width:7px;height:7px;border-radius:50%;background:#ffffff26;transition:background .35s,box-shadow .35s}
.ig-lit li.is-lit{color:var(--text);border-color:#d7fb8b55;background:#d7fb8b0f}
.ig-lit li.is-lit::before{background:var(--lime);box-shadow:0 0 10px #d7fb8b}
.ig-out{margin-top:20px;padding:14px 16px;border-radius:12px;border:1px dashed #ffffff1f;font-size:14px;line-height:1.6;color:var(--muted)}
.ig-out b{display:block;margin-bottom:2px;font:600 10.5px ui-monospace,"SF Mono",Menlo,Consolas,monospace;letter-spacing:.12em;text-transform:uppercase;color:var(--soft)}

.ig-road{margin-top:clamp(40px,5vw,64px)}
.ig-road-head{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;margin-bottom:18px}
.ig-road-head h3{font-size:18px}
.ig-road-head .link{margin-left:auto;font-size:14px}
.ig-road-list{display:flex;flex-wrap:wrap;gap:10px}
.ig-road-list li{display:inline-flex;align-items:center;gap:9px;padding:8px 14px 8px 8px;border-radius:999px;border:1px dashed #ffffff26;font-size:14px;color:var(--soft);background:#ffffff03}
.ig-road-list img{width:26px;height:26px;padding:4px;border-radius:50%;background:#e9ece3;filter:saturate(.55);opacity:.85}
.ig-road .fine{text-align:left}

/* ── Request ── */
.ig-copy{min-height:46px;padding:0 18px;border-radius:999px;font-size:15px}
.ig-mail-note{font-size:14px!important;color:var(--muted)!important;margin-top:14px!important}
.ig-draft{padding:22px}
.ig-pick{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:18px;border-bottom:1px solid var(--line);font-size:14px;color:var(--soft)}
.ig-pick select{appearance:none;min-height:42px;min-width:200px;padding:0 40px 0 14px;border-radius:12px;border:1px solid var(--line-2);font:inherit;font-size:16px;color:var(--text);cursor:pointer;
  background:#ffffff08 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23d7fb8b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center/14px no-repeat;transition:border-color var(--t-fast)}
.ig-pick select:hover{border-color:#ffffff40}
.ig-pick select option{background:#151715;color:var(--text)}
.ig-mail{margin-top:16px;border-radius:14px;border:1px solid var(--line);background:#0b0c0b;overflow:hidden}
.ig-mail-row{display:grid;grid-template-columns:72px 1fr;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line);font-size:14px}
.ig-mail-row span{color:#6c7269}.ig-mail-row b{font-weight:500;color:var(--text);min-height:1.6em;overflow-wrap:anywhere}
.ig-mail-body{position:relative;padding:16px 16px 22px;min-height:120px}
.ig-mail-body p{font-size:14.5px;line-height:1.7;color:var(--soft);min-height:1.7em}
.ig-caret{display:inline-block;width:2px;height:16px;margin-top:4px;background:var(--lime);animation:caret 1s steps(2,start) infinite}
.ig-draft figcaption{margin-top:12px;text-align:center;font-size:12.5px;color:#6c7269}

/* ── Responsive ── */
@media(max-width:1020px){
  .ig-grid{grid-template-columns:repeat(2,1fr)}
  .ig-cov-panel{grid-template-columns:1fr}
  .ig-cov-id{grid-auto-flow:column;align-items:center;justify-content:start}
  .ig-cov-tabs{justify-content:flex-start}
}
@media(max-width:680px){
  .ig-hub-stage{aspect-ratio:1/1.12;border-radius:var(--r-lg)}
  .ig-core{width:86px;height:86px}.ig-core-lock{width:46px;height:52px}
  .ig-node .logo{width:36px;height:36px;padding:8px;border-radius:11px}
  .ig-node.is-live .logo{width:46px;height:46px;padding:10px}
  .ig-node b{font-size:11.5px}.ig-node.is-live b{font-size:13px}.ig-node em{display:none}.ig-node.is-live em{display:block}
  .n-github{--x:14;--y:50}.n-gitlab{--x:20;--y:20}.n-vscode{--x:50;--y:9}.n-cursor{--x:80;--y:20}.n-slack{--x:88;--y:43}
  .n-linear{--x:84;--y:70}.n-jira{--x:62;--y:89}.n-actions{--x:34;--y:89}.n-bitbucket{--x:15;--y:75}
  .ig-controls{display:grid;grid-template-columns:minmax(0,1fr)}
  .ig-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:calc(var(--gutter)*-1);padding-inline:var(--gutter)}
  .ig-chips button{flex:none}
  .ig-grid{grid-template-columns:1fr;gap:10px}
  /* compact rows on phones: logo, name and status on one line */
  .ig-card{display:grid;grid-template-columns:44px 1fr auto;grid-template-areas:"logo name pill" "logo desc desc" "foot foot foot";column-gap:14px;row-gap:2px;padding:16px}
  .ig-card[hidden]{display:none}
  .ig-card-top{display:contents}
  .ig-card .logo{grid-area:logo}.ig-card .pill{grid-area:pill;align-self:center}
  .ig-card h3{grid-area:name;margin-top:0;align-self:center;font-size:17px}
  .ig-card p{grid-area:desc;margin-top:0;font-size:14px}
  .ig-card-foot{grid-area:foot;padding-top:10px}
  .ig-empty{grid-template-columns:1fr;text-align:left}
  .ig-pick{flex-direction:column;align-items:stretch}
  .ig-pick select{width:100%}
  .ig-road-head .link{margin-left:0}
}

@media(prefers-reduced-motion:reduce){
  .ig-hub .ig-node,.ig-hub .l-plan{opacity:1!important;transform:none!important}
  .ig-hub .l-flow{display:none}
  .ig-caret{animation:none}
}
