/* =============================================================================
   EXPLORE — the discovery layer.

   Adds only what the existing nine stylesheets do not already provide. Every
   colour resolves through a token; there are no hex literals here. No new
   entrance motion: everything uses the site-wide [data-reveal] system.
   ========================================================================== */

/* ---------------------------------------------------------- breadcrumb --- */
.xb { border-bottom: 1px solid var(--line); background: var(--base); }
.xb-list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding-block: 14px;
  font-size: 12px; color: var(--ink-muted);
}
.xb-list a { color: var(--ink-muted); }
.xb-list a:hover { color: var(--ink); }
.xb-list li[aria-current] { color: var(--ink); }
.xb-sep { color: var(--line); }

/* -------------------------------------------------------- shared heads --- */
.x-head { max-width: 720px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.x-head .label { margin-bottom: 16px; }
.x-head .h-lg { max-width: 18ch; }
.x-lede { margin-top: 20px; max-width: 42ch; color: var(--ink-body); }

.x-split {
  display: grid; gap: 48px;
  grid-template-columns: minmax(0, 1fr);
}
.x-split-a .h-lg { max-width: 15ch; }
.x-split-a .label { margin-bottom: 16px; }
.x-split-b > .body-copy + .body-copy { margin-top: 18px; }
@media (min-width: 900px) {
  .x-split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; }
}

/* --------------------------------------------------------------- hero --- */
.x-hero-grid { display: grid; gap: 56px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .x-hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
}
.x-hero-copy .label { margin-bottom: 18px; }
.x-hero-h1 { max-width: 16ch; }
.x-hero-lede { margin-top: 24px; max-width: 42ch; color: var(--ink-body); }
.x-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.x-hero-note { margin-top: 20px; color: var(--ink-muted); }
.x-panel-body { padding: 0 !important; }
.x-panel-note { margin-top: 14px; color: var(--ink-muted); }
.x-rows-head { padding: 20px 18px 0; }

.x-rows { border-top: 1px solid var(--line); margin-top: 14px; }
.x-rows .row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-hair);
}
.x-rows .row:last-child { border-bottom: 0; }
.row-state {
  width: 6px; height: 6px; border-radius: var(--r-pill);
  background: var(--line); margin-top: 7px; flex: none;
  transition: background-color 240ms cubic-bezier(.22,.61,.36,1);
}
.row-state.is-active { background: var(--accent); }
.x-row-text { display: block; }
.x-row-name { display: block; font-size: 13.5px; color: var(--ink); }
.x-row-meta { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-muted); }

/* ---------------------------------------------------------- vocabulary --- */
.x-terms { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.x-terms .label { margin-bottom: 14px; }
.x-term-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--line-hair);
}
.x-term-list li:last-child { border-bottom: 0; }
.x-term { font-size: 14px; color: var(--ink); }
.x-term-map {
  margin-left: auto; font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text);
}

/* ------------------------------------------------------------ problems --- */
.x-prob-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .x-prob-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .x-prob-grid { grid-template-columns: repeat(3, 1fr); } }
.x-prob { background: var(--surface); padding: clamp(22px, 2.4vw, 30px); }
.x-prob-title { font-size: 16px; font-weight: 400; color: var(--ink); letter-spacing: -0.01em; }
.x-prob-body { margin-top: 12px; font-size: 14px; color: var(--ink-body); max-width: 40ch; }
.x-prob-fix {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-hair);
  font-size: 13.5px; color: var(--ink-body); max-width: 40ch;
}
.x-prob-fix .label, .x-mod-why .label, .x-mod-eg .label {
  display: block; margin-bottom: 6px; color: var(--accent-text);
}

/* ------------------------------------------------------------- modules --- */
.x-mod-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .x-mod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1150px) { .x-mod-grid { grid-template-columns: repeat(3, 1fr); } }
.x-mod { background: var(--surface); padding: clamp(24px, 2.6vw, 32px); }
.x-mod-kicker { color: var(--accent-text); }
.x-mod-title { margin-top: 12px; max-width: 22ch; }
.x-mod-body { margin-top: 14px; font-size: 14px; color: var(--ink-body); max-width: 40ch; }
.x-mod-why, .x-mod-eg {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-hair);
  font-size: 13px; color: var(--ink-body); max-width: 40ch;
}

