/* CASE STUDY PAGES
   The page chrome (hero, fact boxes, section headings, CTA band) uses the shared
   components in src/tailwind.css. This sheet keeps what is unique to case
   studies: the numbers, goals, status table, the interactive buy box and basket
   demos (styled to look like a real shop), the evolution figures, callouts and
   checklists. Colours come from the global tokens; stock status colours are below. */
.case-study {
  --cs-ink: #2e2e5c;            /* navy, from the tile palette */
  --cs-hot: #f82700;            /* tile palette red */
  --cs-card: var(--card);
  --cs-card-solid: var(--card-solid);
  --cs-line: var(--image-border-color);
  --cs-muted: var(--muted);
  --cs-in: #0d7342;
  --cs-in-bg: rgba(38, 207, 129, 0.16);
  --cs-direct: #1d5fc4;
  --cs-direct-bg: rgba(29, 95, 196, 0.12);
  --cs-pre: #7d3fb0;
  --cs-pre-bg: rgba(253, 157, 255, 0.28);
  --cs-back: #8a4b00;
  --cs-back-bg: rgba(245, 158, 11, 0.18);
  --cs-out: #c22200;
  --cs-out-bg: rgba(248, 39, 0, 0.1);
  --cs-radius: 16px;
}

:root:not([data-theme="light"]) .case-study {
  --cs-ink: #c9c9ff;
  --cs-in: #4fe3a0;
  --cs-direct: #7fb0ff;
  --cs-direct-bg: rgba(127, 176, 255, 0.14);
  --cs-pre: #fdb7ff;
  --cs-pre-bg: rgba(253, 157, 255, 0.16);
  --cs-back: #ffc266;
  --cs-back-bg: rgba(245, 158, 11, 0.16);
  --cs-out: #ff7a5c;
  --cs-out-bg: rgba(248, 39, 0, 0.16);
}

.case-study p {
  line-height: 1.65;
}

/* NUMBERS */
.cs-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.cs-number {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.4rem;
  border-radius: var(--cs-radius);
  background: var(--cs-card);
  border: 1px solid var(--cs-line);
}

.cs-number-big {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--cs-ink);
}

.cs-number-label {
  font-size: 0.95rem;
  color: var(--paragraph-color);
}

.cs-number-accent {
  background: var(--cs-ink);
  border-color: transparent;
}

.cs-number-accent .cs-number-big,
.cs-number-accent .cs-number-label {
  color: #fff;
}

:root[data-theme="dark"] .cs-number-accent {
  background: var(--primary-color);
}

:root[data-theme="dark"] .cs-number-accent .cs-number-big,
:root[data-theme="dark"] .cs-number-accent .cs-number-label {
  color: #0f1419;
}

/* SECTIONS */
.cs-section {
  margin: 4.5rem 0;
}

.cs-intro {
  max-width: 720px;
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

.cs-split {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
}

.cs-prose {
  max-width: 720px;
}

.cs-prose p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

/* GOALS */
.cs-goals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.cs-goal {
  padding: 1.5rem;
  border-radius: var(--cs-radius);
  background: var(--cs-card);
  border: 1px solid var(--cs-line);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.cs-goal:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--primary-color-rgb), 0.6);
  box-shadow: 0 14px 30px -16px rgba(var(--primary-color-rgb), 0.5);
}

.cs-goal i {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.2rem;
  color: #fff;
  background: var(--cs-ink);
}

