:root {
  --ink: #25152f;
  --muted: #6e6274;
  --plum: #6d2e8c;
  --plum-deep: #4c1b68;
  --violet: #9d55d6;
  --lilac: #eadcf6;
  --mist: #fff0f3;
  --paper: #fff7f3;
  --peach: #f9dedb;
  --gold: #d8a94c;
  --green: #1e7a5a;
  --line: #e9e0ed;
  --shadow: 0 20px 60px rgba(59, 28, 73, .1);
  --shadow-soft: 0 10px 35px rgba(61, 32, 75, .07);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

@font-face { font-family: "IRANYekan"; src: url("fonts/iranyekan-regular.woff") format("woff"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "IRANYekan"; src: url("fonts/iranyekan-medium.woff") format("woff"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "IRANYekan"; src: url("fonts/iranyekan-bold.woff") format("woff"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "IRANYekan"; src: url("fonts/iranyekan-extrabold.woff") format("woff"); font-style: normal; font-weight: 800; font-display: swap; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: "IRANYekan", Tahoma, Arial, sans-serif; line-height: 1.75; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
body.install-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.35; letter-spacing: -.025em; }
h1 { font-size: clamp(2.15rem, 4vw, 4.25rem); margin-bottom: 20px; }
h2 { font-size: clamp(1.7rem, 2.7vw, 2.55rem); margin-bottom: 12px; }
h3 { font-size: 1.08rem; }
p { color: var(--muted); }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid rgba(157, 85, 214, .32); outline-offset: 3px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 84px 0; }
.section-tight { padding: 28px 0 56px; }
.section-tint { background: rgba(241, 215, 239, .22); }
.skip-link { position: fixed; top: -80px; right: 20px; z-index: 200; padding: 12px 18px; border-radius: 0 0 12px 12px; background: var(--plum-deep); color: white; transition: top .2s; }
.skip-link:focus { top: 0; }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; background: rgba(255, 253, 253, .88); backdrop-filter: blur(18px); transition: box-shadow .2s, border-color .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(55, 26, 68, .07); }
.header-row { position: relative; display: flex; align-items: center; gap: 28px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand > span:last-child { display: grid; line-height: 1.3; }
.brand strong { font-size: 1.02rem; }
.brand small { margin-top: 3px; color: var(--muted); font-size: .66rem; }
.brand-mark { display: grid; width: 46px; height: 46px; place-items: center; position: relative; overflow: hidden; border: 1px solid rgba(109, 46, 140, .25); border-radius: 50% 50% 45% 45%; background: linear-gradient(145deg, #f6e9ff, #fff 55%, #f7dce4); color: var(--plum); font: 700 1.45rem Georgia, serif; box-shadow: inset 0 0 0 5px white, 0 5px 18px rgba(99, 38, 124, .12); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; bottom: -9px; width: 25px; height: 23px; border: 2px solid rgba(157, 85, 214, .28); border-radius: 50% 50% 0 50%; transform: rotate(28deg); }
.brand-mark::after { transform: rotate(-28deg); }
.desktop-nav { display: flex; align-items: center; gap: 25px; margin-inline: auto; color: #594b5e; font-size: .89rem; }
.desktop-nav a { position: relative; padding: 28px 0 24px; }
.desktop-nav a::after { content: ""; position: absolute; right: 0; bottom: 19px; width: 0; height: 2px; border-radius: 2px; background: var(--violet); transition: width .2s; }
.desktop-nav a:hover::after, .desktop-nav a.active::after { width: 100%; }
.desktop-nav a.active { color: var(--plum-deep); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { display: inline-grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
.icon-button:hover { border-color: #cfb5dd; background: #fbf5ff; transform: translateY(-2px); }
.profile-link { display: none; color: var(--plum); }
.menu-toggle { display: none; }
.profile-glyph { position: relative; width: 20px; height: 20px; }
.profile-glyph::before { content: ""; position: absolute; top: 0; left: 50%; width: 8px; height: 8px; transform: translateX(-50%); border: 2px solid currentColor; border-radius: 50%; }
.profile-glyph::after { content: ""; position: absolute; right: 2px; bottom: 0; left: 2px; height: 8px; border: 2px solid currentColor; border-bottom: 0; border-radius: 11px 11px 0 0; }
.search-glyph { position: relative; width: 19px; height: 19px; border: 2px solid currentColor; border-radius: 50%; }
.search-glyph::after { content: ""; position: absolute; left: -4px; bottom: -3px; width: 7px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(45deg); transform-origin: center; }
.menu-glyph { width: 21px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 -6px currentColor, 0 6px currentColor; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border: 1px solid transparent; border-radius: 13px; font-weight: 700; font-size: .88rem; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, var(--plum), #9547c5); color: white; box-shadow: 0 9px 22px rgba(109, 46, 140, .2); }
.button-primary:hover { box-shadow: 0 13px 28px rgba(109, 46, 140, .28); }
.button-ghost { border-color: #d9c7e2; background: rgba(255,255,255,.65); color: var(--plum-deep); }
.button-outline { border-color: #ceb2dd; background: transparent; color: var(--plum-deep); }
.button-small { min-height: 39px; padding: 8px 14px; border-color: #d7bde4; background: #fbf6fe; color: var(--plum-deep); font-size: .77rem; }
.button-wide { width: 100%; min-height: 53px; }
.text-link { color: var(--plum); font-weight: 700; font-size: .88rem; }
.text-link:hover { color: var(--plum-deep); }
.text-link.strong { font-size: .98rem; }
.search-panel { display: flex; max-height: 0; flex-direction: column; gap: 7px; opacity: 0; visibility: hidden; overflow: hidden; transition: max-height .25s, opacity .2s, visibility .2s, padding .25s; }
.search-panel.is-open { max-height: 120px; opacity: 1; visibility: visible; padding-bottom: 18px; }
.search-panel label { font-size: .78rem; color: var(--muted); }
.search-panel > div { display: flex; gap: 8px; overflow: hidden; }
.search-panel input { width: 100%; min-height: 47px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.mobile-menu { display: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; color: var(--plum); font-size: .79rem; font-weight: 800; letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--gold); }
.hero-carousel { position: relative; overflow: hidden; border: 1px solid #eadcf1; border-radius: var(--radius-xl); background: linear-gradient(115deg, #faf6fc, #f2e8f8 58%, #f9e9e5); box-shadow: var(--shadow); }
.hero-slide { display: none; min-height: 510px; grid-template-columns: 1.08fr .92fr; align-items: stretch; }
.hero-slide.is-active { display: grid; animation: fadeSlide .55s ease both; }
@keyframes fadeSlide { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 6vw, 80px); }
.hero-copy h1, .hero-copy h2 { max-width: 750px; }
.hero-copy h2 { font-size: clamp(2rem, 3.8vw, 3.65rem); }
.hero-copy > p { max-width: 650px; margin-bottom: 28px; font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.price-inline { color: var(--plum-deep); font-weight: 800; }
.price-inline del { display: block; color: #988e9b; font-size: .74rem; font-weight: 400; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; padding: 0; list-style: none; }
.trust-row li { display: flex; min-width: 132px; flex-direction: column; padding-left: 15px; border-left: 1px solid #dacbe2; color: var(--muted); font-size: .71rem; }
.trust-row strong { color: var(--ink); font-size: .98rem; }
.hero-visual { position: relative; min-height: 510px; overflow: hidden; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 45%, rgba(248,244,251,.35)); pointer-events: none; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.hero-slide:nth-child(2) .hero-visual img, .hero-slide:nth-child(3) .hero-visual img { object-position: center 25%; }
.visual-note { position: absolute; right: 24px; bottom: 23px; z-index: 1; padding: 8px 12px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; background: rgba(35,20,46,.75); color: white; font-size: .7rem; backdrop-filter: blur(10px); }
.slider-dots { position: absolute; right: clamp(38px, 6vw, 80px); bottom: 24px; z-index: 5; display: flex; gap: 8px; }
.slider-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #cdb7d7; cursor: pointer; transition: width .25s, background .25s; }
.slider-dots button.is-active { width: 28px; background: var(--plum); }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2 { margin-bottom: 6px; }
.section-heading p { margin-bottom: 0; }
.carousel-controls { display: flex; direction: ltr; gap: 8px; }
.course-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(285px, 31.2%); gap: 20px; overflow-x: auto; direction: ltr; padding: 4px calc((100% - 31.2%) / 2) 28px; scroll-padding-inline: calc((100% - 31.2%) / 2); scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #c4a7d4 transparent; cursor: grab; }
.course-carousel.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.course-card { direction: rtl; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-soft); scroll-snap-align: center; transition: transform .25s, box-shadow .25s, border-color .25s; }
.course-card:hover { transform: translateY(-5px); border-color: #d6bde2; box-shadow: var(--shadow); }
.course-card.featured { border-color: #d8bde6; }
.card-media { position: relative; height: 228px; overflow: hidden; background: #eee7f0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .4s; }
.course-card:hover .card-media img { transform: scale(1.035); }
.badge, .discount { display: inline-flex; min-height: 26px; align-items: center; justify-content: center; padding: 4px 10px; border-radius: 999px; background: #f2e8f8; color: var(--plum-deep); font-size: .68rem; font-weight: 800; }
.card-media .badge { position: absolute; top: 13px; right: 13px; z-index: 2; }
.badge-accent { background: var(--plum); color: white; }
.badge-free { background: #daf2e8; color: #14654a; }
.discount { position: absolute; top: 13px; left: 13px; background: #fff3cd; color: #7e5413; }
.save-button { position: absolute; left: 13px; bottom: 13px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; background: rgba(255,255,255,.88); color: var(--plum); font-size: 1.35rem; cursor: pointer; backdrop-filter: blur(8px); }
.save-button[aria-pressed="true"] { background: var(--plum); color: white; }
.card-body { padding: 19px; }
.card-body h3 { min-height: 2.8em; margin-bottom: 6px; font-size: 1.03rem; }
.card-body > p { min-height: 3.2em; margin-bottom: 14px; font-size: .77rem; line-height: 1.65; }
.course-meta { display: flex; gap: 16px; padding: 11px 0; border-top: 1px solid #f0eaf2; border-bottom: 1px solid #f0eaf2; color: #776b7b; font-size: .7rem; }
.card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 14px; }
.price { display: grid; }
.price del { color: #a69da9; font-size: .64rem; }
.price strong { color: var(--plum-deep); font-size: .91rem; }
.price small { font-size: .62rem; }
.center-action { display: flex; justify-content: center; margin-top: 20px; }

.free-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.free-card { display: grid; min-height: 205px; grid-template-columns: 42% 1fr; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-soft); transition: transform .2s, box-shadow .2s; }
.free-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.free-card img { width: 100%; height: 100%; min-height: 205px; object-fit: cover; object-position: center 24%; }
.free-card > div { align-self: center; padding: 22px 18px; }
.free-card > div > span { color: var(--plum); font-size: .68rem; }
.free-card h3 { margin: 6px 0; }
.free-card p { margin-bottom: 14px; font-size: .72rem; }
.free-card b { color: var(--plum); font-size: .75rem; }
.free-card > .badge { position: absolute; top: 12px; right: 12px; }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial-card { margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-soft); }
.quote-mark { height: 35px; color: #c795df; font: 700 3.6rem/1 Georgia, serif; }
.testimonial-card blockquote { min-height: 124px; margin: 10px 0 23px; color: #4c414f; font-size: .83rem; line-height: 1.95; }
.testimonial-card figcaption { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding-top: 17px; border-top: 1px solid var(--line); }
.avatar { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #ead7f4, #f8e6e0); color: var(--plum); font-weight: 800; }
.testimonial-card figcaption > div { display: grid; }
.testimonial-card strong { font-size: .76rem; }
.testimonial-card small { color: var(--muted); font-size: .62rem; }
.stars { color: var(--gold); font-size: .68rem; letter-spacing: 1px; white-space: nowrap; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-soft); }
.article-card > a { display: block; height: 210px; overflow: hidden; }
.article-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .35s; }
.article-card:hover img { transform: scale(1.04); }
.article-card > div { padding: 20px; }
.article-meta { color: var(--plum); font-size: .68rem; }
.article-card h3 { margin: 7px 0; }
.article-card p { min-height: 3.2em; margin-bottom: 12px; font-size: .75rem; }
.mobile-only { display: none; }

.faq-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; align-items: start; }
.faq-intro { position: sticky; top: 112px; }
.faq-intro p { max-width: 370px; }
.accordion { display: grid; gap: 10px; }
.accordion details { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; transition: border-color .2s, box-shadow .2s; }
.accordion details[open] { border-color: #d9bee6; box-shadow: var(--shadow-soft); }
.accordion summary { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 19px; list-style: none; color: #453849; font-size: .86rem; font-weight: 700; cursor: pointer; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary > span:last-child { color: var(--plum); font-size: 1.3rem; transition: transform .2s; }
.accordion details[open] summary > span:last-child { transform: rotate(45deg); }
.accordion details > p { margin: 0; padding: 0 19px 20px; font-size: .78rem; }

.contact-widget { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); z-index: 120; display: grid; justify-items: start; gap: 10px; }
.contact-fab { display: inline-flex; min-height: 54px; align-items: center; gap: 9px; padding: 7px 9px 7px 17px; border: 0; border-radius: 999px; background: var(--plum-deep); color: white; box-shadow: 0 13px 35px rgba(60, 25, 79, .28); cursor: pointer; }
.contact-fab span { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #a45dd0, #e1b66b); }
.contact-fab span img { width: 24px; height: 24px; object-fit: contain; filter: invert(1); }
.contact-fab b { font-size: .76rem; }
.contact-panel { width: min(355px, calc(100vw - 40px)); padding: 18px; visibility: hidden; opacity: 0; transform: translateY(12px) scale(.97); border: 1px solid #dfcce8; border-radius: var(--radius-lg); background: white; box-shadow: 0 25px 70px rgba(47, 22, 60, .23); transform-origin: bottom right; transition: opacity .2s, transform .2s, visibility .2s; }
.contact-panel.is-open { visibility: visible; opacity: 1; transform: none; }
.contact-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.contact-panel-head > div { display: grid; }
.contact-panel-head strong { font-size: .88rem; }
.contact-panel-head span { color: var(--muted); font-size: .65rem; }
.contact-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.contact-options a { display: flex; min-height: 49px; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fdfafd; font-size: .7rem; transition: border-color .2s, background .2s; }
.contact-options a:hover { border-color: #d4b4e2; background: #f8f0fb; }
.contact-options a span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: #eee0f5; color: var(--plum); font-weight: 800; }
.contact-options a span img { width: 19px; height: 19px; object-fit: contain; }
.back-to-cta { position: fixed; left: max(20px, env(safe-area-inset-left)); bottom: max(22px, env(safe-area-inset-bottom)); z-index: 119; display: grid; width: 54px; height: 54px; place-items: center; visibility: hidden; opacity: 0; transform: translateY(10px) scale(.9); border: 4px solid #ad68df; border-radius: 50%; background: rgba(255,255,255,.92); color: #202532; box-shadow: 0 13px 35px rgba(60,25,79,.18); pointer-events: none; backdrop-filter: blur(10px); transition: opacity .2s, transform .2s, visibility .2s; }
.back-to-cta.is-visible { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
.back-to-cta span { margin-top: -3px; font: 500 2.05rem/1 Arial, sans-serif; }

.site-footer { padding: 58px 0 18px; background: #281732; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .8fr 1fr; gap: 50px; }
.brand-light small, .site-footer p { color: #cbbfd0; }
.site-footer h2 { margin: 8px 0 16px; font-size: .95rem; }
.site-footer > .container > div:not(.footer-brand) { display: grid; align-content: start; gap: 8px; }
.site-footer a:not(.brand) { color: #d8cfdc; font-size: .73rem; }
.site-footer a:hover { color: white; }
.footer-brand p { max-width: 330px; margin: 19px 0 0; font-size: .75rem; }
.social-row { display: flex !important; gap: 8px !important; }
.social-row a { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #5e4968; border-radius: 50%; font-size: 1rem !important; }
.social-row a img { width: 20px; height: 20px; object-fit: contain; }
.site-footer .social-row img[src$="/instagram.svg"],
.site-footer .social-row img[src$="/telegram.svg"] { filter: brightness(0) invert(1); opacity: .9; }
.footer-social-row { margin-top: 8px; }
.footer-social-row a { width: 30px; height: 30px; background: rgba(255,255,255,.06); }
.footer-social-row a img { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 18px; border-top: 1px solid #4a3853; color: #a99caf; font-size: .64rem; }

/* Compact home page: every viewport reaches the course content quickly. */
body[data-page="home"] .section { padding: 44px 0; }
body[data-page="home"] .section-tight { padding: 16px 0 22px; }
body[data-page="home"] #paid-courses { padding-top: 34px; }
body[data-page="home"] .hero-carousel { border-radius: 24px; box-shadow: 0 14px 40px rgba(59, 28, 73, .09); }
body[data-page="home"] .hero-slide { min-height: 348px; grid-template-columns: 1.22fr .78fr; }
body[data-page="home"] .hero-copy { padding: 32px clamp(28px, 4vw, 52px); }
body[data-page="home"] .hero-copy h1,
body[data-page="home"] .hero-copy h2 { max-width: 650px; margin-bottom: 12px; font-size: clamp(1.8rem, 3vw, 2.7rem); }
body[data-page="home"] .hero-copy > p { max-width: 610px; margin-bottom: 17px; font-size: .83rem; line-height: 1.8; }
body[data-page="home"] .hero-actions { gap: 13px; }
body[data-page="home"] .hero-visual { min-height: 348px; }
body[data-page="home"] .visual-note { right: 16px; bottom: 15px; padding: 6px 10px; font-size: .62rem; }
body[data-page="home"] .slider-dots { right: clamp(28px, 4vw, 52px); bottom: 15px; }
body[data-page="home"] .compact-heading { align-items: center; margin-bottom: 17px; }
body[data-page="home"] .compact-heading h2 { margin-bottom: 4px; font-size: clamp(1.35rem, 2.1vw, 1.9rem); }
body[data-page="home"] .compact-heading p { font-size: .76rem; }

/* Central deck requested for paid courses. */
.paid-deck { position: relative; height: 368px; overflow: hidden; perspective: 1500px; isolation: isolate; touch-action: pan-y; }
.paid-deck::after { content: ""; position: absolute; right: 24%; bottom: 8px; left: 24%; z-index: -1; height: 28px; border-radius: 50%; background: rgba(109, 46, 140, .1); filter: blur(18px); }
.paid-deck .course-card { --deck-x: 0px; --deck-z: 0px; --deck-rotate: 0deg; --deck-scale: 1; --deck-opacity: 0; position: absolute; top: 10px; right: 50%; width: 270px; height: 350px; z-index: var(--deck-order, 0); opacity: var(--deck-opacity); transform: translateX(50%) translateX(var(--deck-x)) translateZ(var(--deck-z)) rotateY(var(--deck-rotate)) scale(var(--deck-scale)); transition: transform .72s cubic-bezier(.2,.78,.2,1), opacity .35s, filter .35s, box-shadow .35s; will-change: transform; cursor: pointer; }
.paid-deck .course-card:not(.is-active) { filter: saturate(.78) brightness(.99); }
.paid-deck .course-card.is-active { border-color: #cba9dc; box-shadow: 0 20px 42px rgba(81, 41, 99, .19); filter: none; }
.paid-deck .course-card.is-near { cursor: pointer; }
.paid-deck .card-media { height: 168px; }
.paid-deck .card-body { padding: 13px 14px 14px; }
.paid-deck .card-body h3 { min-height: 0; margin-bottom: 3px; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paid-deck .card-body > p { min-height: 0; margin-bottom: 8px; font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paid-deck .course-meta { gap: 12px; padding: 7px 0; font-size: .62rem; }
.paid-deck .card-footer { padding-top: 9px; }
.paid-deck .save-button { width: 36px; height: 36px; left: 10px; bottom: 10px; font-size: 1.08rem; }
.paid-deck .card-media .badge,
.paid-deck .discount { top: 10px; min-height: 23px; padding: 3px 8px; font-size: .6rem; }
.paid-deck .card-media .badge { right: 10px; }
.paid-deck .discount { left: 10px; }
.paid-deck .button-small { min-height: 35px; padding: 6px 10px; font-size: .68rem; }
.paid-deck .price strong { font-size: .8rem; }
.deck-controls { display: flex; align-items: center; justify-content: center; direction: ltr; gap: 10px; margin-top: 4px; }
.deck-controls .icon-button { width: 36px; height: 36px; }
.deck-dots { display: flex; align-items: center; gap: 6px; }
.deck-dot { width: 7px; height: 7px; padding: 0; border: 1px solid #b78dcc; border-radius: 999px; background: white; cursor: pointer; transition: width .2s, background .2s; }
.deck-dot.is-active { width: 20px; border-color: var(--plum); background: var(--plum); }
body[data-page="home"] #paid-courses .center-action { margin-top: 13px; }

/* Compact, real carousels for free learning and free articles. */
.compact-scroll { display: flex; gap: 14px; overflow-x: auto; direction: ltr; padding: 2px 2px 12px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.compact-scroll::-webkit-scrollbar { display: none; }
.compact-scroll.is-dragging { scroll-behavior: auto; scroll-snap-type: none; cursor: grabbing; }
.compact-scroll > * { direction: rtl; flex: 0 0 31%; scroll-snap-align: start; }
.compact-scroll.free-grid { grid-template-columns: none; }
.compact-scroll .free-card { min-height: 158px; border-radius: 18px; }
.compact-scroll .free-card img { min-height: 158px; }
.compact-scroll .free-card > div { padding: 14px 12px; }
.compact-scroll .free-card h3 { margin: 4px 0; font-size: .85rem; }
.compact-scroll .free-card p { display: -webkit-box; overflow: hidden; margin-bottom: 8px; font-size: .65rem; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.compact-scroll .free-card b { font-size: .67rem; }
.compact-scroll .free-card > .badge { top: 9px; right: 9px; }
.compact-scroll.article-grid { grid-template-columns: none; }
.compact-scroll .article-card { border-radius: 18px; }
.compact-scroll .article-card > a { height: 145px; }
.compact-scroll .article-card > div { padding: 14px; }
.compact-scroll .article-card h3 { margin: 4px 0; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compact-scroll .article-card p { display: -webkit-box; min-height: 0; overflow: hidden; margin-bottom: 7px; font-size: .66rem; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.compact-scroll .article-meta,
.compact-scroll .text-link { font-size: .62rem; }

body[data-page="home"] .testimonial-card { padding: 19px; border-radius: 18px; }
body[data-page="home"] .testimonial-card blockquote { min-height: 83px; margin: 4px 0 14px; font-size: .72rem; line-height: 1.85; }
body[data-page="home"] .testimonial-card figcaption { padding-top: 12px; }
body[data-page="home"] .quote-mark { height: 25px; font-size: 2.8rem; }
body[data-page="home"] .faq-layout { grid-template-columns: .58fr 1.42fr; gap: 38px; }
body[data-page="home"] .faq-intro p { margin-bottom: 0; font-size: .75rem; }
body[data-page="home"] .accordion summary { min-height: 55px; padding: 12px 17px; font-size: .79rem; }
body[data-page="home"] .accordion details > p { padding: 0 17px 15px; font-size: .72rem; }
body[data-page="home"] .site-footer { padding-top: 38px; }
body[data-page="home"] .footer-grid { grid-template-columns: 1.35fr .7fr .8fr; gap: 34px; }
body[data-page="home"] .footer-bottom { margin-top: 26px; }
body[data-page="home"] { background: linear-gradient(180deg, #fff8f4 0%, #fff2f4 42%, #fff7f3 100%); }
body[data-page="home"] main { background: transparent; }
body[data-page="home"] #paid-courses,
body[data-page="home"] #testimonials,
body[data-page="home"] #faq { background: rgba(255, 249, 247, .48); }
body[data-page="home"] #free-courses,
body[data-page="home"] #articles { background: rgba(239, 215, 244, .22); }
body[data-page="home"] .hero-carousel { background: linear-gradient(112deg, #f5d6ef 0%, #ecd1f6 58%, #f9dcd9 100%); }

/* Thin, centered-brand header aligned with the current Banafshe site. */
body[data-page="home"] .site-header { min-height: 0; }
body[data-page="home"] .header-row { position: relative; min-height: 58px; gap: 16px; }
body[data-page="home"] .header-row > .brand { position: absolute; top: 50%; left: 50%; z-index: 3; gap: 7px; transform: translate(-50%, -50%); }
.brand-logo { display: block; width: 46px; height: 46px; flex: 0 0 auto; object-fit: cover; border-radius: 50%; }
body[data-page="course"] .header-row > .brand .brand-logo { width: 60px; height: 60px; }
body[data-page="home"] .header-row > .brand .brand-logo { width: 54px; height: 54px; }
body[data-page="home"] .header-row > .brand > span:last-child { display: none; }
body[data-page="home"] .desktop-nav { margin: 0; gap: 19px; }
body[data-page="home"] .desktop-nav a { padding: 18px 0 16px; font-size: .76rem; }
body[data-page="home"] .desktop-nav a::after { bottom: 11px; }
body[data-page="home"] .header-actions { margin-right: auto; }
body[data-page="home"] .icon-button { width: 38px; height: 38px; }
body[data-page="home"] .button-ghost { min-height: 39px; padding: 7px 13px; font-size: .72rem; }

/* First-view target: header + board + first paid-course cards at common desktop sizes. */
body[data-page="home"] .hero-carousel { height: clamp(245px, 34vh, 285px); }
body[data-page="home"] .hero-slide { min-height: 0; height: 100%; grid-template-columns: 1.25fr .75fr; }
body[data-page="home"] .hero-copy { padding: 24px clamp(24px, 3.2vw, 42px); }
body[data-page="home"] .hero-copy h1,
body[data-page="home"] .hero-copy h2 { font-size: clamp(1.55rem, 2.35vw, 2.2rem); }
body[data-page="home"] .hero-copy > p { display: -webkit-box; overflow: hidden; margin-bottom: 13px; font-size: .75rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
body[data-page="home"] .hero-actions .button { min-height: 40px; padding: 7px 15px; font-size: .74rem; }
body[data-page="home"] .hero-actions .text-link { font-size: .72rem; }
body[data-page="home"] .hero-visual { min-height: 0; height: 100%; }
body[data-page="home"] .section-tight { padding: 8px 0 8px; }
body[data-page="home"] #paid-courses { padding-top: 14px; }
body[data-page="home"] #paid-courses .compact-heading { margin-bottom: 8px; }
body[data-page="home"] #paid-courses .compact-heading h2 { font-size: 1.32rem; }
body[data-page="home"] #paid-courses .compact-heading p { font-size: .68rem; }

/* Arrows live inside every slider shell, beside the focused card. */
.carousel-shell { position: relative; }
.slider-arrow { position: absolute; top: 50%; z-index: 30; display: grid; width: 30px; height: 30px; place-items: center; padding: 0; transform: translateY(-50%); border: 0; border-radius: 50%; background: rgba(255,255,255,.34); box-shadow: 0 5px 14px rgba(65,32,78,.08); line-height: 1; cursor: pointer; backdrop-filter: blur(9px); transition: transform .2s, background .2s; }
.slider-arrow img { width: 30px; height: 30px; }
.slider-arrow-prev img,
.slider-arrow-next img { transform: scaleX(-1); }
.slider-arrow:hover { transform: translateY(-50%) scale(1.04); background: rgba(255,255,255,.62); }
.slider-arrow-prev { right: 9px; }
.slider-arrow-next { left: 9px; }
.paid-shell .slider-arrow-prev { right: calc(50% + 138px); }
.paid-shell .slider-arrow-next { left: calc(50% + 138px); }
.deck-dots { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 2px; }

/* Free courses and articles emphasize the active card while neighbors stay visible. */
.focus-carousel-shell { overflow: hidden; }
.focus-carousel { padding-inline: calc((100% - 390px) / 2); scroll-padding-inline: calc((100% - 390px) / 2); }
.focus-carousel > * { flex: 0 0 390px; }
.focus-carousel > * { scroll-snap-align: center; transition: opacity .42s, filter .42s, transform .42s, box-shadow .42s; }
.focus-carousel > *:not(.is-focus) { opacity: .27; filter: blur(2px) saturate(.62); transform: scale(.86); pointer-events: none; }
.focus-carousel > *.is-focus { opacity: 1; filter: none; transform: scale(1.025); box-shadow: 0 17px 38px rgba(77,38,94,.16); }
.focus-carousel-shell > .slider-arrow-prev { right: calc(50% + 198px); }
.focus-carousel-shell > .slider-arrow-next { left: calc(50% + 198px); }

.paid-deck .course-card:not(.is-active) { opacity: .26 !important; filter: blur(2.2px) saturate(.58) brightness(1.04); }
.paid-deck .course-card.is-active { opacity: 1 !important; transform: translateX(50%) translateX(var(--deck-x)) translateZ(0) rotateY(var(--deck-rotate)) scale(1.045); }

/* PWA install prompt: only shown when the browser exposes a real install event. */
.install-modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
.install-modal.is-open { visibility: visible; opacity: 1; }
.install-backdrop { position: absolute; inset: 0; background: rgba(49,25,59,.34); backdrop-filter: blur(7px); }
.install-card { position: relative; width: min(450px, 100%); display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 16px; padding: 24px; border: 1px solid rgba(255,255,255,.7); border-radius: 24px; background: rgba(255,248,246,.94); box-shadow: 0 28px 80px rgba(54,26,66,.25); }
.install-card > img { width: 72px; height: 72px; border-radius: 20px; }
.install-card > div span { color: var(--plum); font-size: .68rem; font-weight: 700; }
.install-card h2 { margin: 2px 0 4px; font-size: 1.25rem; }
.install-card p { margin: 0; font-size: .72rem; }
.install-button { grid-column: 1 / -1; width: 100%; }
.install-close { position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(109,46,140,.08); color: var(--plum); font-size: 1.3rem; cursor: pointer; }

/* Slow continuous testimonials; pointer, touch or keyboard focus pauses it. */
.testimonial-marquee { overflow: hidden; margin-inline: -10px; padding: 4px 10px 8px; cursor: grab; touch-action: pan-y; }
.testimonial-marquee.is-dragging { cursor: grabbing; }
.testimonial-track { display: flex; width: max-content; gap: 14px; will-change: transform; }
.testimonial-track .testimonial-card { width: 340px; flex: 0 0 auto; }
.testimonial-card .avatar { width: 43px; height: 43px; border: 2px solid white; background-image: url("testimonial-avatars.png"); background-repeat: no-repeat; background-size: 200% 200%; box-shadow: 0 3px 10px rgba(67,34,80,.15); }
.testimonial-card .avatar-one { background-position: 0 0; }
.testimonial-card .avatar-two { background-position: 100% 0; }
.testimonial-card .avatar-three { background-position: 0 100%; }
.testimonial-card .avatar-four { background-position: 100% 100%; }

/* Course detail */
.course-page { background: linear-gradient(180deg, var(--mist) 0, var(--mist) 600px, var(--paper) 600px); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 22px 0 15px; color: #86798b; font-size: .71rem; }
.breadcrumb a:hover { color: var(--plum); }
.course-hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-bottom: 50px; }
.course-main { min-width: 0; }
.course-title-block { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 21px; }
.course-title-block h1 { margin: 10px 0 9px; font-size: clamp(2.1rem, 4vw, 3.75rem); }
.course-title-block p { max-width: 700px; margin: 0; }
.save-course { display: inline-flex; min-width: 124px; min-height: 44px; align-items: center; justify-content: center; gap: 7px; border: 1px solid #d9c8e1; border-radius: 12px; background: white; color: var(--plum); font-weight: 700; cursor: pointer; }
.save-course[aria-pressed="true"] { background: var(--plum); color: white; }
.video-player { position: relative; width: 100%; height: 475px; overflow: hidden; padding: 0; border: 0; border-radius: var(--radius-lg); background: #211626; cursor: pointer; box-shadow: var(--shadow); }
.video-player img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .5s, filter .4s; }
.video-player:hover img { transform: scale(1.025); }
.video-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,13,29,.08), rgba(23,13,29,.56)); }
.play-button { position: absolute; top: 50%; left: 50%; display: grid; width: 78px; height: 78px; place-items: center; padding-left: 4px; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(255,255,255,.91); color: var(--plum); font-size: 1.35rem; box-shadow: 0 12px 35px rgba(0,0,0,.18); transition: transform .2s, opacity .2s; }
.video-player:hover .play-button { transform: translate(-50%, -50%) scale(1.07); }
.video-caption { position: absolute; right: 24px; bottom: 22px; display: grid; text-align: right; color: white; }
.video-caption b { font-size: .9rem; }
.video-caption small { opacity: .78; font-size: .67rem; }
.video-status { position: absolute; left: 20px; bottom: 21px; padding: 7px 11px; border-radius: 999px; background: rgba(20,11,25,.65); color: white; font-size: .66rem; opacity: 0; transition: opacity .2s; }
.video-player[data-playing="true"] img { filter: brightness(.62); transform: scale(1.035); }
.video-player[data-playing="true"] .play-button { opacity: .18; }
.video-player[data-playing="true"] .video-status { opacity: 1; }
.quick-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow-soft); }
.quick-facts div { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; padding: 16px; border-left: 1px solid var(--line); }
.quick-facts div:last-child { border-left: 0; }
.quick-facts span { grid-row: span 2; color: var(--plum); font-size: 1.25rem; }
.quick-facts b { font-size: .75rem; }
.quick-facts small { color: var(--muted); font-size: .59rem; }
.purchase-card { position: sticky; top: 104px; padding: 25px; border: 1px solid #ddc9e6; border-radius: var(--radius-lg); background: rgba(255,255,255,.94); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.purchase-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.purchase-top > div { display: grid; justify-items: start; gap: 7px; }
.purchase-top small { color: var(--muted); font-size: .61rem; }
.stock-note { color: var(--green); font-size: .63rem; font-weight: 700; }
.purchase-price { display: grid; margin: 20px 0; }
.purchase-price del { color: #a69ba9; font-size: .74rem; }
.purchase-price strong { color: var(--plum-deep); font-size: 1.65rem; }
.purchase-price small { font-size: .74rem; }
.safe-payment { margin: 12px 0 18px; text-align: center; color: var(--green); font-size: .65rem; }
.purchase-card ul { display: grid; gap: 10px; margin: 0; padding: 18px 0; border-top: 1px solid var(--line); list-style: none; color: var(--muted); font-size: .68rem; }
.purchase-card li span { margin-left: 6px; color: var(--green); font-weight: 800; }
.gift-link { width: 100%; min-height: 42px; border: 0; border-radius: 11px; background: #f5eef8; color: var(--plum); font-weight: 700; font-size: .7rem; cursor: pointer; }
.mobile-purchase-slot { display: none; }
.course-content-layout { display: grid; grid-template-columns: minmax(0, 812px); }
.course-content { min-width: 0; }
.content-section { padding: 44px 0; border-top: 1px solid var(--line); }
.lead-section { border-top: 0; }
.content-section > h2, .content-heading h2 { font-size: clamp(1.55rem, 2.5vw, 2.1rem); }
.lead { color: #47384c; font-size: 1rem; font-weight: 700; line-height: 2; }
.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.info-panel { position: relative; padding: 28px; border-radius: var(--radius-lg); }
.info-panel.soft { background: #f3eaf8; }
.info-panel.warm { background: #fbede7; }
.panel-icon { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 17px; border-radius: 13px; background: rgba(255,255,255,.75); color: var(--plum); font-weight: 900; }
.info-panel h2 { font-size: 1.2rem; }
.check-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; color: #55495a; font-size: .76rem; }
.check-list li { position: relative; padding-right: 23px; }
.check-list li::before { content: "✓"; position: absolute; right: 0; color: var(--green); font-weight: 900; }
.content-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.content-heading p { margin: 0; }
.duration-pill { padding: 8px 12px; border-radius: 999px; background: #f1e7f6; color: var(--plum); font-size: .66rem; font-weight: 700; }
.curriculum-list details { border-radius: 15px; }
.curriculum-list summary { justify-content: flex-start; }
.curriculum-list summary > span:nth-child(2) { display: grid; flex: 1; }
.curriculum-list summary small { margin-top: 3px; color: var(--muted); font-size: .62rem; font-weight: 400; }
.chapter-number { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: #f1e7f6; color: var(--plum); }
.lesson-list { margin: 0 18px 18px; padding: 10px 18px 4px; border-right: 2px solid #e7d6ef; }
.lesson-list p { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; margin: 0; padding: 9px 0; border-bottom: 1px dashed #e7dfe9; color: #5a4d5e; font-size: .68rem; }
.lesson-list p:last-child { border-bottom: 0; color: var(--plum); }
.lesson-list small { color: #8d8291; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.feature-grid > div { padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.feature-grid span { display: grid; width: 40px; height: 40px; place-items: center; margin-bottom: 12px; border-radius: 12px; background: #f1e7f6; color: var(--plum); }
.feature-grid h3 { margin-bottom: 6px; }
.feature-grid p { margin: 0; font-size: .72rem; }
.instructor-card { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; }
.instructor-card > img { width: 220px; height: 255px; object-fit: cover; object-position: center 22%; border-radius: 25px; }
.inline-stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 22px 0 0; padding: 0; list-style: none; }
.inline-stats li { display: grid; }
.inline-stats b { color: var(--plum); }
.inline-stats small { color: var(--muted); font-size: .6rem; }
.course-testimonial { padding-inline: 34px; border: 0; border-radius: var(--radius-lg); background: linear-gradient(135deg, #f2e7f7, #fbefea); }
.course-testimonial blockquote { margin: 10px 0 25px; color: #46374b; font-size: 1rem; line-height: 2.05; }
.course-testimonial > div { display: flex; align-items: center; gap: 12px; }
.course-testimonial p { display: grid; flex: 1; margin: 0; }
.course-testimonial small { font-size: .64rem; }
.course-faq > h2 { margin-bottom: 22px; }
.related-section { padding: 48px 0 90px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.mini-course { display: grid; grid-template-columns: 42% 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow-soft); }
.mini-course > img { width: 100%; height: 190px; object-fit: cover; object-position: center 23%; }
.mini-course > div { align-self: center; padding: 18px 15px; }
.mini-course h3 { margin: 8px 0 4px; font-size: .87rem; }
.mini-course p, .mini-course a { margin: 0; font-size: .65rem; }
.mini-course a { color: var(--plum); font-weight: 700; }
.mobile-buy-bar { display: none; }

@media (max-width: 1050px) {
  .desktop-nav { gap: 15px; font-size: .78rem; }
  .login-link { display: none; }
  .hero-slide { grid-template-columns: 1.12fr .88fr; min-height: 475px; }
  .hero-visual { min-height: 475px; }
  .free-grid { grid-template-columns: 1fr 1fr; }
  .free-card:last-child { grid-column: span 2; }
  .course-hero { grid-template-columns: minmax(0, 1fr) 310px; }
  .footer-grid { grid-template-columns: 1.2fr repeat(3, .8fr); gap: 30px; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 76px; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .section { padding: 55px 0; }
  .section-tight { padding: 18px 0 38px; }
  .header-row { min-height: 68px; }
  .header-row > .brand { position: absolute; top: 50%; left: 50%; z-index: 3; transform: translate(-50%, -50%); }
  .header-row > .brand > span:last-child { display: none; }
  .brand-mark { width: 42px; height: 42px; }
  .brand strong { font-size: .89rem; }
  .brand small { display: none; }
  .desktop-nav { display: none; }
  .header-actions { position: absolute; inset: 0; z-index: 4; width: 100%; margin: 0; pointer-events: none; }
  .header-actions > * { pointer-events: auto; }
  .profile-link { position: absolute; left: 0; display: grid; }
  .search-toggle { position: absolute; left: 50px; display: grid; }
  .login-link { display: none; }
  .menu-toggle { position: absolute; right: 0; display: grid; }
  .mobile-menu { position: fixed; top: 68px; right: 16px; left: 16px; display: grid; gap: 4px; padding: 14px; visibility: hidden; opacity: 0; transform: translateY(-10px); border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); transition: opacity .2s, transform .2s, visibility .2s; }
  .mobile-menu.is-open { visibility: visible; opacity: 1; transform: none; }
  .mobile-menu a { min-height: 44px; padding: 9px 12px; border-radius: 10px; font-size: .8rem; }
  .mobile-menu a:hover { background: var(--mist); }
  body[data-page="home"] .login-link { display: none; }
  body[data-page="home"] .carousel-shell > .slider-arrow { display: none; }
  .hero-slide { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { padding: 38px 30px 28px; }
  .hero-copy h1, .hero-copy h2 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-copy > p { font-size: .88rem; }
  .hero-visual { min-height: 315px; max-height: 360px; }
  .hero-visual::after { background: linear-gradient(0deg, transparent 55%, rgba(248,244,251,.3)); }
  .hero-visual img { object-position: center 27%; }
  .slider-dots { right: 30px; bottom: 328px; }
  body[data-page="home"] .slider-dots { right: 50%; bottom: 7px; gap: 4px; padding: 4px 7px; transform: translateX(50%); border-radius: 999px; background: rgba(255,255,255,.32); backdrop-filter: blur(8px); }
  body[data-page="home"] .slider-dots button { width: 5px; height: 5px; background: rgba(109,46,140,.28); }
  body[data-page="home"] .slider-dots button.is-active { width: 14px; }
  .trust-row { margin-top: 25px; }
  .course-carousel { grid-auto-columns: minmax(270px, 55%); }
  .testimonial-grid, .article-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-card:last-child, .article-card:last-child { grid-column: span 2; }
  .faq-layout { grid-template-columns: 1fr; gap: 30px; }
  .faq-intro { position: static; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: span 3; }
  .footer-brand { grid-column: span 3; }
  .course-hero { grid-template-columns: 1fr; }
  .purchase-card { position: static; }
  .course-title-block { align-items: center; }
  .course-title-block p { font-size: .82rem; }
  .course-main { display: contents; }
  .course-title-block { order: 1; }
  .video-player { order: 2; height: 430px; }
  .mobile-purchase-slot { display: block; order: 3; }
  .quick-facts { order: 4; }
  .course-hero > .purchase-card { order: 3; }
  .course-content-layout { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .related-grid .mini-course:last-child { grid-column: span 2; }
}

@media (max-width: 620px) {
  body { font-size: 15px; padding-bottom: env(safe-area-inset-bottom); }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .section { padding: 44px 0; }
  h1 { font-size: 2.15rem; }
  h2 { font-size: 1.58rem; }
  .header-row { gap: 10px; }
  .header-actions { gap: 5px; }
  .hero-carousel { border-radius: 24px; }
  .hero-copy { padding: 25px 20px 18px; }
  .hero-copy h1, .hero-copy h2 { margin-bottom: 11px; font-size: 1.78rem; }
  .hero-copy > p { margin-bottom: 15px; font-size: .75rem; line-height: 1.75; }
  .hero-actions { align-items: stretch; gap: 13px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link, .hero-actions .price-inline { text-align: center; }
  .trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 17px; }
  .trust-row li { min-width: 0; padding: 7px; border: 0; border-radius: 10px; background: rgba(255,255,255,.55); text-align: center; font-size: .56rem; }
  .trust-row strong { font-size: .76rem; }
  .hero-visual { min-height: 210px; max-height: 225px; }
  .visual-note { right: 14px; bottom: 14px; }
  .slider-dots { right: 21px; bottom: 211px; }
  .section-heading { align-items: center; margin-bottom: 22px; }
  .section-heading p { font-size: .75rem; }
  .carousel-controls { display: none; }
  .course-carousel { width: calc(100vw - 16px); margin-left: -16px; grid-auto-columns: 82vw; gap: 13px; padding: 2px 9vw 18px; scroll-padding-inline: 9vw; }
  .card-media { height: 220px; }
  .free-grid { display: flex; width: calc(100vw - 16px); overflow-x: auto; gap: 13px; margin-left: -16px; padding: 2px 0 18px 16px; scroll-snap-type: x mandatory; }
  .free-card, .free-card:last-child { min-width: 82vw; grid-column: auto; scroll-snap-align: center; }
  .testimonial-grid, .article-grid { display: flex; width: calc(100vw - 16px); overflow-x: auto; gap: 13px; margin-left: -16px; padding: 2px 0 20px 16px; scroll-snap-type: x mandatory; }
  .testimonial-card, .article-card, .testimonial-card:last-child, .article-card:last-child { min-width: 82vw; grid-column: auto; scroll-snap-align: center; }
  .testimonial-card blockquote { min-height: auto; }
  .article-card p { min-height: auto; }
  .desktop-only { display: none; }
  .mobile-only { display: flex; }
  .faq-layout { gap: 22px; }
  .faq-intro .button { display: none; }
  .accordion summary { min-height: 58px; padding: 13px 15px; font-size: .76rem; }
  .accordion details > p { padding: 0 15px 17px; font-size: .72rem; }
  .contact-widget { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .back-to-cta { left: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
  .contact-fab { width: 52px; height: 52px; min-height: 52px; padding: 6px; }
  .contact-fab span { width: 40px; height: 40px; }
  .contact-fab b { display: none; }
  .contact-panel { width: calc(100vw - 28px); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 22px; }
  .footer-brand { grid-column: span 2; }
  .footer-grid > div:last-child { grid-column: span 2; }
  .footer-bottom { display: grid; text-align: center; }

  .course-page { background: linear-gradient(180deg, var(--mist) 0, var(--mist) 490px, var(--paper) 490px); }
  .breadcrumb { padding: 14px 0 8px; }
  .course-hero { gap: 15px; padding-bottom: 28px; }
  .course-title-block { align-items: flex-start; gap: 11px; margin-bottom: 13px; }
  .course-title-block h1 { margin: 8px 0 7px; font-size: 2rem; }
  .course-title-block p { font-size: .74rem; }
  .save-course { min-width: 44px; width: 44px; padding: 0; }
  .save-course span { display: none; }
  .video-player { height: 286px; border-radius: 19px; }
  .play-button { width: 62px; height: 62px; }
  .video-caption { right: 15px; bottom: 14px; }
  .video-status { display: none; }
  .purchase-card { padding: 20px; border-radius: 19px; }
  .purchase-price { margin: 15px 0; }
  .purchase-price strong { font-size: 1.42rem; }
  .quick-facts { grid-template-columns: 1fr 1fr; }
  .quick-facts div { border-bottom: 1px solid var(--line); }
  .quick-facts div:nth-child(2) { border-left: 0; }
  .quick-facts div:nth-child(3), .quick-facts div:nth-child(4) { border-bottom: 0; }
  .content-section { padding: 34px 0; }
  .lead { font-size: .88rem; }
  .split-cards { grid-template-columns: 1fr; }
  .info-panel { padding: 23px; }
  .content-heading { align-items: flex-start; }
  .duration-pill { display: none; }
  .lesson-list { margin-inline: 10px; padding-inline: 12px; }
  .lesson-list p { grid-template-columns: 33px 1fr; }
  .lesson-list small { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .instructor-card { grid-template-columns: 110px 1fr; gap: 16px; align-items: start; }
  .instructor-card > img { width: 110px; height: 145px; border-radius: 18px; }
  .instructor-card p { font-size: .7rem; }
  .inline-stats { grid-column: span 2; gap: 14px; }
  .course-testimonial { padding: 25px 20px; }
  .course-testimonial blockquote { font-size: .82rem; }
  .related-section { padding-bottom: 110px; }
  .related-grid { display: flex; width: calc(100vw - 16px); overflow-x: auto; gap: 13px; margin-left: -16px; padding: 2px 0 18px 16px; scroll-snap-type: x mandatory; }
  .related-grid .mini-course, .related-grid .mini-course:last-child { min-width: 82vw; grid-column: auto; scroll-snap-align: center; }
  .mobile-buy-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 110; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); box-shadow: 0 -8px 25px rgba(53,27,65,.1); backdrop-filter: blur(12px); }
  .mobile-buy-bar > div { display: grid; }
  .mobile-buy-bar del { color: #a59aa8; font-size: .56rem; }
  .mobile-buy-bar strong { color: var(--plum-deep); font-size: .77rem; }
  .mobile-buy-bar .button { min-height: 45px; padding: 8px 17px; }
  .course-contact { bottom: calc(80px + env(safe-area-inset-bottom)); }
  body[data-page="course"] .back-to-cta { bottom: calc(80px + env(safe-area-inset-bottom)); }
  body[data-page="course"] .site-footer { padding-bottom: 94px; }
}

@media (max-width: 820px) {
  body[data-page="home"] .header-row { min-height: 54px; }
  body[data-page="home"] .header-row > .brand .brand-logo { width: 50px; height: 50px; }
  body[data-page="home"] .section { padding: 36px 0; }
  body[data-page="home"] .section-tight { padding: 7px 0; }
  body[data-page="home"] #paid-courses { padding-top: 13px; }
  body[data-page="home"] .hero-carousel { height: 265px; }
  body[data-page="home"] .hero-slide { min-height: 0; grid-template-columns: 1.08fr .92fr; }
  body[data-page="home"] .hero-copy { padding: 21px 22px; }
  body[data-page="home"] .hero-copy h1,
  body[data-page="home"] .hero-copy h2 { font-size: clamp(1.6rem, 4.4vw, 2.2rem); }
  body[data-page="home"] .hero-copy > p { margin-bottom: 14px; font-size: .75rem; }
  body[data-page="home"] .hero-visual { min-height: 0; max-height: none; }
  body[data-page="home"] .slider-dots { right: 24px; bottom: 14px; }
  .paid-deck { height: 348px; }
  .paid-deck .course-card { width: 250px; height: 330px; }
  .paid-deck .card-media { height: 155px; }
  .compact-scroll > * { flex-basis: 47%; }
  .focus-carousel { padding-inline: calc((100% - 55vw) / 2); scroll-padding-inline: calc((100% - 55vw) / 2); }
  .focus-carousel > * { flex: 0 0 55vw; }
  .focus-carousel-shell > .slider-arrow-prev { right: calc(50% + 28vw); }
  .focus-carousel-shell > .slider-arrow-next { left: calc(50% + 28vw); }
  body[data-page="home"] .faq-layout { grid-template-columns: 1fr; gap: 17px; }
  body[data-page="home"] .faq-intro { position: static; }
  body[data-page="home"] .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (max-width: 620px) {
  body[data-page="home"] .header-row { min-height: 52px; }
  body[data-page="home"] .header-row > .brand .brand-logo { width: 50px; height: 50px; }
  body[data-page="home"] .mobile-menu { top: 52px; }
  body[data-page="home"] .header-actions { width: 100%; }
  body[data-page="home"] .login-link { display: none; }
  body[data-page="home"] .section { padding: 30px 0; }
  body[data-page="home"] .section-tight { padding: 6px 0; }
  body[data-page="home"] #paid-courses { padding-top: 12px; }
  body[data-page="home"] .hero-carousel { border-radius: 18px; }
  body[data-page="home"] .hero-carousel { height: 226px; }
  body[data-page="home"] .hero-slide { min-height: 0; height: 100%; grid-template-columns: 1.14fr .86fr; }
  body[data-page="home"] .hero-copy { padding: 14px 13px; }
  body[data-page="home"] .hero-copy h1,
  body[data-page="home"] .hero-copy h2 { margin-bottom: 7px; font-size: 1.07rem; line-height: 1.42; }
  body[data-page="home"] .hero-copy > p { margin-bottom: 9px; font-size: .59rem; line-height: 1.58; -webkit-line-clamp: 3; }
  body[data-page="home"] .hero-actions { gap: 8px; }
  body[data-page="home"] .hero-actions .button { min-height: 42px; padding: 8px 13px; font-size: .72rem; }
  body[data-page="home"] .hero-actions .text-link { display: none; }
  body[data-page="home"] .hero-actions .price-inline { font-size: .7rem; }
  body[data-page="home"] .hero-visual { min-height: 0; max-height: none; height: 100%; }
  body[data-page="home"] .visual-note { right: 10px; bottom: 9px; padding: 4px 8px; font-size: .55rem; }
  body[data-page="home"] .slider-dots { right: 13px; bottom: 8px; gap: 6px; }
  body[data-page="home"] .slider-dots button.is-active { width: 21px; }
  body[data-page="home"] .compact-heading { align-items: flex-end; gap: 10px; margin-bottom: 13px; }
  body[data-page="home"] .compact-heading h2 { font-size: 1.28rem; }
  body[data-page="home"] .compact-heading p { display: -webkit-box; overflow: hidden; font-size: .68rem; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
  body[data-page="home"] .compact-heading .carousel-controls { display: flex; gap: 5px; }
  body[data-page="home"] .compact-heading .carousel-controls .icon-button { width: 36px; height: 36px; }
  .paid-deck { height: 317px; margin-inline: -16px; }
  .paid-deck .course-card { width: min(76vw, 270px); height: 300px; border-radius: 17px; }
  .paid-deck .card-media { height: 140px; }
  .paid-deck .card-body { padding: 11px 12px 12px; }
  .paid-deck .card-body h3 { font-size: .84rem; }
  .paid-deck .card-body > p { margin-bottom: 6px; font-size: .62rem; }
  .paid-deck .course-meta { padding: 6px 0; font-size: .58rem; }
  .paid-deck .card-footer { padding-top: 7px; }
  .deck-controls { margin-top: 1px; }
  .deck-controls .icon-button { width: 34px; height: 34px; }
  body[data-page="home"] .carousel-shell > .slider-arrow { display: none; }
  .paid-shell .slider-arrow-prev { right: calc(50% + min(37vw, 135px)); }
  .paid-shell .slider-arrow-next { left: calc(50% + min(37vw, 135px)); }
  body[data-page="home"] #paid-courses .center-action { margin-top: 10px; }
  body[data-page="home"] #paid-courses .center-action .button { min-height: 42px; padding: 8px 15px; font-size: .75rem; }
  .compact-scroll.free-grid,
  .compact-scroll.article-grid { display: flex; width: calc(100vw - 16px); gap: 11px; margin-left: -16px; padding: 2px 0 11px 16px; }
  .compact-scroll > *,
  .compact-scroll .free-card,
  .compact-scroll .free-card:last-child,
  .compact-scroll .article-card,
  .compact-scroll .article-card:last-child { min-width: 0; flex: 0 0 78vw; grid-column: auto; }
  .focus-carousel { padding-inline: 11vw !important; scroll-padding-inline: 11vw; }
  .focus-carousel > * { flex-basis: 78vw; }
  .focus-carousel-shell > .slider-arrow-prev { right: 3px; }
  .focus-carousel-shell > .slider-arrow-next { left: 3px; }
  .compact-scroll .free-card { min-height: 148px; }
  .compact-scroll .free-card img { min-height: 148px; }
  .compact-scroll .article-card > a { height: 132px; }
  body[data-page="home"] .testimonial-card { padding: 17px; }
  .testimonial-track .testimonial-card { width: 78vw; }
  body[data-page="home"] .testimonial-card blockquote { font-size: .68rem; }
  body[data-page="home"] .faq-layout { gap: 12px; }
  body[data-page="home"] .faq-intro p { display: none; }
  body[data-page="home"] .accordion { gap: 7px; }
  body[data-page="home"] .accordion summary { min-height: 50px; padding: 10px 13px; }
  body[data-page="home"] .accordion details > p { padding: 0 13px 13px; }
  body[data-page="home"] .site-footer { padding-top: 30px; }
  body[data-page="home"] .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  body[data-page="home"] .footer-brand { grid-column: span 2; }
  body[data-page="home"] .footer-grid > div:last-child { grid-column: auto; }
  body[data-page="home"] .footer-brand p { margin-top: 12px; }
  body[data-page="home"] .footer-bottom { margin-top: 20px; }
  body[data-page="home"] .slider-dots { right: 50%; bottom: 7px; gap: 4px; padding: 4px 7px; transform: translateX(50%); border-radius: 999px; background: rgba(255,255,255,.32); backdrop-filter: blur(8px); }
  body[data-page="home"] .slider-dots button { width: 5px; height: 5px; background: rgba(109,46,140,.28); }
  body[data-page="home"] .slider-dots button.is-active { width: 14px; }
  .install-card { grid-template-columns: 56px 1fr; gap: 12px; padding: 19px; border-radius: 20px; }
  .install-card > img { width: 56px; height: 56px; border-radius: 16px; }
  .install-card h2 { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
