/* דף הדוגמאות "מה קלוד קוד עושה אצלי": גלריית תוצרים לפי תחומים, בשפת הטרמינל של דף הקורס */

/* ===== הירו ===== */
.ex-hero .hero-copy { top: 104px; }
.ex-hero .hero-intro { max-width: 640px; margin-inline: auto; }
.g-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.g-chips a { padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; font-weight: 800; font-size: 14.5px; transition: background .2s, transform .2s; }
.g-chips a::before { content: "/"; color: var(--yellow); margin-inline-end: 3px; }
.g-chips a:hover { background: var(--yellow); color: var(--blue); transform: translateY(-2px); }
.g-chips a:hover::before { color: var(--coral); }
.ex-hero-term { position: absolute; z-index: 6; left: clamp(24px, 4vw, 90px); bottom: 64px; width: clamp(300px, 30vw, 430px); background: #fff; border-radius: 20px; box-shadow: 0 28px 50px rgba(8, 29, 85, .35); overflow: hidden; }
.ex-hero-term .ht-bar, .ex-card-term .ht-bar { background: var(--blue); }
.ex-hero-term .ht-bar i, .ex-card-term .ht-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.ex-hero-term .ht-bar i:nth-child(2), .ex-card-term .ht-bar i:nth-child(2) { background: var(--cyan); }
.ex-hero-term .ht-bar i:nth-child(3), .ex-card-term .ht-bar i:nth-child(3) { background: var(--yellow); }
.ex-hero-term .ht-bar b, .ex-card-term .ht-bar b { margin-inline-start: auto; color: #fff; font-family: ui-monospace, Consolas, monospace; font-size: 13px; font-weight: 400; letter-spacing: .04em; }
.ex-hero-term-body { padding: 14px 18px 12px; direction: rtl; text-align: right; color: var(--blue); }
.ex-hero-line { display: flex; align-items: center; gap: 8px; margin: 0; min-height: 42px; border: 1.5px solid var(--blue); border-radius: 12px; padding: 8px 14px; font-size: clamp(15px, 1.2vw, 17px); font-weight: 700; }
.ex-hero-line > span { color: var(--coral); }
.ex-hero-status { margin: 8px 2px 0; font-size: 13.5px; color: var(--coral); font-weight: 700; }

/* ===== קטעים ===== */
.g-sec { position: relative; overflow: hidden; }
.g-dark { background: #06102e; color: #fff; }
.g-dark .section-kicker { color: var(--cyan); }
.g-dark h2, .g-dark .g-sub { color: #fff; }
.g-dark .g-lead { color: #c9d4f5; }
.g-cream { background: #fbf6ec; color: var(--blue); }
.g-white { background: #fff; color: var(--blue); }
.g-cream .section-kicker, .g-white .section-kicker { color: var(--coral); }
.g-cream .g-lead, .g-white .g-lead { color: var(--muted); }
.g-head { position: relative; width: min(1040px, 100%); margin: 0 auto 36px; text-align: right; }
.examples-page .g-head h2 { margin: 6px 0 0; font-size: clamp(2.2rem, 4.2vw, 4.2rem); line-height: 1.02; letter-spacing: 0; }
.g-lead { max-width: 640px; margin: 16px 0 0; font-size: clamp(1.02rem, 1.15vw, 1.25rem); line-height: 1.6; font-weight: 600; }
.ex-spark { top: -36px; }
.g-block { width: min(1040px, 100%); margin: 0 auto 34px; }
.g-sub { margin: 0 0 12px; font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 800; }
.g-sub::before { content: ">"; color: var(--coral); margin-inline-end: .45em; }

/* ===== גרידים ופריטים ===== */
.g-grid { display: grid; gap: 12px; width: min(1040px, 100%); margin: 0 auto; }
.g-item { position: relative; margin: 0; border-radius: 20px; overflow: hidden; background: rgba(255, 255, 255, .06); box-shadow: 0 18px 36px rgba(0, 0, 0, .18); }
.g-cream .g-item, .g-white .g-item { box-shadow: 0 16px 32px rgba(29, 55, 148, .12); background: #fff; }
.g-item img, .g-item video { display: block; width: 100%; height: 100%; object-fit: cover; }
.g-item img { cursor: zoom-in; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.g-item:hover img { transform: scale(1.03); }
.g-item figcaption { position: absolute; bottom: 10px; inset-inline-start: 10px; max-width: calc(100% - 20px); padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--blue); font-size: 12.5px; font-weight: 800; pointer-events: none; }
.g-item.sq { aspect-ratio: 1; }
.g-item.r43 { aspect-ratio: 4 / 3; }
.g-item.tall { aspect-ratio: 3 / 4; }
.g-item.pres { aspect-ratio: 1754 / 1240; background: #fff; }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-3w { grid-template-columns: repeat(3, 1fr); }
.g-3w .g-item { aspect-ratio: 4 / 3; }
.g-3w .wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.g-logo-row { grid-template-columns: 1.2fr 1.2fr .9fr; }
.ex-logo-fig { display: grid; place-items: center; padding: 28px; background: #fff3dc; aspect-ratio: 4 / 3; }
.ex-logo-fig.neg { background: #3b1e3f; }
.ex-logo-fig img { width: 78%; height: auto; object-fit: contain; cursor: default; }
.g-vid-sq { aspect-ratio: 1; background: #f2a20c; }
.g-pres { grid-template-columns: 1fr 1fr 1.05fr; }
.g-pres .tall { grid-row: 1 / span 2; grid-column: 3; aspect-ratio: auto; }
.g-pres .pres:nth-child(3) { grid-column: 1 / span 2; aspect-ratio: 1754 / 620; }
.g-pres .pres:nth-child(3) img { object-position: top; }
.g-client { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; }
.g-client .g-phone { aspect-ratio: 9 / 16; }
.g-client .g-item:not(.tall):not(.g-phone) { aspect-ratio: auto; min-height: 100%; }
.g-phone { aspect-ratio: 9 / 16; border-radius: 30px; border: 7px solid var(--blue); background: var(--blue); }
.g-phone video { object-fit: cover; }
.g-screen { aspect-ratio: 16 / 9; background: var(--blue); }
.g-videos { grid-template-columns: 1.9fr .8fr .8fr; align-items: start; }
.g-gifs { grid-template-columns: 1fr; gap: 14px; width: min(760px, 100%); }
.g-gifs .g-item { border-radius: 16px; }
.g-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); width: min(1040px, 100%); margin: 0 auto; align-items: start; }
.g-two .g-head { margin-bottom: 22px; }
.examples-page .g-two .g-head h2 { font-size: clamp(1.9rem, 3.2vw, 3rem); }
.g-phone-lg { width: min(300px, 80%); margin: 0 auto; }
.g-browser { border-radius: 22px; overflow: hidden; border: 1.5px solid rgba(29, 55, 148, .12); }
.g-slides { position: relative; aspect-ratio: 16 / 10; border-radius: 0; box-shadow: none; }
.g-slides img { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .9s ease, transform 5s ease-out; cursor: default; }
.g-slides img.on { opacity: 1; transform: scale(1); }
.g-two .pill-button { margin-top: 18px; }

/* חלון קטן עם שורות ✔ */
.ex-card-term { border-radius: 22px; overflow: hidden; border: 1.5px solid rgba(29, 55, 148, .12); box-shadow: 0 14px 30px rgba(29, 55, 148, .12); background: #fff; }
.ex-card-term-body { padding: 16px 18px 18px; direction: rtl; text-align: right; color: var(--blue); }
.ex-card-term-body p { margin: 0 0 10px; font-weight: 700; font-size: 15.5px; line-height: 1.5; }
.ex-card-term-body p span { color: var(--coral); margin-inline-end: 6px; }
.ex-card-term-body p.ok { padding: 10px 14px; border-radius: 12px; background: var(--cyan-soft); }
.ex-card-term-body p.ok:last-child { margin-bottom: 0; }
.ex-card-term-body p.ok i { font-style: normal; color: #fff; background: var(--coral); width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; margin-inline-end: 8px; }
.ex-wip-line { display: flex; align-items: center; gap: 8px; min-height: 44px; border: 1.5px solid var(--blue); border-radius: 12px; padding: 8px 14px; }
.ex-wip-status { margin: 12px 2px 0 !important; color: var(--coral) !important; font-size: 14px !important; }
.ex-wip { outline: 3px dashed var(--yellow); outline-offset: 6px; }

/* ===== מה הן כותבות ===== */
.ex-quote { width: min(760px, 100%); margin: 0 auto 36px; padding: 30px 34px; border-radius: 26px; background: #fff; color: var(--blue); box-shadow: 0 16px 32px rgba(29, 55, 148, .1); }
.ex-quote blockquote { margin: 0; }
.ex-quote blockquote p { margin: 0; font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1.45; font-weight: 800; }
.ex-quote blockquote p::before { content: "״"; color: var(--coral); margin-inline-end: 4px; }
.ex-quote blockquote p::after { content: "״"; color: var(--coral); margin-inline-start: 4px; }
.ex-quote figcaption { margin-top: 12px; font-weight: 700; color: var(--muted); }
.ex-voices .dc-reactions-figure { margin-top: 0; }

/* ===== הצעה ===== */
.ex-price-note { margin-top: 14px !important; color: var(--yellow) !important; font-weight: 900; font-size: clamp(1.1rem, 1.4vw, 1.35rem); }
.ex-price-note::before { content: ">"; color: var(--coral); margin-inline-end: .4em; }

/* ===== תצוגה מוגדלת ===== */
.ex-lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1500px); max-height: 94vh; }
.ex-lightbox::backdrop { background: rgba(6, 16, 46, .9); }
.ex-lightbox img { display: block; max-width: min(96vw, 1500px); max-height: 94vh; width: auto; height: auto; border-radius: 16px; }
.ex-lb-close { position: fixed; top: 16px; inset-inline-start: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--coral); color: #fff; font-size: 20px; font-weight: 800; cursor: pointer; }

/* ===== סמן עכבר: הכוכבית של קלוד קוד, מסתובבת ===== */
.code-cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-code-cursor, .has-code-cursor a, .has-code-cursor button, .has-code-cursor summary, .has-code-cursor img, .has-code-cursor label, .has-code-cursor input, .has-code-cursor textarea, .has-code-cursor select { cursor: none; }
  .code-cursor { display: block; position: fixed; z-index: 9999; top: 0; left: 0; width: 40px; height: 40px; pointer-events: none; transform: translate(-9999px, -9999px); will-change: transform; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); transition: opacity .2s; }
  .code-cursor svg { display: block; width: 100%; height: 100%; transition: transform .18s cubic-bezier(.3, 1.4, .5, 1); }
  .code-cursor.on-link svg { transform: scale(1.45); }
  .code-cursor.on-zoom svg { transform: scale(1.2); }
  .code-cursor.on-zoom::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2.5px solid var(--coral); opacity: .8; }
  .code-cursor.down svg { transform: scale(.8); }
  .code-cursor.hidden { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .code-cursor i { animation: none; }
  .g-item img, .g-slides img { transition: none; }
}

/* קישור מדף הקורס לדף הדוגמאות */
.dc-sc-more { text-align: center; margin: 46px auto 0; }
.dc-sc-more .pill-button { margin-top: 0; }

/* ===== טלפון ===== */
@media (max-width: 820px) {
  .ex-hero .hero-copy { top: 90px; }
  .ex-hero .hero-intro { font-size: 1rem; }
  .g-chips { gap: 7px; }
  .g-chips a { padding: 6px 12px; font-size: 13px; }
  .ex-hero-term { display: none; }
  .ex-hero-term-body { padding: 10px 12px 8px; }
  .ex-hero-line { min-height: 38px; font-size: 14px; }
  .g-head { margin-bottom: 26px; }
  .g-grid { gap: 10px; }
  .g-4 { grid-template-columns: 1fr 1fr; }
  .g-3, .g-3w { grid-template-columns: 1fr 1fr; }
  .g-3w .wide { grid-column: 1 / -1; }
  .g-logo-row { grid-template-columns: 1fr 1fr; }
  .g-logo-row .g-vid-sq { grid-column: 1 / -1; max-width: 320px; width: 100%; margin: 0 auto; }
  .g-pres { grid-template-columns: 1fr 1fr; }
  .g-pres .tall { grid-row: auto; grid-column: 1 / -1; aspect-ratio: auto; max-width: 420px; margin-inline: auto; }
  .g-pres .pres:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 1754 / 1240; }
  .g-client { grid-template-columns: 1fr 1fr; }
  .g-videos { grid-template-columns: 1fr 1fr; }
  .g-videos .g-screen { grid-column: 1 / -1; }
  .g-two { grid-template-columns: 1fr; gap: 54px; }
}
@media (max-width: 480px) {
  .g-4 { grid-template-columns: 1fr 1fr; }
  .g-client { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .examples-page .courses-hero-home h1 { font-size: clamp(2.5rem, 11.5vw, 3.6rem); }
  .ex-hero .hero-intro { font-size: .95rem; line-height: 1.45; }
}

/* ===== משחק לילדים ===== */
.g-pink { background: #ffe3ee; color: var(--blue); }
.g-pink .section-kicker { color: #e2437f; }
.g-pink .g-lead { color: #5d4b7a; }
.g-game { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.g-game .wide2 { grid-column: span 2; }
.g-game .wide2:first-child { aspect-ratio: 4 / 3; }
.g-game .g-phone { aspect-ratio: auto; height: 100%; max-height: 520px; }
.g-game .r43w { aspect-ratio: 16 / 10; }
.g-game .tall { aspect-ratio: 3 / 4; }
.g-game .tallw { aspect-ratio: 3 / 2; }
.g-game .g-item { box-shadow: 0 16px 32px rgba(226, 67, 127, .14); background: #fff; }
.g-biz-solo .g-two { grid-template-columns: 1fr; max-width: 640px; }
@media (max-width: 820px) {
  .g-game { grid-template-columns: 1fr 1fr; }
  .g-game .wide2 { grid-column: 1 / -1; }
  .g-game .g-phone { height: auto; aspect-ratio: 9 / 16; max-height: none; }
}

/* ===== פרויקט אחד בכל מסך: כריכה גדולה שמסקרנת, והכול נפתח בגלריה ===== */
.px { position: relative; padding: clamp(70px, 9vw, 130px) 0; overflow: hidden; }
.px-in { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4.5vw, 70px); align-items: center; width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.px.flip .px-in { grid-template-columns: 1fr 1.35fr; }
.px.flip .px-cover { order: 2; }
.px-cover { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 28px; overflow: hidden; cursor: zoom-in; background: rgba(255, 255, 255, .08); box-shadow: 0 40px 80px rgba(0, 0, 0, .28); transform: perspective(1200px) rotateY(0deg); transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s; }
.px-cover > img, .px-cover > video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1), filter .6s; }
.px-cover:hover > img, .px-cover:hover > video, .px-cover:focus-visible > img { transform: scale(1.05); filter: brightness(.82); }
.px-cover:hover { box-shadow: 0 50px 100px rgba(0, 0, 0, .35); }
.px-peek { position: absolute; inset-inline: 18px; bottom: 18px; display: flex; gap: 10px; justify-content: flex-start; pointer-events: none; }
.px-peek img { width: 23%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; border: 3px solid #fff; box-shadow: 0 12px 24px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(26px) rotate(-3deg); transition: opacity .45s, transform .55s cubic-bezier(.3, 1.4, .5, 1); }
.px-peek img:nth-child(2) { transition-delay: .07s; transform: translateY(26px) rotate(2deg); }
.px-peek img:nth-child(3) { transition-delay: .14s; transform: translateY(26px) rotate(-1deg); }
.px-cover:hover .px-peek img, .px-cover:focus-visible .px-peek img { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)); }
.px-count { position: absolute; top: 16px; inset-inline-start: 16px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--blue); font-size: 13.5px; font-weight: 800; box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }
.px-count b { font-family: ui-monospace, Consolas, monospace; color: var(--coral); margin-inline-end: 3px; }
.px-copy { text-align: right; }
.px-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.px-kicker span { font-family: ui-monospace, Consolas, monospace; padding: 3px 9px; border-radius: 8px; background: var(--coral); color: #fff; font-size: 13px; }
.px-copy h2 { margin: 0; font-size: clamp(3rem, 6vw, 6rem); line-height: .92; letter-spacing: -.01em; }
.px-line { max-width: 440px; margin: 18px 0 18px; font-size: clamp(1.02rem, 1.2vw, 1.2rem); line-height: 1.6; font-weight: 600; }
.px-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; }
.px-chips li { padding: 6px 13px; border-radius: 999px; font-size: 14px; font-weight: 700; border: 1.5px solid currentColor; opacity: .82; }
.px-btn { margin: 0; }
/* צבע לכל פרויקט */
.tone-plum { background: #3b1e3f; color: #fff3dc; } .tone-plum .px-kicker { color: #f2a20c; } .tone-plum h2 { color: #f2a20c; }
.tone-pink { background: #ffe3ee; color: #4b2a6b; } .tone-pink .px-kicker { color: #e2437f; } .tone-pink h2 { color: #e2437f; }
.tone-cobalt { background: #1f3fd6; color: #fff; } .tone-cobalt .px-kicker { color: #ffd51e; } .tone-cobalt h2 { color: #fff; }
.tone-brick { background: #8a2f1c; color: #f6e7d2; } .tone-brick .px-kicker { color: #ffd51e; } .tone-brick h2 { color: #f6e7d2; }
.tone-night { background: #06102e; color: #fff; } .tone-night .px-kicker { color: var(--cyan); } .tone-night h2 { color: #fff; }
.tone-blue { background: var(--cyan-soft); color: var(--blue); } .tone-blue .px-kicker { color: var(--coral); } .tone-blue h2 { color: var(--blue); }
/* ועוד */
.px-more { background: #fff; }
.px-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.px-tile { position: relative; display: block; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 22px; overflow: hidden; cursor: zoom-in; background: var(--blue); text-align: right; box-shadow: 0 20px 40px rgba(29, 55, 148, .16); }
.px-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.px-tile:hover img { transform: scale(1.06); }
.px-tile span { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 16px 16px; background: linear-gradient(transparent, rgba(6, 16, 46, .88)); color: #fff; }
.px-tile b { display: block; font-size: 1.25rem; }
.px-tile small { display: block; margin-top: 2px; font-size: 13.5px; opacity: .85; font-weight: 600; }

/* ===== הגלריה ===== */
.px-gal { width: 100%; max-width: 100%; inset: 0; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(6, 16, 46, .97); color: #fff; overflow: hidden; }
.px-gal::backdrop { background: rgba(6, 16, 46, .9); }
.px-gal[open] { display: grid; grid-template-rows: auto 1fr auto; }
.px-gal-top { display: flex; align-items: center; gap: 14px; padding: 14px 20px; direction: rtl; }
.px-gal-title { font-size: 1.2rem; }
.px-gal-n { margin-inline-start: auto; font-family: ui-monospace, Consolas, monospace; opacity: .7; }
.px-gal-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--coral); color: #fff; font-size: 18px; font-weight: 800; cursor: pointer; }
.px-gal-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 70px; }
.px-gal-stage figure { margin: 0; display: grid; place-items: center; gap: 10px; max-width: 100%; max-height: 100%; animation: galIn .35s ease both; }
@keyframes galIn { from { opacity: 0; transform: scale(.98); } }
.px-gal-stage img, .px-gal-stage video { display: block; max-width: min(92vw, 1400px); max-height: calc(100dvh - 210px); width: auto; height: auto; border-radius: 14px; }
.px-gal-stage figcaption { font-weight: 700; opacity: .85; text-align: center; }
.px-gal-prev, .px-gal-next { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; transition: background .2s; }
.px-gal-prev:hover, .px-gal-next:hover { background: var(--yellow); color: var(--blue); }
.px-gal-prev { right: 14px; }
.px-gal-next { left: 14px; }
.px-gal-thumbs { display: flex; gap: 8px; padding: 12px 20px 18px; overflow-x: auto; justify-content: center; scrollbar-width: none; }
.px-gal-thumbs button { flex: none; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; background: #223; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; }
.px-gal-thumbs button.on { opacity: 1; border-color: var(--yellow); }
.px-gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.px-gal-thumbs .vt { display: grid; place-items: center; color: #fff; font-size: 18px; }

@media (max-width: 860px) {
  .px-in, .px.flip .px-in { grid-template-columns: 1fr; gap: 26px; }
  .px.flip .px-cover { order: 0; }
  .px-copy h2 { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .px-peek img { opacity: 1; transform: none; width: 21%; }
  .px-tiles { grid-template-columns: 1fr 1fr; }
  .px-gal-stage { padding: 0 8px; }
  .px-gal-prev, .px-gal-next { top: auto; bottom: 14px; margin-top: 0; width: 44px; height: 44px; }
  .px-gal-stage img, .px-gal-stage video { max-height: calc(100dvh - 230px); }
}
@media (prefers-reduced-motion: reduce) {
  .px-cover, .px-cover > img, .px-peek img, .px-tile img, .px-gal-stage figure { transition: none; animation: none; }
}
@media (max-width: 860px) { .px-gal-stage { align-content: center; padding-bottom: 66px; } }

/* טבעת מיקוד רק במקלדת, לא אחרי לחיצה בעכבר */
.pill-button:focus:not(:focus-visible), .px-cover:focus:not(:focus-visible), .px-tile:focus:not(:focus-visible), .dc-fab:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.pill-button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
@media (hover: none), (pointer: coarse) { .examples-page button, .design-course-page button { cursor: pointer; } }


/* ===== פס דוגמאות שזז לבד בכל פרויקט: רואים הכול בלי לפתוח ===== */
.px .px-cover { cursor: default; aspect-ratio: 16 / 11; }
.px-strip { position: relative; margin-top: clamp(34px, 4vw, 56px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.px-track { display: flex; width: max-content; gap: 16px; animation: pxMarquee var(--dur, 60s) linear infinite; }
.px-dup { display: flex; gap: 16px; }
.px-strip:hover .px-track { animation-play-state: paused; }
@keyframes pxMarquee { to { transform: translateX(50%); } }
.px-si { position: relative; flex: none; height: clamp(190px, 22vw, 290px); margin: 0; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .08); box-shadow: 0 18px 36px rgba(0, 0, 0, .22); cursor: zoom-in; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.px-si:hover { transform: translateY(-8px) scale(1.02); }
.px-si img, .px-si video { display: block; height: 100%; width: auto; max-width: 760px; object-fit: contain; }
.px-si.is-vid { cursor: default; }
.px-si.is-vid video { width: auto; }
.px-si figcaption { position: absolute; bottom: 10px; inset-inline-start: 10px; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .93); color: var(--blue); font-size: 12.5px; font-weight: 800; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.px-si:hover figcaption { opacity: 1; transform: none; }
/* במה לאפליקציה */
.tone-sky { background: linear-gradient(160deg, #5b7cff, #8a6dff); color: #fff; } .tone-sky .px-kicker { color: var(--yellow); } .tone-sky h2 { color: #fff; }
.px-phone { margin: 0 auto; width: min(330px, 80%); }
.px-phone-in { position: relative; aspect-ratio: 9 / 16; border-radius: 44px; border: 10px solid #1b1d3a; background: #1b1d3a; overflow: hidden; box-shadow: 0 40px 90px rgba(20, 10, 80, .45), inset 0 0 0 2px rgba(255, 255, 255, .08); transform: rotate(-3deg); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.px-phone-in::before { content: ""; position: absolute; z-index: 2; top: 10px; left: 50%; width: 70px; height: 7px; border-radius: 7px; background: rgba(255, 255, 255, .35); transform: translateX(-50%); }
.px-phone:hover .px-phone-in { transform: rotate(0deg) scale(1.02); }
.px-phone video { display: block; width: 100%; height: 100%; object-fit: cover; }
.has-phone .px-in { grid-template-columns: 1fr 1.1fr; }
.has-phone.flip .px-in { grid-template-columns: 1.1fr 1fr; }
.has-phone .px-copy h2 { font-size: clamp(3.4rem, 7vw, 7rem); }
@media (max-width: 860px) {
  .px-si { height: 200px; }
  .px-si figcaption { opacity: 1; transform: none; }
  .has-phone .px-in, .has-phone.flip .px-in { grid-template-columns: 1fr; }
  .px-phone { width: min(260px, 72%); }
}
@media (prefers-reduced-motion: reduce) {
  .px-track { animation: none; }
  .px-strip { overflow-x: auto; }
  .px-dup { display: none; }
}

.tone-cyan { background: #45d4d0; color: #0f2a6b; } .tone-cyan .px-kicker { color: #fff; } .tone-cyan h2 { color: var(--blue); }
.tone-cyan .px-kicker span { background: var(--blue); }

/* ===== פס קצר עומד במרכז, והגל של הפתיח זורם לצבע של הפרויקט הראשון ===== */
.px-row { -webkit-mask-image: none; mask-image: none; }
.px-row .px-track { animation: none; width: auto; justify-content: center; flex-wrap: wrap; margin: 0 auto; padding: 0 20px; }
.ex-hero .hero-wave path { fill: #3b1e3f; }
.px-row .px-track { flex-wrap: nowrap; }
.px-row .px-si { height: clamp(150px, 15.5vw, 205px); }
#anim .px-row .px-si, #films .px-row .px-si { height: clamp(240px, 27vw, 360px); }
/* הפתיח יושב על הסגול של הפרויקט הראשון, בלי פינות לבנות */
.ex-hero { position: relative; z-index: 2; }
.ex-hero + .px, main > .px:first-of-type { margin-top: -70px; padding-top: calc(clamp(70px, 9vw, 130px) + 70px); }
@media (max-width: 860px) {
  .px-row { overflow-x: auto; scrollbar-width: none; }
  .px-row .px-track { justify-content: flex-start; }
  .px-row .px-si { height: 170px; }
  #anim .px-row .px-si, #films .px-row .px-si { height: 300px; }
}
.examples-page .ex-hero, main > .ex-hero { width: 100%; max-width: none; margin: 0; border-radius: 0; }
.ex-hero + .px, main > .px:first-of-type { margin-top: 0; padding-top: clamp(70px, 9vw, 130px); }
.px-row .px-si img { max-width: 460px; object-fit: contain; }

/* ===== דף תערוכה: רקע אחד, עבודה אחת בכל מסך, הכוכבית הכתומה היא הסימן היחיד ===== */
.examples-page { background: #06102e; }
.examples-page main { background: #06102e; color: #fff; }
.xo-star { display: inline-block; flex: none; width: 34px; height: 34px; }
.xo-star svg { display: block; width: 100%; height: 100%; }
.xo-star-big { width: clamp(84px, 11vw, 130px); height: clamp(84px, 11vw, 130px); }
.xo-hero, .xo-end { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(22px, 3vw, 36px); min-height: 100svh; padding: 110px 20px 70px; text-align: center; }
.xo-hero h1, .xo-end h2 { margin: 0; color: #fff; font-size: clamp(3rem, 9vw, 7.6rem); line-height: .95; letter-spacing: -.01em; }
.xo-hero h1 span, .xo-end h2 span { color: var(--coral); }
.px.xo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(22px, 3vw, 34px); min-height: 100svh; padding: clamp(40px, 6vh, 70px) 20px; background: none; color: #fff; overflow: visible; }
.xo-work { margin: 0; line-height: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, .45); }
.xo-work img, .xo-work video { display: block; width: auto; height: auto; max-width: min(1180px, calc(100vw - 40px)); max-height: 76svh; }
.xo-phone .xo-work { border-radius: 40px; border: 9px solid #1b1d3a; }
.xo-line { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0; font-size: clamp(1.35rem, 2.7vw, 2.3rem); font-weight: 800; line-height: 1.2; text-align: center; }
@media (max-width: 860px) {
  .px.xo { min-height: 0; padding: 56px 16px; }
  .xo-work img, .xo-work video { max-width: calc(100vw - 32px); max-height: 68svh; }
  .xo-star { width: 26px; height: 26px; }
  .xo-star-big { width: 84px; height: 84px; }
}

/* ===== תערוכה: במה קבועה שהעבודות מתחלפות בה ===== */
.xo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(22px, 3vw, 34px); min-height: 100svh; padding: clamp(40px, 6vh, 70px) 20px; color: #fff; }
.xo-stage { position: relative; width: min(1180px, 100%); height: 76svh; }
.xo-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .16s linear; }
.xo-slide.on { opacity: 1; }
.xo-slide img, .xo-slide video { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 22px; box-shadow: 0 40px 90px rgba(0, 0, 0, .45); }
.code-cursor { width: 48px; height: 48px; }
@media (max-width: 860px) {
  .xo { min-height: 0; padding: 56px 16px; }
  .xo-stage { height: 62svh; }
}
