/* Easy Zaban — shared layout + neutral platform theme.
   Every colour is a token. A language course overrides the tokens in its own
   theme file (assets/theme-es.css …) so the chrome never has to be re-written. */
@font-face { font-family:'Vazirmatn'; src:url('fonts/Vazirmatn-Regular.ttf'); font-weight:400; font-display:swap; }
@font-face { font-family:'Vazirmatn'; src:url('fonts/Vazirmatn-Medium.ttf'); font-weight:600; font-display:swap; }
@font-face { font-family:'Vazirmatn'; src:url('fonts/Vazirmatn-Bold.ttf'); font-weight:700 900; font-display:swap; }
@font-face { font-family:'Inter'; src:url('fonts/Inter-SemiBold.woff2') format('woff2'); font-weight:600; font-display:swap; }
@font-face { font-family:'Inter'; src:url('fonts/Inter-Bold.woff2') format('woff2'); font-weight:700; font-display:swap; }
@font-face { font-family:'Inter'; src:url('fonts/Inter-Black.woff2') format('woff2'); font-weight:900; font-display:swap; }

:root{
  /* --- Easy Zaban platform: warm charcoal + the logo's clay orange. Not a flag. --- */
  --brand:#2B2320; --brandDeep:#191310; --accent:#D97757; --accentInk:#A8512F; --onAccent:#2B1810;
  --cream:#FBF7F2; --sand:#F2E6DA; --ink:#2B2320; --line:#E7DACD; --muted:#6E6259;
  --ov1:rgba(25,19,16,.66); --ov2:rgba(25,19,16,.80);
  --masc:#0F6B5C; --fem:#8A3A7A;          /* grammar-gender code, course-agnostic */
  --tint:#F7EFE7;                          /* row hover / soft fill */
  --err:#A03123; --errTint:#F6E7E3;        /* form / system errors */
}
*{ margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
/* the hidden attribute must win over any display rule below — several panels are
   toggled with el.hidden while also carrying a class that sets display:block */
[hidden]{ display:none !important; }
html{ scroll-behavior:smooth; }
body{ font-family:'Vazirmatn',system-ui,sans-serif; direction:rtl; background:var(--cream);
  color:var(--ink); line-height:1.75; }
.es{ font-family:'Inter',sans-serif; direction:ltr; unicode-bidi:isolate; display:inline-block; }
a{ color:inherit; text-decoration:none; }
.wrap{ max-width:1120px; margin:0 auto; padding:0 22px; }

/* header */
header{ position:sticky; top:0; z-index:50; background:var(--brand); backdrop-filter:blur(8px);
  box-shadow:0 2px 20px rgba(0,0,0,0.18); }
header .wrap{ display:flex; align-items:center; justify-content:space-between; height:64px; }
.hleft{ display:flex; align-items:center; gap:14px; min-width:0; }
.home{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.home img{ display:block; border-radius:9px; }
.home .wm{ font-family:'Inter'; direction:ltr; color:#fff; font-weight:900; font-size:16px; letter-spacing:1.4px; }
.home:hover .wm{ color:var(--accent); }
/* course name sits beside the platform mark, so home is always one tap away */
.ctag{ font-family:'Inter'; direction:ltr; font-weight:900; font-size:17px; color:#fff;
  border-right:1px solid rgba(255,255,255,.26); padding-right:14px; white-space:nowrap; }
.ctag .acc{ color:var(--accent); }
nav a.back{ color:var(--accent); font-weight:800; }
.brand{ font-family:'Inter'; direction:ltr; color:#fff; font-weight:900; font-size:18px; letter-spacing:1.4px; }
.brand .acc{ color:var(--accent); }
nav{ display:flex; gap:22px; font-weight:600; font-size:16px; }
nav a{ color:rgba(255,255,255,.86); padding:6px 2px; border-bottom:2px solid transparent; }
nav a:hover, nav a.on{ color:#fff; border-bottom-color:var(--accent); }
.burger{ display:none; background:none; border:0; color:#fff; font-size:26px; cursor:pointer; }

/* hero */
.hero{ position:relative; color:#fff; padding:96px 0 84px; text-align:center;
  background-image:linear-gradient(var(--ov1),var(--ov2)), var(--ubg,none);
  background-size:cover; background-position:center; background-color:var(--brandDeep); }
.hero h1{ font-size:54px; font-weight:900; line-height:1.25; }
.hero h1 .es{ color:var(--accent); }
.hero p{ margin-top:16px; font-size:21px; color:rgba(255,255,255,.9); }
.cta{ margin-top:30px; display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.btn{ background:var(--accent); color:var(--onAccent); font-weight:800; padding:15px 34px; border-radius:999px;
  font-size:18px; border:0; cursor:pointer; transition:transform .15s, box-shadow .15s; display:inline-block; }
.btn:hover{ transform:translateY(-2px); box-shadow:0 12px 30px rgba(0,0,0,.28); }
.btn.ghost{ background:transparent; color:#fff; box-shadow:inset 0 0 0 2px rgba(255,255,255,.5); }

/* sections */
section{ padding:64px 0; }
.eyebrow{ color:var(--accentInk); font-weight:800; font-size:15px; letter-spacing:.5px; }
h2{ font-size:34px; font-weight:900; color:var(--brand); margin:6px 0 26px; }
h2 .es{ color:var(--accentInk); }
.lead{ font-size:18px; color:var(--muted); max-width:760px; }

.grid3{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:26px; }
.card{ background:#fff; border:1px solid var(--line); border-radius:18px; padding:26px; }
.card h3{ font-size:21px; color:var(--brand); margin-bottom:8px; }
.card p{ color:var(--muted); font-size:16px; }
.card .ic{ font-size:30px; margin-bottom:10px; }

/* ---- Easy Zaban landing: language shelf ---- */
/* auto-fit so 2, 3 or 4 languages all fill the row without an orphan card */
.langgrid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:20px; margin-top:28px; }
.langcard{ position:relative; border-radius:20px; overflow:hidden; min-height:210px; display:flex;
  flex-direction:column; justify-content:flex-end; padding:24px; color:#fff;
  /* scrim: art stays bright up top, the text zone ramps to near-solid — white
     type must survive pale imagery (light stone, bright sky) without a box */
  background-image:linear-gradient(180deg, rgba(25,19,16,.05) 40%, rgba(25,19,16,.52) 68%, rgba(25,19,16,.88) 100%), var(--cbg,none);
  background-size:cover; background-position:var(--cpos, center); background-color:var(--brandDeep);
  border:1px solid var(--line); transition:transform .15s, box-shadow .15s; }
.langcard:hover{ transform:translateY(-3px); box-shadow:0 16px 40px rgba(0,0,0,.20); }
.langcard .flag{ position:absolute; top:16px; right:16px; display:flex; border-radius:6px; overflow:hidden;
  width:42px; height:28px; box-shadow:0 2px 8px rgba(0,0,0,.35); }
.langcard .flag i{ flex:1; }
.langcard .flag.horiz{ flex-direction:column; }
.langcard .flag.us{ background:repeating-linear-gradient(180deg,#B22234 0 2.15px,#fff 2.15px 4.3px); }
.langcard .flag.us b{ position:absolute; top:0; left:0; width:44%; height:53.8%; background:#3C3B6E; }
/* crescent / sun flags carry their own artwork */
.langcard .flag.svg{ display:block; background:#fff; }
.langcard .flag.svg svg{ width:100%; height:100%; display:block; }
/* test-prep cards: a wordmark tile instead of a flag */
.langcard .flag.test{ align-items:center; justify-content:center; background:var(--accent);
  color:var(--onAccent); font:900 11px 'Inter',sans-serif; letter-spacing:.6px; direction:ltr; }
/* trademark small print under the tests shelf */
.tmnote{ margin-top:16px; font-size:13px; color:var(--muted); }
/* two wide cards on the tests shelf: hold a 16:9 window so the art isn't
   letterboxed into a sliver — these cards get taller, not the image smaller */
#tests .langcard{ min-height:0; aspect-ratio:16/9; }
/* the test name is the card's headline — huge, white, on the guaranteed-dark
   base of the scrim. The picture is scenery; IELTS/TOEFL is the message. */
#tests .langcard .bigmark{ font:900 48px/1 'Inter',sans-serif; letter-spacing:3px; direction:ltr; text-align:right;
  color:#fff; text-shadow:0 2px 26px rgba(0,0,0,.65), 0 1px 4px rgba(0,0,0,.5); margin-bottom:6px; }
#tests .langcard h3{ font-size:26px; }
#tests .langcard .sub{ font-size:17px; }
#tests .langcard .st{ font-size:15px; padding:7px 18px; }
@media (max-width:700px){ #tests .langcard{ aspect-ratio:auto; min-height:240px; }
  #tests .langcard .bigmark{ font-size:38px; } }
/* frosted plate under all card text: readable on ANY artwork, on any device */
.langcard .cinfo{ align-self:flex-start; max-width:88%; background:rgba(25,19,16,.16); border-radius:14px;
  padding:11px 16px; backdrop-filter:blur(7px); -webkit-backdrop-filter:blur(7px);
  border:1px solid rgba(255,255,255,.10); }
@supports not (backdrop-filter: blur(1px)){ .langcard .cinfo{ background:rgba(25,19,16,.80); } }
.langcard h3{ font-size:23px; font-weight:900; line-height:1.35; text-shadow:0 1px 10px rgba(0,0,0,.55); }
.langcard .sub{ font-size:15px; color:rgba(255,255,255,.92); margin-top:2px; text-shadow:0 1px 8px rgba(0,0,0,.55); }
.langcard .st{ margin-top:10px; align-self:flex-start; font-size:13px; font-weight:800; border-radius:999px;
  padding:5px 14px; background:rgba(255,255,255,.18); backdrop-filter:blur(3px); }
.langcard.live .st{ background:var(--accent); color:var(--onAccent); }
/* "soon" stays quieter than live, but alive — the chip carries the status,
   the colour shouldn't have to die for it */
.langcard.soon{ filter:saturate(.8); opacity:.92; pointer-events:none; }

/* lesson list / curriculum */
.unit{ background:#fff; border:1px solid var(--line); border-radius:18px; margin-bottom:14px; overflow:hidden; }
.unit summary{ cursor:pointer; padding:26px; font-weight:800; font-size:19px; color:#fff;
  display:flex; align-items:center; gap:12px; list-style:none; position:relative; min-height:104px;
  background-image:linear-gradient(270deg, var(--ov2) 12%, var(--ov1) 62%, rgba(0,0,0,.28) 100%), var(--ubg,none);
  background-size:cover; background-position:center; background-color:var(--brandDeep);
  text-shadow:0 1px 12px rgba(0,0,0,.45); }
.unit summary::-webkit-details-marker{ display:none; }
.unit summary:before{ content:"▾"; color:var(--accent); font-size:18px; transition:transform .2s; text-shadow:none; }
.unit[open] summary:before{ transform:rotate(180deg); }
.unit summary .n{ background:var(--accent); color:var(--onAccent); border-radius:8px; padding:3px 13px;
  font-size:15px; text-shadow:none; flex-shrink:0; }
.rows{ border-top:1px solid var(--line); }
.row{ display:flex; align-items:center; gap:16px; padding:14px 26px; border-bottom:1px solid var(--line); }
.row:last-child{ border-bottom:0; }
.row .num{ width:38px; height:38px; border-radius:50%; background:var(--sand); color:var(--brand);
  display:flex; align-items:center; justify-content:center; font-weight:800; flex-shrink:0; font-size:15px; }
.row.done .num{ background:var(--brand); color:#fff; }
.row .ti{ flex:1; }
.row .ti .es{ font-weight:700; color:var(--brand); font-size:17px; }
.row .ti small{ display:block; color:var(--muted); font-size:14px; }
.row .st{ font-size:14px; font-weight:700; color:#A79C93; }
.row.done .st{ color:var(--brand); }
.row.done:hover{ background:var(--tint); }

/* lesson page */
.lhead{ background-image:linear-gradient(var(--ov1),var(--ov2)), var(--ubg,none);
  background-size:cover; background-position:center; background-color:var(--brandDeep);
  color:#fff; padding:52px 0 44px; }
.lhead .eb{ color:var(--accent); font-weight:800; }
.lhead h1{ font-size:42px; font-weight:900; margin-top:6px; }
.lhead h1 .es{ color:#fff; }
.lhead p{ margin-top:10px; font-size:19px; color:rgba(255,255,255,.88); }
video{ width:100%; border-radius:18px; background:#000; display:block; box-shadow:0 20px 50px rgba(0,0,0,.18); }
.dl{ display:flex; gap:14px; flex-wrap:wrap; margin-top:20px; }
.dl a{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:14px 22px;
  font-weight:700; color:var(--brand); display:flex; align-items:center; gap:10px; }
.dl a:hover{ border-color:var(--accent); }
audio{ width:100%; margin-top:8px; }

/* the video is landscape; on a portrait phone it reads as a thumbnail unless we help */
.vbox{ position:relative; }
.rothint{ display:none; }
@media (max-width:860px){
  .vbox{ margin:0 -22px; }                    /* full-bleed: bigger before anyone taps */
  .vbox video{ border-radius:0; }
  .rothint{ display:block; text-align:center; margin:10px 22px 0; font-size:14px; color:var(--muted); }
}
@media (max-width:860px) and (orientation:landscape){
  .rothint{ display:none; }            /* already turned — say nothing */
}

.pm{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.pmc{ background:#fff; border:1px solid var(--line); border-radius:16px; padding:20px; text-align:center; cursor:pointer; }
.pmc:hover{ border-color:var(--accent); }
.pmc .tr{ font-size:26px; font-weight:900; color:var(--brand); font-family:'Inter'; direction:ltr; unicode-bidi:isolate; display:block; }
.pmc.m .tr{ color:var(--masc); } .pmc.f .tr{ color:var(--fem); }
.pmc .hint{ font-size:15px; color:var(--muted); margin-top:4px; }
.pmc .hint b{ color:var(--accentInk); }
.pmc .mean{ font-size:16px; font-weight:700; margin-top:2px; }
.pmc .play{ font-size:13px; color:var(--accentInk); font-weight:700; margin-top:6px; }

table.scene{ width:100%; border-collapse:collapse; border-radius:16px; overflow:hidden;
  box-shadow:0 2px 0 var(--line); }
table.scene th{ background:var(--brandDeep); color:#fff; text-align:right; padding:12px 18px; font-size:14px; }
table.scene td{ background:#fff; padding:12px 18px; border-bottom:1px solid var(--line); font-size:16px; }
table.scene tr:nth-child(odd) td{ background:var(--tint); }
td.who{ color:var(--accentInk); font-weight:800; width:110px; }
td.sp .es{ color:var(--brand); font-weight:700; font-size:17px; }

.note{ background:var(--sand); border-right:5px solid var(--accent); border-radius:12px; padding:18px 22px; font-size:16px; }
/* the same prev/next as the page foot, repeated under the video — finishing a
   lesson shouldn't mean scrolling past the scene table to reach the next one */
.lstep{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:18px; }
.lstep a{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:10px 18px;
  font-weight:700; font-size:15px; color:var(--brand); }
.lstep a:hover{ border-color:var(--accent); }
.lstep a.dis{ opacity:.35; pointer-events:none; }
.lstep .cnt{ font-weight:700; font-size:14px; color:var(--muted); }
@media (max-width:860px){ .lstep{ margin:14px 22px 0; } }
.lnav{ display:flex; justify-content:space-between; align-items:center; gap:14px; margin:44px 0 0; }
.lnav a{ background:var(--cream); border:1px solid var(--line); border-radius:14px; padding:14px 24px; font-weight:700; color:var(--brand); }
.lnav a.dis{ opacity:.35; pointer-events:none; }
.lnav .cnt{ font-weight:700; color:var(--muted); }

/* practice */
#game{ background:#fff; border:1px solid var(--line); border-radius:20px; padding:30px; text-align:center; min-height:330px; }
#q{ font-size:34px; font-weight:900; color:var(--brand); margin:18px 0 24px; }
#q .es{ font-size:38px; }
.opts{ display:grid; grid-template-columns:1fr 1fr; gap:12px; max-width:620px; margin:0 auto; }
.opt{ background:var(--cream); border:2px solid var(--line); border-radius:14px; padding:16px; font-size:19px;
  font-weight:700; cursor:pointer; transition:.15s; }
.opt:hover{ border-color:var(--accent); }
.opt.ok{ background:var(--sand); border-color:var(--accent); color:var(--brand); }
.opt.no{ background:#EFE7DA; border-color:#B9A88C; color:#6B5E52; }
.replay{ background:var(--sand); border:1px solid var(--line); border-radius:50%; width:52px; height:52px;
  font-size:22px; cursor:pointer; vertical-align:middle; margin-right:10px; }
.replay:hover{ border-color:var(--accent); }
.opt.nextq{ grid-column:1 / -1; background:var(--accent); color:var(--onAccent); border-color:var(--accent); font-weight:800; }
.score{ color:var(--muted); font-weight:700; }

footer{ background:var(--brandDeep); color:rgba(255,255,255,.72); padding:40px 0; margin-top:40px; font-size:15px; }
footer .wrap{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:18px; }
.fbrand{ display:flex; align-items:center; gap:14px; }
.fbrand img{ border-radius:11px; display:block; }
.fbrand .fa{ font-size:14px; color:rgba(255,255,255,.62); }
.fnav a{ color:var(--accent); font-weight:700; }
.fcopy{ flex-basis:100%; border-top:1px solid rgba(255,255,255,.14); padding-top:16px;
  font-size:13px; color:rgba(255,255,255,.55); }
.fcopy .es{ font-size:12px; }

/* contact form */
.cform{ background:#fff; border:1px solid var(--line); border-radius:20px; padding:30px;
  max-width:680px; margin-top:26px; position:relative; }
.cform label{ display:block; font-weight:700; margin:18px 0 6px; }
.cform > label:first-child{ margin-top:0; }
.cform input, .cform textarea{ width:100%; font:inherit; color:var(--ink); background:var(--cream);
  border:1px solid var(--line); border-radius:12px; padding:12px 16px; }
.cform input:focus, .cform textarea:focus{ outline:none; border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(217,119,87,.25); }
.cform input[type=email]{ direction:ltr; text-align:left; font-family:'Inter','Vazirmatn',sans-serif; }
.cform textarea{ min-height:170px; resize:vertical; }
.cform .btn{ margin-top:22px; }
.cform .btn[disabled]{ opacity:.55; cursor:default; transform:none; box-shadow:none; }
/* honeypot — invisible to people, irresistible to bots */
.cform .hp{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.cf-turnstile{ margin-top:18px; }
.cfnote{ margin-top:18px; font-weight:700; border-radius:12px; padding:14px 18px; display:none; }
.cfnote.show{ display:block; }
.cfnote.wait{ background:var(--sand); }
.cfnote.ok{ background:var(--sand); border-right:5px solid var(--accent); }
.cfnote.err{ background:var(--errTint); border-right:5px solid var(--err); color:var(--err); }
.cfnote.err a{ color:var(--accentInk); font-family:'Inter'; direction:ltr; unicode-bidi:isolate; }
.cmail{ margin-top:22px; color:var(--muted); font-weight:700; }
.cmail a{ color:var(--accentInk); font-weight:800; font-family:'Inter'; direction:ltr; unicode-bidi:isolate; }

@media (max-width:860px){
  nav{ display:none; } .burger{ display:block; }
  .home .wm{ display:none; } .ctag{ font-size:16px; }
  nav.open{ display:flex; position:absolute; top:64px; right:0; left:0; background:var(--brand);
    flex-direction:column; padding:14px 22px; gap:12px; }
  .hero h1{ font-size:34px; } .hero p{ font-size:18px; }
  .grid3, .pm, .langgrid{ grid-template-columns:1fr; } .opts{ grid-template-columns:1fr; }
  h2{ font-size:26px; } .lhead h1{ font-size:29px; }
}

/* accounts: sign-in + account pages (stage 2) */
.wrap.narrow{ max-width:640px; }
.cform .opt{ font-weight:400; color:var(--muted); font-size:14px; }
.sentto{ color:var(--muted); margin-bottom:6px; }
.sentto b{ color:var(--brand); font-family:'Inter'; direction:ltr; unicode-bidi:isolate; }
.codebox{ font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:30px; letter-spacing:14px;
  text-align:center; direction:ltr; padding:14px 16px; }
.hint2{ margin-top:16px; font-size:14px; color:var(--muted); }
.hint2 a{ color:var(--accentInk); font-weight:700; text-decoration:underline; }
.note.ok{ border-right-color:var(--masc); }
.sub-h{ font-size:22px; font-weight:900; color:var(--brand); margin:34px 0 6px; }

.devlist{ margin-top:18px; display:grid; gap:12px; }
.dev{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:14px; }
.dev.cur{ border-color:var(--accent); }
.dev b{ font-weight:700; }
.dev small{ display:block; color:var(--muted); font-size:14px; }
.badge{ background:var(--sand); color:var(--accentInk); border-radius:999px; padding:2px 10px;
  font-size:12px; font-weight:800; }
.devbtn{ background:var(--cream); border:1px solid var(--line); border-radius:10px; padding:9px 16px;
  font:inherit; font-weight:700; font-size:14px; color:var(--brand); cursor:pointer; flex-shrink:0; }
.devbtn:hover{ border-color:var(--accent); }
.devbtn[disabled]{ opacity:.5; cursor:default; }

.accbox{ background:#fff; border:1px solid var(--line); border-radius:16px; padding:8px 20px; margin-top:22px; }
.accrow{ display:flex; justify-content:space-between; gap:14px; padding:12px 0;
  border-bottom:1px solid var(--line); }
.accrow:last-child{ border-bottom:0; }
.accrow span{ color:var(--muted); }
.accbtns{ display:flex; gap:12px; flex-wrap:wrap; margin-top:28px; }
.btn.ghost.dark{ color:var(--brand); box-shadow:inset 0 0 0 2px var(--line); font-size:16px; padding:12px 24px; }
.btn.ghost.dark:hover{ box-shadow:inset 0 0 0 2px var(--accent); }

/* progress (stage 3) */
.markrow{ margin-top:40px; text-align:center; }
.markbtn{ background:#fff; border:2px solid var(--line); border-radius:999px; padding:14px 34px;
  font:inherit; font-weight:800; font-size:17px; color:var(--brand); cursor:pointer;
  transition:border-color .15s, background .15s, transform .15s; }
.markbtn:hover{ border-color:var(--accent); transform:translateY(-1px); }
.markbtn.done{ background:var(--masc); border-color:var(--masc); color:#fff; }
.markhint{ margin-top:12px; font-size:14px; color:var(--muted); }
.markhint a{ color:var(--accentInk); font-weight:700; text-decoration:underline; }
.progtotal{ margin-top:10px; font-weight:700; color:var(--accentInk); }
.ucount{ margin-right:auto; background:rgba(255,255,255,.22); border-radius:999px;
  padding:3px 12px; font-size:13px; font-weight:800; text-shadow:none; backdrop-filter:blur(3px); }
/* a finished lesson keeps its own colour rather than borrowing the "shipped" grey */
.row.finished .num{ background:var(--masc); color:#fff; }
.row.finished .st{ background:var(--masc); color:#fff; border-radius:999px;
  padding:5px 14px; font-weight:800; font-size:13px; white-space:nowrap; }
/* the greeting that replaces "ورود" once you have a session */
nav a.hello{ color:#fff; font-weight:800; }
nav a.hello:before{ content:"● "; color:var(--masc); font-size:11px; vertical-align:2px; }

/* paid lessons (stage 4) — only ever applied when the switch is on */
.row.locked .num{ background:var(--sand); color:#A79C93; }
.row.locked .st{ background:var(--sand); color:var(--muted); border-radius:999px;
  padding:5px 14px; font-weight:800; font-size:13px; white-space:nowrap; }
.row.locked .ti .es{ color:var(--muted); }
.row.locked:before{ content:"🔒"; margin-left:-6px; font-size:14px; opacity:.65; }
.paywallnote{ margin-top:10px; font-weight:700; color:var(--accentInk); }
.paywallnote a{ text-decoration:underline; }

/* purchase page (stage 5) */
.pricebox{ background:#fff; border:1px solid var(--line); border-radius:18px; padding:26px;
  text-align:center; margin-top:22px; }
.price{ font-size:34px; font-weight:900; color:var(--brand); }
.price b{ font-family:'Inter'; direction:ltr; unicode-bidi:isolate; }
.pricesub{ color:var(--muted); font-weight:700; margin-top:4px; }
.paylist{ list-style:none; margin:24px 0 26px; }
.paylist li{ padding:10px 0 10px 0; border-bottom:1px solid var(--line); }
.paylist li:last-child{ border-bottom:0; }
.paylist li:before{ content:"✓"; color:var(--masc); font-weight:900; margin-left:10px; }

/* admin dashboard (stage 6) */
.kpis{ display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:14px; margin-top:24px; }
.kpi{ background:#fff; border:1px solid var(--line); border-radius:16px; padding:20px 22px; }
.kpil{ color:var(--muted); font-weight:700; font-size:14px; }
/* proportional figures on purpose: tabular-nums looks loose at display sizes */
.kpiv{ font-size:32px; font-weight:800; color:var(--brand); line-height:1.3; margin-top:2px; }
.kpis-sub{ color:var(--muted); font-size:13px; }
.adtable{ overflow-x:auto; margin-top:14px; }
.adtable table{ width:100%; border-collapse:collapse; background:#fff;
  border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.adtable th{ background:var(--tint); text-align:right; padding:10px 14px; font-size:13px;
  color:var(--muted); font-weight:800; white-space:nowrap; }
.adtable td{ padding:10px 14px; border-top:1px solid var(--line); font-size:15px; vertical-align:top; }
/* columns of numbers DO align, so tabular here */
.adtable td.n{ font-variant-numeric:tabular-nums; text-align:center; width:1%; white-space:nowrap; }
.adtable td.mono{ font-family:'Inter'; direction:ltr; unicode-bidi:isolate; font-size:13px; }
.adtable td.msg{ color:var(--muted); max-width:420px; }
.adtable td.empty{ text-align:center; color:var(--muted); padding:22px; }
.adtable .yes{ color:var(--masc); font-weight:800; }
.barcell{ width:38%; }
/* one hue, more-is-longer: a magnitude comparison, not identity.
   RTL, so the bar is anchored on the right and grows left — round the free
   (data) end, leave the baseline end square. */
.bar{ display:block; height:9px; border-radius:4px 0 0 4px; background:var(--masc); min-width:3px; }
.st-paid{ color:var(--masc); font-weight:800; }
.st-failed, .st-cancelled{ color:var(--err); font-weight:700; }
.st-started{ color:var(--muted); }
.grantbar{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:14px; }
.grantbar input, .grantbar select{ font:inherit; padding:11px 14px; border-radius:12px;
  border:1px solid var(--line); background:#fff; }
.grantbar input{ direction:ltr; text-align:left; font-family:'Inter'; min-width:260px; }
.grantbar .btn{ padding:11px 22px; font-size:16px; }
/* labeled number fields (coupon percent / max uses): label text beside a small box */
.grantbar .flab{ display:flex; align-items:center; gap:8px; font-size:14px; font-weight:700; color:var(--muted); }
.grantbar .flab input{ min-width:0; text-align:center; }

/* اینماد trust seal. The markup is theirs and must stay byte-for-byte as issued —
   no rel="noopener noreferrer" (it suppresses the Referer their logo endpoint
   checks, and the seal then never renders). Only the wrapper is styled. */
.enamad{ flex-basis:100%; margin-top:6px; }
.enamad img{ max-width:100px; height:auto; display:block; border-radius:8px; background:#fff; }

/* progress strip — one cell per lesson, ten blocks of ten (the بخش‌ها).
   Done = the site's established finished-teal; available = sand; unpublished =
   faint outline. Deliberately NOT red→green: red reads as error, and red/green
   is the pair colorblind readers lose. The ✓ rows and the count carry the same
   information in text, so color is never the only channel. */
.pstrip{ display:flex; flex-wrap:wrap; gap:12px 10px; margin-top:24px; }
.pcells{ display:flex; gap:2px; }
.pcell{ width:8px; height:17px; border-radius:3px; background:#fff;
  border:1px solid var(--line); display:block; transition:transform .1s, border-color .1s; }
.pcell.shipped{ background:var(--sand); border-color:#DCC9B2; }
.pcell.shipped:hover{ transform:scaleY(1.18); border-color:var(--accent); }
.pcell.donecell{ background:var(--masc); border-color:var(--masc); }
/* the next lesson on the journey — only ringed once some progress exists */
.pcell.next{ box-shadow:0 0 0 2px var(--accent); }
.pcell.lockcell{ opacity:.45; }
.pnum{ text-align:center; font-size:11px; color:var(--muted); font-weight:700; margin-top:4px; }

/* hero mini-strip: the curriculum strip at a glance, one link to the map */
.pstrip.mini{ justify-content:center; gap:8px 7px; margin:22px auto 0; max-width:760px; }
.pstrip.mini .pcells{ gap:2px; }
.pstrip.mini .pcell{ width:5px; height:11px; border-radius:2px;
  background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.22); }
.pstrip.mini .pcell.shipped{ background:rgba(255,255,255,.42); border-color:rgba(255,255,255,.5); }
.pstrip.mini .pcell.donecell{ background:var(--masc); border-color:var(--masc); }
.pstrip.mini:hover .pcell.shipped{ background:rgba(255,255,255,.6); }

/* finished بخش: count pill and strip block turn the done-teal */
.ucount.complete{ background:var(--masc); color:#fff; }
.blockdone .pnum{ color:var(--masc); }
.blockdone .pnum:after{ content:" ✓"; font-weight:900; }

/* the moment a بخش is completed on a lesson page */
.unitdone{ margin-top:16px; background:var(--sand); border-right:5px solid var(--masc);
  border-radius:12px; padding:14px 18px; font-weight:800; color:var(--brand);
  animation:pop .35s ease; }
.unitdone a{ color:var(--accentInk); text-decoration:underline; font-weight:700; }
@keyframes pop{ 0%{ transform:scale(.94); opacity:0; } 100%{ transform:scale(1); opacity:1; } }

/* lesson quiz — questions live in the page; quiz.js renders into .quiz.
   Correct = teal, wrong = the error tokens; never colour alone (✓ / ✗ + text). */
.quiz{ background:#fff; border:1px solid var(--line); border-radius:18px; padding:24px; margin-top:18px; }
.qtop{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.qcount{ font-weight:800; font-size:14px; color:var(--muted); }
.qdots{ display:flex; gap:4px; }
.qdot{ width:9px; height:9px; border-radius:50%; background:#fff; border:1px solid var(--line); }
.qdot.past{ background:var(--masc); border-color:var(--masc); }
.qdot.now{ border-color:var(--accent); box-shadow:0 0 0 2px var(--accent) inset; }
.qq{ font-weight:800; font-size:18px; margin-bottom:16px; }
.qq .qline{ font-size:21px; display:inline-block; margin:6px 0 2px; }
.qq .qhint{ font-weight:600; font-size:14px; color:var(--muted); }
.qopts{ display:flex; flex-direction:column; gap:10px; }
.qopt{ font:inherit; font-weight:600; text-align:right; background:var(--tint); color:var(--ink);
  border:2px solid var(--line); border-radius:12px; padding:13px 18px; cursor:pointer;
  transition:border-color .12s, transform .12s; }
.qopt:hover:not(:disabled){ border-color:var(--accent); transform:translateY(-1px); }
.qopt:disabled{ cursor:default; opacity:.92; }
.qopt.y{ background:#E4F0ED; border-color:var(--masc); color:var(--masc); font-weight:800; }
.qopt.y:after{ content:" ✓"; font-weight:900; }
.qopt.n{ background:var(--errTint); border-color:var(--err); color:var(--err); }
.qopt.n:after{ content:" ✗"; font-weight:900; }
.qtype{ display:flex; gap:10px; flex-wrap:wrap; }
.qin{ flex:1; min-width:200px; font:600 18px 'Inter',sans-serif; padding:12px 16px;
  border:2px solid var(--line); border-radius:12px; background:#fff; color:var(--ink); }
.qin:focus{ outline:none; border-color:var(--accent); }
.qin.y{ border-color:var(--masc); color:var(--masc); }
.qin.n{ border-color:var(--err); color:var(--err); }
.qcheck,.qgo,.qretry,.qnext{ font:inherit; font-weight:800; background:var(--accent); color:var(--onAccent);
  border:0; border-radius:12px; padding:12px 26px; cursor:pointer; }
.qcheck:disabled{ opacity:.6; cursor:default; }
.qfb{ margin-top:16px; border-radius:12px; padding:14px 18px; font-size:15px; animation:pop .25s ease; }
.qfb.y{ background:#E4F0ED; border-right:5px solid var(--masc); }
.qfb.n{ background:var(--errTint); border-right:5px solid var(--err); }
.qfb b.y{ color:var(--masc); } .qfb b.n{ color:var(--err); }
.qans{ font-weight:700; }
.qnextrow{ margin-top:10px; }
.qstart,.qend{ text-align:center; padding:6px 0; }
.qintro{ color:var(--muted); font-weight:600; margin-bottom:14px; }
.qscore{ font:900 44px 'Vazirmatn',sans-serif; color:var(--brand); }
.qend.pass .qscore{ color:var(--masc); }
.qmsg{ font-weight:700; margin:6px 0 14px; }
.qmarked{ color:var(--masc); font-weight:800; margin:0 0 14px; animation:pop .35s ease; }
/* تعیین سطح: the honest "I don't know" is a full option, not fine print —
   same size as the answers, dashed so it reads as different in kind */
.qskip{ margin-top:12px; }
.qskip .linkbtn{ display:block; width:100%; background:none; cursor:pointer; font:inherit;
  font-weight:700; font-size:16px; color:var(--muted); text-align:center;
  border:2px dashed var(--line); border-radius:12px; padding:13px 18px;
  transition:border-color .12s, color .12s; }
.qskip .linkbtn:hover{ border-color:var(--accent); color:var(--accentInk); }
.placecta{ margin-top:18px; }
.placecta a{ display:inline-block; background:var(--sand); border:1px solid var(--availEdge, var(--line));
  border-radius:999px; padding:10px 22px; font-weight:700; font-size:16px; }
.placecta a:hover{ border-color:var(--accent); }
.placecta b{ color:var(--accentInk); }

/* admin: per-user progress strip + the stall table */
.ustrip{ display:flex; gap:2px; }
.ustrip i{ width:5px; height:14px; border-radius:2px; background:var(--sand);
  border:1px solid var(--line); }
.ustrip i.d{ background:var(--masc); border-color:var(--masc); }

/* discount code row on the purchase page */
.couponrow{ display:flex; gap:10px; margin-top:14px; }
.couponrow input{ font:inherit; font-family:'Inter','Vazirmatn',sans-serif; direction:ltr;
  text-align:center; letter-spacing:1px; padding:10px 14px; border-radius:12px;
  border:1px solid var(--line); background:#fff; flex:1; max-width:240px; text-transform:uppercase; }
.couponrow input:focus{ outline:none; border-color:var(--accent); }

/* ── homepage conversion pieces ──────────────────────────────────────────── */
/* scroll-reveal: sections drift up as they enter; honored only with JS on */
.reveal{ opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; transition:none; } }

/* hear-the-difference player */
.demo{ display:flex; align-items:center; gap:18px; background:var(--sand); border:1px solid var(--line);
  border-radius:18px; padding:20px 24px; margin:26px 0 34px; max-width:640px; }
.demobtn{ width:64px; height:64px; border-radius:50%; border:0; cursor:pointer; flex-shrink:0;
  background:var(--accent); color:var(--onAccent); font-size:22px; display:flex; align-items:center;
  justify-content:center; transition:transform .15s, box-shadow .15s; }
.demobtn:hover{ transform:scale(1.06); box-shadow:0 10px 26px rgba(0,0,0,.18); }
.demobtn .tri{ direction:ltr; line-height:1; }
.demotxt b{ font-size:18px; color:var(--brand); display:block; }
.demotxt span{ font-size:14px; color:var(--muted); }
.eq{ display:flex; gap:3px; align-items:flex-end; height:30px; margin-right:auto; }
.eq i{ width:5px; background:var(--accent); border-radius:3px; animation:eqb 1s ease-in-out infinite; }
.eq i:nth-child(1){ animation-delay:0s; } .eq i:nth-child(2){ animation-delay:.15s; }
.eq i:nth-child(3){ animation-delay:.3s; } .eq i:nth-child(4){ animation-delay:.45s; }
.eq i:nth-child(5){ animation-delay:.6s; }
@keyframes eqb{ 0%,100%{ height:8px; } 50%{ height:28px; } }

/* the numbers row */
.nums{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:16px; margin-top:34px; }
.num{ background:#fff; border:1px solid var(--line); border-radius:16px; padding:18px 16px; text-align:center; }
.num b{ display:block; font-size:38px; font-weight:900; color:var(--accentInk); line-height:1.2; }
.num span{ font-size:14px; color:var(--muted); font-weight:600; }

/* real-lesson video */
.vwrap{ max-width:860px; }
.vwrap video{ width:100%; display:block; border-radius:18px; border:1px solid var(--line);
  background:#000; box-shadow:0 18px 50px rgba(0,0,0,.14); }

/* comparison strip */
.vs{ max-width:860px; border:1px solid var(--line); border-radius:18px; overflow:hidden; margin-top:6px; }
.vsrow{ display:grid; grid-template-columns:1.1fr 1.2fr 1.2fr; gap:10px; padding:14px 18px;
  border-bottom:1px solid var(--line); background:#fff; align-items:center; }
.vsrow:last-child{ border-bottom:0; }
.vsrow span{ font-weight:700; color:var(--muted); font-size:15px; }
.vsrow b{ color:var(--masc); font-weight:800; font-size:15px; }
.vsrow i{ font-style:normal; color:var(--muted); font-size:14px; }
.vshead{ background:var(--tint); }
.vshead b{ color:var(--brand); font-size:16px; } .vshead b.dim{ color:var(--muted); }
@media (max-width:640px){
  /* phones keep the face-off: centered label on top, the two sides UNDER
     their headers, each carrying its own mark (✓ / ✗) */
  .vsrow{ grid-template-columns:1fr 1fr; grid-template-areas:"lab lab" "ours theirs";
    row-gap:4px; column-gap:14px; padding:12px 14px; }
  .vsrow span{ grid-area:lab; font-size:13px; text-align:center; }
  .vsrow b{ grid-area:ours; font-size:14px; }
  .vsrow i{ grid-area:theirs; font-size:13px; }
  .vshead{ grid-template-areas:"ours theirs"; }
  .vshead span{ display:none; }
  .vshead b{ font-size:15px; }
  .vshead b.dim{ grid-area:theirs; } }

/* ── homepage rhythm ─────────────────────────────────────────────────────────
   Cream → white alternation was too quiet to read as structure. One DARK band
   in the middle of the page resets the eye, and a warmer tinted section gives
   the rest real contrast without shouting. */
.band{ background:var(--brand); color:#fff; position:relative; }
.band:before, .band:after{ content:""; position:absolute; left:0; right:0; height:1px;
  background:linear-gradient(90deg, transparent, var(--accent), transparent); opacity:.5; }
.band:before{ top:0; } .band:after{ bottom:0; }
.band h2{ color:#fff; }
.band .eyebrow{ color:var(--accent); }
.band .lead{ color:rgba(255,255,255,.80); }
.band .card{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.14); }
.band .card h3{ color:#fff; }
.band .card p{ color:rgba(255,255,255,.78); }
.band .demo{ background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.16); }
.band .demotxt b{ color:#fff; }
.band .demotxt span{ color:rgba(255,255,255,.72); }
.band .num{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.14); }
.band .num b{ color:var(--accent); }
.band .num span{ color:rgba(255,255,255,.72); }
.alt{ background:var(--tint); }

/* anchors must not slide under the sticky header */
section[id]{ scroll-margin-top:78px; }

/* section headings get a short accent rule — a small pro signal, cheap */
section > .wrap > h2:after{ content:""; display:block; width:52px; height:3px; border-radius:2px;
  background:var(--accent); margin-top:14px; opacity:.85; }
.band > .wrap > h2:after{ background:var(--accent); }

/* ── homepage hero ───────────────────────────────────────────────────────────
   The landing hero used to be flat --brandDeep: a third, deadest dark against
   the header and the band. It now carries a blurred montage of the eight course
   illustrations — the worlds on offer, sensed rather than shown — over the SAME
   brand dark as the rest of the chrome, so the page has two dark tones, not three. */
.hero.home{ background-color:var(--brand); padding:76px 0 72px;
  /* tint kept only as heavy as the headline needs: light at the top where the
     art lives, deepening toward the shelf below so the seam is soft */
  background-image:radial-gradient(ellipse 62% 78% at 50% 46%, rgba(25,19,16,.52), transparent 70%),
    linear-gradient(180deg, rgba(25,19,16,.30) 0%, rgba(25,19,16,.40) 52%, rgba(25,19,16,.80) 100%), var(--ubg,none); }
.heromark{ display:flex; align-items:center; justify-content:center; gap:12px; margin-bottom:22px; }
.heromark img{ display:block; border-radius:12px; box-shadow:0 6px 22px rgba(0,0,0,.35); }
.heromark span{ font-family:'Inter',sans-serif; direction:ltr; font-weight:900; font-size:22px;
  letter-spacing:2.4px; color:#fff; }
.hero.home h1{ text-shadow:0 2px 18px rgba(0,0,0,.75), 0 1px 3px rgba(0,0,0,.55); }
.hero.home p{ text-shadow:0 1px 12px rgba(0,0,0,.7); }
.heromark span{ text-shadow:0 1px 10px rgba(0,0,0,.6); }
.herotrust{ margin-top:24px; font-size:15px; font-weight:700; color:rgba(255,255,255,.72); }
@media (max-width:640px){
  /* cover crops a 2.3:1 image to a tall window — dead centre, which is exactly
     the blurred zone. Aim the phone crop at the sharp left edge (the dancer)
     and carry a touch more tint, since the text now sits on detail. */
  .hero.home{ background-position:14% 44%;
    background-image:radial-gradient(ellipse 88% 52% at 50% 42%, rgba(25,19,16,.62), transparent 74%),
      linear-gradient(180deg, rgba(25,19,16,.38) 0%, rgba(25,19,16,.46) 52%, rgba(25,19,16,.82) 100%), var(--ubg,none); }
  .heromark img{ width:44px; height:44px; }
  .heromark span{ font-size:18px; letter-spacing:1.8px; }
  .herotrust{ font-size:13px; }
}

/* ── share + lesson tools + issue report (app.js injects these; 2026-09-06) ── */
.igbtn{ display:inline-flex; align-items:center; gap:12px; color:#fff; text-decoration:none;
  background:linear-gradient(45deg,#F58529 0%,#DD2A7B 55%,#8134AF 100%); border-radius:999px;
  padding:10px 22px 10px 16px; box-shadow:0 10px 26px rgba(0,0,0,.28); line-height:1.25;
  transition:transform .15s, box-shadow .15s; }
.igbtn:hover{ transform:translateY(-2px); box-shadow:0 14px 30px rgba(0,0,0,.34); color:#fff; }
.igbtn svg{ flex:none; }
.igbtn b{ display:block; font-size:16px; font-weight:800; }
.igbtn small{ display:block; font-size:12.5px; font-weight:600; opacity:.92; direction:ltr; text-align:right; }
@media (max-width:700px){ .igbtn{ width:100%; justify-content:center; } }
.ltools{ display:flex; justify-content:center; align-items:center; gap:6px 18px; flex-wrap:wrap; margin-top:18px; }
.lshare{ display:inline-flex; align-items:center; gap:8px; font:inherit; font-weight:800; cursor:pointer;
  background:var(--accent); color:var(--onAccent); border:0; border-radius:999px; padding:12px 24px;
  box-shadow:0 8px 20px rgba(0,0,0,.10); transition:transform .15s; }
.lshare:hover{ transform:translateY(-1px); }
.lshare svg{ flex:none; }
.lissue{ background:none; border:0; font:inherit; font-weight:700; color:var(--muted); cursor:pointer;
  text-decoration:underline; text-underline-offset:4px; padding:12px 6px; }
.lissue:hover{ color:var(--brand); }
.issuebox{ max-width:640px; margin:16px auto 0; text-align:right; }
.issuebox .cform{ margin-top:0; }
.issuef .ihead{ font-weight:800; font-size:19px; margin-bottom:6px; }
.issuef .qintro{ margin-bottom:10px; }
.ichips{ display:flex; flex-wrap:wrap; gap:8px; margin:8px 0 4px; }
.ichips label{ display:inline-flex; align-items:center; gap:7px; margin:0; font-weight:700; font-size:14px;
  border:1px solid var(--line); background:var(--cream); border-radius:999px; padding:7px 14px; cursor:pointer; }
.ichips input{ accent-color:var(--accentInk); margin:0; width:auto; }
.ichips label:has(input:checked){ border-color:var(--accent); background:var(--sand); }
.issuef textarea{ min-height:120px; }
.issuef .ihint{ font-weight:400; color:var(--muted); font-size:14px; }
.issuef .itime{ margin-top:10px; font-size:14px; color:var(--muted); }
.issuef .its{ margin-top:14px; }
.issuef .irow{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.issuef .irow .btn{ margin-top:22px; }
.issuef .icancel{ margin-top:22px; background:none; border:0; font:inherit; font-weight:700; color:var(--muted);
  cursor:pointer; text-decoration:underline; text-underline-offset:4px; }
.qsharerow{ margin-top:18px; }
.qshare{ display:inline-flex; align-items:center; gap:8px; font:inherit; font-weight:800; cursor:pointer;
  background:#fff; color:var(--brand); border:2px solid var(--line); border-radius:999px; padding:11px 22px; }
.qshare:hover{ border-color:var(--accent); }
/* fallback share sheet — only where the browser has no native share */
.shsheet{ position:fixed; inset:0; z-index:9999; background:rgba(20,12,10,.55); display:flex;
  align-items:flex-end; justify-content:center; padding:16px; }
.shcard{ background:#fff; color:var(--ink); border-radius:22px; padding:22px; width:100%; max-width:460px;
  box-shadow:0 24px 60px rgba(0,0,0,.35); text-align:right; }
.shhead{ display:flex; justify-content:space-between; align-items:center; font-size:18px; }
.shhead b{ display:inline-flex; align-items:center; gap:8px; }
.shx{ background:none; border:0; font-size:28px; line-height:1; color:var(--muted); cursor:pointer; padding:0 4px; }
.shurl{ display:flex; gap:8px; margin-top:14px; }
.shurl input{ flex:1; min-width:0; direction:ltr; text-align:left; font-family:'Inter','Vazirmatn',sans-serif; font-size:13px;
  border:1px solid var(--line); border-radius:12px; padding:10px 12px; background:var(--cream); color:var(--ink); }
.shcopy{ flex:none; background:var(--accent); color:var(--onAccent); border:0; border-radius:12px; padding:10px 16px;
  font:inherit; font-weight:800; cursor:pointer; white-space:nowrap; }
.shapps{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:14px; }
.shapp{ display:block; text-align:center; padding:13px 8px; border-radius:14px; font-weight:800; color:#fff; }
.shapp.tg{ background:#2AABEE; } .shapp.wa{ background:#25D366; } .shapp.ml{ background:var(--brand); }
.shnote{ margin-top:14px; font-size:13px; color:var(--muted); }
@media (min-width:700px){ .shsheet{ align-items:center; } }