/* ----------------------------------------------------------- workflows --- */
.x-flow-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 800px) { .x-flow-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1250px) { .x-flow-grid { grid-template-columns: repeat(3, 1fr); } }
.x-flow { background: var(--surface); padding: clamp(24px, 2.6vw, 32px); }
.x-flow-title { max-width: 20ch; }
.x-flow-steps { margin-top: 20px; }
.x-flow-step {
  display: flex; gap: 14px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--line-hair);
}
.x-flow-step:last-child { border-bottom: 0; }
.x-flow-num { color: var(--accent-text); flex: none; }
.x-flow-text { font-size: 13.5px; color: var(--ink-body); }
.x-flow-note {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-muted); max-width: 40ch;
}

/* ------------------------------------------------------------------ AI --- */
.x-ai-facts { margin-top: 32px; border-top: 1px solid var(--line); }
.x-ai-facts li {
  padding: 16px 0; border-bottom: 1px solid var(--line-hair);
  font-size: 13.5px; color: var(--ink-body); max-width: 42ch;
}
.x-ai-facts li:last-child { border-bottom: 0; }
.x-ai-facts .label { display: block; margin-bottom: 5px; color: var(--ink); }
.x-ask li {
  padding: 15px 0; border-bottom: 1px solid var(--line-hair);
  font-size: 14px; color: var(--ink);
}
.x-ask li:last-child { border-bottom: 0; }
.x-ask li::before { content: '“'; color: var(--accent-text); }
.x-ask li::after { content: '”'; color: var(--accent-text); }

/* --------------------------------------------------------- automations --- */
.x-auto-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .x-auto-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1150px) { .x-auto-grid { grid-template-columns: repeat(3, 1fr); } }
.x-auto { background: var(--surface); padding: clamp(24px, 2.6vw, 32px); }
.x-auto-kicker { color: var(--ink-muted); }
.x-auto-trigger { margin-top: 8px; font-size: 16px; font-weight: 300; letter-spacing: -0.01em; max-width: 24ch; }
.x-auto-steps { margin-top: 18px; border-top: 1px solid var(--line-hair); }
.x-auto-steps li {
  position: relative; padding: 10px 0 10px 18px;
  border-bottom: 1px solid var(--line-hair);
  font-size: 13px; color: var(--ink-body);
}
.x-auto-steps li:last-child { border-bottom: 0; }
.x-auto-steps li::before {
  content: ''; position: absolute; left: 0; top: 17px;
  width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--accent-a40);
}

/* -------------------------------------------------------- intelligence --- */
.x-int-grid { display: grid; gap: 40px 48px; }
@media (min-width: 700px) { .x-int-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .x-int-grid { grid-template-columns: repeat(3, 1fr); } }
.x-int-title { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.x-int-list li {
  padding: 9px 0; border-bottom: 1px solid var(--line-hair);
  font-size: 13.5px; color: var(--ink-body);
}
.x-int-list li:last-child { border-bottom: 0; }
.x-int-note { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-muted); }

/* ---------------------------------------------------------------- roles --- */
.x-role-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .x-role-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .x-role-grid { grid-template-columns: repeat(5, 1fr); } }
.x-role { background: var(--surface); padding: clamp(22px, 2.4vw, 28px); }
.x-role-name { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.x-role-q { margin-top: 14px; font-size: 16px; font-weight: 300; letter-spacing: -0.01em; color: var(--ink); }
.x-role-focus { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-hair); font-size: 13px; color: var(--ink-body); }

/* ------------------------------------------------------------ use cases --- */
.x-uc-grid { display: grid; gap: 32px 48px; }
@media (min-width: 700px) { .x-uc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .x-uc-grid { grid-template-columns: repeat(3, 1fr); } }
.x-uc { padding-top: 20px; border-top: 1px solid var(--line); }
.x-uc-body { margin-top: 12px; font-size: 13.5px; color: var(--ink-body); max-width: 40ch; }

