/* ==========================================================================
   XpressGrow — inner pages (platform / merchandising / technology / custom)
   ========================================================================== */

/* ── Page header ────────────────────────────────────────────────────────── */
.phead {
  position: relative;
  padding-block: clamp(52px, 7vw, 84px) clamp(40px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.phead::after {
  content: "";
  position: absolute;
  top: -60%;
  left: 30%;
  width: 46rem;
  height: 34rem;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(var(--brand-rgb), 0.13), transparent 70%);
  pointer-events: none;
}
.phead-in { position: relative; z-index: 1; max-width: 78ch; }
.phead h1 { margin: 18px 0 20px; }
.phead .lede { max-width: 66ch; }

/* ── Section index (sticky rail) ────────────────────────────────────────── */
.pindex {
  position: sticky;
  top: 66px;
  z-index: 40;
  background: rgba(var(--bg-rgb), 0.9);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.pindex-in {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 9px;
}
.pindex-in::-webkit-scrollbar { display: none; }
.pindex a {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 7px 11px;
  border-radius: 7px;
  white-space: nowrap;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.pindex a:hover { color: var(--ink); background: var(--hover); }
.pindex a.active { color: var(--ink); background: var(--brand-soft); }

/* ── Family block ───────────────────────────────────────────────────────── */
.fam-sec { padding-block: clamp(60px, 8vw, 96px); scroll-margin-top: 116px; }
.fam-sec + .fam-sec { border-top: 1px solid var(--line); }

.fam-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 42px;
}
.fam-head h2 { margin: 14px 0 0; }
.fam-head .lede { margin-top: 0; }
.fam-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 3px 9px;
  color: var(--ink-3);
  margin-top: 16px;
}
.fam-status i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--money);
}
.fam-status--soon i { background: var(--warn); }

/* ── Capability list ────────────────────────────────────────────────────── */
.caps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cap {
  background: var(--surface);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.2s var(--ease);
}
.cap:hover { background: var(--surface-2); }
.cap-k {
  font-size: 0.96rem;
  font-weight: 550;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.cap-d { font-size: 0.85rem; color: var(--ink-2); line-height: 1.62; }
.cap-m {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-top: auto;
  padding-top: 10px;
}

/* ── Persona strip ──────────────────────────────────────────────────────── */
.personas {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}
.persona {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  background: var(--surface);
  border-top: 2px solid var(--brand-line);
}
.persona h4 { font-size: 0.95rem; margin-bottom: 6px; letter-spacing: -0.015em; }
.persona p { font-size: 0.8rem; color: var(--ink-2); line-height: 1.55; }

/* ── Detail note ────────────────────────────────────────────────────────── */
.note {
  border-left: 2px solid var(--brand);
  padding: 4px 0 4px 18px;
  margin-top: 32px;
  max-width: 74ch;
}
.note p { font-size: 0.92rem; color: var(--ink-2); line-height: 1.7; }
.note strong { color: var(--ink); font-weight: 550; }
.note--money { border-left-color: var(--money); }
.note--warn  { border-left-color: var(--warn); }

/* ── Spec table ─────────────────────────────────────────────────────────── */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
  margin-top: 28px;
}
.tbl caption {
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 12px;
}
.tbl th {
  text-align: left;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--line-2);
}
.tbl td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}
.tbl td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }

/* ── Flow diagram ───────────────────────────────────────────────────────── */
.flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 28px;
  background: var(--surface);
}
.flow-step {
  flex: 1;
  padding: 20px 18px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  min-width: 0;
}
.flow-step:last-child { border-right: 0; }
.flow-n {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--ink-4);
}
.flow-step h4 { font-size: 0.9rem; letter-spacing: -0.015em; }
.flow-step p { font-size: 0.78rem; color: var(--ink-3); line-height: 1.55; }

/* ── CTA ────────────────────────────────────────────────────────────────── */
.pcta { background: var(--bg-2); border-top: 1px solid var(--line); }
.pcta-in { padding-block: clamp(56px, 7vw, 84px); max-width: 640px; }
.pcta-in .lede { margin: 16px 0 26px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .personas { grid-template-columns: repeat(3, 1fr); }
  .flow { flex-direction: column; }
  .flow-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-step:last-child { border-bottom: 0; }
}
@media (max-width: 760px) {
  .fam-head { grid-template-columns: 1fr; gap: 18px; }
  .personas { grid-template-columns: 1fr 1fr; }
  .pindex { top: 66px; }
}
@media (max-width: 460px) {
  .personas { grid-template-columns: 1fr; }
}

/* Inline variant of .lnk — the base is a flex row for arrow links, which would
   break a link sitting mid-sentence. */
.lnk--inline {
  display: inline;
  border-bottom: 1px solid var(--brand-line);
}
