/* Integrations, Worlds and 404: page parts on top of site.css. Same tokens, cards, ticks and buttons. */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nav__links a[aria-current="page"], .nav__sheet a[aria-current="page"] { color: var(--o4); }

/* a page hero: the homepage hero, shorter, the grid fading out under the words */
.hero--page { padding: 136px 0 96px; }
.hero--page .hero__text { margin-top: 0; }
.hero--page h1 { font-size: clamp(40px, 5vw, 68px); }

/* inner-page header: a big title on the left; one plain line and the page's real action on the right */
.ihead { position: relative; overflow: hidden; margin-top: -68px; padding: 140px 0 64px; background: var(--night); }
/* the glow fades out before the stepped edge, so the edge blocks are the header's own ground, not a black band */
.ihead .field { -webkit-mask-image: linear-gradient(#000 45%, transparent 92%); mask-image: linear-gradient(#000 45%, transparent 92%); }
.ihead__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: end; }
.ihead h1 { grid-column: 1 / 3; margin: 0; font-size: clamp(44px, 5vw, 68px); line-height: 1; letter-spacing: -0.045em; }
.ihead__side { display: grid; gap: 24px; justify-items: start; }
.ihead__lead { margin: 0; color: var(--muted-d); font-size: 17px; line-height: 1.55; text-wrap: pretty; }

/* the directory: filters in a sticky column, apps on the right */
.dir__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.dir__side { position: sticky; top: 100px; display: grid; gap: 10px; }
.dir__find label { position: relative; display: block; }
.dir__find svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; translate: 0 -50%; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; }
.dir__find input { width: 100%; min-height: 46px; padding: 0 14px 0 40px; background: #fff; border: 1px solid rgb(30 26 22 / .2); border-radius: 0; color: var(--ink); font: 400 15px/1 var(--text); }
.dir__find input:focus-visible { outline: 2px solid var(--o1); outline-offset: 0; }
.dir__h { margin: 18px 0 2px; color: var(--muted); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.dir__filters { display: grid; }
.dir__filters button { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; background: none; border: 0; border-left: 2px solid transparent; color: var(--ink); font: 400 15px/1.3 var(--text); text-align: left; cursor: pointer; }
.dir__filters button span { color: var(--muted); font: 500 12px/1 var(--mono); }
.dir__filters button:hover { background: rgb(30 26 22 / .04); }
.dir__filters button[aria-pressed="true"] { border-left-color: var(--o3); background: #fff; font-weight: 500; }
.dir__filters button[aria-pressed="true"] span { color: var(--o1); }
.dir__main { display: grid; gap: 56px; }
.dir__sec[hidden], .itile[hidden] { display: none; }
.dir__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid rgb(30 26 22 / .14); }
.dir__head h2 { font-size: 28px; letter-spacing: -0.03em; }
.dir__head p { margin: 0; max-width: 46ch; color: var(--muted); font-size: 15px; text-align: right; }
.dir__none { margin: 0; padding: 32px; background: #fff; border: 1px solid var(--line); color: var(--muted); text-align: center; }
.dir__none a { color: var(--o1); }

/* an app: icon, name and what it covers; ready apps are bigger and say Ready */
.itiles { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; }
.itile { --l: 10px; --t: 2px; position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); }
.itile__ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; background: var(--sand); }
.itile__t { display: grid; gap: 2px; min-width: 0; }
.itile__t b { font: 500 16px/1.25 var(--display); letter-spacing: -0.01em; }
.itile__t > span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.itiles--ready { gap: 16px; }
.itile--ready { align-items: flex-start; flex-wrap: wrap; gap: 16px; padding: 22px; }
.itile--ready .itile__ic { width: 52px; height: 52px; }
.itile--ready .itile__t { flex: 1; }
.itile--ready .itile__t b { font-size: 20px; }
.itile--ready .itile__t > span { font-size: 14px; }
.itile__meta { display: flex; justify-content: space-between; align-items: center; flex-basis: 100%; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

.wd-tools { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.wd-tools li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; background: #fff; border: 1px solid var(--line); font-size: 14px; line-height: 1.3; }
.wd-tools li img { width: 18px; height: 18px; }

.wd-soon { color: var(--muted); font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.wx__tabs .wd-soon { grid-column: 2; color: var(--muted); padding: 2px 0 0; }
/* coming-soon Worlds are greyed out: the row fades, and so does its room when you open it */
.wx__tabs button:has(.wd-soon):not([aria-selected="true"]) { opacity: .42; }
.wx__tabs button:has(.wd-soon):not([aria-selected="true"]):hover { opacity: .7; }
.wx__panels .wd-card:not(.is-open):not(.is-next) .wd-art img { opacity: .5; filter: grayscale(1); }

/* the World explorer: the six Worlds as tabs on the left, the chosen one on the right */
.wx { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: stretch; }
.wx__tabs { display: grid; grid-auto-rows: 1fr; border-top: 1px solid rgb(30 26 22 / .14); }
.wx__tabs button { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-content: center; align-items: baseline; gap: 8px 12px; padding: 14px; background: none; border: 0; border-bottom: 1px solid rgb(30 26 22 / .14); border-left: 2px solid transparent; color: var(--ink); text-align: left; cursor: pointer; }
.wx__tabs button:hover { background: rgb(30 26 22 / .04); }
.wx__tabs button[aria-selected="true"] { background: #fff; border-left-color: var(--o3); }
.wx__n { color: var(--muted); font: 500 12px/1 var(--mono); letter-spacing: .08em; }
.wx__name { font: 500 19px/1.2 var(--display); letter-spacing: -0.02em; }
.wx__tabs .tk { grid-column: 2; justify-self: start; } /* the status sits under the name, so long names never wrap beside it */
.wx__panels .wd-card { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto; height: 100%; }
/* with JS the six Worlds share one cell; the script holds the height of the tallest, so nothing below moves */
.wx--js .wx__panels { display: grid; }
.wx--js .wx__panels > .wd-card { grid-area: 1 / 1; }
/* hidden Worlds stay findable (hidden="until-found"); the shown one sits on top of them */
.wx--js .wx__panels > .wd-card:not([hidden]) { position: relative; z-index: 1; }
.wx--js .wx__panels > .wd-card[hidden] { background: none; border-color: transparent; } /* until-found still paints its own box: keep it empty */
.wx__panels .wd-art { border-bottom: 0; border-right: 1px solid var(--line); padding: 28px; }
.wx__panels .wd-art img { width: min(100%, 340px); }
.wx__panels .wd-card:focus-visible { outline: 2px solid var(--o1); outline-offset: 2px; }

/* the worlds, two to a row: the room on top, its facts in ruled rows */
.wd-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.wd-card { display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); scroll-margin-top: 96px; }
.wd-art { position: relative; display: grid; place-items: center; padding: 28px 40px 20px; background: var(--sand); border-bottom: 1px solid var(--line); }
.wd-art img { width: min(320px, 100%); height: auto; image-rendering: pixelated; }
.wd-body { padding: 24px; }
.wd-body header { margin: 0 0 16px; }
.num-h .num { color: var(--o1); font: 500 12px/1 var(--mono); letter-spacing: .1em; }
.num-h .num::before { content: "0"; }
.num-h { display: flex; align-items: baseline; gap: 12px; margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.wd-body dl { margin: 0; }
.wd-body dl > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.wd-body dt { padding-top: 7px; color: var(--muted); font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.wd-body dd { margin: 0; font-size: 15px; line-height: 1.5; }
.wd-body dd:not(:has(ul)) { padding-top: 4px; }
.wd-tools li { padding: 5px 10px; font-size: 13px; }
.wd-who img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.wd-bot { display: inline-grid; width: 18px; height: 18px; }
.wd-bot svg { width: 100%; height: 100%; }

@media (max-width: 1023px) {
  .ihead__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ihead h1 { grid-column: auto; }
  .dir__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .dir__side { position: static; }
  .dir__filters { display: flex; flex-wrap: wrap; gap: 6px; }
  .dir__filters button { border: 1px solid rgb(30 26 22 / .14); padding: 8px 12px; }
  .dir__filters button[aria-pressed="true"] { border-color: var(--o3); }
  .itiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wd-list { grid-template-columns: minmax(0, 1fr); }
  .wx { grid-template-columns: minmax(0, 1fr); }
  .wx__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wx__panels .wd-card { grid-template-columns: minmax(0, 1fr); }
  .wx__panels .wd-art { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .hero--page { padding: 112px 0 72px; }
  .ihead { padding: 116px 0 56px; }
    .itiles, .itiles--ready { grid-template-columns: minmax(0, 1fr); }
  .dir__head { display: block; }
  .dir__head p { margin-top: 6px; text-align: left; }
    .wx__tabs { grid-template-columns: minmax(0, 1fr); }
  .wx__tabs button { padding: 14px 12px; }
  .wd-art { padding: 24px 20px 16px; }
  .wd-body dl > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .wd-body dt { padding-top: 0; }
}

/* make your own: the words on the left, a grid of apps from the catalog on the right */
.own { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 48px; align-items: center; }
.own__text { display: grid; justify-items: start; gap: 20px; }
.own__text p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.own__apps { grid-column: 2 / 4; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
.own__apps li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); font-size: 15px; }
.own__apps li span { min-width: 0; }
.own__soon { color: var(--muted); font: 500 11px/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; } /* quiet text, not a tag: only planned apps say anything */

/* integrations: planned apps under their category, four small tiles to a row */
.pgroup + .pgroup { margin-top: 28px; }
.pgroup[hidden] { display: none; }
.pgroup h3 { margin: 0 0 12px; color: var(--muted); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.itiles--sm { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.itiles--sm .itile { padding: 12px 14px; gap: 12px; }
.itiles--sm .itile__ic { width: 34px; height: 34px; }
.itiles--sm .itile__t b { font-size: 15px; }
.itile--ready .itile__ic { width: 44px; height: 44px; }

@media (max-width: 1023px) {
  .own { grid-template-columns: minmax(0, 1fr); }
  .own__apps { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .itiles--sm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .own__apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .own__apps li { grid-template-columns: 22px minmax(0, 1fr); }
  .own__apps .tk { display: none; }
  .itiles--sm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* what a World comes with: the homepage's art cards, with a visual for each part */
.wd-place { justify-content: center; gap: 4px; }
.wd-place img { width: 33%; max-width: 120px; height: auto; image-rendering: pixelated; }
.wd-place img + img { opacity: .75; }
.cw-people, .wd-agents { flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; }
.why__card .cw-people p, .why__card .wd-agents p { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--paper); font-size: 14px; }
.cw-people img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.cw-people span { margin-left: auto; color: var(--muted-d); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.why__card .wd-agents p { padding: 7px 10px; border: 1px solid var(--line-d); }
.why__card .wd-agents p.is-yours { border-color: var(--o3); }
.wd-agents i { display: grid; width: 22px; height: 22px; }
.wd-agents svg { width: 100%; height: 100%; }
.wd-agents .tk { margin-left: auto; }
.why__card .why__checks .wd-task { margin-bottom: 2px; color: var(--o4); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* the homepage's art cards on a light band: white cards, sand art, ink text */
.why--light .why__card { background: #fff; border-color: var(--line); }
.why--light .why__card:hover { border-color: rgb(196 84 10 / .4); }
.why--light .why__card p { color: var(--muted); }
.why--light .why__art { background: var(--sand); border-bottom-color: var(--line); }
.why--light .why__apps span { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.why--light .why__apps b { color: var(--o1); border-color: var(--o1); }
.why--light .cw-people p, .why--light .wd-agents p, .why--light .why__checks p { color: var(--ink); }
.why--light .cw-people span { color: var(--muted); }
.why--light .wd-agents p { background: #fff; border-color: var(--line); }
.why--light .wd-agents p.is-yours { border-color: var(--o3); }
.why--light .why__checks .wd-task { color: var(--o1); }
.why--light .why__checks i { color: #1D8A3F; }
.why--light .wd-place img + img { opacity: .6; }

/* integration details: one clean column in the header, then what the app covers and how to reach it */
.apphero { padding: 132px 0 72px; }
.apphero__in { position: relative; z-index: 1; display: grid; justify-items: start; gap: 22px; }
.apphero__back { color: var(--muted-d); font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.apphero__back:hover { color: var(--paper); }
.apphero__title { display: flex; align-items: center; gap: 18px; }
.apphero h1 { margin: 0; font-size: clamp(40px, 4.6vw, 60px); line-height: 1; letter-spacing: -0.04em; }
.apphero__title .tk { align-self: center; margin-left: 4px; }
.appmark { display: grid; place-items: center; flex: none; width: 64px; height: 64px; background: var(--paper); border-radius: 16px; }
.appmark img { width: 36px; height: 36px; }
.apphero__lead { max-width: 56ch; margin: 0; color: var(--muted-d); font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.apphero .pbtn { margin-top: 8px; }
/* the two sections share one card: a titled pane, white on the light band */
.panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pane { padding: 28px; background: #fff; border: 1px solid var(--line); }
.pane h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font: 500 20px/1.2 var(--display); letter-spacing: -0.02em; }
.pane h3 span { color: var(--muted); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.pane ul { list-style: none; margin: 0; padding: 0; }
.ops__rest li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 9px 0; }
.ops__rest li + li { border-top: 1px dashed rgb(30 26 22 / .12); }
.pane code { color: var(--o1); font: 400 13px/1.45 var(--mono); }
.ops__rest span { color: var(--muted); font-size: 14px; text-align: right; }
.ops__mcp { display: flex; flex-wrap: wrap; gap: 8px; }
.ops__mcp li { padding: 6px 10px; background: var(--sand); }
.ops__mcp code { color: var(--ink); font-size: 12px; }
.addr { display: grid; gap: 14px; margin: 0; }
.addr div { display: grid; gap: 6px; }
.addr dt { color: var(--muted); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.addr dd { margin: 0; padding: 12px 14px; background: var(--sand); }
.addr code { color: var(--ink); overflow-wrap: anywhere; }
.addr .is-test dt { color: var(--o1); }
.addr .is-test dd { background: var(--o-tint); box-shadow: inset 3px 0 0 var(--o3); }
.addr .is-test code { color: var(--o1); }
/* every tile on /integrations opens its details page; the whole tile is the link */
.itile:has(.itile__a):hover { border-color: rgb(196 84 10 / .4); }
.itile__a { color: inherit; text-decoration: none; }
.itile__a::after { content: ""; position: absolute; inset: 0; }
.itile__a:focus-visible { outline: none; }
.itile:has(.itile__a:focus-visible) { outline: 2px solid var(--o1); outline-offset: 2px; }

@media (max-width: 1023px) {
  .panes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ops__rest li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .apphero { padding: 112px 0 56px; }
  .appmark { width: 52px; height: 52px; border-radius: 13px; }
  .appmark img { width: 28px; height: 28px; }
  .apphero__title { flex-wrap: wrap; gap: 14px; }
  .pane { padding: 20px; }
  .ops__rest span { text-align: left; }
}

