/* The site shares the lessons' night-and-amber palette: one dark ground, one warm paper
   colour for text, and amber kept for the single action on each screen. */
:root {
  --ink: #0b1220;
  --ink-2: #111b2e;
  --ink-3: #18243b;
  --paper: #f4efe6;
  --muted: #aab3c2;
  --amber: #ffc857;
  --amber-ink: #1a1405;
  --green: #7be495;
  --hair: rgba(255, 200, 87, .22);
  --hair-soft: rgba(244, 239, 230, .1);
  --font: "IBM Plex Sans Arabic", "Dubai", "Segoe UI", Tahoma, sans-serif;
  --pad: clamp(20px, 5vw, 40px);
  --gap: clamp(72px, 13vw, 136px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--font);
  font-size: 17px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--pad), 1080px); margin-inline: auto; }
.narrow { max-width: 640px; }
section { padding-block: calc(var(--gap) / 2); }
h1 { font-size: clamp(2.1rem, 8.2vw, 3.7rem); line-height: 1.3; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.65rem, 6vw, 2.5rem); line-height: 1.4; font-weight: 700; text-wrap: balance; }
h3 { font-size: 1.15rem; line-height: 1.5; font-weight: 600; }
.lead { font-size: clamp(1.05rem, 4.2vw, 1.25rem); color: var(--muted); max-width: 34em; }
.eyebrow { font-size: .85rem; font-weight: 600; color: var(--amber); letter-spacing: 0; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 1.1em; }
em { font-style: normal; color: var(--amber); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 56px;
  padding: 12px 30px; border: 0; border-radius: 999px; background: var(--amber); color: var(--amber-ink);
  font: 700 1.08rem/1.3 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background-color .2s ease;
  box-shadow: 0 10px 34px -12px rgba(255, 200, 87, .6); }
.btn:hover { background: #ffd47a; transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--hair-soft); font-weight: 600; }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--hair); }
.btn.wide { width: 100%; }
.fine { font-size: .88rem; color: var(--muted); }
.note { font-size: .92rem; color: var(--amber); }

/* Top bar */
.top { position: absolute; inset-inline: 0; top: 0; z-index: 5; padding-block: 18px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.mark i { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(255, 200, 87, .16); }
.top a.link { font-size: .95rem; color: var(--muted); text-decoration: none; padding: 12px 4px; }
.top a.link:hover { color: var(--paper); }

/* Hero: the picture is the promise, so it leads on a phone. */
.hero { padding-block: 0 calc(var(--gap) / 2); position: relative; }
.hero-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; margin-inline: calc(-1 * var(--pad)); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.hero-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11, 18, 32, .55) 0, transparent 26%, transparent 55%, var(--ink) 100%); }
.hero-text { margin-top: -14px; position: relative; }
.hero-text > * + * { margin-top: 20px; }
.hero-cta { display: grid; gap: 12px; justify-items: start; margin-top: 30px; }
@media (max-width: 599px) { .hero-cta .btn { width: 100%; } }
@media (min-width: 960px) {
  .hero { padding-top: 96px; }
  .hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
  .hero-art { margin-inline: 0; border-radius: 28px; aspect-ratio: 4 / 3.3; box-shadow: 0 0 0 1px var(--hair); }
  .hero-art::after { background: linear-gradient(to bottom, transparent 60%, rgba(11, 18, 32, .5)); }
  .hero-text { margin-top: 0; }
}

/* A picture with a hairline frame, used across the story sections. */
.plate { border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--hair); background: var(--ink-2); }
.plate img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.split { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split.flip > :first-child { order: 2; } }

/* The wrong circle */
.loop { position: relative; width: min(100%, 320px); aspect-ratio: 1; margin: 8px auto 0; }
.loop svg { position: absolute; inset: 12%; width: 76%; height: 76%; animation: turn 40s linear infinite; }
.loop span { position: absolute; transform: translate(50%, -50%); padding: 4px 14px; border-radius: 999px; white-space: nowrap;
  background: var(--ink); box-shadow: inset 0 0 0 1px var(--hair-soft); font-size: .95rem; font-weight: 600; }
