/* Variant A ("narrative") from the prototype: Vazirmatn, light palette, green accent. */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.f6d31671339d.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #fbfaf7;
  --ink: #17171a;
  --mute: #6b6b73;
  --line: #e6e3dc;
  --acc: #1f6f5c;
  --acc2: #e9f3ef;
  --warn: #b5561b;
  --card: #fff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
}
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.5; margin: 0 0 8px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 720px; }
.mute { color: var(--mute); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }

.btn {
  display: inline-block;
  background: var(--acc);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
}
.btn.ghost { background: transparent; color: var(--acc); border: 1.5px solid var(--acc); }
.btn.block { display: block; width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--acc2);
  color: var(--acc);
  font-weight: 700;
}
.tag.soon { background: #fdf0e6; color: var(--warn); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.note {
  background: #fff8d6;
  border: 1px dashed #d4b83a;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin: 16px 0;
}

header.site { border-bottom: 1px solid var(--line); background: var(--bg); }
header.site .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { font-weight: 900; font-size: 22px; letter-spacing: 1px; text-decoration: none; }
header.site nav { display: flex; gap: 18px; flex: 1; font-size: 14px; }
header.site nav a { text-decoration: none; color: var(--mute); }

footer.site { border-top: 1px solid var(--line); margin-top: 64px; padding: 24px 0; font-size: 13px; color: var(--mute); }
footer.site .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
footer.site nav { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.enamad { min-width: 64px; min-height: 64px; display: grid; place-items: center; }
.enamad .placeholder { width: 64px; height: 64px; border: 1px dashed var(--mute); border-radius: 8px; display: grid; place-items: center; font-size: 11px; }

.hero { padding: 64px 0 32px; }
.hero h1 { font-size: 40px; font-weight: 900; }
.hero p { font-size: 18px; }
.course-item { border-top: 1px solid var(--line); padding: 28px 0; }
.course-item p { margin: 4px 0 12px; }

.split { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; padding-top: 40px; }
.sticky { position: sticky; top: 16px; }
.price { font-size: 24px; font-weight: 900; }
.prose h1 { font-size: 34px; }
.prose .lead { font-size: 18px; }
.prose h3 { margin-top: 28px; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  header.site nav { display: none; }
  .hero h1 { font-size: 30px; }
}

/* Forms and the header's account links (signup, login, reset). */
input {
  font-family: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  width: 100%;
  background: #fff;
  color: var(--ink);
}
input:focus { outline: 2px solid var(--acc); border-color: transparent; }
label { display: block; margin-top: 12px; font-size: 14px; font-weight: 700; }
.auth-wrap { max-width: 420px; padding-top: 48px; }
.auth-wrap form button.btn { margin-top: 14px; }
.auth-wrap .steps { font-size: 12px; margin-bottom: 16px; }
.auth-wrap .hint, .auth-wrap .field-error { font-size: 13px; margin: 4px 0 0; }
.field-error, .form-errors { color: var(--warn); }
.form-errors { list-style: none; padding: 0; margin: 0 0 8px; font-size: 14px; }
.auth-links { font-size: 13px; margin-top: 14px; }
.resend { margin-top: 0; }
header.site .auth { display: flex; gap: 8px; align-items: center; }
header.site .auth form { margin: 0; }
header.site .auth .btn { padding: 6px 14px; font-size: 14px; }
header.site .who { font-size: 14px; }
.messages .note.success { background: var(--acc2); border-color: var(--acc); }

/* Lessons: the course lesson list, a text Lesson's page and its faint phone-number watermark. */
.lesson-list { list-style: none; padding: 0; margin: 12px 0 0; border-top: 1px solid var(--line); }
.lesson-list li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lesson-list .title { flex: 1; }
.lesson-list .meta { font-size: 13px; color: var(--mute); }
.lesson-list li.locked .title { color: var(--mute); }
.tag.free { background: #e8f0fb; color: #285a9b; }
.lesson-body { position: relative; overflow: hidden; padding: 8px 0 40px; }
.lesson-body > :not(.watermark) { position: relative; z-index: 1; }
.lesson-body img { max-width: 100%; height: auto; }
.lesson-body pre { background: #f3f1ec; border-radius: 10px; padding: 12px 14px; overflow-x: auto; direction: ltr; text-align: left; }
.lesson-body blockquote { margin: 16px 0; padding: 4px 16px; border-inline-start: 3px solid var(--acc); color: var(--mute); }
.watermark {
  position: absolute; inset: -20% -20%; z-index: 0; pointer-events: none; user-select: none;
  display: flex; flex-wrap: wrap; gap: 56px 64px; align-content: space-around; justify-content: space-around;
  transform: rotate(-24deg); opacity: .07; font-size: 18px; font-weight: 700; direction: ltr;
}
.card.locked { margin-top: 24px; }
.card.locked .btn { margin-top: 8px; margin-inline-end: 8px; }
.webinar { margin: 24px 0; }
.webinar .btn { margin-top: 8px; }

/* Protected video player (static/js/player.js). The container, not the <video>, goes fullscreen,
   so the moving watermark stays on top of the picture. */
.player { position: relative; background: #000; color: #fff; aspect-ratio: 16 / 9; direction: ltr; margin: 0 0 16px; overflow: hidden; }
.player-video { width: 100%; height: 100%; display: block; background: #000; }
.player-mark { position: absolute; z-index: 2; pointer-events: none; padding: 2px 8px; font-size: 13px; line-height: 1.5; text-align: center; color: #fff; background: rgba(0, 0, 0, .25); border-radius: 6px; opacity: .35; transition: left 1.2s ease, top 1.2s ease, opacity 1.2s ease; user-select: none; }
.player-msg { position: absolute; z-index: 4; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; background: rgba(0, 0, 0, .75); direction: rtl; }
.player-msg[hidden] { display: none; }
.player-bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; align-items: center; padding: 6px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.player-btn { background: none; border: 0; color: #fff; font-size: 18px; line-height: 1; padding: 6px 8px; }
.player-seek { flex: 1; accent-color: var(--acc); }
.player-time { font-size: 13px; min-width: 40px; text-align: center; }
.player:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; margin: 0; }
/* iPhone Safari cannot fullscreen an element: this fills the screen instead (UNVERIFIED on device). */
.lesson-body .player.is-pseudo-fs { position: fixed; inset: 0; z-index: 2147483000; width: 100vw; height: 100vh; height: 100dvh; aspect-ratio: auto; margin: 0; }
body.player-fs-lock { overflow: hidden; }

/* Checkout and receipts: label/value rows. */
.receipt { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 12px 0; }
.receipt dd { margin: 0; text-align: end; }