.cs-goal:nth-child(3n+2) i { background: var(--cs-hot); }
.cs-goal:nth-child(3n+3) i { background: var(--primary-color); color: #0f1419; }

:root[data-theme="dark"] .cs-goal:nth-child(3n+1) i { color: #0f1419; }

.cs-goal h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.cs-goal p {
  margin: 0;
  font-size: 0.95rem;
}

/* STOCK PILLS & CTA CHIPS */
.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.stock-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.stock-pill.is-in     { color: var(--cs-in);     background: var(--cs-in-bg); }
.stock-pill.is-direct { color: var(--cs-direct); background: var(--cs-direct-bg); }
.stock-pill.is-pre    { color: var(--cs-pre);    background: var(--cs-pre-bg); }
.stock-pill.is-back   { color: var(--cs-back);   background: var(--cs-back-bg); }
.stock-pill.is-out    { color: var(--cs-out);    background: var(--cs-out-bg); }

.cta-chip {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--cs-ink);
  white-space: nowrap;
}

:root[data-theme="dark"] .cta-chip { color: #0f1419; }

.cta-chip.is-pre { background: var(--cs-pre); color: #fff; }
:root[data-theme="dark"] .cta-chip.is-pre { color: #0f1419; }
.cta-chip.is-direct { background: var(--cs-direct); color: #fff; }
.cta-chip.is-back { background: var(--cs-back); color: #fff; }
:root[data-theme="dark"] .cta-chip.is-direct,
:root[data-theme="dark"] .cta-chip.is-back { color: #0f1419; }
.case-study .cta-chip.is-disabled { background: transparent; color: var(--cs-muted); border: 1px dashed var(--cs-muted); }

/* STATUS TABLE */
.cs-status-table {
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  overflow: hidden;
  background: var(--cs-card);
}

.cs-status-row {
  display: grid;
  grid-template-columns: 170px 1fr 160px 110px;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--cs-line);
}

.cs-status-head {
  border-top: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-muted);
}

.cs-status-row .fa-check {
  color: var(--cs-in);
}

.cs-muted {
  color: var(--cs-muted);
}

/* INTERACTIVE BUY BOX DEMO */
.cs-demo-section {
  position: relative;
  padding: 2.5rem;
  margin-left: -1rem;
  margin-right: -1rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--primary-color-rgb), 0.16), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(var(--secondary-color-rgb), 0.22), transparent 45%),
    var(--cs-card);
  border: 1px solid var(--cs-line);
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.bb-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.bb-scenarios {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.bb-controls-label {
  margin-right: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-muted);
}

.bb-scenarios button {
  padding: 0.5rem 0.95rem;
  border-radius: 50px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--title-color);
  background: var(--cs-card-solid);
  border: 1px solid var(--cs-line);
  cursor: pointer;
  transition: all 0.2s ease;
}

.bb-scenarios button:hover {
  border-color: var(--primary-color);
}

.bb-scenarios button[aria-checked="true"] {
  color: #0f1419;
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.bb-notes-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--title-color);
}

.bb-notes-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bb-switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 24px;
  background: var(--cs-line);
  border: 1px solid var(--cs-line);
  transition: background 0.2s ease;
}

.bb-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.bb-notes-toggle input:checked + .bb-switch {
  background: var(--secondary-color);
}

.bb-notes-toggle input:checked + .bb-switch::after {
  transform: translateX(20px);
}

.bb-notes-toggle input:focus-visible + .bb-switch {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.bb-stage {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  padding: 2rem;
  border-radius: 20px;
  background: var(--cs-card-solid);
  box-shadow: 0 30px 60px -30px rgba(46, 46, 92, 0.45);
}

.bb-product {
  display: flex;
  flex-direction: column;
}

.bb-image {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 300px;
  border-radius: 14px;
  color: rgba(46, 46, 92, 0.45);
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.9), transparent 60%),
    linear-gradient(160deg, #f1ece4, #dad4c8);
}

:root[data-theme="dark"] .bb-image {
  color: rgba(255, 255, 255, 0.55);
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(160deg, #20262e, #12171c);
}

.bb-glass {
  width: 46%;
  max-width: 170px;
  height: auto;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.15));
  animation: bb-float 6s ease-in-out infinite;
}

@keyframes bb-float {
  50% { transform: translateY(-8px) rotate(-1.5deg); }
}

.bb-small-print {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--cs-muted);
  text-align: center;
}

.bb-box > * + * {
  margin-top: 1rem;
}

.bb-brand {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-muted);
}

.bb-box .bb-title {
  margin-top: 0.25rem;
  margin-bottom: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--cs-ink);
}

.bb-rating {
  margin-top: 0.4rem;
  font-size: 0.9rem;
}

.bb-rating span:first-child {
  color: #f5b300;
  letter-spacing: 0.1em;
}

/* VAT segmented control */
.bb-vat {
  display: inline-flex;
  padding: 4px;
  border-radius: 50px;
  background: rgba(127, 127, 127, 0.12);
}

