/* hero */
.hero{padding:64px 0 44px;background:
  radial-gradient(60% 50% at 88% -12%, #e8f8cf 0%, rgba(232,248,207,0) 62%),
  radial-gradient(46% 40% at 4% 6%, #eef6ff 0%, rgba(238,246,255,0) 60%)}
.hero .wrap{display:grid;grid-template-columns:1fr 1.08fr;gap:36px;align-items:center}
@media (max-width:900px){.hero .wrap{grid-template-columns:1fr;gap:28px}.hero{padding:40px 0 30px}}
@media (min-width:901px){.hero{padding:72px 0 56px;overflow:hidden}}
/* No negative letter-spacing on Persian headings — see the note in theme.py. */
.hero h1{font-size:clamp(32px,5.6vw,54px);font-weight:800;line-height:1.34;margin:16px 0 0}
.hero h1 .g{background:linear-gradient(96deg,var(--green-2),var(--green-3));-webkit-background-clip:text;background-clip:text;color:transparent}
.hero .lead{font-size:16.5px;color:var(--text-2);max-width:500px;margin-top:16px;line-height:2.05}
.hero .cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.hero .badges{margin-top:22px}
.stats{display:flex;gap:30px;flex-wrap:wrap;margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
.stat b{display:block;font-size:25px;font-weight:800}
.stat span{font-size:12.5px;color:var(--muted)}

/* hero collage — real app content, no device mock */
.collage{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.collage .tall{grid-row:span 2}
.tile{position:relative;border-radius:var(--r-lg);overflow:hidden;background:var(--bg-soft);
  border:1px solid var(--line);box-shadow:var(--shadow-lg);color:inherit;display:block}
.tile video,.tile img{width:100%;height:100%;object-fit:cover;display:block}
.tile .cap{position:absolute;inset-inline:10px;bottom:10px;background:rgba(255,255,255,.94);
  border-radius:12px;padding:8px 12px;font-size:12.5px;font-weight:800;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.tile.metric{display:flex;flex-direction:column;justify-content:center;gap:2px;padding:20px;background:#fff;min-height:118px}
.tile.metric b{font-size:30px;font-weight:800;color:var(--green-3)}
.tile.metric span{font-size:13px;color:var(--muted);font-weight:700}
.tile.dark{background:var(--text);color:#fff;justify-content:flex-end}
.tile.dark b{color:var(--green)}
.tile.dark span{color:rgba(255,255,255,.7)}

/* the opening paragraph — the page's one block of real prose, for readers who want the whole
   picture in a few lines before the feature cards (and for crawlers weighing text-to-markup) */
.intro{font-size:16px;color:var(--text-2);line-height:2.15;max-width:860px;margin-inline:auto;
  text-align:justify;text-align-last:right}
@media (max-width:600px){.intro{font-size:15px;line-height:2.05;text-align:right}}

/* generic sections */
section.band{padding:62px 0}
section.band.soft{background:var(--bg-soft);border-block:1px solid var(--line)}
.grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(268px,1fr));gap:16px;margin-top:26px}
.f-card{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:22px;
  box-shadow:var(--shadow);transition:transform .2s var(--ease),box-shadow .2s}
.f-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.f-icon{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;margin-bottom:12px;
  background:var(--bg-tint)}
.f-icon svg{width:22px;height:22px;stroke:var(--green-3);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.f-card h3{font-size:17px;font-weight:800;margin-bottom:5px}
.f-card p{font-size:14px;color:var(--muted);line-height:1.95}
.f-card ul{margin-top:9px;padding-inline-start:17px;font-size:13.5px;color:var(--muted)}
.f-card li{margin:3px 0}

/* exercise cards — the only homepage doorway into the tutorial pages */
.exgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(178px,1fr));gap:14px;margin-top:26px}
.exgrid a{background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;
  box-shadow:var(--shadow);transition:transform .2s var(--ease),box-shadow .2s,border-color .2s}
.exgrid a:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg);border-color:var(--line-2)}
.exgrid img{width:100%;aspect-ratio:1;object-fit:cover;background:var(--bg-soft)}
.exgrid .n{font-size:14px;font-weight:800;padding:11px 13px 2px;line-height:1.6}
.exgrid .m{font-size:12px;color:var(--muted);padding:0 13px 12px}
/* auto-fill minmax(178px) drops to a SINGLE column below ~370px of content width, so on a 360px
   phone these became eight full-width cards with 320px-square images — most of a screen each, and
   several screens of scrolling to see the row. Two fixed columns instead: the card is a name over a
   thumbnail, it reads perfectly at 150px, and the whole set is visible in one flick. */
@media (max-width:520px){.exgrid{grid-template-columns:1fr 1fr;gap:10px}
  .exgrid .n{font-size:13px;padding:9px 11px 2px}
  .exgrid .m{font-size:11px;padding:0 11px 10px}}

/* steps */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin-top:26px;counter-reset:s}
.step{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:20px;position:relative}
.step::before{counter-increment:s;content:counter(s);position:absolute;inset-inline-start:20px;top:-15px;
  width:31px;height:31px;border-radius:99px;background:var(--text);color:#fff;display:grid;place-items:center;
  font-weight:800;font-size:14px}
.step h3{font-size:16px;font-weight:800;margin:12px 0 4px}
.step p{font-size:13.5px;color:var(--muted)}

/* faq */
.faq{margin-top:22px;max-width:820px}
/* The vertical padding lives on the summary, not on the details. Same rendered height either way,
   but on the details it padded the *box* around a 28px-tall tappable strip; on the summary the
   whole 56px row is the tap target, which is what a finger is actually aiming at. */
.faq details{background:#fff;border:1px solid var(--line);border-radius:15px;padding:0 18px;margin-bottom:10px}
.faq details[open]{border-color:var(--line-2);box-shadow:var(--shadow);padding-bottom:14px}
.faq summary{font-weight:800;font-size:15px;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:12px;padding:14px 0}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--green-3);font-weight:800;font-size:19px;line-height:1}
.faq details[open] summary::after{content:"−"}
.faq p{font-size:14px;color:var(--muted);margin-top:9px}

/* closing cta */
.close-cta{background:var(--text);color:#fff;border-radius:var(--r-lg);padding:44px 34px;text-align:center;
  margin-top:20px}
.close-cta h2{font-size:clamp(23px,3.4vw,32px);font-weight:800}
.close-cta p{color:rgba(255,255,255,.72);font-size:15px;margin-top:10px;max-width:520px;margin-inline:auto}
.close-cta .badges{justify-content:center;margin-top:24px}
.close-cta .badge{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16)}
.close-cta .badge:hover{background:rgba(255,255,255,.18)}
.close-cta .badge.pwa{background:linear-gradient(160deg,var(--green),var(--green-2));border:0}

