@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-Bold.ttf"); font-weight: 700; font-display: swap; }
:root {
  --paper: #FFF8EF; --ink: #2D2A32; --brand: #6D5BD0; --brand-d: #5747b8;
  --green: #2FBF71; --green-d: #177a45; --orange: #FF9F43; --orange-d: #d97a1e; --red: #EF5D60;
  --card: #ffffff; --line: #e3d0ae; --muted: #6b6575;
  --night: #2D2A32;
  --sh-hard: 6px 7px 0 var(--ink);
  --sh-card: 5px 6px 0 #e7d7b8;
  --dots: radial-gradient(#ecd9b8 1.25px, transparent 1.35px);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body {
  font-family: Vazirmatn, system-ui, sans-serif; color: var(--ink); line-height: 1.9; font-size: 16.5px;
  background-color: var(--paper); background-image: var(--dots); background-size: 22px 22px;
}
::selection { background: #ffd9a8; }
img { max-width: 100%; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }

/* ---------- header ---------- */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(255,248,239,.94); backdrop-filter: blur(8px); border-bottom: 2px dashed var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 21px; color: var(--ink); text-decoration: none; }
.logo img { width: 40px; height: 40px; border-radius: 50%; background: #ffe9d2; border: 2px solid var(--ink); }
nav.main { margin-inline-start: auto; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
nav.main a { color: var(--ink); text-decoration: none; font-size: 15px; }
nav.main a:not(.btn) { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 2px; background-repeat: no-repeat; background-position: 100% 100%; transition: background-size .25s, color .2s; padding-bottom: 2px; }
nav.main a:not(.btn):hover { color: var(--brand); background-size: 100% 2px; }

/* ---------- buttons: chunky game-press feel ---------- */
.btn { display: inline-block; border-radius: 26px; padding: 11px 28px; font-weight: 700; font-size: 16.5px; text-decoration: none; border: 2px solid var(--ink); cursor: pointer; font-family: inherit; transition: transform .12s, box-shadow .12s; }
.btn.p { background: var(--brand); color: #fff; box-shadow: 0 5px 0 var(--ink); }
.btn.p:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn.p:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn.s { background: #fff; color: var(--ink); box-shadow: 0 5px 0 var(--line); }
.btn.s:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--line); }
.btn.s:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--line); }
.btn.sm { padding: 6px 18px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 34px; align-items: center; }
.hero h1 { font-size: 54px; line-height: 1.4; margin-bottom: 14px; letter-spacing: -.5px; }
.hero h1 .hl { position: relative; display: inline-block; padding: 0 10px; transform: rotate(-1.2deg); }
.hero h1 .hl::before { content: ""; position: absolute; inset: 8% -2% 4% -2%; background: #ffd9a8; border-radius: 6px 14px 8px 16px; z-index: -1; }
.hero p.lead { font-size: 18.5px; color: #454050; margin-bottom: 22px; text-align: justify; }
.proof { margin-top: 18px; font-size: 14.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.proof b { color: var(--ink); }
.quiet { font-size: 15px; margin-top: 14px; }
.stage { position: relative; min-height: 480px; }
.shot-wrap { position: absolute; inset-inline-end: 4%; top: 10px; width: 248px; transform: rotate(1.5deg); }
.shot-frame { border: 3px solid var(--ink); border-radius: 34px; overflow: hidden; box-shadow: var(--sh-hard); background: #fff; }
.shot-frame img { display: block; width: 100%; height: 430px; object-fit: cover; object-position: top center; }
.tape { position: absolute; width: 96px; height: 28px; background: rgba(255,196,86,.8); box-shadow: 0 1px 3px rgba(45,42,50,.18); clip-path: polygon(2% 12%, 6% 0, 94% 6%, 100% 30%, 97% 88%, 90% 100%, 5% 94%, 0 60%); z-index: 3; }
.tape.t1 { top: -12px; inset-inline-start: 18px; transform: rotate(-24deg); }
.tape.t2 { top: -10px; inset-inline-end: 14px; transform: rotate(20deg); }
.shot-cap { position: absolute; bottom: -14px; inset-inline-start: 50%; transform: translateX(50%) rotate(-2deg); background: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 3px 4px 0 var(--ink); padding: 3px 14px; font-size: 13.5px; font-weight: 700; white-space: nowrap; z-index: 3; }
.stage .limo { position: absolute; inset-inline-start: 0; top: 26px; width: 168px; transform: rotate(-3deg); z-index: 2; background: #fff; border: 3px solid var(--ink); border-radius: 26px; box-shadow: 5px 6px 0 rgba(45,42,50,.85); padding: 8px; }
.sticker.coin { border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; }
.sticker { position: absolute; width: 66px; filter: drop-shadow(2px 3px 0 rgba(45,42,50,.14)); animation: float 5.5s ease-in-out infinite; z-index: 2; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(-9px) rotate(-2deg); } }
.doodle { position: absolute; z-index: 1; pointer-events: none; }

/* ---------- stats strip ---------- */
.strip { border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); background: rgba(255,255,255,.55); }
.strip .wrap { display: flex; gap: 14px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; justify-content: center; }
.stat { background: #fff; border: 2px solid var(--ink); border-radius: 18px; box-shadow: 4px 5px 0 var(--ink); padding: 8px 22px 10px; text-align: center; min-width: 168px; }
.stat:nth-child(odd) { transform: rotate(-.8deg); } .stat:nth-child(even) { transform: rotate(.7deg); }
.stat .num { font-size: 30px; font-weight: 700; color: var(--brand); line-height: 1.3; }
.stat .lbl { font-size: 13.5px; color: var(--muted); }

/* ---------- sections ---------- */
section.blk { padding: 58px 0 10px; }
section.blk h2 { font-size: 31px; line-height: 1.55; margin-bottom: 8px; }
section.blk .sub { color: var(--muted); max-width: 660px; text-align: justify; }
.sec-head { display: flex; align-items: flex-start; gap: 16px; }
.sec-no { font-size: 52px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--line); padding-top: 4px; user-select: none; }
.kicker { display: inline-block; background: #efeaff; color: var(--brand-d); font-weight: 700; font-size: 13.5px; border: 1.5px solid var(--brand); border-radius: 6px; padding: 1px 12px; margin-bottom: 10px; transform: rotate(-1deg); box-shadow: 2px 3px 0 rgba(87,71,184,.35); }
.kicker.g { background: #e2f7ea; color: var(--green-d); border-color: var(--green-d); box-shadow: 2px 3px 0 rgba(23,122,69,.3); }
.kicker.o { background: #ffedd6; color: #a35b07; border-color: var(--orange-d); box-shadow: 2px 3px 0 rgba(217,122,30,.3); }

/* ---------- cards (product language) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.card { background: var(--card); border: 2px solid var(--ink); border-radius: 20px; padding: 22px; box-shadow: var(--sh-card); transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-4px); box-shadow: 6px 9px 0 #e7d7b8; }
.card h3 { font-size: 18.5px; margin-bottom: 6px; }
.card p { font-size: 15px; color: #454050; text-align: justify; }
.card .ic { width: 54px; height: 54px; margin-bottom: 10px; }
.card.feat { background: #f2eefc; box-shadow: 5px 6px 0 #cdbff2; }
.card.feat:hover { box-shadow: 6px 9px 0 #cdbff2; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; position: relative; }
.step { padding: 6px 10px; }
.step .n { font-size: 46px; font-weight: 700; line-height: 1.1; color: var(--brand); text-shadow: 3px 3px 0 #ffd9a8; }
.step h3 { font-size: 18.5px; margin: 4px 0 6px; }
.step p { font-size: 15px; color: #454050; text-align: justify; }

/* ---------- quiz ---------- */
.quiz { background: #fff; border: 2.5px solid var(--ink); border-radius: 22px; box-shadow: var(--sh-hard); padding: 26px; margin-top: 24px; position: relative; }
.quiz .meta { font-size: 13.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.quiz .qq { font-size: 19.5px; font-weight: 700; margin: 8px 0 14px; }
.quiz .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz .opt { border: 2px solid var(--line); background: var(--paper); border-radius: 14px; padding: 10px 14px; font-size: 16px; cursor: pointer; text-align: right; font-family: inherit; transition: transform .12s, border-color .15s, box-shadow .12s; }
.quiz .opt:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 3px 4px 0 var(--line); }
.quiz .opt.ok { border-color: var(--green-d); background: #eafaf1; font-weight: 700; box-shadow: 3px 4px 0 #9adbb6; }
.quiz .opt.bad { border-color: var(--red); background: #fdecec; }
.quiz .why { display: none; margin-top: 14px; background: #f2eefc; border: 1.5px solid #cdbff2; border-inline-start: 5px solid var(--brand); border-radius: 12px; padding: 12px 16px; font-size: 15px; text-align: justify; }
.quiz .why b { color: var(--brand); }
.quiz .next { display: none; margin-top: 14px; }

/* ---------- adventure journey ---------- */
.journey { background: #fff; border: 2.5px solid var(--ink); border-radius: 24px; box-shadow: var(--sh-hard); padding: 26px 18px 10px; margin-top: 24px; position: relative; overflow: hidden; }
.journey svg { width: 100%; height: auto; display: block; }
.jhint { display: none; }
.journey .jcap { display: flex; justify-content: space-between; align-items: center; padding: 0 8px 12px; flex-wrap: wrap; gap: 8px; }
.journey .jcap b { font-size: 17px; }
.journey .jcap span { font-size: 14px; color: var(--muted); }
.adv-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; margin-top: 26px; align-items: start; }
.shot-tilt { position: relative; border: 3px solid var(--ink); border-radius: 30px; overflow: hidden; box-shadow: var(--sh-hard); transform: rotate(-1.6deg); background: #fff; max-width: 300px; margin: 0 auto; }
.shot-tilt img { display: block; width: 100%; height: 400px; object-fit: cover; object-position: top center; }
.frows { display: flex; flex-direction: column; }
.frow { display: flex; gap: 14px; padding: 16px 4px; border-bottom: 2px dashed var(--line); align-items: flex-start; }
.frow:last-child { border-bottom: 0; }
.frow img { width: 46px; height: 46px; flex: none; }
.frow h3 { font-size: 18px; margin-bottom: 2px; }
.frow p { font-size: 15px; color: #454050; text-align: justify; }
.safe { background: #eafaf1; border: 2px dashed #57b97f; border-radius: 20px; padding: 24px 26px; margin-top: 26px; position: relative; }
.safe::before { content: "اصل ماجرا"; position: absolute; top: -14px; inset-inline-start: 22px; background: var(--green); color: #fff; font-weight: 700; font-size: 13px; border: 2px solid var(--ink); border-radius: 8px; padding: 0 12px; transform: rotate(-1.5deg); }
.safe h3 { margin-bottom: 6px; }
.safe p { text-align: justify; }

/* ---------- editorial rows (schools) ---------- */
.erows { margin-top: 20px; border-top: 2px solid var(--ink); }
.erow { display: grid; grid-template-columns: 92px 240px 1fr; gap: 18px; padding: 20px 4px; border-bottom: 2px dashed var(--line); align-items: baseline; }
.erow .no { font-size: 40px; font-weight: 700; color: var(--brand); line-height: 1; }
.erow h3 { font-size: 19px; }
.erow p { font-size: 15.5px; color: #454050; text-align: justify; }

/* ---------- commits / faq ---------- */
.commits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.commit { background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 18px 20px 18px 18px; font-size: 15.5px; box-shadow: var(--sh-card); position: relative; padding-inline-start: 52px; }
.commit::before { content: "✓"; position: absolute; inset-inline-start: 16px; top: 16px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; border: 2px solid var(--ink); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; line-height: 1; }
.commit b { display: block; margin-bottom: 3px; }
details.faq { background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 10px 20px; margin-top: 12px; box-shadow: var(--sh-card); }
details.faq summary { font-weight: 700; cursor: pointer; font-size: 16.5px; padding: 7px 0; }
details.faq p { font-size: 15.5px; color: #454050; margin-top: 6px; text-align: justify; }

/* ---------- night CTA ---------- */
.night { background: var(--night); background-image: radial-gradient(rgba(255,248,239,.13) 1.25px, transparent 1.35px); background-size: 24px 24px; color: #FFF8EF; border: 2.5px solid var(--ink); border-radius: 24px; box-shadow: var(--sh-hard); padding: 42px 30px; margin: 56px 0; text-align: center; position: relative; overflow: hidden; }
.night h2 { color: #FFF8EF; font-size: 30px; }
.night p { color: #cfc9dd; }
.night .btn.p { box-shadow: 0 5px 0 #0f0e13; }
.night .btn.p:hover { box-shadow: 0 7px 0 #0f0e13; }
.night .btn.p:active { box-shadow: 0 2px 0 #0f0e13; }

/* ---------- footer / forms ---------- */
footer.site { border-top: 2px dashed var(--line); padding: 26px 0 34px; color: var(--muted); font-size: 14.5px; }
footer.site .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer.site a { color: var(--muted); padding: 7px 2px; display: inline-block; }
form.pilot { background: #fff; border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: var(--sh-hard); padding: 26px; margin-top: 24px; }
form.pilot label { display: block; font-weight: 700; font-size: 15px; margin: 12px 0 4px; }
form.pilot input, form.pilot textarea { width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; font-family: inherit; font-size: 16px; background: var(--paper); }
form.pilot input:focus, form.pilot textarea:focus { border-color: var(--brand); outline: none; }
form.pilot .msg { margin-top: 12px; font-size: 15px; display: none; }

/* ---------- reveals (varied, not one-note) ---------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.3,1); transition-delay: var(--d, 0s); }
.rv-l { opacity: 0; transform: translateX(26px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.3,1); transition-delay: var(--d, 0s); }
.rv-r { opacity: 0; transform: translateX(-26px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.3,1); transition-delay: var(--d, 0s); }
.rv-pop { opacity: 0; transform: scale(.93) rotate(-1deg); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.9,.3,1.2); transition-delay: var(--d, 0s); }
.rv.on, .rv-l.on, .rv-r.on, .rv-pop.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .sticker { animation: none; }
  .rv, .rv-l, .rv-r, .rv-pop { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 760px) {
  .hero { padding-top: 36px; }
  .hero .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 35px; }
  .stage { min-height: 430px; margin-top: 8px; }
  .shot-wrap { inset-inline-end: 50%; transform: translateX(-50%) rotate(1.5deg); }
  .stage .limo { width: 118px; top: -6px; }
  .cards, .steps, .commits { grid-template-columns: 1fr; }
  .stat { min-width: 148px; flex: 1; }
  .quiz .opts { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .erow { grid-template-columns: 56px 1fr; }
  .erow p { grid-column: 2; }
  .erow .no { font-size: 30px; }
  .sec-no { display: none; }
  .journey .jscroll { overflow-x: auto; direction: ltr; padding-bottom: 8px; scrollbar-width: thin; }
  .journey svg { min-width: 660px; }
  .jhint { display: inline; color: var(--brand-d); font-weight: 700; }
  nav.main a:not(.btn) { display: none; }
}

/* ================= v3: conversion & delight ================= */
section.blk { scroll-margin-top: 84px; }
.band { background: rgba(255,255,255,.62); border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); padding-bottom: 34px; margin-top: 30px; }
.band-tint { background: rgba(109,91,208,.07); border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); padding-bottom: 34px; margin-top: 30px; }
.chips { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.chip { background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 15px; font-size: 14px; font-weight: 700; box-shadow: 2.5px 3px 0 var(--ink); }
.chip::before { content: "✓"; color: var(--green-d); margin-inline-end: 6px; font-weight: 700; }
.chip.hot { background: #ffedd6; }
.sq { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='6'%3E%3Cpath d='M0 3 Q 5 0 10 3 T 20 3 T 30 3 T 40 3' fill='none' stroke='%23FF9F43' stroke-width='2.5'/%3E%3C/svg%3E"); background-repeat: repeat-x; background-position: 0 100%; background-size: auto 6px; padding-bottom: 9px; }
.ticker { direction: ltr; overflow: hidden; background: #fff; border-bottom: 2px dashed var(--line); }
.ticker .track { display: flex; width: max-content; animation: tick 32s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker .grp { display: flex; }
.ticker .grp span { direction: rtl; white-space: nowrap; font-weight: 700; font-size: 15px; padding: 9px 4px; }
.ticker .grp span::after { content: "✦"; color: var(--orange-d); margin: 0 14px; font-size: 12px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.qprog { display: flex; gap: 6px; margin: 12px 0 2px; }
.qprog i { flex: 1; height: 9px; border-radius: 99px; background: #f3e9d2; border: 1.5px solid var(--line); transition: background .3s; }
.qprog i.done { background: var(--orange); border-color: var(--ink); }
.qstars { color: #e0cda6; font-size: 19px; letter-spacing: 3px; line-height: 1; }
.qstars b { color: var(--orange); font-weight: 400; }
.burst-p { position: absolute; width: 15px; height: 15px; background: var(--orange); clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%); pointer-events: none; z-index: 5; }
.moon { position: absolute; top: 22px; inset-inline-end: 34px; width: 52px; height: 52px; border-radius: 50%; box-shadow: -15px 7px 0 0 #ffd9a8; transform: rotate(-18deg); }
.night .sticker { animation: twinkle 2.6s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { transform: scale(1) rotate(0deg); opacity: 1; } 50% { transform: scale(.78) rotate(14deg); opacity: .65; } }
.sticky-cta { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 74px; }
  .sticky-cta { display: flex; position: fixed; bottom: 0; right: 0; left: 0; z-index: 60; background: rgba(255,248,239,.96); backdrop-filter: blur(8px); border-top: 2.5px solid var(--ink); padding: 10px 14px; align-items: center; gap: 10px; transform: translateY(110%); transition: transform .3s cubic-bezier(.2,.7,.3,1); }
  .sticky-cta.show { transform: none; }
  .sticky-cta span { font-size: 13.5px; font-weight: 700; line-height: 1.6; flex: 1; }
  .sticky-cta .btn { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker .track { animation: none; }
  .night .sticker { animation: none; }
}