.loop span:nth-of-type(1) { top: 12%; right: 50%; }
.loop span:nth-of-type(2) { top: 50%; right: 12%; }
.loop span:nth-of-type(3) { top: 88%; right: 50%; }
.loop span:nth-of-type(4) { top: 50%; right: 88%; color: var(--amber); }
@keyframes turn { to { transform: rotate(360deg); } }
.pressures li { padding-block: 16px; border-top: 1px solid var(--hair-soft); }
.pressures li:last-child { border-bottom: 1px solid var(--hair-soft); }
.pressures b { display: block; font-weight: 600; }
.pressures span { color: var(--muted); font-size: .97rem; }
.relief { font-size: clamp(1.2rem, 5vw, 1.55rem); font-weight: 600; line-height: 1.6; }

/* Three steps of a lesson */
.steps { display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { padding: 26px 24px; border-radius: 22px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair-soft); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px;
  margin-bottom: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--amber); color: var(--amber); font-weight: 700; }
.step p { color: var(--muted); font-size: .98rem; margin-top: 6px; }

/* The coach's voice */
.voice { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 26px 22px; border-radius: 22px;
  background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair); }
.voice img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--ink-2), 0 0 0 3.5px var(--amber); }
.voice blockquote { margin: 0; font-size: 1.05rem; line-height: 1.9; }
.voice cite { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-style: normal; font-size: .88rem; color: var(--muted); }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 18px; }
.wave i { width: 3px; border-radius: 2px; background: var(--amber); animation: wave 1.3s ease-in-out infinite; }
.wave i:nth-child(1) { height: 30%; } .wave i:nth-child(2) { height: 80%; animation-delay: -.9s; }
.wave i:nth-child(3) { height: 55%; animation-delay: -.5s; } .wave i:nth-child(4) { height: 100%; animation-delay: -.2s; }
.wave i:nth-child(5) { height: 45%; animation-delay: -.7s; }
@keyframes wave { 50% { transform: scaleY(.35); } }

/* Curriculum */
.unit + .unit { margin-top: 34px; }
.unit-meta { font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.lessons { border-radius: 20px; overflow: hidden; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair-soft); }
.lessons li + li { border-top: 1px solid var(--hair-soft); }
.lesson { display: grid; grid-template-columns: 30px 1fr auto 28px; gap: 12px; align-items: center; width: 100%; min-height: 62px;
  padding: 12px 18px; border: 0; background: none; color: inherit; font: inherit; text-align: start; text-decoration: none;
  cursor: pointer; transition: background-color .2s ease; }