.bb-vat button {
  padding: 0.4rem 1rem;
  border: 0;
  border-radius: 50px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cs-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bb-vat button[aria-checked="true"] {
  color: #fff;
  background: var(--cs-ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .bb-vat button[aria-checked="true"] {
  color: #0f1419;
}

/* Option cards */
.bb-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  border: 0;
}

.bb-options legend {
  margin-bottom: 0.5rem;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--title-color);
}

.bb-option {
  position: relative;
  display: flex;
  gap: 0.7rem;
  padding: 0.9rem;
  border-radius: 12px;
  border: 2px solid var(--cs-line);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bb-option:hover {
  border-color: rgba(46, 46, 92, 0.4);
}

.bb-option.is-selected {
  border-color: var(--cs-ink);
  box-shadow: 0 0 0 4px rgba(46, 46, 92, 0.12);
}

:root[data-theme="dark"] .bb-option.is-selected {
  box-shadow: 0 0 0 4px rgba(201, 201, 255, 0.15);
}

.bb-option input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0.1rem 0 0;
  accent-color: var(--cs-ink);
}

.bb-option-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.bb-option-name {
  font-weight: 800;
  color: var(--title-color);
}

.bb-option-price {
  font-size: 0.85rem;
  color: var(--cs-muted);
}

.bb-ribbon {
  position: absolute;
  top: -11px;
  right: 10px;
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--cs-hot);
  box-shadow: 0 4px 10px -3px rgba(248, 39, 0, 0.6);
}

/* Price block */
.bb-price {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.07);
}

.bb-price-main {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.bb-price-total {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--cs-ink);
  font-variant-numeric: tabular-nums;
}

.bb-price-vat {
  font-weight: 600;
  color: var(--cs-muted);
}

.bb-per-glass,
.bb-saving {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
}

.bb-saving {
  color: var(--cs-in);
  font-weight: 600;
}

.bb-saving strong {
  color: inherit;
}

.bb-box .bb-upsell {
  display: block;
  width: 100%;
  margin-top: 0.7rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px dashed var(--cs-hot);
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  color: var(--title-color);
  background: rgba(248, 39, 0, 0.06);
  cursor: pointer;
  transition: background 0.2s ease;
}

.bb-box .bb-upsell:hover {
  background: rgba(248, 39, 0, 0.12);
}

.bb-box .bb-upsell i,
.bb-box .bb-upsell span {
  color: var(--cs-hot);
  font-weight: 700;
}

:root[data-theme="dark"] .bb-upsell i,
:root[data-theme="dark"] .bb-upsell span {
  color: var(--cs-out);
}

.bb-delivery {
  margin-bottom: 0;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.bb-delivery.is-in     { color: var(--cs-in);     background: var(--cs-in-bg); }
.bb-delivery.is-direct { color: var(--cs-direct); background: var(--cs-direct-bg); }
.bb-delivery.is-pre    { color: var(--cs-pre);    background: var(--cs-pre-bg); }
.bb-delivery.is-back   { color: var(--cs-back);   background: var(--cs-back-bg); }
.bb-delivery.is-out    { color: var(--cs-out);    background: var(--cs-out-bg); }

/* Actions */
.bb-actions {
  display: flex;
  gap: 0.75rem;
}

.bb-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--cs-line);
  border-radius: 50px;
  overflow: hidden;
}

.bb-qty button {
  width: 40px;
  height: 100%;
  min-height: 48px;
  border: 0;
  font-size: 1.2rem;
  color: var(--title-color);
  background: transparent;
  cursor: pointer;
}

.bb-qty button:hover:not(:disabled) {
  background: rgba(127, 127, 127, 0.12);
}

.bb-qty output {
  min-width: 2ch;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bb-qty.is-disabled {
  opacity: 0.4;
}

.bb-qty button:disabled {
  cursor: not-allowed;
}

.bb-box .bb-cta {
  flex: 1;
  min-height: 48px;
  border: 0;
  border-radius: 50px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  background: var(--cs-ink);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

:root[data-theme="dark"] .bb-box .bb-cta:not(:disabled):not(.is-pre):not(.is-direct):not(.is-back) { color: #0f1419; }

.bb-box .bb-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -8px rgba(46, 46, 92, 0.6);
}

.bb-box .bb-cta.is-pre {
  background: linear-gradient(90deg, #9a4fd0, #d36be0);
  color: #fff;
}

.bb-box .bb-cta.is-direct {
  background: #1d5fc4;
  color: #fff;
}

.bb-box .bb-cta.is-back {
  background: #b86500;
  color: #fff;
}

.bb-box .bb-cta:disabled {
  color: var(--cs-muted);
  background: rgba(127, 127, 127, 0.15);
  cursor: not-allowed;
}

/* Notify me */
.bb-notify {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--cs-line);
  animation: bb-in 0.35s ease;
}

.bb-notify label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--title-color);
}

