/* Agent B: #capabilities, #method, #engagements. Warm liquid glass (BRIEF revision 2).
   Uses the shared .glass / .glass-inset / .btn materials from base.css. No ::before/::after on glass elements.
   Everything reads without JS; b-work.js adds .b-js on each section to enable enhanced states. */

.b-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.b-nw { white-space: nowrap; }

.b-cap > .wrap, .b-method > .wrap, .b-eng > .wrap { position: relative; z-index: 1; }
.b-head { margin-block-end: clamp(36px, 5vw, 64px); }
.b-head .h-section { max-width: 20ch; }

/* Hebrew labels: Plex Sans Hebrew; mono only for indices and Latin tokens */
.b-label, .b-tags li:not(.ltr), .b-flow__k, .b-stack__k, .b-phase__meta dt, .b-lane__label, .b-tier__flag,
.b-cap__panel-head span:first-child, .b-spec__corner .mono, .b-eng tfoot th .mono {
  font-family: var(--font-sans); letter-spacing: .02em;
}

.b-pad { padding: clamp(20px, 3vw, 40px); }

/* =========================================================
   01  CAPABILITIES: one glass board of inset tiles + glass example panel
   ========================================================= */
.b-cap__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.b-cap__board { border-radius: var(--radius-glass); padding: clamp(12px, 1.6vw, 20px); }
.b-cap__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; z-index: 2; }

.b-cap__row {
  --idx-w: 3.5rem;
  padding: 4px clamp(14px, 1.6vw, 22px) 18px;
  transition: transform .45s var(--spring), background .3s var(--ease), box-shadow .3s var(--ease);
}
.b-cap__row:hover { transform: translateY(-1px); background: var(--glass-fill-strong); }
.b-cap__row.is-active { background: var(--glass-fill-strong); box-shadow: inset 0 1px 0 var(--line-strong), inset 0 0 0 1px var(--signal-dim); }
.b-cap__h { margin: 0; font: inherit; }
.b-cap__btn {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: grid; grid-template-columns: var(--idx-w) minmax(0, 1fr) 28px; align-items: center;
  width: 100%; padding-block: 16px 6px; text-align: start; border-radius: var(--radius);
}
.b-cap__btn:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.b-cap__idx { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: .06em; color: var(--paper-3); transition: color .25s var(--ease); }
.b-cap__title { font-size: var(--t-lg); font-weight: 500; line-height: 1.3; color: var(--paper); }
.b-cap__btn[aria-expanded="true"] .b-cap__idx { color: var(--signal); }

/* plus/minus inside a small round chip (child elements, not pseudo) */
.b-cap__chev { display: none; position: relative; width: 28px; height: 28px; border-radius: var(--radius-pill); background: var(--glass-fill-inset); box-shadow: inset 0 1px 0 var(--line-strong); justify-self: end; }
.b-cap__chev::before, .b-cap__chev::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 1.5px; margin: -0.75px 0 0 -5px; border-radius: 2px; background: var(--paper-2); transition: transform .35s var(--spring); }
.b-cap__chev::after { transform: rotate(90deg); }
.b-cap__btn[aria-expanded="true"] .b-cap__chev::after { transform: rotate(0deg); }

.b-cap__desc { margin: 0; padding-inline-start: var(--idx-w); color: var(--paper-2); font-size: var(--t-md); max-width: 60ch; }

.b-tags { list-style: none; margin: 12px 0 0; padding: 0; padding-inline-start: var(--idx-w); display: flex; flex-wrap: wrap; gap: 6px; }
.b-tags li { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--paper-2); background: var(--glass-fill-inset); box-shadow: inset 0 1px 0 var(--line), inset 0 0 0 1px var(--line); border-radius: var(--radius-pill); padding: 2px 11px; line-height: 1.7; }

/* inline example (no-JS, and mobile accordion): a section of the same tile, divided by a hairline */
.b-cap__ex { margin-block-start: 18px; margin-inline-start: var(--idx-w); padding-block-start: 18px; border-top: 1px solid var(--line); }
.b-cap__ex[hidden] { display: none; }

