/* Learning Station — product, success, library and player pages. Builds on store.css tokens. */
.store-wrap.wide { width: min(100% - 32px, 1240px); }
.store-wrap.center { text-align: center; }
.store .btn { min-height: 48px; padding-inline: 24px; display: inline-flex; align-items: center; justify-content: center; border: 0; font-weight: 600; text-decoration: none; cursor: pointer; }
.store .btn.small { min-height: 40px; padding-inline: 18px; font-size: 15px; }
.store .btn.wide { width: 100%; }
.page-title { margin: 8px 0 24px; font-size: clamp(30px, 5vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.store[dir="rtl"] .page-title { letter-spacing: 0; }
.kind { margin: 0; font-size: 14px; color: var(--muted); }

/* breadcrumbs */
.crumbs { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0 8px; }
.crumb-back, .crumb-lang { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--s-accent-text); font-size: 16px; font-weight: 500; text-decoration: none; }
.crumb-back:hover, .crumb-lang:hover { text-decoration: underline; text-underline-offset: 4px; }
.crumb-back .arrow { width: 9px; height: 9px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.store[dir="rtl"] .crumb-back .arrow { border-left: 0; border-bottom: 0; border-right: 2px solid currentColor; border-top: 2px solid currentColor; }

/* product page */
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: 64px; }
.product-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--s-radius); overflow: hidden; margin-bottom: 8px; }
.stage > svg { width: 84px; height: 84px; }
.stage.has-img > img { width: 100%; height: 100%; object-fit: cover; }
.stage.cover-book.has-img > img { object-fit: contain; }
.stage.playing { background: #000; display: block; }
.product-title { margin: 0; font-size: clamp(28px, 4.4vw, 42px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.store[dir="rtl"] .product-title { letter-spacing: 0; }
.product-sum { margin: 0; max-width: 62ch; font-size: 18px; line-height: 1.7; color: #424245; }
.sec { margin: 28px 0 0; font-size: 22px; font-weight: 700; }
.sec-sub { margin: -8px 0 0; color: var(--muted); font-size: 15px; }
.detail-list.roomy { gap: 12px; }
.detail-list.roomy li { font-size: 17px; }

.play { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; width: 100%; border: 0; background: transparent; color: #09212a; cursor: pointer; font: inherit; }
.play-icon { width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0, 60, 80, .18); position: relative; transition: transform .35s var(--s-spring); }
.play-icon::after { content: ""; position: absolute; top: 50%; left: 50%; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #09212a; transform: translate(-35%, -50%); }
.play:hover .play-icon { transform: scale(1.08); }
.play:active .play-icon { transform: scale(.94); transition-duration: .1s; }
.play-label { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .7); font-size: 14px; font-weight: 600; }
.play:focus-visible { outline: 3px solid #007995; outline-offset: -6px; }

/* curriculum / lesson lists (shared with the player sidebar) */
.curriculum { display: grid; gap: 12px; }
.curriculum details, .learn-side details { border-radius: 20px; background: var(--soft); overflow: hidden; }
.curriculum summary, .learn-side summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 20px; cursor: pointer; list-style: none; font-weight: 600; font-size: 16px; }
.curriculum summary::-webkit-details-marker, .learn-side summary::-webkit-details-marker { display: none; }
.curriculum summary::after, .learn-side summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-inline-start: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .35s var(--s-spring); }
.curriculum details[open] > summary::after, .learn-side details[open] > summary::after { transform: rotate(-135deg); }
.mod-name { flex: 1; }
.mod-count { font-size: 13px; font-weight: 500; color: var(--muted); }
.lessons { margin: 0; padding: 0 8px 8px; list-style: none; display: grid; gap: 2px; }
.lesson > a, .lesson-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: 14px; color: var(--ink); text-decoration: none; background: #fff; transition: background-color .2s, transform .1s; }
.lesson > a:hover { background: #f0fafd; }
.lesson > a:active { transform: scale(.985); }
.lesson.is-locked .lesson-row { color: var(--muted); }
.lesson.is-current > a { background: #e4f8fe; box-shadow: inset 0 0 0 1.5px var(--s-accent); }
.l-ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); }
.lesson.is-open .l-ico { background: var(--s-accent); }
.l-title { flex: 1; min-width: 0; font-size: 15px; line-height: 1.4; }
.l-dur { flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tag { flex: none; padding: 3px 10px; border-radius: 999px; background: #d9f8ff; color: #07566c; font-size: 12px; font-weight: 600; }
.i-play { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #09212a; margin-inline-start: 2px; }
.i-lock { position: relative; width: 11px; height: 8px; margin-top: 4px; border-radius: 2px; background: #8a8a90; }
.i-lock::before { content: ""; position: absolute; left: 1.5px; top: -6px; width: 5px; height: 6px; border: 1.5px solid #8a8a90; border-bottom: 0; border-radius: 4px 4px 0 0; }
.lesson.is-done .l-ico { background: #1a9b5f; }
.lesson.is-done .i-play { border: 0; width: 8px; height: 4px; margin: 0 0 3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* buy card */
.buy-card { position: sticky; top: calc(var(--site-header-height) + 24px); display: grid; gap: 12px; padding: 28px; border-radius: var(--s-radius); background: var(--soft); }
.buy-card.is-preview .store-note { margin: 0; line-height: 1.6; }
.buy-price { font-size: 38px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.buy-price.soon { font-size: 22px; font-weight: 600; color: var(--s-accent-text); }
.perks { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.perks li { position: relative; padding-inline-start: 22px; }
.perks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .45em; width: 9px; height: 5px; border-left: 2px solid #007995; border-bottom: 2px solid #007995; transform: rotate(-45deg); }

/* video + status */
.video { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 22px; overflow: hidden; background: #0c1418; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-empty { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; color: #9fb4bd; }
.video-empty svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.video-empty svg path { fill: currentColor; stroke: none; }
.video-empty p { margin: 0; font-size: 14px; }
.stage .video { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.link-btn { padding: 0; border: 0; background: none; color: var(--s-accent-text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* success */
.success { padding: clamp(40px, 8vw, 96px) 0; }
.success .check { width: 96px; height: 96px; margin-bottom: 12px; fill: none; stroke: #1a9b5f; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.success .check circle { stroke-dasharray: 214; stroke-dashoffset: 214; animation: s-draw .8s var(--s-spring) .1s forwards; }
.success .check path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: s-draw .5s var(--s-spring) .65s forwards; }
@keyframes s-draw { to { stroke-dashoffset: 0; } }
.success h1 { margin: 0 0 10px; font-size: clamp(30px, 5vw, 44px); font-weight: 700; }
.success .lead { margin: 0 auto 28px; max-width: 30em; font-size: 18px; line-height: 1.6; color: var(--muted); }
.mini-steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.mini-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 999px; background: var(--soft); font-size: 15px; font-weight: 500; }
.mini-steps .num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--s-accent); color: #09212a; font-weight: 700; font-size: 13px; }
.row-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* library */
.library { padding-bottom: 64px; }
.signin { max-width: 460px; padding: 28px; border-radius: var(--s-radius); background: var(--soft); }
.signin h2 { margin: 0 0 8px; font-size: 22px; }
.signin p { margin: 0 0 18px; color: var(--muted); line-height: 1.6; }
.lib-grid .card-body { gap: 10px; }
.progress { height: 6px; border-radius: 999px; background: #e3e5ea; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 100%; background: var(--s-accent); transform-origin: left center; transform: scaleX(0); transition: transform .6s var(--s-spring); }
[dir="rtl"] .progress > span { transform-origin: right center; }
.card { text-decoration: none; color: inherit; }

/* player */
.learn { padding-bottom: 64px; }
.learn-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.learn-main { display: grid; gap: 14px; min-width: 0; }
.lesson-title { margin: 6px 0 0; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.25; font-weight: 700; }
.learn-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.learn-actions [data-done][aria-pressed="true"] { background: #e6f6ee; color: #14724a; }
.preview-banner { margin: 0; }
.learn-side { position: sticky; top: calc(var(--site-header-height) + 20px); display: grid; gap: 12px; max-height: calc(100vh - var(--site-header-height) - 40px); overflow: auto; }
.side-progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px; padding: 16px 20px; border-radius: 20px; background: var(--soft); font-size: 14px; color: var(--muted); }
.side-progress strong { color: var(--ink); font-size: 18px; }
.side-progress .progress { grid-column: 1 / -1; }
.downloads { padding-bottom: 48px; }
.file-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 640px; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-radius: 18px; background: var(--soft); }

/* mobile: buy card becomes a bottom bar */
@media (max-width: 900px) {
  .store-manual-product-page .product-grid { padding-bottom: 190px; }
  .store-manual-product-page .support-widget { bottom: calc(160px + env(safe-area-inset-bottom)); }
  .product-grid, .learn-grid { grid-template-columns: 1fr; }
  .learn-side { position: static; max-height: none; }
  .product-grid { padding-bottom: 120px; }
  .product-grid.is-preview { padding-bottom: 40px; }
  .buy-card { position: fixed; z-index: 20; inset-inline: 0; bottom: 0; top: auto; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px; padding: 14px max(16px, env(safe-area-inset-left)) calc(14px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right)); border-radius: 24px 24px 0 0; background: rgba(245, 245, 247, .92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 -8px 30px rgba(0, 0, 0, .08); }
  .buy-card.is-preview { position: static; grid-template-columns: 1fr; border-radius: var(--s-radius); box-shadow: none; }
  .buy-card .btn.secondary, .buy-card .perks { display: none; }
  .buy-card .btn.wide { width: auto; min-width: 150px; }
  .buy-price { font-size: 28px; }
}
@media (max-width: 640px) { .stage > svg { width: 64px; height: 64px; } .product-sum { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .success .check circle, .success .check path { stroke-dashoffset: 0 !important; } }
@media (prefers-reduced-transparency: reduce) { .buy-card { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--soft); } }

.stage:has(> .play) > svg { display: none; }
.buy-card .btn.secondary { background: #fff; }
.learn-side .lesson > a, .learn-side .lesson-row { background: #fff; }
.success .check { display: block; margin-inline: auto; }
@media (max-width: 900px) { body:has(.buy-card) .support-widget { bottom: calc(96px + env(safe-area-inset-bottom)); } }
@media (max-width: 900px) { body.store-manual-product-page:has(.buy-card) .support-widget { bottom: calc(160px + env(safe-area-inset-bottom)); } }
.lib-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.toolkit-description{margin:24px 0;max-width:70ch}.toolkit-description .sec{margin-bottom:10px}.toolkit-description p{margin:0;color:var(--muted);line-height:1.75;font-size:17px}

/* The manual-order CTA already opens WhatsApp; keep the floating support control clear of product copy. */
.store-manual-product-page .support-widget{display:none}
