/* Flockwise price builder (Dec 2026). Brand: Pasture #1F6B5C, Deep Pasture #0F3F36, Ink #14211F, Mist #F4F7F6,
   Mint #8FD6C2, Saffron #F2A93B; Outfit for headings and numbers, Source Sans 3 for text. */
.pbx { position: relative; overflow: clip; padding: 88px 0 96px; background: linear-gradient(180deg, #F4F7F6 0%, #EAF3F0 100%); color: #14211F; isolation: isolate; }
.pbx-glow { position: absolute; inset: -20% -10% auto; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 60% at 12% 20%, rgba(143, 214, 194, 0.45), transparent 70%), radial-gradient(36% 50% at 88% 10%, rgba(242, 169, 59, 0.18), transparent 70%); }
.pbx .wrap { position: relative; }
.pbx-head { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.pbx-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid #cfe3dc; color: #1F6B5C; font: 700 12.5px/1 'Outfit', 'Outfit Fallback', system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.pbx-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #F2A93B; }
.pbx-head h2 { font-family: 'Outfit', 'Outfit Fallback', system-ui, sans-serif; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -0.02em; margin: 16px 0 12px; }
.pbx-head p { color: #4d5c58; font-size: 18px; margin: 0; }

.pbx-controls { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; margin: 0 0 22px; padding: 14px 16px; background: rgba(255, 255, 255, 0.8); border: 1px solid #dbe7e3; border-radius: 18px; backdrop-filter: blur(6px); }
.pbx-sizes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.pbx-label { font: 600 13px/1 'Outfit', 'Outfit Fallback', system-ui, sans-serif; color: #4d5c58; margin-right: 4px; }
.pbx-chip, .pbx-cycle button, .pbx-cur button { font: 600 14px/1 'Outfit', 'Outfit Fallback', system-ui, sans-serif; border: 1px solid #cfe0da; background: #fff; color: #14211F; padding: 10px 14px; border-radius: 999px; cursor: pointer; transition: background .18s, color .18s, border-color .18s, box-shadow .18s; }
.pbx-chip:hover, .pbx-cycle button:hover { border-color: #1F6B5C; }
.pbx-chip.on { background: #1F6B5C; border-color: #1F6B5C; color: #fff; box-shadow: 0 6px 16px -8px rgba(31, 107, 92, 0.8); }
.pbx-cycle { display: inline-flex; padding: 4px; background: #E3EEEA; border-radius: 999px; gap: 4px; }
.pbx-cycle button { border: 0; background: transparent; }
.pbx-cycle button.on { background: #14211F; color: #fff; }
.pbx-cycle em { font-style: normal; font-size: 11.5px; font-weight: 700; color: #F2A93B; margin-left: 4px; }
.pbx-chip:focus-visible, .pbx-cycle button:focus-visible, .pbx-cur button:focus-visible, .pbx-hit:focus-visible, .pbx-buy:focus-visible, .pbx-trial:focus-visible, .pbx-more:focus-visible, .pbx-copy:focus-visible { outline: 3px solid #F2A93B; outline-offset: 2px; }

.pbx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.pbx-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pbx-card { position: relative; min-width: 0; background: #fff; border: 1px solid #dde8e4; border-radius: 18px; padding: 18px 18px 16px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.pbx-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(20, 33, 31, 0.45); }
.pbx-card.on { border-color: var(--mc); box-shadow: 0 0 0 2px var(--mc), 0 18px 36px -24px var(--mc); }
.pbx-card.on::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, color-mix(in srgb, var(--mc) 9%, transparent), transparent 55%); pointer-events: none; }
.pbx-core { grid-column: 1 / -1; background: linear-gradient(135deg, #fff 0%, #F1F8F5 100%); }
.pbx-hit { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; background: transparent; border-radius: inherit; cursor: pointer; }
.pbx-cover { display: block; width: calc(100% + 36px); max-width: none; height: auto; aspect-ratio: 16 / 6; object-fit: cover; object-position: 70% 45%; margin: -18px -18px 14px; border-radius: 17px 17px 0 0; background: color-mix(in srgb, var(--mc) 14%, #f4f7f6); }
.pbx-top { display: flex; align-items: center; gap: 14px; }
.pbx-icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: block; box-shadow: 0 6px 14px -8px var(--mc); }
.pbx-name { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: baseline; }
.pbx-name h4 { margin: 0; font: 600 17px/1.25 'Outfit', 'Outfit Fallback', system-ui, sans-serif; grid-row: 1 / 3; align-self: center; overflow-wrap: anywhere; }
.pbx-p { font: 700 20px/1.1 'Outfit', 'Outfit Fallback', system-ui, sans-serif; text-align: right; white-space: nowrap; }
.pbx-per { font-size: 12px; color: #6b7a76; text-align: right; white-space: nowrap; }
.pbx-tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cbd9d4; flex-shrink: 0; position: relative; transition: background .2s, border-color .2s; }
.pbx-card.on .pbx-tick { background: var(--mc); border-color: var(--mc); }
.pbx-card.on .pbx-tick::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.pbx-always { font: 700 11px/1 'Outfit', 'Outfit Fallback', system-ui, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: #1F6B5C; background: #DDF1EA; padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.pbx-desc { margin: 10px 0 0; color: #55645f; font-size: 14.5px; line-height: 1.45; }
.pbx-band { position: relative; z-index: 2; display: grid; gap: 6px; margin-top: 12px; font-size: 13px; color: #55645f; }
.pbx-band select { font: 600 14px 'Source Sans 3', 'Source Sans Fallback', system-ui, sans-serif; padding: 9px 10px; border-radius: 10px; border: 1px solid #d6e3df; background: #fff; color: #14211F; }
.pbx-social { grid-column: 1 / -1; }

.pbx-sum { position: sticky; top: 88px; color: #F4F7F6; border-radius: 24px; padding: 22px; background: radial-gradient(120% 60% at 100% 0%, rgba(242, 169, 59, 0.18), transparent 60%), linear-gradient(160deg, #0F3F36 0%, #14211F 75%); box-shadow: 0 30px 60px -30px rgba(15, 63, 54, 0.8); }
.pbx-sum-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.pbx-sum-head b { font: 600 18px 'Outfit', 'Outfit Fallback', system-ui, sans-serif; }
.pbx-cur { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.pbx-cur button { border: 0; background: transparent; color: #cfe3dc; padding: 7px 10px; font-size: 12.5px; }
.pbx-cur button.on { background: #F4F7F6; color: #14211F; }
.pbx-more { display: none; }
.pbx-lines { list-style: none; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); display: grid; gap: 9px; max-height: 330px; overflow: auto; }
.pbx-lines li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14.5px; animation: pbxIn .25s ease; }
.pbx-lines i { width: 10px; height: 10px; border-radius: 3px; background: var(--mc); }
.pbx-lines span { overflow-wrap: anywhere; color: #dcebe6; }
.pbx-lines b { font: 600 14.5px 'Outfit', 'Outfit Fallback', system-ui, sans-serif; white-space: nowrap; }
@keyframes pbxIn { from { opacity: 0; transform: translateX(-6px); } }
.pbx-rows { display: grid; gap: 6px; font-size: 14px; color: #b9cfc8; }
.pbx-row { display: flex; justify-content: space-between; gap: 10px; }
.pbx-row b { font-family: 'Outfit', 'Outfit Fallback', system-ui, sans-serif; color: #F4F7F6; font-weight: 600; }
.pbx-total { display: grid; grid-template-columns: 1fr auto; align-items: end; margin: 14px 0 6px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.pbx-total span { font: 600 15px 'Outfit', 'Outfit Fallback', system-ui, sans-serif; color: #b9cfc8; }
.pbx-total strong { font: 700 40px/1 'Outfit', 'Outfit Fallback', system-ui, sans-serif; letter-spacing: -0.02em; color: #fff; text-align: right; font-variant-numeric: tabular-nums; min-width: 6ch; }
.pbx-total small { grid-column: 2; text-align: right; color: #b9cfc8; font-size: 13px; margin-top: 4px; }
.pbx-note { margin: 10px 0 0; font-size: 13.5px; line-height: 1.4; padding: 10px 12px; border-radius: 12px; }
.pbx-save { background: rgba(143, 214, 194, 0.14); color: #bdeedd; }
.pbx-found { background: rgba(242, 169, 59, 0.16); color: #ffd796; }
.pbx-err { background: rgba(255, 255, 255, 0.08); color: #ffd796; }
.pbx-note[hidden] { display: none; }
.pbx-buy, .pbx-trial { display: flex; justify-content: center; align-items: center; min-height: 50px; margin-top: 14px; border-radius: 14px; font: 700 16px 'Outfit', 'Outfit Fallback', system-ui, sans-serif; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.pbx-buy { background: #F2A93B; color: #14211F; box-shadow: 0 12px 24px -12px rgba(242, 169, 59, 0.9); }
.pbx-buy:hover { transform: translateY(-1px); background: #f5b752; }
.pbx-trial { margin-top: 10px; color: #F4F7F6; border: 1px solid rgba(255, 255, 255, 0.22); }
.pbx-trial:hover { background: rgba(255, 255, 255, 0.06); }
.pbx-buy[aria-disabled='true'], .pbx-trial[aria-disabled='true'] { opacity: 0.45; cursor: not-allowed; transform: none; }
.pbx-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 14px; font-size: 12.5px; color: #9fb8b0; }
.pbx-copy { border: 0; background: none; color: #8FD6C2; font: 600 12.5px 'Source Sans 3', 'Source Sans Fallback', system-ui, sans-serif; cursor: pointer; padding: 0; text-decoration: underline; }

@media (max-width: 1080px) { .pbx-grid { grid-template-columns: minmax(0, 1fr) 330px; } .pbx-cards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .pbx { padding: 60px 0 0; }
  .pbx-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pbx-controls { flex-direction: column; align-items: stretch; }
  .pbx-sizes { gap: 6px; } .pbx-label { width: 100%; }
  .pbx-cycle { align-self: flex-start; }
  /* Phone: the summary is a bottom sheet that stays in view while the cards scroll under it. */
  .pbx-sum { position: sticky; top: auto; bottom: 0; margin: 0 -16px; border-radius: 22px 22px 0 0; padding: 14px 16px 16px; z-index: 5; box-shadow: 0 -18px 40px -22px rgba(15, 63, 54, 0.9); }
  .pbx-sum-head { margin-bottom: 6px; }
  .pbx-more { display: block; width: 100%; text-align: left; border: 0; background: none; color: #8FD6C2; font: 600 13.5px 'Source Sans 3', 'Source Sans Fallback', system-ui, sans-serif; padding: 2px 0 8px; cursor: pointer; }
  .pbx-more::after { content: ' ▴'; }
  .pbx-lines, .pbx-rows, .pbx-foot, .pbx-note { display: none; }
  .pbx-open .pbx-lines, .pbx-open .pbx-rows, .pbx-open .pbx-foot { display: grid; }
  .pbx-open .pbx-note:not([hidden]) { display: block; }
  .pbx-open .pbx-more::after { content: ' ▾'; }
  .pbx-total { margin: 0; padding-top: 0; border-top: 0; }
  .pbx-total strong { font-size: 30px; }
  .pbx-buy, .pbx-trial { min-height: 46px; margin-top: 10px; }
  .pbx-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .pbx-card, .pbx-lines li, .pbx-buy { transition: none; animation: none; } }
@media (max-width: 860px) { .pbx-sum .pbx-err:not([hidden]) { display: block; } }
/* Phone: a flex column lets the summary stick to the bottom while the cards scroll; the site's own bottom bar
   steps aside while the builder is on screen. */
@media (max-width: 860px) {
  .pbx-grid { display: flex; flex-direction: column; }
  body.pbx-in-view .sticky-cta { transform: translateY(110%) !important; }
}
@media (max-width: 860px) {
  .pbx-sum .pbx-trial { display: none; }
  .pbx-open .pbx-trial { display: flex; }
  .pbx-sum-head b { font-size: 15px; }
  .pbx-cards { scroll-margin-bottom: 220px; }
}
/* Church Core: the "always included" pill sits on the card's top edge so the name keeps its room. */
.pbx-core .pbx-always { position: absolute; top: -11px; right: 16px; box-shadow: 0 0 0 3px #F4F7F6; }
@media (max-width: 860px) {
  .pbx-grid { align-items: stretch; }
  .pbx-sum { width: auto; align-self: stretch; }
  .pbx-total { grid-template-columns: auto 1fr; column-gap: 12px; }
  .pbx-total strong { font-size: 28px; }
}