/* the flow: input -> agent -> output -> limit, joined by a soft rail */
.b-flow { list-style: none; margin: 0; padding: 0; padding-inline-start: 24px; position: relative; display: grid; gap: 14px; }
.b-flow::before { content: ""; position: absolute; inset-inline-start: 4px; top: .8em; bottom: 1.6em; width: 2px; border-radius: 2px; background: var(--line-strong); transform-origin: top; }
.b-flow li { position: relative; display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: 12px; align-items: baseline; }
.b-flow li::before { content: ""; position: absolute; inset-inline-start: -24px; top: .5em; width: 10px; height: 10px; border-radius: var(--radius-pill); background: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--paper-3); }
.b-flow li:nth-child(3)::before { background: var(--paper); box-shadow: none; }
.b-flow li:last-child { padding-block-start: 12px; border-top: 1px dashed var(--line-strong); }
.b-flow li:last-child::before { top: calc(12px + .5em); background: var(--signal); box-shadow: 0 0 0 4px var(--signal-dim); }
.b-flow__k { font-size: var(--t-xs); color: var(--paper-3); }
.b-flow li:last-child .b-flow__k { color: var(--signal); }
.b-flow__v { font-size: 0.9375rem; color: var(--paper-2); line-height: 1.55; }
.b-flow li:nth-child(3) .b-flow__v { color: var(--paper); }

.b-cap.b-js .b-cap__chev { display: block; }

/* stack line, at the foot of the board */
.b-stack { position: relative; z-index: 2; margin: 18px 0 4px; padding-inline: clamp(14px, 1.6vw, 22px); display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; }
.b-stack__k { font-size: var(--t-xs); color: var(--paper-3); }
.b-stack__v { font-family: var(--font-mono); font-size: var(--t-sm); color: var(--paper-2); word-spacing: .12em; line-height: 1.9; }

