/* Cairo (SIL OFL), self-hosted. Paths are relative to the page; adjust if the site is served from a sub-folder. */
@font-face{font-family:"Cairo";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/cairo-arabic-400-normal.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"Cairo";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/cairo-latin-400-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Cairo";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/cairo-arabic-600-normal.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"Cairo";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/cairo-latin-600-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Cairo";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/cairo-arabic-700-normal.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"Cairo";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/cairo-latin-700-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Learning Station — uses the site's tokens (apple-theme.css) and cyan accent (brand-cyan.css). */
.store { --s-font: "Cairo", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Tahoma, "Helvetica Neue", Arial, sans-serif; --s-accent: #00caff; --s-accent-text: #007995; --s-tint: #effbfe; --s-warm: #fff1e8; --s-radius: 28px; font-family: var(--s-font); color: var(--ink); }
.store button, .store input, .store .btn { font-family: inherit; }
.store[dir="rtl"] { text-align: right; }
.store-wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
.store-wrap.narrow { width: min(100% - 32px, 720px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero */
.store-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); text-align: center; background: radial-gradient(ellipse 50% 70% at 50% 0, rgba(0, 202, 255, .10), transparent 70%); }
.store-eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--s-accent-text); }
.store-hero h1 { margin: 0; font-size: clamp(38px, 7vw, 68px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; }
.store[dir="rtl"] .store-hero h1, .store[dir="rtl"] h2 { letter-spacing: 0; }
.store-lead { max-width: 34em; margin: 16px auto 0; font-size: clamp(17px, 2.2vw, 21px); line-height: 1.5; color: var(--muted); }
.store-tools { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--soft); }
.seg button { min-height: 38px; min-width: 88px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.store-link { min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--s-accent-text); font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; border-radius: 12px; }
.store-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Sections */
.store-section { padding: clamp(28px, 5vw, 64px) 0; }
.store-soft { background: var(--soft); }
.store h2 { margin: 0 0 24px; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.store-note { color: var(--muted); }

/* Filter chips */
.chips { display: flex; gap: 8px; margin-bottom: 24px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--soft); color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s, transform .1s; }
.chip:hover { background: #e8e8ed; }
.chip:active { transform: scale(.97); }
.chip[aria-selected="true"] { background: var(--ink); color: #fff; }

/* Grid + cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; padding: 0; border: 0; border-radius: var(--s-radius); background: var(--soft); color: inherit; font: inherit; text-align: start; cursor: pointer; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(24, 47, 58, .10); }
.card:active { transform: scale(.98); transition-duration: .1s; }
.card:focus-visible, .chip:focus-visible, .seg button:focus-visible, .store-link:focus-visible { outline: 3px solid #007995; outline-offset: 3px; }
.cover { display: grid; place-items: center; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--s-tint), #e3f6fb); color: #0a6f8a; }
.cover.has-img { overflow: hidden; }
.cover.has-img img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cover-book { background: linear-gradient(135deg, var(--s-warm), #ffe6d6); color: #a45a2c; }
.cover-book.has-img { background: #070714; }
.cover-book.has-img img { object-fit: contain; }
.cover-template { background: linear-gradient(135deg, #f0f1f5, #e4e6ee); color: #4b5264; }
.cover svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cover-course svg path { fill: currentColor; stroke: none; }
.cover-big { border-radius: 20px; aspect-ratio: 16 / 8; }
.cover-big svg { width: 68px; height: 68px; }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.4; }
.badge-lang { color: var(--muted); font-weight: 500; }
.badge-sample { background: #fff4d6; color: #7a5a00; }
.badge-free { background: #dff8ff; color: #066c86; }
.card-free .card-price { color: #087e9c; }
.card-title { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
.card-sum { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; font-size: 14px; }
.card-meta { color: var(--muted); }
.card-price { font-weight: 650; font-size: 16px; }
.card-price.soon { font-weight: 500; font-size: 14px; color: var(--s-accent-text); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 14px; padding: 24px; border-radius: var(--s-radius); background: #fff; }
.steps .num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--s-accent); color: #09212a; font-weight: 700; }
.steps strong { display: block; margin-bottom: 4px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Refund */
.refund p { margin: 0 0 14px; font-size: 17px; line-height: 1.7; color: #424245; }

/* Sheet (dialog) */
.sheet { width: min(100%, 560px); max-height: min(92vh, 860px); margin: auto; padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); overflow: auto; overscroll-behavior: contain; }
.sheet::backdrop { background: rgba(29, 29, 31, .38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet[open] { animation: sheet-in .38s var(--ease); }
.sheet[open]::backdrop { animation: fade-in .3s ease; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
body:has(dialog[open]) { overflow: hidden; }
.sheet-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; padding: 12px 12px 0; pointer-events: none; }
.sheet-bar button { pointer-events: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(245, 245, 247, .92); color: var(--ink); cursor: pointer; font-size: 0; position: relative; transition: transform .1s; }
.sheet-bar button:active { transform: scale(.94); }
.sheet-bar button[hidden] { display: none; }
.sheet-close { margin-inline-start: auto; }
.sheet-close::before, .sheet-close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transform: translate(-50%, -50%) rotate(45deg); }
.sheet-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.sheet-back::before { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translate(-30%, -50%) rotate(45deg); }
.store[dir="rtl"] .sheet-back::before { transform: translate(-70%, -50%) rotate(-135deg); }
.sheet-bar { flex-direction: row; }
.store[dir="rtl"] .sheet-bar { flex-direction: row-reverse; }
.store[dir="rtl"] .sheet-close { margin-inline-start: 0; margin-inline-end: auto; }
.sheet-body { padding: 0 24px 24px; margin-top: -32px; }
.detail { display: flex; flex-direction: column; gap: 14px; padding-top: 56px; }
.detail .cover-big { margin-top: -44px; }
.detail-title { margin: 6px 0 0; font-size: 26px; line-height: 1.2; font-weight: 700; }
.detail-sum { margin: 0; color: #424245; font-size: 16px; line-height: 1.6; }
.detail-meta { margin: 0; color: var(--muted); font-size: 14px; }
.detail-sub { margin: 8px 0 0; font-size: 15px; font-weight: 650; }
.detail-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.detail-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.detail-list svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: #007995; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sample-note { margin: 0; padding: 10px 14px; border-radius: 14px; background: #fff4d6; color: #7a5a00; font-size: 14px; }
.buybar { position: sticky; bottom: -24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 8px -24px -24px; padding: 16px 24px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid #ececf0; }
.buy-price { font-size: 20px; }
.buy-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-actions .btn, .detail .btn.wide { min-height: 48px; padding-inline: 24px; border: 0; font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.btn.wide { width: 100%; }
.btn:active { transform: scale(.97); }

/* Checkout form */
.order { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--soft); font-size: 15px; }
.form { display: grid; gap: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.field input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.field input:focus { outline: 0; border-color: var(--s-accent); box-shadow: 0 0 0 4px rgba(0, 202, 255, .16); }
.hint { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: #007995; }
.methods-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.method-row { display: flex; flex-wrap: wrap; gap: 8px; }
.method { padding: 8px 14px; border-radius: 12px; background: var(--soft); font-size: 14px; }
.status { margin: 0; min-height: 1.4em; font-size: 14px; line-height: 1.5; color: #b3261e; }
.status.ok { color: #1a7f4b; }
.status.info { padding: 12px 14px; border-radius: 14px; background: #eef9fd; color: #0b5b73; }

/* Responsive */
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .cover { aspect-ratio: 16 / 7; }
  .store-hero { text-align: start; }
  .store[dir="rtl"] .store-hero { text-align: right; }
  .store-tools { justify-content: flex-start; }
  .sheet { width: 100%; max-width: none; max-height: 92vh; margin: auto 0 0; border-radius: 28px 28px 0 0; }
  .sheet[open] { animation-name: sheet-up; }
  @keyframes sheet-up { from { transform: translateY(100%); } }
  .sheet-body { padding: 0 20px 20px; }
  .buybar { margin: 8px -20px -20px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); bottom: -20px; }
  .buy-actions { flex: 1; } .buy-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .chip, .seg button { transition: none; } .card:hover { transform: none; }
  .sheet[open], .sheet[open]::backdrop { animation: fade-in .15s ease; }
}
@media (prefers-reduced-transparency: reduce) { .sheet::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(29, 29, 31, .6); } .buybar { backdrop-filter: none; background: #fff; } }
@media (prefers-contrast: more) { .card, .order, .method, .steps li { border: 1px solid currentColor; } }




/* ---- Motion: a few Apple-style moments, all transform/opacity, all off under reduced motion ---- */
:root { --s-spring: cubic-bezier(.32, .72, 0, 1); }
.store .store-eyebrow, .store .store-hero h1, .store .store-lead, .store .store-tools { animation: s-rise .8s var(--s-spring) both; }
.store .store-hero h1 { animation-delay: .06s; } .store .store-lead { animation-delay: .14s; } .store .store-tools { animation-delay: .22s; }
@keyframes s-rise { from { opacity: 0; transform: translateY(14px); } }
.store-hero { position: relative; overflow: hidden; }
.store-hero::before { content: ""; position: absolute; inset: -20% 10% auto; height: 70%; background: radial-gradient(ellipse at 50% 40%, rgba(0, 202, 255, .16), transparent 65%); animation: s-breathe 9s ease-in-out infinite alternate; pointer-events: none; }
.store-hero > * { position: relative; }
@keyframes s-breathe { from { transform: scale(1); opacity: .8; } to { transform: scale(1.12); opacity: 1; } }
/* sliding selection pill */
.seg, .chips { position: relative; }
.seg .ind, .chips .ind { position: absolute; top: 3px; left: 0; height: calc(100% - 6px); border-radius: 999px; pointer-events: none; transition: transform .45s var(--s-spring), width .45s var(--s-spring); will-change: transform; }
.seg .ind { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.chips .ind { top: 0; height: 44px; background: var(--ink); }
.seg button, .chip { position: relative; z-index: 1; }
.seg button[aria-pressed="true"] { background: transparent; box-shadow: none; color: var(--ink); }
.chip[aria-selected="true"] { background: transparent; color: #fff; }
.chip { transition: color .25s ease, transform .1s; }
.chips { padding-block: 0 4px; }
/* cards: reveal on scroll (only when JS has marked the grid) and icon response */
.js-reveal .card { opacity: 0; transform: translateY(22px); }
.js-reveal .card.in { opacity: 1; transform: none; transition: opacity .7s ease var(--d, 0s), transform .8s var(--s-spring) var(--d, 0s), box-shadow .35s var(--ease); }
.js-reveal .card.in:hover { transform: translateY(-4px); transition-delay: 0s; }
.js-reveal .card.in:active { transform: scale(.98); transition-duration: .1s; transition-delay: 0s; }
.cover svg { transition: transform .6s var(--s-spring); }
.card:hover .cover svg { transform: scale(1.12) rotate(-3deg); }
.steps li { transition: transform .5s var(--s-spring); }
.steps li:hover { transform: translateY(-3px); }
.js-reveal .steps li, .js-reveal .refund { opacity: 0; transform: translateY(18px); }
.js-reveal .steps li.in, .js-reveal .refund.in { opacity: 1; transform: none; transition: opacity .7s ease var(--d, 0s), transform .8s var(--s-spring) var(--d, 0s); }
/* sheet: material arrives (blur + scale), content rises */
.sheet[open] { animation: s-sheet .55s var(--s-spring); }
.sheet[open]::backdrop { animation: s-backdrop .45s ease both; }
@keyframes s-sheet { from { opacity: 0; transform: translateY(32px) scale(.97); } }
@keyframes s-backdrop { from { opacity: 0; -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); } }
.detail > * { animation: s-rise .5s var(--s-spring) both; }
.detail > *:nth-child(2) { animation-delay: .04s; } .detail > *:nth-child(3) { animation-delay: .08s; } .detail > *:nth-child(4) { animation-delay: .12s; } .detail > *:nth-child(5) { animation-delay: .16s; }
.btn { transition: transform .15s var(--s-spring), background-color .2s; }
@media (max-width: 640px) { .sheet[open] { animation-name: s-sheet-up; } @keyframes s-sheet-up { from { transform: translateY(100%); } } }
@media (prefers-reduced-motion: reduce) {
  .store *, .store *::before, .store *::after, .sheet, .sheet::backdrop { animation: none !important; transition: none !important; }
  .js-reveal .card, .js-reveal .steps li, .js-reveal .refund { opacity: 1; transform: none; }
}
.card-price { font-size: 19px; }
.card-price.soon { font-size: 14px; }

.cover-template.has-img{background:#10212c}.cover-template.has-img img{object-fit:cover}