.lesson:hover { background: var(--ink-3); }
.lesson.soon { cursor: default; color: var(--muted); }
.lesson.soon:hover { background: none; }
.lesson-n { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lesson-t { font-weight: 500; line-height: 1.5; }
.lesson-m { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.lesson-i { display: grid; place-items: center; width: 28px; height: 28px; }
.lesson-i svg { width: 20px; height: 20px; }
.lesson.open .lesson-i { color: var(--amber); }
.lesson.done .lesson-i { color: var(--green); }
.lesson.locked .lesson-t, .lesson.locked .lesson-i { color: var(--muted); }
.tag { display: inline-block; margin-inline-start: 10px; padding: 1px 10px; border-radius: 999px; white-space: nowrap;
  font-size: .75rem; font-weight: 600; color: var(--amber); box-shadow: inset 0 0 0 1px var(--hair); vertical-align: middle; }
.tag.dim { color: var(--muted); box-shadow: inset 0 0 0 1px var(--hair-soft); }

/* Evidence */
.cards { display: grid; gap: 14px; }
@media (min-width: 820px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card { padding: 26px 24px; border-radius: 22px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair-soft); }
.card p { color: var(--muted); font-size: .98rem; margin-top: 8px; }
.card small { display: block; margin-top: 14px; font-size: .8rem; color: var(--muted); opacity: .8; direction: ltr; text-align: end; }
.nots li { position: relative; padding: 14px 0; padding-inline-start: 34px; border-top: 1px solid var(--hair-soft); }
.nots li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 1.72em; width: 16px; height: 1.5px; background: var(--muted); }

/* The life sum */
.sum { display: grid; gap: 10px; }
.sum div { display: flex; align-items: baseline; gap: 14px; padding-block: 18px; border-top: 1px solid var(--hair-soft); }
.sum b { font-size: clamp(2.2rem, 11vw, 3.6rem); line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 2.6ch; }
.sum div:last-child b { color: var(--amber); }
.sum span { color: var(--muted); }

/* Offer */
.offer { padding: clamp(28px, 7vw, 48px); border-radius: 28px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair); }
.price { display: flex; align-items: baseline; gap: 12px; }
.price b { font-size: clamp(2.6rem, 12vw, 3.6rem); line-height: 1.1; }
.ticks li { position: relative; padding-block: 7px; padding-inline-start: 30px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 1.05em; width: 12px; height: 6px;
  border: solid var(--amber); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
[dir="rtl"] .ticks li::before { transform: rotate(-45deg) scaleX(1); }
.offer-actions { display: grid; gap: 12px; }

/* Questions */
.faq details { border-top: 1px solid var(--hair-soft); }
.faq details:last-child { border-bottom: 1px solid var(--hair-soft); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding-block: 14px;
  font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 300; color: var(--amber); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; max-width: 36em; }

.closing { text-align: center; }
.closing .plate { max-width: 560px; margin-inline: auto; }
.closing .btn { margin-top: 8px; }
footer { padding-block: 34px 120px; border-top: 1px solid var(--hair-soft); font-size: .85rem; color: var(--muted); }

/* The action follows her down the page on a phone. */
.dock { position: fixed; inset-inline: 0; bottom: 0; z-index: 20; padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--ink) 62%, transparent); transform: translateY(110%); transition: transform .35s ease; }
.dock.on { transform: none; }
.dock .btn { width: 100%; }
@media (min-width: 900px) { .dock { display: none; } footer { padding-bottom: 34px; } }

/* Lock card */
.sheet { width: min(100%, 480px); max-width: 100%; max-height: 92dvh; margin: auto auto 0; padding: 0; border: 0;
  border-radius: 26px 26px 0 0; background: var(--ink-2); color: var(--paper); box-shadow: 0 0 0 1px var(--hair); overflow: auto; }
.sheet::backdrop { background: rgba(4, 7, 13, .72); backdrop-filter: blur(3px); }
.sheet[open] { animation: rise .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 600px) { .sheet { margin: auto; border-radius: 26px; } }
.sheet-body { position: relative; display: grid; gap: 12px; padding: 20px 22px calc(24px + env(safe-area-inset-bottom)); }
.sheet-x { position: absolute; top: 28px; inset-inline-end: 30px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(11, 18, 32, .7); color: var(--paper); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.sheet-shot { position: relative; border-radius: 16px; overflow: hidden; }
.sheet-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: brightness(.55) saturate(.8); }
.sheet-shot span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--paper); }
.sheet-shot svg { width: 44px; height: 44px; }
.sheet-line { color: var(--muted); font-size: .95rem; }
.sheet .btn { width: 100%; }

/* Course hub */
.hub-head { padding-block: 96px 8px; }
.bar { height: 6px; border-radius: 3px; background: var(--ink-3); overflow: hidden; margin-top: 16px; }
.bar i { display: block; height: 100%; width: 0; background: var(--amber); border-radius: 3px; transition: width .6s ease; }
.owned .only-locked { display: none; }

/* Sections arrive quietly. */
.rise { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .loop svg, .wave i, .sheet[open] { animation: none; }
  .btn, .dock { transition: none; }
}