.crumbs{font-size:12.5px;color:var(--muted);padding:16px 0 0}
.crumbs a{font-weight:700;color:var(--green-3)}
.page-head{padding:44px 0 8px}
.page-head h1{font-size:clamp(27px,4.4vw,42px);font-weight:800;line-height:1.4}
.page-head .lead{font-size:16px;color:var(--text-2);max-width:640px;margin-top:12px}
.prose h2{font-size:22px;font-weight:800;margin:36px 0 8px}
.prose h3{font-size:17px;font-weight:800;margin:22px 0 6px}
.prose p{font-size:15px;color:var(--text-2);line-height:2.1}
.prose ul{margin:10px 0;padding-inline-start:20px;font-size:14.5px;color:var(--text-2)}
.prose li{margin:5px 0}
/* contact form — no JS anywhere on this site, so this is a plain HTML POST */
.cform{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:24px;
  box-shadow:var(--shadow);margin-top:18px;max-width:640px}
.cform label{display:block;font-size:13.5px;font-weight:800;margin:16px 0 7px}
.cform label:first-of-type{margin-top:0}
.cform input,.cform select,.cform textarea{width:100%;font:inherit;font-size:16px;color:var(--text);
  background:var(--bg-soft);border:1px solid var(--line);border-radius:14px;padding:13px 15px;
  transition:border-color .18s,background .18s;-webkit-appearance:none;appearance:none}
