/* alraseen (الرصين) — AI image-making 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; }
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, summary:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
main a:focus-visible, main summary:focus-visible { outline-color: var(--link); }
.join a:focus-visible { outline-color: var(--white); }
.price-card a:focus-visible { outline-color: var(--blue); }

/* 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 96px; 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; }

/* Sections */
section { padding: 88px 0; }
.head { max-width: 480px; }
.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; } }

/* Learn */
.points { margin-top: 32px; border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 8px 24px; }
.points li { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; font-weight: 500; }
.points li + li { border-top: 1px solid var(--rule); }
.points li > span:first-child { flex: none; width: 24px; font-size: 14px; font-weight: 700; color: var(--link); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare .shot { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--black); }
.compare img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.compare .shot span { position: absolute; top: 12px; inset-inline-start: 12px; padding: 2px 12px; border-radius: var(--radius-sm); background: var(--white); color: var(--navy); font-size: 14px; font-weight: 500; }
.compare .shot:last-child span { background: var(--blue); color: var(--white); }
.compare figcaption { grid-column: 1 / -1; font-size: 15px; opacity: .7; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }

/* 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: baseline; gap: 4px 12px; padding-bottom: 24px; border-bottom: 1px solid rgba(0, 0, 0, .12); }
.price strong { font-size: 52px; line-height: 1.1; font-weight: 700; }
.price strong small { font-size: 18px; font-weight: 500; }
.price .once { font-size: 15px; opacity: .65; }
.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; }
.call { margin-top: 16px; font-size: 15px; text-align: center; opacity: .75; }
.call a { color: var(--blue); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

/* 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; }

/* 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; } }

@media (max-width: 860px) {
  section { padding: 64px 0; }
  .hero-body { padding: 40px 0 72px; }
  .price strong { font-size: 44px; }
  .points { padding: 4px 18px; }
  .gallery { margin-top: 32px; gap: 8px; }
  .gallery img { border-radius: var(--radius-sm); }
  footer { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