.bb-notify-row {
  display: flex;
  gap: 0.5rem;
}

.bb-notify input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--cs-line);
  font: inherit;
  color: var(--title-color);
  background: var(--cs-card-solid);
}

.bb-notify button {
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  color: #0f1419;
  background: var(--secondary-color);
  cursor: pointer;
}

.bb-notify-done {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  color: var(--cs-in);
}

.bb-toast {
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  color: #0f1419;
  background: var(--primary-color);
}

.bb-toast.is-showing {
  animation: bb-in 0.3s ease;
}

@keyframes bb-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

[data-buybox] [hidden] {
  display: none !important;
}

/* INTERACTIVE BASKET DEMO */
[data-basket] [hidden] {
  display: none !important;
}

.cs-goals-2 {
  grid-template-columns: repeat(2, 1fr);
}

.bk-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 20px;
  background: var(--cs-card-solid);
  box-shadow: 0 30px 60px -30px rgba(46, 46, 92, 0.45);
}

.bk-main,
.bk-side {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.bk-panel {
  padding: 1.25rem;
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.08);
}

.bk-panel p {
  margin: 0;
}

.bk-heading,
.bk-group-title {
  font-weight: 700;
  color: var(--title-color);
}

.bk-heading i,
.bk-group-title i {
  margin-right: 0.5rem;
  color: var(--cs-ink);
}

.bk-group-title {
  margin-bottom: 1rem !important;
}

.bk-split-count {
  margin: 0.4rem 0 0 1.6rem !important;
  line-height: 1.7;
}

.bk-promise {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem !important;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cs-in);
  background: var(--cs-in-bg);
}

.bk-alert,
.bk-info {
  display: flex;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  background: var(--cs-card-solid);
}

.bk-alert {
  border: 1px solid var(--cs-line);
  border-left: 4px solid var(--cs-out);
}

.bk-alert > i {
  margin-top: 0.15rem;
  font-size: 1.3rem;
  color: var(--cs-out);
}

.bk-alert-title {
  font-weight: 800;
  color: var(--cs-out);
}

.bk-alert a {
  display: block;
  margin-top: 0.3rem;
  font-weight: 700;
  color: var(--title-color);
  text-decoration: underline;
}

.bk-info {
  margin: 0 0 1rem;
  border: 1px solid var(--cs-in);
  background: var(--cs-in-bg);
}

.bk-info > i {
  margin-top: 0.15rem;
  font-size: 1.3rem;
  color: var(--cs-in);
}

.bk-info a {
  color: inherit;
  text-decoration: underline;
}

.bk-lines {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bk-line {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 1rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--cs-ink);
  scroll-margin: 6rem;
}

.bk-line.is-flash {
  animation: bk-flash 1.6s ease;
}

@keyframes bk-flash {
  0%, 60% { background: rgba(var(--secondary-color-rgb), 0.35); }
  100% { background: transparent; }
}

.bk-art {
  display: grid;
  place-items: center;
  height: 88px;
  border-radius: 8px;
  color: rgba(46, 46, 92, 0.55);
  background: #fff;
  border: 1px solid var(--cs-line);
}

:root[data-theme="dark"] .bk-art {
  color: rgba(255, 255, 255, 0.6);
  background: #20262e;
}

.bk-art svg {
  width: 44px;
  height: auto;
}

.bk-line-body > * + * {
  margin-top: 0.2rem !important;
}

.bk-line-name {
  font-weight: 600;
  color: var(--title-color);
  line-height: 1.35 !important;
}

.bk-line-meta,
.bk-line-lead {
  font-size: 0.85rem;
  color: var(--cs-muted);
}

.bk-line-lead {
  font-size: 0.75rem;
}

.bk-line-status {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}

.bk-line-due {
  display: block;
  font-weight: 400;
}

.bk-line-status.is-in     { color: var(--cs-in);     background: var(--cs-in-bg); }
.bk-line-status.is-direct { color: var(--cs-direct); background: var(--cs-direct-bg); }
.bk-line-status.is-pre    { color: var(--cs-pre);    background: var(--cs-pre-bg); }
.bk-line-status.is-back   { color: var(--cs-back);   background: var(--cs-back-bg); }

.bk-line-price {
  font-weight: 800;
  color: var(--title-color);
}

.bk-line-price span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cs-muted);
}

.bk-qty {
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem !important;
  border: 1px solid var(--cs-line);
  border-radius: 8px;
  background: var(--cs-card-solid);
}

