/* ============================================================
   Project Builder — discipline detail page (pb-discipline)
   ------------------------------------------------------------
   The marketing detail page a landing "Explore" button opens.
   Layout mirrors an agency landing reference: a split hero
   (dark image panel + pitch), a muted capability strip, a
   three-column "what it does" block, and a dark closing CTA
   band with an oversized ghost title.

   Scoped under `.pb-discipline` (itself inside `.pb-scope`, so
   the pb-* tokens resolve). One local accent — a warm coral —
   for the primary CTA; the discipline gradient (--pb-grad-a/b,
   set inline from the spec) tints the hero background and label.
   ============================================================ */

.pb-discipline {
  --pbd-coral:      #f2603f;
  --pbd-coral-dark: #e04a2a;
  --pbd-dark:       #0b1020;
  --pbd-dark-2:     #141a2e;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(0.5rem, 2vw, 1.5rem);
}

/* ── Hero ───────────────────────────────────────────────── */
.pbd-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: stretch;
  padding: clamp(0.5rem, 2vw, 1.5rem) 0 clamp(1.5rem, 4vw, 3rem);
}

.pbd-hero__visual {
  position: relative;
  margin: 0;
  min-height: 320px;
  border-radius: var(--pb-r-2xl);
  overflow: hidden;
  background:
    linear-gradient(150deg, var(--pb-grad-a, var(--pb-indigo-800)) 0%, var(--pbd-dark) 90%);
  box-shadow: var(--pb-shadow-lg);
}
.pbd-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  mix-blend-mode: luminosity;
}
.pbd-hero__label {
  position: absolute;
  left: clamp(1rem, 2vw, 1.75rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  max-width: 60%;
  font-family: var(--pb-font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  line-height: 1.05;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.pbd-hero__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  padding: clamp(0.5rem, 1.5vw, 1.25rem) 0;
}
.pbd-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pb-text-muted);
}
.pbd-hero__eyebrow i { color: var(--pb-grad-a, var(--pb-primary)); font-size: 1rem; }
.pbd-hero__title {
  margin: 0;
  font-family: var(--pb-font-display);
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  line-height: 1.08;
  font-weight: 600;
  color: var(--pb-text);
  letter-spacing: -0.01em;
}
.pbd-hero__lede {
  margin: 0;
  max-width: 44ch;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--pb-text-muted);
}
.pbd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.35rem;
}

/* Primary CTA — the coral pill from the reference. */
.pbd-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--pb-r-pill);
  background: var(--pbd-coral);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(242, 96, 63, 0.35);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.pbd-cta:hover {
  background: var(--pbd-coral-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(242, 96, 63, 0.42);
}
.pbd-cta i { transition: transform 0.15s ease; }
.pbd-cta:hover i { transform: translateX(3px); }
.pbd-cta--light {
  background: #fff;
  color: var(--pbd-dark);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.pbd-cta--light:hover { background: var(--pb-neutral-100); color: var(--pbd-dark); }
/* Secondary action beside the coral CTA — same pill, no fill, so it never
 * competes with "Get Started". */
.pbd-cta--outline {
  background: transparent;
  color: var(--pb-text);
  border: 1.5px solid var(--pb-border-strong);
  box-shadow: none;
}
.pbd-cta--outline:hover {
  background: transparent;
  color: var(--pbd-coral);
  border-color: var(--pbd-coral);
  box-shadow: none;
}

.pbd-scrolllink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--pb-text-muted);
  text-decoration: none;
}
.pbd-scrolllink i {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: var(--pb-r-pill);
  border: 1px solid var(--pb-border-strong);
  color: var(--pb-text);
}
.pbd-scrolllink:hover { color: var(--pb-text); }
.pbd-scrolllink:hover i { border-color: var(--pbd-coral); color: var(--pbd-coral); }

/* ── Capability strip ───────────────────────────────────── */
.pbd-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.5rem;
  padding: 1.1rem clamp(0.75rem, 2vw, 1.5rem);
  border-block: 1px solid var(--pb-border);
  color: var(--pb-text-subtle);
}
.pbd-strip__lead {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pb-text-muted);
}
.pbd-strip__item {
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.75;
}

/* ── Solutions ──────────────────────────────────────────── */
.pbd-solutions {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 3rem);
}
.pbd-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--pb-text-subtle);
}
.pbd-solutions__title {
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  max-width: 22ch;
  font-family: var(--pb-font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.12;
  font-weight: 600;
  color: var(--pb-text);
}
.pbd-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.pbd-col { display: flex; flex-direction: column; }
.pbd-col__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.9rem;
  border-radius: var(--pb-r-md);
  background: linear-gradient(150deg, var(--pb-grad-a, var(--pb-indigo-500)), var(--pb-grad-b, var(--pb-indigo-400)));
  color: #fff;
  font-size: 1.2rem;
  box-shadow: var(--pb-shadow-md);
}
.pbd-col__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pb-text);
}
.pbd-col__meta {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--pb-text-muted);
}
.pbd-col__list {
  margin: 0;
  padding: 0.9rem 0 0;
  list-style: none;
  border-top: 1px solid var(--pb-border);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.pbd-col__list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9rem;
  color: var(--pb-text);
}
.pbd-col__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 2px;
  background: var(--pb-grad-a, var(--pb-primary));
}

