/* alraseen (الرصين) — Meta Ads course page
   Same tokens and components as the main alraseen site. */

@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../assets/fonts/IBMPlexSansArabic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../assets/fonts/IBMPlexSansArabic-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../assets/fonts/IBMPlexSansArabic-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --black: #000000; --white: #ffffff; --blue: #223dac; --navy: #0e0d84;
  --surface: var(--white); --ink: var(--black); --card: var(--white); --on-card: var(--black);
  --accent: var(--blue); --accent-strong: var(--navy); --on-accent: var(--white);
  --link: var(--blue); --hairline: var(--black); --rule: rgba(0, 0, 0, .12);
  --radius-sm: 10px; --radius-lg: 16px;
  --font-sans: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --hero: radial-gradient(120% 60% at 100% 100%, #223dac 0%, transparent 60%), linear-gradient(225deg, #000000 30%, #0e0d84 100%);
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --surface: var(--black); --ink: var(--white); --link: var(--white); --hairline: var(--white); --rule: rgba(255, 255, 255, .16); }
}
:root[data-theme="dark"] { --surface: var(--black); --ink: var(--white); --link: var(--white); --hairline: var(--white); --rule: rgba(255, 255, 255, .16); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { list-style: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.latin { direction: ltr; unicode-bidi: isolate; }
section[id] { scroll-margin-top: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 0 24px; border-radius: var(--radius-sm); font: 500 16px/1 var(--font-sans); cursor: pointer; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { border-color: var(--white); }
.btn-block { width: 100%; height: 56px; font-size: 17px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
main a:focus-visible, main button:focus-visible, main summary:focus-visible { outline-color: var(--link); }
.join a:focus-visible { outline-color: var(--white); }

/* Hero */
.hero { background: var(--hero); color: var(--white); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.nav img { height: 40px; width: auto; }
.nav .btn { height: 40px; padding: 0 18px; }
.hero-body { padding: 72px 0 88px; max-width: 680px; }
.eyebrow { display: inline-block; font-size: 15px; font-weight: 500; padding: 4px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); margin-bottom: 24px; }
.hero h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.3; font-weight: 700; margin-bottom: 20px; }
.hero p { font-size: 18px; opacity: .85; margin-bottom: 36px; max-width: 520px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { display: flex; gap: 28px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 15px; opacity: .85; }
.facts strong { font-size: 22px; font-weight: 700; margin-inline-end: 4px; }

/* Sections */
section { padding: 88px 0; }
.head { max-width: 460px; }
.head h2 { font-size: 30px; line-height: 1.4; font-weight: 700; margin-bottom: 8px; }
.head p { opacity: .7; }
.link { color: var(--link); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.split { display: grid; gap: 40px; }
@media (min-width: 861px) { .split { grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; } }

/* Lessons */
.preview { position: relative; display: block; width: 100%; margin-top: 32px; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--black); }
.preview img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .3s; }
.preview:hover img { opacity: .7; }
.preview .play { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center; border-radius: var(--radius-lg); background: var(--white); color: var(--navy); transition: transform .2s; }
.preview:hover .play { transform: scale(1.06); }
.preview .play svg { width: 24px; height: 24px; margin-left: 3px; fill: currentColor; }
.preview-label { position: absolute; inset-inline-start: 16px; bottom: 14px; padding: 4px 12px; border-radius: var(--radius-sm); background: var(--white); color: var(--navy); font-size: 14px; font-weight: 500; }
.preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lessons { border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 8px 24px; }
.lessons li { display: flex; align-items: center; gap: 16px; padding: 14px 0; font-weight: 500; }
.lessons li + li { border-top: 1px solid var(--rule); }
.lessons li > span { flex: none; width: 24px; font-size: 14px; font-weight: 700; color: var(--link); }
.lessons small { font-size: 12px; font-weight: 400; padding: 0 8px; border: 1px solid var(--rule); border-radius: 6px; opacity: .75; }

/* Reviews */
.reviews { padding-bottom: 72px; }
.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 40px max(16px, calc((100vw - var(--wrap)) / 2 + 16px)) 16px; }
.shots::-webkit-scrollbar { display: none; }
.shots li { flex: none; scroll-snap-align: center; }
.shots button { display: block; padding: 0; border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden; background: var(--black); transition: transform .25s; }
.shots button:hover { transform: translateY(-4px); }
.shots img { width: 220px; aspect-ratio: 3 / 5; object-fit: cover; object-position: top; }

/* Join */
.join { background: var(--navy); color: var(--white); }
.join .head p { opacity: .8; }
.price-card { background: var(--card); color: var(--on-card); border-radius: var(--radius-lg); padding: 32px 28px; }
.price { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-bottom: 24px; border-bottom: 1px solid rgba(0, 0, 0, .12); }
.price s { width: 100%; font-size: 15px; opacity: .6; }
.price strong { font-size: 52px; line-height: 1.1; font-weight: 700; }
.price strong small { font-size: 18px; font-weight: 500; }
.tag { font-size: 13px; font-weight: 500; padding: 2px 12px; border-radius: 999px; background: var(--blue); color: var(--white); }
.includes { display: grid; gap: 12px; padding: 24px 0 28px; }
.includes li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.includes li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 6px; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.pay { margin-top: 16px; font-size: 14px; text-align: center; opacity: .65; line-height: 1.8; }

/* FAQ */
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--hairline); border-radius: var(--radius-sm); font-size: 20px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; padding-inline-end: 48px; opacity: .75; }