.bk-qty button {
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  cursor: pointer;
}

.bk-qty button:hover {
  color: var(--primary-color);
}

.bk-qty output {
  min-width: 2rem;
  text-align: center;
  font-weight: 700;
}

.bk-remove {
  align-self: start;
  width: 32px;
  height: 32px;
  border-radius: 50% !important;
  font-size: 1.2rem;
  cursor: pointer;
}

.bk-remove:hover {
  color: var(--cs-out);
  background: var(--cs-out-bg) !important;
}

.bk-reality {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px dashed var(--cs-out);
  background: var(--cs-out-bg);
}

.bk-reality p {
  margin: 0;
}

.bk-reality p + p {
  margin-top: 0.4rem;
}

.bk-sum-lines {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.bk-sum-lines li,
.bk-sum-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.bk-sum-lines li span:last-child,
.bk-sum-row span:last-child {
  white-space: nowrap;
}

.bk-sum-row {
  padding-top: 0.5rem;
  font-size: 0.95rem;
}

.bk-sum-total {
  margin-top: 0.4rem !important;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cs-line);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--title-color);
}

.bk-sum-note {
  margin-top: 1rem !important;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4 !important;
}

.case-study .bk-checkout {
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  color: #fff;
  background: #5e9f4f;
  box-shadow: 0 10px 20px -12px rgba(46, 120, 40, 0.8);
  cursor: pointer;
  transition: filter 0.2s ease;
}

.case-study .bk-checkout:hover {
  filter: brightness(1.08);
}

.bk-cards {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem !important;
  font-size: 1.8rem;
  color: var(--cs-ink);
}

.bk-trust {
  margin-top: 0.5rem !important;
  text-align: center;
  font-weight: 700;
}

.bk-trust i,
.bk-trust span {
  color: #00b67a;
}

.bk-id {
  font-size: 0.9rem;
}

.bk-save {
  margin-top: 0.5rem !important;
  color: var(--cs-muted);
}

.bk-save i {
  margin-right: 0.35rem;
}

.bk-empty .bk-reset {
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  color: #0f1419;
  background: var(--primary-color);
  cursor: pointer;
}

.bk-stage .bb-toast {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 4;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin: 0;
  transform: translateX(-50%);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

.bk-stage .bb-toast.is-showing {
  animation: bk-toast-in 0.3s ease;
}

@keyframes bk-toast-in {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to   { opacity: 1; transform: translateX(-50%); }
}

.bk-demo .bb-small-print {
  margin-top: 0.75rem;
}

.bk-demo.is-before .bb-notes-toggle {
  visibility: hidden;
}

.cs-figure-tall {
  max-width: 760px;
  margin: 0 auto;
}

.cs-figure-tall img {
  aspect-ratio: auto;
  object-fit: contain;
}

/* Notes / annotations */
.bb-legend {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 2rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: note;
}

.bb-legend li {
  position: relative;
  padding-left: 2.2rem;
  font-size: 0.95rem;
  line-height: 1.5;
  counter-increment: note;
}

.bb-legend li::before,
.show-notes [data-note]::after {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f1419;
  background: var(--secondary-color);
  box-shadow: 0 0 0 3px var(--cs-card-solid);
}

.bb-legend li::before {
  content: counter(note);
  position: absolute;
  left: 0;
  top: 0;
}

.show-notes .bb-legend {
  display: grid;
  animation: bb-in 0.35s ease;
}

.show-notes [data-note] {
  position: relative;
  outline: 2px dashed rgba(var(--secondary-color-rgb), 0.9);
  outline-offset: 4px;
}

.show-notes [data-note]::after {
  content: attr(data-note);
  position: absolute;
  top: -0.9rem;
  left: -0.9rem;
  z-index: 3;
  animation: bb-pop 0.35s ease;
}

.show-notes [data-note][hidden] {
  display: none;
}

@keyframes bb-pop {
  from { transform: scale(0); }
  70%  { transform: scale(1.2); }
  to   { transform: scale(1); }
}

/* EVOLUTION */
.cs-evolution {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.cs-step {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--cs-radius);
  background: var(--cs-card);
  border: 1px solid var(--cs-line);
  counter-increment: step;
}

.cs-step::before {
  content: "0" counter(step);
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(127, 127, 127, 0.18);
}

.cs-step-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(127, 127, 127, 0.14);
}