/* ------------------------------------------------------------ migration --- */
.x-src { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.x-src-note { margin-top: 24px; color: var(--ink-muted); max-width: 46ch; }

/* ------------------------------------------------------------------ FAQ --- */
.x-faq { border-top: 1px solid var(--line); max-width: 900px; }
.x-faq-item { border-bottom: 1px solid var(--line); }
.x-faq-q {
  display: flex; align-items: flex-start; gap: 16px; justify-content: space-between;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 300; letter-spacing: -0.01em; color: var(--ink);
}
.x-faq-q::-webkit-details-marker { display: none; }
.x-faq-q::after {
  content: ''; flex: none; margin-top: 8px;
  width: 9px; height: 9px;
  border-right: 1px solid var(--ink-muted); border-bottom: 1px solid var(--ink-muted);
  transform: rotate(45deg);
  transition: transform 240ms cubic-bezier(.22,.61,.36,1);
}
.x-faq-item[open] .x-faq-q::after { transform: rotate(225deg); }
.x-faq-a { padding-bottom: 24px; font-size: 14px; color: var(--ink-body); max-width: 62ch; }

/* -------------------------------------------------------------- related --- */
.x-rel-h { margin-top: 14px; max-width: 20ch; }
.x-rel-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 32px; }
@media (min-width: 640px) { .x-rel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .x-rel-grid { grid-template-columns: repeat(3, 1fr); } }
.x-rel a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); padding: 20px clamp(18px, 2vw, 24px);
  transition: background-color 240ms cubic-bezier(.22,.61,.36,1);
}
.x-rel a:hover { background: var(--base-alt); }
.x-rel-name { font-size: 15px; color: var(--ink); }
.x-rel-ind { color: var(--ink-muted); }
.x-rel-up { margin-top: 28px; font-size: 13.5px; color: var(--ink-muted); }
.x-rel-up a { color: var(--accent-text); }
.x-rel-up a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ hub + index --- */
.x-hub-hero { padding-block: clamp(56px, 6vw, 84px) clamp(64px, 7vw, 96px); }
.x-hub-h1, .x-ind-h1 { max-width: 18ch; margin-top: 18px; }
.x-hub-lede, .x-ind-lede { margin-top: 24px; max-width: 46ch; color: var(--ink-body); }

.x-search { margin-top: 44px; max-width: 560px; }
.x-search .label { display: block; margin-bottom: 12px; }
.x-search-input {
  width: 100%; padding: 15px 18px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-control);
  transition: border-color 240ms cubic-bezier(.22,.61,.36,1);
}
.x-search-input::placeholder { color: var(--ink-muted); }
.x-search-input:focus { border-color: var(--accent); }
.x-search-note { margin-top: 12px; color: var(--ink-muted); }

.x-ind-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .x-ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1150px) { .x-ind-grid { grid-template-columns: repeat(3, 1fr); } }
.x-ind-card a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); padding: clamp(24px, 2.6vw, 32px);
  transition: background-color 240ms cubic-bezier(.22,.61,.36,1);
}
.x-ind-card a:hover { background: var(--base-alt); }
.x-ind-name { font-size: 18px; font-weight: 300; letter-spacing: -0.02em; color: var(--ink); }
.x-ind-line { margin-top: 12px; font-size: 13.5px; color: var(--ink-body); max-width: 34ch; }
.x-ind-count { margin-top: auto; padding-top: 20px; color: var(--ink-muted); }

.x-all-group { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }
.x-all-group:first-of-type { margin-top: 0; }
.x-all-head { margin-bottom: 16px; }
.x-all-head a { color: var(--accent-text); }
.x-all-head a:hover { text-decoration: underline; }
.x-all-list { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.x-all-item a, .x-all-item span {
  display: inline-block; padding: 7px 13px;
  font-size: 13px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: border-color 240ms cubic-bezier(.22,.61,.36,1), color 240ms cubic-bezier(.22,.61,.36,1);
}
.x-all-item a:hover { border-color: var(--accent); color: var(--accent-text); }
.x-all-item--soon span { color: var(--ink-muted); border-style: dashed; background: transparent; }

.x-pending { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.x-pending .label { margin-bottom: 12px; }
.x-pending-list { font-size: 13.5px; color: var(--ink-body); max-width: 70ch; }
.x-pending .caption { margin-top: 14px; color: var(--ink-muted); }
.x-pending .caption a { color: var(--accent-text); }

.x-biz-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .x-biz-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .x-biz-grid { grid-template-columns: repeat(3, 1fr); } }
.x-biz a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); padding: 22px clamp(18px, 2vw, 24px);
  transition: background-color 240ms cubic-bezier(.22,.61,.36,1);
}
.x-biz a:hover { background: var(--base-alt); }
.x-biz-name { font-size: 15px; }
.x-biz-go { color: var(--accent-text); }

.x-how-link { margin-top: 26px; font-size: 14px; }
.x-how-link a { color: var(--accent-text); }
.x-how-link a:hover { text-decoration: underline; }

/* Explore pages set long, sentence-length headlines. Scale them down from the
   marketing display sizes so they wrap in 3-4 even lines, not 5 ragged ones. */
.x-hero-h1 { font-size: clamp(32px, 3.9vw, 50px); line-height: 1.1; letter-spacing: -0.028em; }
main .h-lg { font-size: clamp(28px, 3vw, 40px); line-height: 1.14; letter-spacing: -0.022em; }
