/* סרטוני הסבר: נגן בסגנון סטוריז. רקע כהה עם אור בצבע הקהל, טיפוגרפיה
   שנכנסת מילה אחר מילה, וטלפון שמראה את התהליך האמיתי */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: 'Assistant', 'Segoe UI', Arial, sans-serif; color: #f4f6ff; background: #060914; overflow: hidden; -webkit-font-smoothing: antialiased; }
.xp { --acc: #5b8cff; position: fixed; inset: 0; display: flex; flex-direction: column; padding: max(14px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); user-select: none; -webkit-user-select: none; }
.xp-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(120% 90% at 50% -10%, #121a3a 0%, #060914 60%); }
.xp-bg i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: screen; animation: drift 18s ease-in-out infinite alternate; }
.xp-bg i:nth-child(1) { background: var(--acc); top: -25vmax; inset-inline-start: -15vmax; }
.xp-bg i:nth-child(2) { background: #3b5bff; bottom: -30vmax; inset-inline-end: -20vmax; animation-duration: 22s; opacity: .35; }
.xp-bg i:nth-child(3) { background: #22d3ee; width: 34vmax; height: 34vmax; top: 40%; inset-inline-start: 45%; animation-duration: 26s; opacity: .18; }
.xp-bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent); }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }
.xp-top { position: relative; z-index: 3; display: grid; gap: 12px; }
.xp-bars { display: flex; gap: 5px; direction: rtl; }
.xp-bars span { flex: 1; height: 3.5px; border-radius: 9px; background: rgba(255,255,255,.18); overflow: hidden; }
.xp-bars b { display: block; height: 100%; width: 0; background: #fff; border-radius: 9px; }
.xp-bars .done b { width: 100%; }
.xp-head { display: flex; align-items: center; justify-content: space-between; }
.xp-brand { font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.xp-brand em { font-style: normal; color: var(--acc); }
.xp-logo { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #2f6bff, #1b4fd0); display: grid; place-items: center; font-size: 16px; box-shadow: 0 6px 18px rgba(47,107,255,.45); }
.xp-ctl { display: flex; gap: 8px; }
.xp-ctl button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; backdrop-filter: blur(10px); cursor: pointer; display: grid; place-items: center; }
.xp-stage { position: relative; z-index: 2; flex: 1; display: grid; place-items: center; min-height: 0; }
.xp-scene { width: min(1100px, 100%); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(20px, 5vw, 70px); }
.xp-scene.solo { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.xp-text { display: grid; gap: 14px; align-content: center; }
.xp-kicker { justify-self: start; padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; color: #fff; background: color-mix(in srgb, var(--acc) 30%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 60%, transparent); opacity: 0; animation: up .6s .05s both cubic-bezier(.2,.8,.2,1); }
.solo .xp-kicker { justify-self: center; }
.xp-title { font-size: clamp(36px, 7vw, 78px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.xp-title .w { display: inline-block; opacity: 0; transform: translateY(36px) rotate(2deg); filter: blur(8px); animation: word .8s both cubic-bezier(.2,.8,.2,1); margin-inline-end: .22em; }
.xp-sub { font-size: clamp(18px, 2.4vw, 25px); line-height: 1.5; color: #c9d3f2; max-width: 34ch; opacity: 0; animation: up .8s 1.1s both cubic-bezier(.2,.8,.2,1); }
.solo .xp-sub { margin: 0 auto; }
.xp-grad { background: linear-gradient(100deg, #fff 10%, var(--acc) 45%, #fff 80%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 3.5s 1s linear infinite; }
@keyframes shine { to { background-position: -220% 0; } }
@keyframes word { to { opacity: 1; transform: none; filter: none; } }
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.7); } 70% { transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
/* הטלפון */
.xp-phone { position: relative; width: clamp(230px, 27vw, 300px); aspect-ratio: 9 / 19; border-radius: 44px; padding: 11px; background: linear-gradient(145deg, #2a3150, #0d1124); box-shadow: 0 50px 100px -20px rgba(0,0,0,.7), 0 0 0 1.5px rgba(255,255,255,.12) inset, 0 0 90px -10px color-mix(in srgb, var(--acc) 55%, transparent); opacity: 0; animation: phoneIn 1s .25s both cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(80px) rotateX(18deg) rotateY(-14deg) scale(.92); } to { opacity: 1; transform: rotateY(-7deg) rotateX(4deg); } }
.xp-phone::before { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 34%; height: 22px; border-radius: 99px; background: #05070f; z-index: 3; }
.xp-phone::after { content: ''; position: absolute; inset: 11px; border-radius: 34px; background: linear-gradient(120deg, rgba(255,255,255,.16), transparent 38%); pointer-events: none; z-index: 4; }
.xp-scr { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #f3f6fd; color: #18213a; padding: 52px 14px 16px; display: grid; align-content: start; gap: 10px; font-size: 13.5px; direction: rtl; }
.xp-scr .bar { height: 26px; border-radius: 8px; background: #e3e9f6; }
.xp-scr .card { background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 6px 20px rgba(20,40,90,.08); display: grid; gap: 6px; }
.xp-scr b { font-weight: 800; }
.d1 { animation: up .6s 1.0s both; } .d2 { animation: up .6s 1.6s both; } .d3 { animation: up .6s 2.2s both; } .d4 { animation: up .6s 2.8s both; } .d5 { animation: up .6s 3.4s both; }
.p1 { animation: pop .7s 1.4s both cubic-bezier(.2,.8,.2,1); } .p2 { animation: pop .7s 2.3s both cubic-bezier(.2,.8,.2,1); } .p3 { animation: pop .7s 3.1s both cubic-bezier(.2,.8,.2,1); }
.chat { justify-self: end; max-width: 88%; background: #dcf8c6; border-radius: 14px 14px 4px 14px; padding: 10px 12px; }
.linkchip { display: inline-flex; margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: #fff; color: #1b5fd9; font-weight: 800; direction: ltr; font-size: 12.5px; position: relative; }
.tap { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: rgba(27,95,217,.35); left: 50%; top: 50%; translate: -50% -50%; animation: tap 1.2s 2.4s both; }
@keyframes tap { 0% { opacity: 0; scale: .2; } 30% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1.8; } }
.promo { background: #fff; border: 1px solid #cfe0fb; border-radius: 18px; padding: 14px; display: grid; gap: 6px; box-shadow: 0 16px 40px rgba(20,40,90,.18); }
.gift { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff3e2; color: #e07a10; }
.acts { display: flex; gap: 6px; } .acts i { font-style: normal; padding: 5px 10px; border-radius: 99px; background: #eef4ff; color: #1b5fd9; font-weight: 800; font-size: 12px; }
.price { display: flex; align-items: baseline; gap: 10px; } .price s { color: #8b93a8; } .price b { font-size: 28px; color: #1b5fd9; }
.okchip { justify-self: start; padding: 5px 10px; border-radius: 99px; background: #e5f7ec; color: #1f7a45; font-weight: 800; font-size: 12px; }
.glow { box-shadow: 0 0 0 2px #ffb547, 0 14px 40px rgba(255,181,71,.35) !important; }
.code { font-size: 24px; font-weight: 800; letter-spacing: .14em; color: #1b5fd9; direction: ltr; text-align: center; padding: 10px; border-radius: 12px; background: #eef4ff; }
.inp { padding: 9px 11px; border-radius: 10px; border: 1.5px solid #d5ddef; background: #fff; }
.typing::after { content: '|'; animation: blink .8s infinite; color: #1b5fd9; } @keyframes blink { 50% { opacity: 0; } }
.btn-s { text-align: center; padding: 10px; border-radius: 12px; background: #1b5fd9; color: #fff; font-weight: 800; }
.ans { padding: 9px 11px; border-radius: 11px; background: #f3f6fd; border: 1.5px solid transparent; }
.ans.bad { background: #fde8ea; border-color: #f2a5ae; } .ans.good { background: #e5f7ec; border-color: #9fdcb7; }
.dots { display: flex; gap: 5px; } .dots i { width: 11px; height: 11px; border-radius: 50%; background: #d4dcea; } .dots i.on { background: #1b5fd9; }
/* לוח המורה הגדול */
.xp-dash { width: min(520px, 100%); padding: 22px; border-radius: 28px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(20px); box-shadow: 0 40px 90px -20px rgba(0,0,0,.6); display: grid; gap: 16px; animation: pop .9s .3s both cubic-bezier(.2,.8,.2,1); }
.ring { position: relative; width: 150px; height: 150px; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; } .ring .bg { stroke: rgba(255,255,255,.12); }
.ring .fg { stroke: var(--acc); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; animation: ring 1.8s .9s both cubic-bezier(.2,.8,.2,1); }
@keyframes ring { to { stroke-dashoffset: 94; } }
.ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .ring b { font-size: 38px; } .ring span { color: #b8c3e6; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .stats div { text-align: center; padding: 10px 4px; border-radius: 14px; background: rgba(255,255,255,.06); } .stats b { display: block; font-size: 22px; } .stats span { font-size: 12px; color: #b8c3e6; }
.rows { display: grid; gap: 9px; } .rows div { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; font-size: 14px; }
.rows i { height: 9px; border-radius: 99px; background: linear-gradient(90deg, var(--acc), #8fb3ff); transform-origin: right; transform: scaleX(0); animation: grow 1.2s both cubic-bezier(.2,.8,.2,1); }
@keyframes grow { to { transform: scaleX(1); } }
.weak { padding: 10px 14px; border-radius: 14px; background: rgba(255,181,71,.14); color: #ffd28a; font-weight: 700; animation: up .6s 2.6s both; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 760px; }
.chips span { padding: 14px 22px; border-radius: 18px; font-size: clamp(17px, 2.2vw, 22px); font-weight: 800; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px); opacity: 0; animation: pop .7s both cubic-bezier(.2,.8,.2,1); }
.xp-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 10px; opacity: 0; animation: up .7s 1.2s both; }
.xp-cta a { padding: 16px 30px; border-radius: 16px; font-weight: 800; font-size: 18px; text-decoration: none; }
.xp-cta .pri { background: #fff; color: #0c1530; box-shadow: 0 16px 40px -10px color-mix(in srgb, var(--acc) 80%, transparent); }
.xp-cta .sec { color: #fff; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); }
.xp-replay { margin-top: 18px; background: none; border: 0; color: #b8c3e6; font: inherit; font-size: 15px; cursor: pointer; opacity: 0; animation: up .6s 2s both; }
.xp-hint { position: absolute; z-index: 3; bottom: max(14px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); font-size: 13px; color: rgba(255,255,255,.5); }
.xp.paused .xp-bars b { animation-play-state: paused !important; }
@media (max-width: 760px) {
  .xp-scene { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 18px; }
  .xp-kicker { justify-self: center; } .xp-sub { margin: 0 auto; }
  .xp-title { font-size: clamp(32px, 9vw, 46px); }
  .xp-phone { width: min(56vw, 230px); }
  .stats b { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; } }

/* דף הסרטונים */
.xpi { width: min(1000px, 100%); display: grid; gap: 30px; padding: 20px 0; }
.xpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.xpi-card { position: relative; overflow: hidden; display: grid; gap: 8px; padding: 24px; border-radius: 24px; text-decoration: none; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px); transition: transform .2s, border-color .2s; animation: pop .7s both; }
.xpi-card:nth-child(2) { animation-delay: .1s; } .xpi-card:nth-child(3) { animation-delay: .2s; } .xpi-card:nth-child(4) { animation-delay: .3s; }
.xpi-card::before { content: ''; position: absolute; inset: -40% -40% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--acc); filter: blur(60px); opacity: .35; }
.xpi-card:hover { transform: translateY(-3px); border-color: var(--acc); }
.xpi-card b { position: relative; font-size: 24px; } .xpi-card span { position: relative; color: #c9d3f2; line-height: 1.5; } .xpi-card em { position: relative; font-style: normal; font-weight: 800; color: var(--acc); }
@media (max-width: 760px) { .xpi-grid { grid-template-columns: 1fr; } }
/* טקסט מדורג: הצבע על כל מילה ולא על הכותרת. כל מילה מונפשת כשכבה נפרדת,
   ושיפוע שנצבע על ההורה לא הגיע אליהן, והכותרת יצאה שקופה */
.xp-grad { background: none; color: #fff; animation: none; }
.xp-grad .w { background: linear-gradient(100deg, #fff 10%, var(--acc) 50%, #fff 90%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation-name: word, shine; animation-duration: .8s, 3.5s; animation-timing-function: cubic-bezier(.2,.8,.2,1), linear; animation-iteration-count: 1, infinite; animation-fill-mode: both, none; }