.cs-step h3 {
  margin: 0.8rem 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.cs-step p {
  margin: 0;
  font-size: 0.95rem;
}

.cs-step-now {
  border: 2px solid var(--primary-color);
  box-shadow: 0 18px 40px -22px rgba(var(--primary-color-rgb), 0.8);
}

.cs-step-now .cs-step-tag {
  color: #0f1419;
  background: var(--primary-color);
}

.cs-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.cs-figure {
  position: relative;
  margin: 0;
}

.cs-figure picture,
.cs-figure img {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--cs-line);
  background: #fff;
}

.cs-figure img {
  aspect-ratio: 12 / 5;
  object-fit: cover;
  object-position: right center;
}

.cs-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--cs-muted);
}

.cs-figure-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cs-figure-tag.is-before { background: #242323; }
.cs-figure-tag.is-after  { background: var(--primary-color); color: #0f1419; }

/* CALLOUT */
.cs-callout {
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
  border-radius: 24px;
  color: #fff;
  background: #2e2e5c;
}

.cs-callout::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 157, 255, 0.5), transparent 70%);
}

.cs-callout h2 {
  position: relative;
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: #fff;
}

.cs-callout p,
.cs-callout li {
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  background: none;
}

.cs-callout strong {
  color: #fff;
}

.cs-callout-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cs-callout-kicker i {
  color: var(--secondary-color);
}

.cs-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.cs-rules li {
  padding-left: 1rem;
  border-left: 3px solid var(--primary-color);
  line-height: 1.55;
}

.cs-callout-link {
  position: relative;
  font-weight: 700;
  color: var(--primary-color);
}

.cs-callout-link:hover {
  color: #fff;
}

/* CHECKLIST */
.cs-checklist {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.cs-checklist li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  line-height: 1.6;
}

.cs-checklist i {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #0f1419;
  background: rgba(var(--primary-color-rgb), 0.35);
}

/* REVEAL: stagger items in a row (main.js handles the reveal itself) */
.motion-ready .cs-numbers .reveal:nth-child(2),
.motion-ready .cs-goals .reveal:nth-child(3n+2),
.motion-ready .cs-evolution .reveal:nth-child(2) { transition-delay: 0.08s; }
.motion-ready .cs-numbers .reveal:nth-child(3),
.motion-ready .cs-goals .reveal:nth-child(3n+3),
.motion-ready .cs-evolution .reveal:nth-child(3) { transition-delay: 0.16s; }
.motion-ready .cs-numbers .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .bb-glass {
    animation: none;
  }
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .cs-numbers {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-goals,
  .cs-evolution {
    grid-template-columns: 1fr 1fr;
  }

  .cs-split {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .bb-stage {
    grid-template-columns: 1fr;
  }

  .bk-stage {
    grid-template-columns: 1fr;
  }

  .bb-image {
    min-height: 200px;
  }

  .cs-status-row {
    grid-template-columns: 150px 1fr 150px;
  }

  .cs-status-row > :nth-child(4) {
    display: none;
  }
}

@media (max-width: 640px) {
  .cs-number-big {
    font-size: 2.5rem;
  }

  .cs-goals,
  .cs-evolution,
  .cs-compare,
  .cs-rules,
  .bb-legend {
    grid-template-columns: 1fr;
  }

  .cs-status-head {
    display: none;
  }

  .cs-status-row {
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1rem;
  }

  .cs-status-row > :nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.9rem;
  }

  .cs-demo-section {
    margin-left: 0;
    margin-right: 0;
    padding: 1.25rem;
  }

  .bb-stage {
    padding: 1rem;
  }

  .bb-options {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cs-goals-2 {
    grid-template-columns: 1fr;
  }

  .bk-stage {
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .bk-panel {
    padding: 1rem 0.85rem;
    background: var(--cs-card-solid);
  }

  .bk-split-count {
    margin-left: 0 !important;
  }

  .bk-alert,
  .bk-info {
    padding: 0.85rem;
  }

  .bk-alert > i,
  .bk-info > i {
    display: none;
  }

  .bk-line {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0.75rem;
    padding-left: 0.6rem;
  }

  .bk-line-name {
    padding-right: 2rem;
  }

  .bk-remove {
    position: absolute;
    top: -0.25rem;
    right: 0;
  }

  .bk-art {
    height: 52px;
  }

  .bk-art svg {
    width: 28px;
  }

  .bb-box .bb-cta {
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .cs-callout {
    padding: 1.75rem 1.25rem;
  }
}