/* side panel (desktop + JS) */
.b-cap__panel[hidden] { display: none; }
.b-cap__panel { position: sticky; top: 104px; }
.b-cap__panel-in { border-radius: var(--radius-glass); padding: clamp(24px, 2.6vw, 36px); }
.b-cap__panel-in > * { position: relative; z-index: 2; }
.b-cap__panel-head { display: flex; justify-content: space-between; align-items: center; margin: 0; font-size: var(--t-xs); color: var(--paper-3); }
.b-cap__panel-idx { font-family: var(--font-mono); color: var(--paper); background: var(--signal-dim); border-radius: var(--radius-pill); padding: 1px 10px; }
.b-cap__panel-title { margin: 18px 0 24px; font-size: var(--t-xl); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.b-cap__panel-body { padding: 22px; border-radius: var(--radius); background: var(--glass-fill-inset); box-shadow: inset 0 1px 0 var(--line-strong); }
.b-cap__panel-body .b-flow { gap: 18px; }
.b-cap__panel-body .b-flow__v { font-size: var(--t-md); }
.b-cap__panel-body .b-flow li { grid-template-columns: 4.75rem minmax(0, 1fr); }
.b-cap__panel-body.is-swap .b-flow li { animation: b-step .5s var(--ease) both; animation-delay: calc(var(--k, 0) * 90ms); }
.b-cap__panel-body.is-swap .b-flow::before { animation: b-grow-y .6s var(--ease) both; }
@keyframes b-step { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (min-width: 1024px) {
  .b-cap.b-wide .b-cap__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .b-cap.b-wide .b-cap__ex, .b-cap.b-wide .b-cap__chev { display: none; }
  .b-cap.b-wide .b-cap__row:not(.is-active) .b-cap__title { color: var(--paper-2); }
  .b-cap.b-wide .b-cap__row:not(.is-active):hover .b-cap__title { color: var(--paper); }
}
@media (max-width: 559px) {
  .b-cap__row { --idx-w: 2.25rem; }
  .b-cap__ex { margin-inline-start: 0; }
  .b-flow li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* =========================================================
   02  METHOD: glass dashboard panel (chart tile + phase tiles)
   ========================================================= */
.b-plan { border-radius: var(--radius-glass); padding: clamp(16px, 2.4vw, 32px); }
.b-plan > * { position: relative; z-index: 2; }
.b-plan__chart { display: none; }

.b-plan__phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.b-phase { padding: clamp(18px, 2vw, 26px); transition: transform .45s var(--spring), background .3s var(--ease); }
.b-phase:hover { transform: translateY(-2px); background: var(--glass-fill-strong); }
.b-phase > * { position: relative; z-index: 2; }
.b-phase__idx { margin: 0; font-size: var(--t-xs); color: var(--paper-3); letter-spacing: .06em; display: flex; align-items: center; gap: 10px; }
.b-phase__dot { width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--paper-3); }
.b-phase:last-child .b-phase__dot { background: var(--signal); }
.b-phase__title { margin: 10px 0 0; font-size: var(--t-xl); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.b-phase__what { margin: 12px 0 0; color: var(--paper-2); font-size: var(--t-md); max-width: 46ch; }
.b-phase__meta { margin: 18px 0 0; display: grid; gap: 0; }
.b-phase__meta > div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 12px; padding-block: 9px; border-top: 1px solid var(--line); align-items: baseline; }
.b-phase__meta dt { font-size: var(--t-xs); color: var(--paper-3); }
.b-phase__meta dd { margin: 0; font-size: 0.9375rem; color: var(--paper-2); }
.b-phase__out dd { color: var(--paper); font-weight: 500; }

/* mobile: soft accent progress rail running down the inline-start edge of the phase stack */
.b-plan__rail { display: block; position: absolute; inset-inline-start: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--line); }
.b-plan__rail > span { position: absolute; inset: 0; border-radius: inherit; background: var(--signal); transform-origin: top; }
.b-plan__stack { position: relative; padding-inline-start: 16px; }

@media (min-width: 900px) {
  .b-plan__chart { display: block; padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.4vw, 30px) 24px; margin-block-end: 14px; }
  .b-plan__chart > * { position: relative; z-index: 2; }
  .b-plan__phases { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .b-phase__meta > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .b-plan__stack { padding-inline-start: 0; }
  .b-plan__rail { display: none; }

  .b-plan__axis { position: relative; height: 6px; border-radius: var(--radius-pill); background: var(--line); margin-block-end: 26px; }
  .b-plan__fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--amber), var(--signal)); transform-origin: 100% 50%; /* RTL: grows from the start (right) edge */ }
  .b-plan__tick { position: absolute; top: 50%; inset-inline-start: calc(var(--i) * 25% + 3px); width: 12px; height: 12px; margin-top: -6px; border-radius: var(--radius-pill); background: var(--paper); box-shadow: 0 0 0 4px var(--glass-fill-inset); }

  .b-lane { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: center; gap: 12px; }
  .b-lane + .b-lane { margin-block-start: 12px; }
  .b-lane__label { font-size: var(--t-xs); color: var(--paper-3); }
  .b-lane__track { position: relative; height: 22px; border-radius: var(--radius-pill); background: var(--glass-fill-inset); }
  .b-bar { position: absolute; top: 3px; bottom: 3px; inset-inline-start: calc(var(--s) * 25% + 3px); width: calc((var(--e) - var(--s)) * 25% - 8px); border-radius: var(--radius-pill); background: var(--paper-2); }
  .b-lane + .b-lane .b-bar { background: var(--paper-3); }
  .b-bar--light { opacity: .8; }
  .b-bar--tick { width: calc((var(--e) - var(--s)) * 25%); min-width: 10px; }
  .b-bar--ongoing { width: calc((var(--e) - var(--s)) * 25% - 6px); background: repeating-linear-gradient(90deg, var(--paper-2) 0 14px, transparent 14px 22px); }
  .b-plan__chart .b-plan__axis { margin-inline-start: calc(7.5rem + 12px); }
}

/* progress: CSS scroll-driven where supported; JS one-shot fallback (.b-anim/.b-run); static & complete otherwise */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .b-plan { timeline-scope: --b-chart; }
    .b-plan__chart { view-timeline: --b-chart block; }
    .b-plan__stack { view-timeline: --b-ph block; }
    .b-plan__fill { animation: b-grow-x linear both; animation-timeline: --b-chart; animation-range: cover 10% cover 50%; }
    .b-lane__track .b-bar { animation: b-fade linear both; animation-timeline: --b-chart; animation-range: cover 10% cover 50%; }
    .b-plan__rail > span { animation: b-grow-y linear both; animation-timeline: --b-ph; animation-range: cover 15% cover 65%; }
  }
}
@keyframes b-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes b-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes b-fade { from { opacity: .15; } to { opacity: 1; } }

