/* ==================================================================
   Pricing sections of the Campaign Content Sprint page (#sprints) and the
   Production Partnership page (#capacity). Bob, 11 Nov 2026.

   Scoped: every selector starts pb-, and the file is linked from inside those two
   sections, so nothing else on either page can change. sprint.css is not edited.

   One idea: a package is a block of production hours. The hours meter (20 blocks,
   two hours each, scaled to the biggest package) is the one visual on each card.
   Two prices per package, once-off and annual, side by side in plain type.
   ================================================================== */

.pb-cards, .pb-shared { --pb-accent: #FD4700; }
.pb-cards {
  margin-top: clamp(2rem, 4vw, 3.2rem);
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 1.8vw, 1.5rem); align-items: stretch;
}
.pb-card {
  position: relative; display: flex; flex-direction: column; gap: 1.1rem; min-width: 0;
  background: #FCFCFA; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 30px); text-align: left;
}
/* the recommended card: ink ground, the same recipe as .surface--dark */
.pb-card--feature {
  --ink: #F4F4EF; --paper: #0C0C0B;
  --dim: rgba(244, 244, 239, 0.68); --dim-ink: rgba(244, 244, 239, 0.68);
  --line: rgba(244, 244, 239, 0.2); --line-ink: rgba(244, 244, 239, 0.2);
  --accent-label: #FD4700;
  background: #0C0C0B; color: #F4F4EF; border-color: #0C0C0B;
}
.pb-flag {
  position: absolute; top: 0; right: 20px; transform: translateY(-50%);
  background: var(--pb-accent); padding: 0.28rem 0.6rem; border-radius: var(--radius);
}
.theme-light .pb-flag.mono, .pb-flag.mono { color: #080807; }

.pb-name {
  font-family: var(--font-disp); font-weight: 400; font-synthesis-weight: none;
  text-transform: uppercase; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1; letter-spacing: -0.01em;
}
.pb-name--text { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.05; }
.pb-box { display: inline-block; border: 1px solid currentColor; padding: 0.02em 0.3em; margin-left: 0.1em; border-radius: var(--radius); }
.pb-kind { margin-top: 0.55rem; }
.pb-fit { margin-top: 0.7rem; color: var(--dim); font-size: 0.98rem; line-height: 1.5; }

.pb-capacity { padding-top: 1rem; border-top: 1px solid var(--line); }
.pb-meter { display: flex; gap: 3px; height: 14px; }
.pb-meter:empty { background: var(--line); opacity: 0.5; }
.pb-meter i { flex: 1; display: block; background: var(--line); }
.pb-meter i.is-on { background: var(--pb-accent); }
.pb-meter--open { background: repeating-linear-gradient(90deg, var(--ink) 0 10px, transparent 10px 13px); opacity: 0.35; }
.pb-hours { margin-top: 0.6rem; font-weight: 500; font-size: 0.95rem; }
.pb-block .pb-capacity { padding-top: 0; border-top: 0; margin-bottom: 1.1rem; }

.pb-block .mono { display: block; margin-bottom: 0.4rem; }
.pb-block ul { list-style: none; margin: 0; padding: 0; }
.pb-block li, .pb-shared li {
  position: relative; padding: 0.28rem 0 0.28rem 1.1rem; font-size: 0.95rem; line-height: 1.45; border: 0;
}
.pb-block li::before, .pb-shared li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 6px; height: 6px; background: var(--pb-accent); }
.pb-block + .pb-block { padding-top: 0.9rem; border-top: 1px solid var(--line); }

.pb-outcome { font-size: 0.95rem; line-height: 1.5; color: var(--dim); }
.pb-outcome .mono, .pb-model .mono { display: block; margin-bottom: 0.2rem; }
.pb-model { padding-top: 0.9rem; border-top: 1px solid var(--line); line-height: 1.4; }
.pb-model b { font-weight: 500; letter-spacing: -0.01em; }

/* the two prices */
.pb-prices { margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.pb-price { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.pb-amount {
  font-family: var(--font-disp); font-weight: 400; font-synthesis-weight: none;
  font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -0.01em; min-height: 1.05em;
}
.pb-price small { font-size: 0.88rem; line-height: 1.45; color: var(--dim); }
.pb-skel { display: inline-block; width: 6.5ch; height: 0.8em; background: var(--line); border-radius: var(--radius); animation: pb-pulse 1.4s ease-in-out infinite; }
@keyframes pb-pulse { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .pb-skel { animation: none; } }
.pb-cta { justify-content: space-between; }

/* the shared partnership list on the partnership page */
.pb-shared { margin-top: clamp(1.6rem, 3vw, 2.4rem); padding-top: 1.1rem; border-top: 1px solid var(--line); text-align: left; }
.pb-shared ul { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.1rem 2rem; }
@media (min-width: 760px) { .pb-shared ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pb-shared ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (min-width: 700px) {
  .pb-cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pb-cards--three > .pb-card:nth-child(3) { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .pb-cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pb-cards--three > .pb-card:nth-child(3) { grid-column: auto; }
}

/* the embedded department: one wide row under the three */
.pb-card--wide { grid-column: 1 / -1 !important; }
.pb-cols { column-count: 1; }
@media (min-width: 960px) {
  .pb-card--wide {
    display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 4fr);
    grid-template-areas: "head block prices" "model block prices"; column-gap: clamp(1.5rem, 3vw, 3rem); row-gap: 1.1rem; align-items: start;
  }
  .pb-card--wide .pb-head { grid-area: head; }
  .pb-card--wide .pb-block { grid-area: block; }
  .pb-card--wide .pb-prices { grid-area: prices; margin-top: 0; padding-top: 0; border-top: 0; }
  .pb-card--wide .pb-model { grid-area: model; align-self: end; }
  .pb-card--wide .pb-cols { column-count: 2; column-gap: 1.6rem; }
  .pb-card--wide .pb-cols li { break-inside: avoid; }
}
@media (min-width: 700px) and (max-width: 959px) { .pb-card--wide .pb-cols { column-count: 2; column-gap: 1.6rem; } }
.pb-head .pb-outcome { margin-top: 0.9rem; }
