.lb-showcase {
  --lb-surface: #ffffff;
  --lb-raspberry: #b8336a;
  --lb-yellow: #f3d94e;
  --lb-mint: #73cba3;
  --lb-lilac: #d8c4f3;
  --lb-blue: #6aa6e8;
  --lb-sans: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --lb-radius-stage: 40px;
  --lb-radius-card: 26px;
  --lb-radius-pill: 999px;
  --lb-ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  margin: 12px;
  min-height: 980px;
  padding: 72px 56px;
  border-radius: var(--lb-radius-stage);
  background: var(--lb-surface);
  color: var(--lb-ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  overflow: hidden;
  overflow: clip;
}

.lb-showcase-head {
  width: min(860px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.lb-showcase-head h2 {
  margin: 0;
  font-family: var(--lb-sans);
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--lb-ink);
}

.lb-showcase-sub {
  margin: 0;
  font-family: var(--lb-sans);
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: rgba(20, 18, 23, 0.76);
  max-width: 54ch;
}

.lb-showcase-grid {
  width: min(1272px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.lb-showcase-card {
  position: relative;
  min-height: 540px;
  padding: 28px 28px 26px;
  border-radius: var(--lb-radius-card);
  border: 1.5px solid var(--lb-ink);
  background: var(--lb-yellow);
  color: var(--lb-ink);
  box-shadow: 0 10px 0 var(--lb-ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  transition:
    transform 0.36s var(--lb-ease-out),
    box-shadow 0.36s var(--lb-ease-out);
}

.lb-showcase-card-workbook {
  background: var(--lb-yellow);
}

.lb-showcase-card-planner {
  background: var(--lb-lilac);
}

.lb-showcase-card-presets {
  background: var(--lb-blue);
}

.lb-showcase-card.is-selected {
  box-shadow: inset 0 0 0 2px var(--lb-ink), 0 13px 0 var(--lb-ink);
}

@media (hover: hover) and (pointer: fine) {
  .lb-showcase-card:hover {
    transform: translateY(-6px) rotate(-0.4deg);
    box-shadow: inset 0 0 0 2px var(--lb-ink), 0 16px 0 var(--lb-ink);
  }

  .lb-showcase-card-planner:hover {
    transform: translateY(-6px) rotate(0.4deg);
  }
}

.lb-showcase-card:focus-within {
  box-shadow: inset 0 0 0 2.5px var(--lb-ink), 0 14px 0 var(--lb-ink);
}

.lb-showcase-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lb-showcase-tag {
  padding: 5px 11px;
  border-radius: var(--lb-radius-pill);
  border: 1.5px solid var(--lb-ink);
  background: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lb-showcase-state-btn {
  appearance: none;
  min-height: 36px;
  padding: 5px 12px;
  border-radius: var(--lb-radius-pill);
  border: 1.5px solid var(--lb-ink);
  background: rgba(255, 255, 255, 0.78);
  color: var(--lb-ink);
  font-family: var(--lb-sans);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.22s var(--lb-ease-out),
    color 0.22s var(--lb-ease-out),
    transform 0.2s var(--lb-ease-out);
}

.lb-showcase-state-btn:hover {
  background: var(--lb-surface);
}

.lb-showcase-state-btn.selected,
.lb-showcase-state-btn[aria-pressed="true"] {
  background: var(--lb-ink);
  color: var(--lb-surface);
}

.lb-showcase-card-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.lb-showcase-card-title {
  margin: 0;
  font-family: var(--lb-display);
  font-weight: 400;
  font-size: 76px;
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: nowrap;
  color: var(--lb-ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lb-showcase-card-title span {
  display: block;
  white-space: nowrap;
}

.lb-showcase-card-desc {
  margin: 0;
  font-family: var(--lb-sans);
  font-size: 15.5px;
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: rgba(20, 18, 23, 0.86);
  max-width: 32ch;
}

.lb-showcase-actions {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.lb-showcase-cta {
  appearance: none;
  cursor: pointer;
  min-width: 156px;
  min-height: 48px;
  padding: 0 22px;
  background: var(--lb-ink);
  color: var(--lb-surface);
  border-color: var(--lb-ink);
  font-family: var(--lb-sans);
  font-size: 14px;
  font-weight: 600;
}

.lb-showcase-cta:hover {
  background: var(--lb-raspberry);
  border-color: var(--lb-raspberry);
}

.lb-showcase-cta:active,
.lb-showcase-state-btn:active {
  transform: scale(0.97);
}

.lb-showcase-cta:focus-visible,
.lb-showcase-state-btn:focus-visible {
  outline: 2.5px solid var(--lb-raspberry);
  outline-offset: 3px;
}

/* Layered Product-Object Artwork in Lower-Right of Each Card */
.lb-showcase-art {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 168px;
  margin-top: auto;
  transform: translate3d(calc(var(--lb-showcase-p, 0) * 14px), calc(var(--lb-showcase-p, 0) * -28px), 0) rotate(calc(var(--lb-showcase-p, 0) * -3.5deg));
}

.lb-showcase-layer {
  position: absolute;
  transition: box-shadow 0.42s var(--lb-ease-out);
}

.lb-showcase-layer-back {
  transform: translate3d(calc(var(--lb-showcase-p, 0) * -22px), calc(var(--lb-showcase-p, 0) * -28px), 0) rotate(calc(var(--base-rot, -11deg) + var(--lb-showcase-p, 0) * -7.5deg));
}

.lb-showcase-layer-main,
.lb-showcase-card.is-selected .lb-showcase-layer-main {
  transform: translate3d(calc(var(--lb-showcase-p, 0) * 18px), calc(var(--lb-showcase-p, 0) * -38px), 0) scale(calc(1 + var(--lb-showcase-p, 0) * 0.035)) rotate(calc(var(--base-rot, 6deg) + var(--lb-showcase-p, 0) * 6.5deg));
}

.lb-showcase-layer-front {
  transform: translate3d(calc(var(--lb-showcase-p, 0) * -26px), calc(var(--lb-showcase-p, 0) * 32px), 0) rotate(calc(var(--base-rot, -4deg) + var(--lb-showcase-p, 0) * -8.5deg));
}

@media (hover: hover) and (pointer: fine) {
  .lb-showcase-card:hover .lb-showcase-layer-back {
    transform: translate(-6px, -6px) rotate(-14deg) scale(1.03);
  }
  .lb-showcase-card:hover .lb-showcase-layer-main {
    transform: translate(4px, -8px) rotate(8deg) scale(1.04);
  }
  .lb-showcase-card:hover .lb-showcase-layer-front {
    transform: translate(8px, -10px) rotate(-6deg) scale(1.05);
  }
}

/* Card 1 Artwork: Workbook Cluster */
.lb-art-wb-sheet {
  --base-rot: -11deg;
  right: 54px;
  bottom: 10px;
  width: 118px;
  height: 128px;
  border-radius: 16px;
  border: 2px solid var(--lb-ink);
  background: var(--lb-lilac);
  box-shadow: 4px 5px 0 var(--lb-ink);
}

.lb-art-wb-cover {
  --base-rot: 6deg;
  right: 14px;
  bottom: 8px;
  width: 122px;
  height: 138px;
  padding: 12px;
  border-radius: 16px;
  border: 2px solid var(--lb-ink);
  background: var(--lb-surface);
  box-shadow: 6px 7px 0 var(--lb-ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lb-art-wb-cover span {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1.5px solid var(--lb-ink);
  background: var(--lb-mint);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lb-art-wb-cover strong {
  font-family: var(--lb-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 0.9;
  text-transform: uppercase;
}

.lb-art-wb-pill {
  --base-rot: -4deg;
  right: 126px;
  bottom: 24px;
  padding: 6px 11px;
  border-radius: var(--lb-radius-pill);
  border: 2px solid var(--lb-ink);
  background: var(--lb-mint);
  box-shadow: 4px 4px 0 var(--lb-ink);
  font-size: 11px;
  font-weight: 700;
}

/* Card 2 Artwork: 4-Tile Planner Diamond Cluster */
.lb-art-pl-grid {
  position: absolute;
  right: 12px;
  bottom: 6px;
  width: 154px;
  height: 146px;
}

.lb-art-pl-tile {
  position: absolute;
  width: 66px;
  height: 62px;
  border-radius: 14px;
  border: 2px solid var(--lb-ink);
  box-shadow: 4px 5px 0 var(--lb-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.1;
}

.lb-art-pl-tile small {
  font-size: 9px;
  text-transform: uppercase;
  opacity: 0.78;
}

.lb-art-pl-t1 {
  --base-rot: -10deg;
  left: 10px;
  top: 8px;
  background: var(--lb-blue);
  color: var(--lb-surface);
}

.lb-art-pl-t2 {
  --base-rot: 8deg;
  right: 8px;
  top: 4px;
  background: var(--lb-yellow);
}

.lb-art-pl-t3 {
  --base-rot: -6deg;
  left: 4px;
  bottom: 6px;
  background: var(--lb-surface);
}

.lb-art-pl-t4 {
  --base-rot: 10deg;
  right: 12px;
  bottom: 8px;
  background: var(--lb-mint);
}

/* Card 3 Artwork: Presets Frame & Prism Tag */
.lb-art-pr-frame {
  --base-rot: -9deg;
  right: 36px;
  bottom: 12px;
  width: 144px;
  height: 116px;
  padding: 10px;
  border-radius: 16px;
  border: 2px solid var(--lb-ink);
  background: var(--lb-surface);
  box-shadow: 5px 6px 0 var(--lb-ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lb-art-pr-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lb-art-pr-bars span {
  display: block;
  height: 12px;
  border-radius: 6px;
  border: 1.5px solid var(--lb-ink);
}

.lb-art-pr-bars span:nth-child(1) {
  background: linear-gradient(90deg, #f3d94e, #eb7b59);
}
.lb-art-pr-bars span:nth-child(2) {
  background: linear-gradient(90deg, #73cba3, #6aa6e8);
}
.lb-art-pr-bars span:nth-child(3) {
  background: linear-gradient(90deg, #b8336a, #d8c4f3);
}

.lb-art-pr-frame strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lb-art-pr-tag {
  --base-rot: 9deg;
  right: 10px;
  bottom: 8px;
  width: 74px;
  height: 82px;
  padding: 10px;
  border-radius: 16px;
  border: 2px solid var(--lb-ink);
  background: var(--lb-lilac);
  box-shadow: 5px 6px 0 var(--lb-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.lb-art-pr-tag span {
  font-family: var(--lb-display);
  font-size: 26px;
  line-height: 0.9;
}

.lb-art-pr-tag small {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Entrance & scroll choreography */
.lb-showcase-head {
  transform: translate3d(0, calc(var(--lb-showcase-p, 0) * 24px + (1 - var(--lb-showcase-enter, 1)) * 26px), 0);
}

.lb-showcase-card {
  --card-idx: 0;
  transform: translate3d(0, calc(var(--lb-showcase-p, 0) * (-40px - var(--card-idx, 0) * 10px)), 0) rotate(calc(var(--lb-showcase-p, 0) * (-2.4deg + var(--card-idx, 0) * 1.8deg)));
}
.lb-showcase-card:nth-child(2) { --card-idx: 1; }
.lb-showcase-card:nth-child(3) { --card-idx: 2; }

.lb-showcase[data-showcase-ready="true"]:not(.is-visible) .lb-showcase-head,
.lb-showcase[data-showcase-ready="true"] .lb-showcase-card:not(.is-card-visible) {
  opacity: 0;
  transform: translateY(36px);
  transition: none;
}

.lb-showcase[data-showcase-ready="true"].is-visible .lb-showcase-head {
  opacity: 1;
  transform: translate3d(0, calc(var(--lb-showcase-p, 0) * 24px + (1 - var(--lb-showcase-enter, 1)) * 26px), 0);
  transition: opacity 0.52s var(--lb-ease-out);
}

.lb-showcase[data-showcase-ready="true"] .lb-showcase-card.is-card-visible {
  opacity: 1;
  transform: translate3d(0, calc(var(--lb-showcase-p, 0) * (-40px - var(--card-idx, 0) * 10px) + (1 - var(--lb-showcase-enter, 1)) * (28px + var(--card-idx, 0) * 14px)), 0) rotate(calc(var(--lb-showcase-p, 0) * (-2.4deg + var(--card-idx, 0) * 1.8deg)));
  transition:
    opacity 0.52s var(--lb-ease-out),
    box-shadow 0.36s var(--lb-ease-out);
}

/* Intermediate desktop viewport adjustment */
@media (max-width: 1200px) and (min-width: 851px) {
  .lb-showcase {
    padding: 72px 32px;
  }

  .lb-showcase-card-title {
    font-size: 58px;
  }
}

/* Tablet breakpoint (768x1024 target ~627px height, 3 columns across) */
@media (max-width: 850px) {
  .lb-showcase {
    margin: 8px;
    min-height: 627px;
    padding: 28px 20px;
    border-radius: 26px;
    gap: 22px;
  }

  .lb-showcase-head {
    gap: 8px;
  }

  .lb-showcase-head h2 {
    font-size: 41px;
    line-height: 1.02;
  }

  .lb-showcase-sub {
    font-size: 14px;
  }

  .lb-showcase-grid {
    gap: 12px;
  }

  .lb-showcase-card {
    min-height: 368px;
    padding: 16px 14px 14px;
    border-radius: 20px;
    gap: 10px;
    box-shadow: 0 7px 0 var(--lb-ink);
  }

  .lb-showcase-tag,
  .lb-showcase-state-btn {
    font-size: 9px;
    padding: 4px 7px;
  }

  .lb-showcase-card-copy {
    gap: 8px;
  }

  .lb-showcase-card-title {
    font-size: 40px;
  }

  .lb-showcase-card-desc {
    font-size: 12px;
    line-height: 1.32;
  }

  .lb-showcase-cta {
    min-width: 118px;
    min-height: 44px;
    padding: 0 14px;
    font-size: 12px;
  }

  .lb-showcase-art {
    height: 108px;
  }

  .lb-art-wb-sheet {
    right: 36px;
    bottom: 4px;
    width: 78px;
    height: 86px;
    border-radius: 12px;
  }

  .lb-art-wb-cover {
    right: 6px;
    bottom: 4px;
    width: 84px;
    height: 94px;
    padding: 8px;
    border-radius: 12px;
  }

  .lb-art-wb-cover span {
    width: 22px;
    height: 22px;
    font-size: 9.5px;
  }

  .lb-art-wb-cover strong {
    font-size: 15px;
  }

  .lb-art-wb-pill {
    right: 84px;
    bottom: 14px;
    padding: 4px 7px;
    font-size: 9px;
  }

  .lb-art-pl-grid {
    right: 4px;
    bottom: 2px;
    width: 108px;
    height: 100px;
  }

  .lb-art-pl-tile {
    width: 46px;
    height: 44px;
    border-radius: 10px;
    font-size: 9.5px;
  }

  .lb-art-pl-tile small {
    font-size: 7.5px;
  }

  .lb-art-pr-frame {
    right: 24px;
    bottom: 6px;
    width: 100px;
    height: 82px;
    padding: 7px;
    border-radius: 12px;
  }

  .lb-art-pr-bars {
    gap: 4px;
  }

  .lb-art-pr-bars span {
    height: 8px;
  }

  .lb-art-pr-frame strong {
    font-size: 8.5px;
  }

  .lb-art-pr-tag {
    right: 4px;
    bottom: 4px;
    width: 54px;
    height: 60px;
    padding: 6px;
    border-radius: 12px;
  }

  .lb-art-pr-tag span {
    font-size: 18px;
  }

  .lb-art-pr-tag small {
    font-size: 7.5px;
  }
}

/* Mobile breakpoint (390x844 target ~1689px height, stacked cards) */
@media (max-width: 650px) {
  .lb-showcase {
    margin: 12px;
    min-height: 1689px;
    padding: 68px 20px 36px;
    border-radius: 24px;
    gap: 24px;
  }

  .lb-showcase-head {
    gap: 10px;
  }

  .lb-showcase-head h2 {
    font-size: 30px;
    line-height: 1.04;
  }

  .lb-showcase-sub {
    font-size: 15px;
  }

  .lb-showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
  }

  .lb-showcase-card {
    min-height: 432px;
    padding: 22px 22px 18px;
    border-radius: 24px;
    gap: 12px;
  }

  .lb-showcase-tag {
    font-size: 10.5px;
    padding: 5px 10px;
  }

  .lb-showcase-state-btn {
    min-height: 44px;
    font-size: 11px;
    padding: 6px 12px;
  }

  .lb-showcase-card-title {
    font-size: 64px;
  }

  .lb-showcase-card-desc {
    font-size: 15px;
    line-height: 1.4;
    max-width: 100%;
  }

  .lb-showcase-cta {
    min-width: 154px;
    min-height: 46px;
    padding: 0 20px;
    font-size: 14px;
  }

  .lb-showcase-art {
    height: 136px;
  }

  .lb-art-wb-sheet {
    right: 46px;
    width: 98px;
    height: 108px;
  }

  .lb-art-wb-cover {
    right: 10px;
    width: 104px;
    height: 116px;
    padding: 10px;
  }

  .lb-art-wb-cover strong {
    font-size: 18px;
  }

  .lb-art-wb-pill {
    right: 104px;
    bottom: 20px;
    font-size: 10px;
  }

  .lb-art-pl-grid {
    right: 8px;
    width: 132px;
    height: 124px;
  }

  .lb-art-pl-tile {
    width: 56px;
    height: 54px;
    font-size: 11px;
  }

  .lb-art-pr-frame {
    right: 30px;
    width: 122px;
    height: 98px;
  }

  .lb-art-pr-tag {
    right: 8px;
    width: 64px;
    height: 70px;
  }
}

/* Narrow Mobile (320x760) */
@media (max-width: 380px) {
  .lb-showcase {
    margin: 12px;
    padding: 72px 14px 36px;
    border-radius: 24px;
  }

  .lb-showcase-card {
    padding: 20px 16px 18px;
  }

  .lb-showcase-card-title {
    font-size: 52px;
  }
}

/* Reduced Motion */
[data-motion="reduce"] .lb-showcase-card,
[data-motion="reduce"] .lb-showcase-head,
[data-motion="reduce"] .lb-showcase-state-btn,
[data-motion="reduce"] .lb-showcase-cta,
[data-motion="reduce"] .lb-showcase-layer,
[data-motion="reduce"] .lb-showcase-art,
[data-motion="reduce"] .lb-showcase[data-showcase-ready="true"] .lb-showcase-head,
[data-motion="reduce"] .lb-showcase[data-showcase-ready="true"] .lb-showcase-card {
  transition: none !important;
  animation: none !important;
}

[data-motion="reduce"] .lb-showcase-art,
[data-motion="reduce"] .lb-showcase-head,
[data-motion="reduce"] .lb-showcase-card,
[data-motion="reduce"] .lb-showcase[data-showcase-ready="true"] .lb-showcase-head,
[data-motion="reduce"] .lb-showcase[data-showcase-ready="true"] .lb-showcase-card {
  transform: none !important;
}

[data-motion="reduce"] .lb-showcase-layer {
  transform: rotate(var(--base-rot, 0deg)) !important;
}

@media (prefers-reduced-motion: reduce) {
  .lb-showcase-card,
  .lb-showcase-head,
  .lb-showcase-state-btn,
  .lb-showcase-cta,
  .lb-showcase-layer,
  .lb-showcase-art,
  .lb-showcase[data-showcase-ready="true"] .lb-showcase-head,
  .lb-showcase[data-showcase-ready="true"] .lb-showcase-card {
    transition: none !important;
    animation: none !important;
  }

  .lb-showcase-art,
  .lb-showcase-head,
  .lb-showcase-card,
  .lb-showcase[data-showcase-ready="true"] .lb-showcase-head,
  .lb-showcase[data-showcase-ready="true"] .lb-showcase-card {
    transform: none !important;
  }

  .lb-showcase-layer {
    transform: rotate(var(--base-rot, 0deg)) !important;
  }
}