.b-plan.b-anim .b-plan__fill { transform: scaleX(0); transition: transform 1.6s var(--ease) .1s; }
.b-plan.b-anim .b-plan__rail > span { transform: scaleY(0); transition: transform 1.6s var(--ease) .1s; }
.b-plan.b-anim .b-bar { opacity: .15; transition: opacity 1.2s var(--ease) .3s; }
.b-plan.b-anim.b-run .b-plan__fill { transform: scaleX(1); }
.b-plan.b-anim.b-run .b-plan__rail > span { transform: scaleY(1); }
.b-plan.b-anim.b-run .b-bar { opacity: 1; }

.b-phase[data-reveal] { transition-delay: calc(var(--i, 0) * 110ms); }

/* =========================================================
   03  ENGAGEMENTS: comparison table in one glass panel
   ========================================================= */
.b-spec { border-radius: var(--radius-glass); padding: clamp(14px, 2.4vw, 32px); }
.b-spec__table { position: relative; z-index: 2; width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.b-spec__colk { width: 31%; }
.b-spec__table th, .b-spec__table td { text-align: start; vertical-align: middle; font-weight: 400; }
.b-spec__table tbody th, .b-spec__table tbody td { padding: 15px 20px; border-bottom: 1px solid var(--line); }
.b-spec__table tbody th { padding-inline-start: 4px; color: var(--paper); font-size: var(--t-md); }
.b-spec__table tbody td { color: var(--paper-2); font-size: 0.9375rem; }
.b-spec__table tbody tr:last-child th, .b-spec__table tbody tr:last-child td { border-bottom: 0; }
.b-spec__table thead th { vertical-align: bottom; padding: 22px 20px 18px; border-bottom: 1px solid var(--line-strong); }
.b-spec__table thead th.b-spec__corner { padding-inline-start: 4px; }
.b-spec__corner .mono, .b-spec__table tfoot th .mono { font-size: var(--t-xs); color: var(--paper-3); display: block; }
.b-tier__name { display: block; font-size: var(--t-xl); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; }
.b-tier__sub { display: block; margin-block-start: 6px; font-size: var(--t-sm); color: var(--paper-3); line-height: 1.4; }
.b-tier__flag { display: inline-block; font-size: var(--t-xs); color: var(--paper); background: var(--signal-dim); box-shadow: inset 0 0 0 1px var(--signal-dim); border-radius: var(--radius-pill); padding: 2px 12px; margin-block-end: 12px; }

/* Growth column: soft accent-tinted glass strip */
.b-spec__table .is-pick { background: linear-gradient(180deg, var(--signal-dim), var(--glass-fill-inset)); }
.b-spec__table thead th.is-pick { border-start-start-radius: var(--radius); border-start-end-radius: var(--radius); box-shadow: inset 0 1px 0 var(--line-strong); }
.b-spec__table tbody td.is-pick { background: var(--glass-fill-inset); box-shadow: inset 1px 0 0 var(--signal-dim), inset -1px 0 0 var(--signal-dim); }
.b-spec__table tfoot td.is-pick { background: var(--glass-fill-inset); border-end-start-radius: var(--radius); border-end-end-radius: var(--radius); box-shadow: inset 1px 0 0 var(--signal-dim), inset -1px 0 0 var(--signal-dim); }

.b-spec__table tfoot th, .b-spec__table tfoot td { padding: 24px 20px 22px; vertical-align: top; border-top: 1px solid var(--line-strong); }
.b-spec__table tfoot th { padding-inline-start: 4px; }
.b-spec__price { display: block; margin-block-start: 4px; color: var(--paper); font-size: var(--t-md); }
.b-cta { white-space: nowrap; }

.b-val { color: var(--paper-2); }
.b-val .mono { color: var(--paper); }
.b-mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--radius-pill); vertical-align: middle; position: relative; }
.b-mark--yes { background: var(--glass-fill-inset); box-shadow: inset 0 0 0 1px var(--line-strong); }
.b-mark--yes::before { content: ""; width: 9px; height: 5px; margin-top: -2px; border-left: 1.5px solid var(--paper); border-bottom: 1.5px solid var(--paper); transform: rotate(-45deg); }
.b-mark--no::before { content: ""; width: 10px; height: 1.5px; border-radius: 2px; background: var(--paper-3); }