.cform input:focus,.cform select:focus,.cform textarea:focus{outline:none;background:#fff;border-color:var(--green-2)}
.cform textarea{min-height:132px;resize:vertical;line-height:1.9}
.cform select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23727f6e'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:left 12px center;background-size:20px;padding-inline-start:40px}
/* :user-invalid, not :invalid — :invalid paints every empty required field red on first paint.
   The browser's own pattern check is what blocks submission; this is only the visual echo of it. */
.cform input:user-invalid,.cform textarea:user-invalid{border-color:#d0453a;background:#fff7f6}
.cform input:user-invalid+.hint{color:#d0453a}
.cform .hint{font-size:12.5px;color:var(--muted);margin-top:7px}
.cform .send{margin-top:22px;width:100%}
.cform .hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.ccap{margin-top:4px}
.ccap-img{display:block;width:min(100%,320px);height:88px;object-fit:contain;margin:4px 0 10px;
  border:1px solid var(--line);border-radius:14px;background:#eef6e6}
.ccap input{letter-spacing:.04em}
.ccap a{color:var(--green-3);font-weight:700}
@media (max-width:520px){.cform{padding:18px;border-radius:20px}}
.notice{background:var(--bg-tint);border:1px solid var(--line-2);border-radius:var(--r);
  padding:18px 20px;margin-top:18px;font-size:14.5px;color:var(--text-2)}
/* These tables are genuinely three columns of Persian prose, so on a phone they scroll sideways
   and that is the right answer. overscroll-behavior-x:contain is the part that matters: without it
   a horizontal fling that reaches the end of the table hands the gesture to the browser, which
   reads it as the back-swipe and navigates away from the page mid-read. */
.tablewrap{overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;margin-top:16px}
table{border-collapse:collapse;width:100%;font-size:14px;min-width:420px}
th,td{border:1px solid var(--line);padding:10px 13px;text-align:right}
th{background:var(--bg-soft);font-weight:800}

@media (max-width:520px){
  section.band{padding:40px 0}
  /* 34px of inset each side left 252px of text on a 320px screen. */
  .close-cta{padding:30px 20px;border-radius:22px}
  .stats{gap:18px 26px}
  .prose h2{margin-top:28px}
}
/* See theme.py: on a touch screen these :hover states latch after the tap and the card stays
   lifted. Declared here rather than in theme.py because this stylesheet loads second and would
   otherwise win on equal specificity. */
@media (hover:none){
  .f-card:hover,.exgrid a:hover{transform:none;box-shadow:var(--shadow)}
}
</style>

.shot-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:22px;align-items:start}
.shot{margin:0;background:#fff;border:1px solid var(--line);border-radius:var(--r);
  overflow:hidden;box-shadow:var(--shadow);max-width:none}
.shot img{width:100%;height:auto;display:block}
.shot figcaption{padding:11px 14px 13px}
.shot figcaption b{display:block;font-size:13.5px;font-weight:800;line-height:1.55}
.shot figcaption span{display:block;margin-top:3px;font-size:12px;color:var(--muted);font-weight:700;line-height:1.7}

.hero-poster{margin:0;border-radius:22px;overflow:hidden;box-shadow:var(--shadow-lg);background:#eef6e6}
.hero-poster img{width:100%;height:auto;display:block}
@media (max-width:900px){
  .shot-grid{grid-template-columns:1fr 1fr;gap:12px}
  .hero-poster{max-width:340px;margin-inline:auto}
}
@media (max-width:520px){
  .shot-grid{grid-template-columns:1fr 1fr;gap:10px}
  .shot figcaption{padding:9px 10px 11px}
  .shot figcaption b{font-size:12.5px}
  .shot figcaption span{font-size:11px}
}