/* ==== CL-341 (Frank 2026-11-30): "What happens after you pay" = four lifted step tiles; each tile's detail tucks behind an emerald
   "More details" that pops out smoothly (hover, keyboard focus or tap). Shared: inlined on home, linked on every page with a pillar block.
   Markup (home/pillars/{websites,forge,seo,automation,industry-any}.html): <li class="bs-step"><span class="bs-step__t">title</span>
   <button class="bs-step__more" aria-expanded aria-controls>More details</button><span class="bs-step__d" id role="note">detail</span></li>
   The detail stays in the HTML. Script: js/akarec-pillar.js (CL-341 block). Emerald = the check-mark emerald (Day: the deep shade, 4.5:1+). ==== */
html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-after .bs-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; }
html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-steps .bs-step {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 0.65rem; row-gap: 0.1rem; align-items: start; align-content: start;
  min-height: 0; padding: 0.8rem 0.85rem 0.55rem; border-radius: 14px; color: var(--ak-text-main, #fff);
  border: 1px solid rgba(255, 255, 255, 0.12); background: linear-gradient(180deg, #13223F 0%, #0C1830 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 12px 22px -14px rgba(0, 0, 0, 0.9), 0 0 16px -9px color-mix(in srgb, var(--mx-sec, #0284C7) 80%, transparent);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
}
html[data-theme="day"]:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-steps .bs-step {
  color: #0B1930; background: #FFFFFF; border-color: rgba(11, 25, 48, 0.14);
  box-shadow: inset 0 1px 0 #fff, 0 12px 20px -14px rgba(11, 25, 48, 0.4), 0 0 16px -9px color-mix(in srgb, var(--mx-sec, #0284C7) 70%, transparent);
}
html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-steps .bs-step:is(:hover, :focus-within, .is-open) { transform: translateY(-3px); z-index: 6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 28px -14px rgba(0, 0, 0, 0.8), 0 0 26px -5px color-mix(in srgb, var(--mx-sec, #0284C7) 95%, transparent); }
html[data-theme="day"]:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-steps .bs-step:is(:hover, :focus-within, .is-open) {
  box-shadow: inset 0 1px 0 #fff, 0 18px 26px -14px rgba(11, 25, 48, 0.45), 0 0 26px -5px color-mix(in srgb, var(--mx-sec, #0284C7) 90%, transparent); }
/* the number circle sits in the tile, beside the title */
html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-steps .bs-step::before { position: static; grid-row: 1 / span 2; width: 1.55rem; height: 1.55rem; font-size: 0.76rem; }
html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-steps .bs-step::after { display: none !important; }
:is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-step .bs-step__t { grid-column: 2; align-self: center; font: 700 0.88rem/1.3 'Montserrat', 'Montserrat AKfb', 'Inter', sans-serif; color: inherit; }
/* "More details": emerald, same as the check marks */
html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-step__more {
  appearance: none; grid-column: 2; justify-self: start; position: relative; display: inline-flex; align-items: center; gap: 0.35rem; margin: 0; padding: 0.25rem 0; min-height: 1.7rem;
  background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 6px; cursor: pointer;
  font: 700 0.76rem/1.2 'Inter', system-ui, sans-serif; letter-spacing: 0.02em; color: var(--p-emerald, #10B981) !important;
}
html[data-theme="day"]:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-step__more { color: var(--p-emerald-deep, #047857) !important; }
.bs-step__more::before { content: ""; position: absolute; inset: -0.55rem -0.5rem -0.35rem -0.2rem; }   /* a 44 px tap target without a taller tile */
.bs-step__more::after { content: ""; width: 0.38rem; height: 0.38rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-1px); transition: transform 0.25s ease; }
.bs-step.is-open .bs-step__more::after { transform: rotate(-135deg) translate(-1px, -1px); }
.bs-step__more:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 3px; }
.bs-step__more:focus-visible { outline: 2px solid var(--p-emerald, #10B981); outline-offset: 2px; }
html[data-theme="day"] .bs-step__more:focus-visible { outline-color: var(--p-emerald-deep, #047857); }
/* the detail: an overlay anchored under its tile (never pushes the page), fades and rises in */
html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-step__d {
  position: absolute; left: 0; top: calc(100% + 0.5rem); z-index: 30; display: block; box-sizing: border-box; width: min(19rem, calc(100vw - 2.5rem)); padding: 0.85rem 1rem; border-radius: 14px;
  font: 400 0.84rem/1.5 'Inter', system-ui, sans-serif; text-align: left; color: #E7EDF7; background: #0A1424; border: 1px solid color-mix(in srgb, var(--p-emerald, #10B981) 55%, transparent);
  box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.85), 0 0 24px -12px var(--p-emerald, #10B981);
  opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
html[data-theme="day"]:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-step__d { color: #243049; background: #FFFFFF; border-color: color-mix(in srgb, var(--p-emerald-deep, #047857) 55%, transparent); box-shadow: 0 22px 36px -18px rgba(11, 25, 48, 0.5); }
.bs-step__d::before { content: ""; position: absolute; left: 0; right: 0; top: -0.55rem; height: 0.55rem; }   /* keeps hover alive across the gap */
html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-step:nth-child(n+3) > .bs-step__d { left: auto; right: 0; }
html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-step.is-up > .bs-step__d { top: auto; bottom: calc(100% + 0.5rem); transform: translateY(-8px); }
html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-step.is-up > .bs-step__d::before { top: auto; bottom: -0.55rem; }
html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-step.is-open > .bs-step__d,
html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-step__more:hover ~ .bs-step__d { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
/* the block is shorter: tighter heading, padding and gaps (the two link tiles below are unchanged) */
html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-next .bs-after h4 { margin-bottom: 0.6rem; }
html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-next .bs-links { margin-top: 0.8rem; padding-top: 0.8rem; }
@media (max-width: 760px) {
  html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-after .bs-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
  html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-steps .bs-step { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; row-gap: 0.4rem; padding: 0.7rem 0.75rem 0.5rem; min-height: 6.2rem; }
  html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-steps .bs-step::before { grid-row: auto; }
  html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-step :is(.bs-step__t, .bs-step__more) { grid-column: 1; }
  html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-step:nth-child(n+3) > .bs-step__d { left: 0; right: auto; }
  html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-step:nth-child(even) > .bs-step__d { left: auto; right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-steps .bs-step, .bs-step__more::after,
  html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(.ak-pillar, #ak-pillar, .ak-pkg-guide) .bs-step__d { transition: none !important; transform: none !important; }
}

/* CL-355: the package pop-up's "What happens next" uses the same tiles, one per row (details open under their tile inside the pop-up) */
html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(#ak-pkg-guide, .ak-pkg-guide) .bs-steps { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(#ak-pkg-guide, .ak-pkg-guide) .bs-steps .bs-step { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; min-height: 0; padding: 0.7rem 0.85rem 0.45rem; font-size: 0.88rem; }
html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(#ak-pkg-guide, .ak-pkg-guide) .bs-steps .bs-step::before { grid-row: 1 / span 2; }
html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(#ak-pkg-guide, .ak-pkg-guide) .bs-step :is(.bs-step__t, .bs-step__more) { grid-column: 2; }
html:root body:not(#ak-b1):not(#ak-b2):not(#ak-b3) :is(#ak-pkg-guide, .ak-pkg-guide) .bs-step > .bs-step__d { left: 0 !important; right: auto !important; width: min(24rem, calc(100% - 0.5rem)); }