/* ── Closing CTA band ───────────────────────────────────── */
.pbd-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--pb-r-2xl);
  margin: clamp(1rem, 3vw, 2rem) 0;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  background: radial-gradient(120% 140% at 15% 0%, var(--pbd-dark-2), var(--pbd-dark) 70%);
  color: #fff;
}
.pbd-band__ghost {
  position: absolute;
  left: -0.04em;
  bottom: -0.24em;
  margin: 0;
  font-family: var(--pb-font-display);
  font-size: clamp(4rem, 16vw, 11rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
  pointer-events: none;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
}
.pbd-band__inner { position: relative; max-width: 46ch; }
.pbd-band__tag {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--pb-indigo-300);
}
.pbd-band__title {
  margin: 0 0 0.9rem;
  font-family: var(--pb-font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  line-height: 1.12;
  font-weight: 600;
}
.pbd-band__copy {
  margin: 0 0 1.6rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.pbd-back {
  margin: 0.5rem 0 1.5rem;
  padding-inline: clamp(0.25rem, 1vw, 0.75rem);
}
.pbd-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--pb-text-muted);
  text-decoration: none;
}
.pbd-back a:hover { color: var(--pb-text); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .pbd-hero { grid-template-columns: 1fr; }
  .pbd-hero__visual { min-height: 240px; }
  .pbd-cols { grid-template-columns: 1fr; gap: 1.75rem; }
  .pbd-col__list { padding-bottom: 0.25rem; }
}


/* ============================================================
   Setup wizard with the tailored workflow sidebar (pb-wizlayout)
   ------------------------------------------------------------
   Wraps the existing centred `.pb-wiz` card in a two-column grid:
   [ workflow sidebar ] [ wizard ]. When a project has no resolved
   vertical there is no workflow, so `--bare` collapses back to the
   original single, centred column.
   ============================================================ */
.pb-wizlayout {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(0.5rem, 2vw, 1.25rem);
}
/* Inside the layout the wizard fills its column rather than self-centring. */
.pb-wizlayout .pb-wiz { max-width: none; margin: 0; }
.pb-wizlayout--bare { display: block; }

/* The wizard hero's side-by-side photo + copy assumes the full-width wizard.
   With the workflow sidebar (and the platform nav) also on the row, the copy
   column collapses and the heading clips — most visibly on tablets. So while
   the sidebar is present the hero STACKS (photo above copy), giving the copy
   the full main-column width; side-by-side is restored only where there's
   genuinely room (very wide screens). */
.pb-wizlayout .pb-hero { grid-template-columns: 1fr; gap: 0; }
.pb-wizlayout .pb-hero__art { min-height: 12rem; }
.pb-wizlayout .pb-hero__figure { margin-inline: auto; }
.pb-wizlayout .pb-hero__copy { padding: 0 1.75rem 1.6rem; }
.pb-wizlayout .pb-hero__sub { max-width: none; }

@media (min-width: 1500px) {
  .pb-wizlayout .pb-hero { grid-template-columns: 19.5rem minmax(0, 1fr); gap: 1.5rem; }
  .pb-wizlayout .pb-hero__art { min-height: 16.5rem; }
  .pb-wizlayout .pb-hero__copy { padding: 1.6rem 1.75rem 1.6rem 0; }
}

/* Below a laptop width the platform nav + sidebar leave too little for two
   columns, so stack the whole layout: workflow on top, wizard full-width. */
@media (max-width: 1080px) {
  .pb-wizlayout { grid-template-columns: 1fr; }
  .pb-wizlayout .pb-dws__side { position: static; }
}


/* ============================================================
   Customized "Get Started" workspace (pb-dws)
   Left sidebar (tailored workflow) + main setup-style panel.
   ============================================================ */
.pb-dws {
  --pbd-coral:  #f2603f;
  --pbd-coral-dark: #e04a2a;
  display: grid;
  grid-template-columns: 20rem minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(0.5rem, 2vw, 1.25rem);
}

