/* Combo pack page (combo.html). Builds on site.css tokens and components.
   Sticker look stays on the three hero covers only; everything else is flat. */

/* hero */
.cb-hero { background: var(--beguni); color: var(--on-beguni); border-bottom: 3px solid var(--ink); overflow: hidden; }
.cb-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-block: 52px 64px; }
.cb-hero .eyebrow { color: var(--lebu); }
.cb-hero h1 { font-size: clamp(38px, 6vw, 66px); line-height: 1.08; max-width: 15ch; }
.cb-hero .lead { font-size: clamp(18px, 2vw, 21px); margin-top: 18px; max-width: 50ch; }
.cb-price { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.cb-hero .price .now { color: var(--lebu); font-size: clamp(52px, 8vw, 68px); }
.cb-hero .price .was { font-size: 22px; }
.cb-price .badge { transform: rotate(-3deg); }
.cb-price-note { margin-top: 8px; font-size: 16px; color: var(--lilac); }
.cb-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.cb-stack { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 460px; justify-self: center; }
.cb-stack img {
  position: absolute; width: 52%; aspect-ratio: 620 / 879; height: auto; object-fit: cover;
  border: 3px solid var(--ink); border-radius: 4px 10px 10px 4px; box-shadow: var(--shadow-sticker); background: var(--white);
}
.cb-stack-1 { left: 0; top: 10%; transform: rotate(-4deg); }
.cb-stack-3 { right: 0; top: 10%; transform: rotate(4deg); }
.cb-stack-2 { left: 24%; top: 0; z-index: 2; }

@media (max-width: 860px) {
  .cb-hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 28px 44px; }
  .cb-stack { order: -1; max-width: 270px; justify-self: center; }
}

/* numbers strip */
.strip .cb-stats { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; text-align: center; }
.cb-stats li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cb-stats b { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; color: var(--lebu); }
.cb-stats span { font-size: 16px; color: var(--paper-muted); }
@media (max-width: 600px) { .strip .cb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; } }

/* the path: learn, choose, grow */
.cb-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.cb-path li { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-md); padding: 22px; display: flex; flex-direction: column; position: relative; }
.cb-path li + li::before {
  content: ""; position: absolute; left: -15px; top: 44px; width: 12px; height: 12px;
  border-top: 3px solid var(--ink); border-right: 3px solid var(--ink); transform: rotate(45deg);
}
.cb-step { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--beguni); }
.cb-path h3 { font-size: 24px; margin-top: 6px; }
.cb-path p { margin-top: 8px; font-size: 17px; color: var(--ink-muted); }
.cb-path-book { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: 16px; color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--beguni); }
@media (max-width: 860px) {
  .cb-path { grid-template-columns: minmax(0, 1fr); }
  .cb-path li + li::before { left: 34px; top: -15px; transform: rotate(135deg); }
}

/* the three books */
.cb-books .section-head { margin-bottom: 8px; }
.cb-book { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: start; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-md); padding: 28px; margin-top: 24px; scroll-margin-top: 90px; }
.cb-book-cover img { display: block; width: 100%; border: 2px solid var(--ink); border-radius: 3px 8px 8px 3px; }
.cb-num { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 15px; background: var(--lebu); border: 2px solid var(--ink); border-radius: var(--radius-pill); padding: 2px 12px; }
.cb-book h3 { font-size: clamp(26px, 3.4vw, 34px); margin-top: 10px; }
.cb-sub { margin-top: 6px; color: var(--ink-muted); font-size: 17px; }
.cb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cb-tags .chip--white { border-color: var(--line); background: var(--paper); }
.cb-list { margin-top: 18px; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.cb-list li { font-size: 17px; line-height: 1.6; }
.cb-list svg { width: 24px; height: 24px; }
.cb-toc { margin-top: 18px; border-top: 2px dashed var(--line); padding-top: 14px; }
.cb-toc summary { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--beguni); cursor: pointer; }
.cb-toc-body { margin-top: 10px; font-size: 16px; line-height: 1.6; }
.cb-toc-body h4 { font-size: 17px; margin-top: 14px; }
.cb-toc-body ol { margin: 6px 0 0; padding-left: 1.7em; }
.cb-toc-body li { margin-top: 2px; }
.cb-toc-plans p { margin-top: 4px; color: var(--ink-muted); }
.cb-toc-extra { margin-top: 12px; font-weight: 600; }
@media (max-width: 760px) {
  .cb-book { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px; }
  .cb-book-cover { max-width: 170px; }
}