/* Footer */
footer { border-top: 1px solid var(--hairline); padding: 28px 0; font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
footer img { height: 32px; width: auto; }
footer .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) footer .logo-light { display: none; } :root:not([data-theme="light"]) footer .logo-dark { display: block; } }
:root[data-theme="dark"] footer .logo-light { display: none; }
:root[data-theme="dark"] footer .logo-dark { display: block; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; opacity: .75; }
footer .links a:hover { opacity: 1; text-decoration: underline; }
footer .legal { font-size: 13px; opacity: .6; }

/* Sticky mobile CTA */
.sticky { position: fixed; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px; padding-inline-start: 20px; border-radius: var(--radius-lg); background: var(--navy); color: var(--white); font-weight: 700; font-size: 17px; transform: translateY(calc(100% + 24px)); transition: transform .3s; }
.sticky.show { transform: none; }
.sticky .btn { height: 44px; }
@media (min-width: 861px) { .sticky { display: none; } }

/* Lightbox */
.lightbox { margin: auto; max-width: min(92vw, 480px); padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox img { max-height: 88vh; width: auto; border-radius: var(--radius-lg); }
.lightbox button { position: absolute; top: -14px; inset-inline-end: -14px; width: 40px; height: 40px; border: 0; border-radius: var(--radius-sm); background: var(--white); color: var(--black); font-size: 24px; line-height: 1; }

@media (max-width: 860px) {
  section { padding: 64px 0; }
  .hero-body { padding: 40px 0 64px; }
  .price strong { font-size: 44px; }
  .lessons { padding: 4px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ==========================================================================
   Legal pages (terms / privacy / refund)
   ========================================================================== */
.hero-legal .hero-body { padding: 40px 0 0; max-width: none; }
.hero-legal h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 8px; }
.hero-legal .updated { font-size: 15px; opacity: .75; margin-bottom: 32px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 12px 18px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; font-weight: 500; font-size: 15px; color: rgba(255, 255, 255, .75); transition: color .15s; }
.tabs a:hover { color: var(--white); }
.tabs a[aria-current="page"] { background: var(--surface); color: var(--ink); }

.doc { max-width: 760px; padding: 56px 16px 88px; margin: 0 auto; }
.doc .entity { font-size: 15px; opacity: .7; padding-bottom: 32px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); }
.doc section { padding: 32px 0 0; }
.doc h2 { display: flex; align-items: baseline; gap: 12px; font-size: 22px; line-height: 1.5; font-weight: 700; margin-bottom: 12px; }
.doc h2 .n { flex: none; font-size: 15px; color: var(--link); }
.doc p, .doc li { opacity: .85; }
.doc p + p, .doc p + ul, .doc ul + p { margin-top: 12px; }
.doc ul { display: grid; gap: 8px; padding-inline-start: 20px; list-style: disc; }
.doc ul li::marker { color: var(--link); }
.doc strong { font-weight: 700; opacity: 1; }
.doc a:not(.btn) { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
.doc .note { margin-top: 16px; padding: 16px 20px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); }

.contact { margin-top: 56px; padding: 32px 28px; border-radius: var(--radius-lg); background: var(--navy); color: var(--white); }
.contact h2 { display: block; font-size: 22px; margin-bottom: 6px; }
.contact p { opacity: .8; margin-bottom: 24px; }
.contact .actions a:focus-visible { outline-color: var(--white); }

@media (max-width: 860px) {
  .hero-legal .hero-body { padding-top: 24px; }
  .doc { padding: 40px 16px 64px; }
}