/* tier switcher: segmented glass pill (mobile + JS) */
.b-tiers[hidden] { display: none; }
.b-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 5px; border-radius: var(--radius-pill); margin-block-end: 14px; }
.b-tiers__tab { all: unset; box-sizing: border-box; position: relative; z-index: 2; cursor: pointer; text-align: center; height: 42px; border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: var(--t-sm); color: var(--paper-3); transition: color .2s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), transform .35s var(--spring); }
.b-tiers__tab:active { transform: scale(.97); }
.b-tiers__tab[aria-selected="true"] { color: var(--paper); background: var(--glass-fill-strong); box-shadow: inset 0 1px 0 var(--line-strong), 0 6px 16px -8px var(--line-strong); }
.b-tiers__tab[data-tier="growth"][aria-selected="true"] { box-shadow: inset 0 1px 0 var(--line-strong), inset 0 0 0 1px var(--signal-dim); }
.b-tiers__tab:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

@media (max-width: 759px) {
  /* no-JS: stacked rows, every tier labelled */
  .b-eng:not(.b-js) .b-spec__table, .b-eng:not(.b-js) .b-spec__table tbody, .b-eng:not(.b-js) .b-spec__table tfoot, .b-eng:not(.b-js) .b-spec__table tr { display: block; }
  .b-eng:not(.b-js) .b-spec__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .b-eng:not(.b-js) .b-spec__table tbody tr { padding-block: 14px; border-bottom: 1px solid var(--line); }
  .b-eng:not(.b-js) .b-spec__table tbody th { display: block; border: 0; padding: 4px 4px 6px; }
  .b-eng:not(.b-js) .b-spec__table tbody td { display: flex; justify-content: space-between; gap: 16px; border: 0; padding: 4px; background: none; box-shadow: none; }
  .b-eng:not(.b-js) .b-spec__table tbody td::before, .b-eng:not(.b-js) .b-spec__table tfoot td::before { content: attr(data-label); font-family: var(--font-mono); font-size: var(--t-xs); color: var(--paper-3); }
  .b-eng:not(.b-js) .b-spec__table tfoot th, .b-eng:not(.b-js) .b-spec__table tfoot td { display: block; padding: 12px 4px 0; border: 0; background: none; box-shadow: none; }

  /* JS: one tier at a time */
  .b-eng.b-js .b-spec__table[data-show="basic"] [data-tier]:not([data-tier="basic"]),
  .b-eng.b-js .b-spec__table[data-show="growth"] [data-tier]:not([data-tier="growth"]),
  .b-eng.b-js .b-spec__table[data-show="premium"] [data-tier]:not([data-tier="premium"]) { display: none; }
  .b-eng.b-js .b-spec__table colgroup { display: none; }
  .b-eng.b-js .b-spec__table thead th { padding: 16px 12px 14px; }
  .b-eng.b-js .b-spec__table tbody th, .b-eng.b-js .b-spec__table tbody td { padding: 13px 12px; }
  .b-eng.b-js .b-spec__table tbody th { font-size: 0.9375rem; }
  .b-eng.b-js .b-spec__table tbody th, .b-eng.b-js .b-spec__table thead th.b-spec__corner, .b-eng.b-js .b-spec__table tfoot th { padding-inline-start: 4px; }
  .b-eng.b-js .b-spec__table tfoot td { padding-inline: 10px; }
  .b-eng.b-js .b-tier__sub { font-size: var(--t-xs); }
  .b-cta { padding-inline: 16px; }
}
@media (min-width: 760px) { .b-tiers { display: none !important; } }

.b-promise { list-style: none; margin: clamp(24px, 3vw, 36px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; color: var(--paper-2); font-size: var(--t-sm); }
.b-promise li { padding: 6px 14px; border-radius: var(--radius-pill); background: var(--glass-fill-inset); box-shadow: inset 0 1px 0 var(--line), inset 0 0 0 1px var(--line); }

/* link from each capability example to its full service page */
.b-cap__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--signal); font-weight: 500; font-size: var(--t-sm); text-decoration: none; }
.b-cap__more::after { content: "←"; }
.b-cap__more:hover { text-decoration: underline; }