/* preview pages */
.cb-pages { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; overscroll-behavior-x: contain; }
.cb-page { scroll-snap-align: start; text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.cb-page img { display: block; width: 100%; border: 2px solid var(--ink); border-radius: 6px; background: var(--white); transition: transform .15s ease, box-shadow .15s ease; }
.cb-page:hover img { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.cb-page span { font-size: 15px; font-weight: 600; color: var(--ink-muted); }
.cb-viewer { border: 3px solid var(--ink); border-radius: var(--radius-md); padding: 14px; max-width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--paper); }
.cb-viewer::backdrop { background: rgba(22, 18, 46, .72); }
.cb-viewer img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 120px); object-fit: contain; }
.cb-viewer p { margin-top: 8px; font-weight: 600; font-size: 16px; }
.cb-viewer form { position: sticky; top: 0; display: flex; justify-content: flex-end; margin-bottom: 8px; }
.cb-close { font: inherit; font-size: 20px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); cursor: pointer; }

/* who */
.cb-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cb-who div { background: var(--lilac); border-radius: var(--radius-md); padding: 18px 20px; }
.cb-who b { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.cb-who p { margin-top: 4px; font-size: 16.5px; color: var(--ink-muted); }
@media (max-width: 860px) { .cb-who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cb-who { grid-template-columns: minmax(0, 1fr); } }

/* offer card */
.cb-offer { max-width: 680px; margin-inline: auto; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-md); padding: 30px; }
.cb-offer h2 { font-size: clamp(28px, 4vw, 38px); }
.cb-offer-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.cb-offer-list li { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1.5px solid var(--line); }
.cb-offer-list li::after { content: "✓"; font-weight: 800; color: var(--beguni); font-size: 20px; }
.cb-offer-list img { width: 46px; border: 1.5px solid var(--ink); border-radius: 2px 5px 5px 2px; }
.cb-offer-list b { display: block; font-size: 17.5px; line-height: 1.35; }
.cb-offer-list span { font-size: 15px; color: var(--ink-muted); }
.cb-offer-sum { margin-top: 18px; display: grid; gap: 6px; }
.cb-offer-sum .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 18px; }
.cb-offer-sum s { opacity: .7; text-decoration-thickness: 2px; }
.cb-offer-sum .total { margin-top: 6px; padding: 12px 16px; background: var(--lebu-tint); border: 2px solid var(--ink); border-radius: var(--radius-sm); }
.cb-offer-sum .total span { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.cb-offer-sum .total b { font-family: var(--font-display); font-weight: 800; font-size: 38px; line-height: 1; }
.cb-gets { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.cb-gets li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 16.5px; line-height: 1.5; }
.cb-gets svg { width: 22px; height: 22px; color: var(--beguni); margin-top: 2px; }
.cb-offer-btn { width: 100%; margin-top: 22px; font-size: 20px; padding-block: 15px; }
@media (max-width: 560px) { .cb-offer { padding: 20px; } .cb-gets { grid-template-columns: minmax(0, 1fr); } }

/* closing band */
.cb-final { background: var(--ink); color: var(--paper); }
.cb-final .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding-block: 56px; }
.cb-final h2 { font-size: clamp(30px, 4.6vw, 46px); }
.cb-final p { margin-top: 10px; color: var(--paper-muted); max-width: 46ch; }
.cb-final-buy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cb-final .price .now { color: var(--lebu); font-size: 52px; }
@media (max-width: 760px) { .cb-final .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 44px; } }

/* shop card on courses.html: three small covers instead of one */
.shop-cover--combo { position: relative; aspect-ratio: 1 / 1; display: block; }
.shop-cover--combo img { position: absolute; width: 56%; border: 2px solid var(--ink); border-radius: 3px 8px 8px 3px; background: var(--white); }
.shop-cover--combo img:nth-child(1) { left: 0; top: 12%; transform: rotate(-4deg); }
.shop-cover--combo img:nth-child(2) { right: 0; top: 12%; transform: rotate(4deg); }
.shop-cover--combo img:nth-child(3) { left: 22%; top: 0; }

/* checkout order card with three covers */
.order-covers { display: flex; gap: 6px; }
.order-covers img { width: 52px; border: 1.5px solid var(--ink); border-radius: 2px 5px 5px 2px; }
.order-item--combo { grid-template-columns: minmax(0, 1fr) !important; }
.order-item--combo ul { margin: 6px 0 0; padding-left: 1.2em; font-size: 15.5px; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) { .cb-page img { transition: none; } }
.shop-grid .shop-card--wide { grid-column: 1 / -1; }
.book-promo > .shop-cover--combo { width: 100%; max-width: 260px; }
@media (max-width: 760px) { .book-promo > .shop-cover--combo { max-width: 220px; } }