/* ── Left sidebar ───────────────────────────────────────── */
.pb-dws__side {
  position: sticky;
  top: 1rem;
  align-self: start;
  padding: 1.25rem;
  border-radius: var(--pb-r-xl);
  background: var(--pb-bg-elev);
  border: 1px solid var(--pb-border);
  box-shadow: var(--pb-shadow-md);
}
.pb-dws__side-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--pb-border);
}
.pb-dws__side-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: var(--pb-r-md);
  background: linear-gradient(150deg, var(--pb-grad-a, var(--pb-indigo-500)), var(--pb-grad-b, var(--pb-indigo-400)));
  color: #fff;
  font-size: 1.15rem;
  box-shadow: var(--pb-shadow-sm);
}
.pb-dws__side-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pb-text-subtle);
}
.pb-dws__side-title {
  margin: 0.1rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--pb-text);
}

/* The tailored workflow — a vertical stepper with a connecting spine. */
.pb-flow {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pb-flow__item {
  position: relative;
  display: flex;
  gap: 0.75rem;
  padding: 0.55rem 0;
}
/* Spine linking the markers. */
.pb-flow__item::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 2.25rem;
  bottom: -0.3rem;
  width: 2px;
  background: var(--pb-border-strong);
}
.pb-flow__item:last-child::before { display: none; }
.pb-flow__marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
  border-radius: var(--pb-r-pill);
  background: var(--pb-bg-sunken);
  border: 1px solid var(--pb-border-strong);
  color: var(--pb-text-muted);
  font-size: 0.85rem;
}
.pb-flow__body { display: flex; flex-direction: column; gap: 0.1rem; padding-top: 0.05rem; }
.pb-flow__label {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--pb-text);
}
.pb-flow__desc {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--pb-text-subtle);
}
/* You-are-here. */
.pb-flow__item.is-current .pb-flow__marker {
  background: linear-gradient(150deg, var(--pb-grad-a, var(--pb-indigo-500)), var(--pb-grad-b, var(--pb-indigo-400)));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pb-grad-a, var(--pb-indigo-500)) 18%, transparent);
}
.pb-flow__item.is-current .pb-flow__label { color: var(--pb-grad-a, var(--pb-primary)); }

.pb-dws__side-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--pb-border);
  width: 100%;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--pb-text-muted);
  text-decoration: none;
}
.pb-dws__side-back:hover { color: var(--pb-text); }

/* ── Main panel ─────────────────────────────────────────── */
.pb-dws__main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }

.pb-dws__hero {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: center;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: var(--pb-r-xl);
  background: var(--pb-bg-elev);
  border: 1px solid var(--pb-border);
  box-shadow: var(--pb-shadow-md);
}
.pb-dws__hero-photo {
  border-radius: var(--pb-r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--pb-grad-a, var(--pb-indigo-700)), var(--pb-grad-b, var(--pb-indigo-500)));
}
.pb-dws__hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.pb-dws__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pb-text-subtle);
}
.pb-dws__title {
  margin: 0 0 0.5rem;
  font-family: var(--pb-font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.12;
  font-weight: 600;
  color: var(--pb-text);
}
.pb-dws__lede {
  margin: 0 0 1.1rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--pb-text-muted);
}
.pb-dws__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.pb-dws__begin { margin: 0; }
.pb-dws__note { font-size: 0.82rem; color: var(--pb-text-subtle); }

.pb-dws__card {
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: var(--pb-r-xl);
  background: var(--pb-bg-elev);
  border: 1px solid var(--pb-border);
  box-shadow: var(--pb-shadow-sm);
}
.pb-dws__card-title { margin: 0 0 0.25rem; font-size: 1.05rem; font-weight: 700; color: var(--pb-text); }
.pb-dws__card-sub { margin: 0 0 1rem; font-size: 0.88rem; color: var(--pb-text-muted); }

.pb-dws__fields { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.pb-dws__field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.15rem 0.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--pb-border);
}
.pb-dws__field:last-child { border-bottom: none; padding-bottom: 0; }
.pb-dws__field > i { color: var(--pb-grad-a, var(--pb-primary)); font-size: 1.1rem; grid-row: 1 / span 2; }
.pb-dws__field-label { font-size: 0.92rem; font-weight: 600; color: var(--pb-text); }
.pb-dws__field-label em { font-style: normal; font-size: 0.7rem; font-weight: 700; color: var(--pbd-coral); text-transform: uppercase; letter-spacing: 0.04em; }
.pb-dws__field-help { grid-column: 2; font-size: 0.8rem; color: var(--pb-text-subtle); }

.pb-dws__sections { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pb-dws__sec {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--pb-r-pill);
  background: var(--pb-bg-sunken);
  border: 1px solid var(--pb-border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--pb-text);
}
.pb-dws__sec i { color: var(--pb-grad-a, var(--pb-primary)); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .pb-dws { grid-template-columns: 1fr; }
  .pb-dws__side { position: static; }
  .pb-dws__hero { grid-template-columns: 1fr; }
  .pb-dws__hero-photo { max-width: 16rem; }
}
