.motion-toggle { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font: 600 .85rem "Rubik", sans-serif; }
.conversation-ribbon { --ribbon-gap: clamp(16px, 2.2vw, 32px); overflow: hidden; background: #20152e; color: #e4d6fa; border-bottom: 1px solid #ffffff17; padding-block: 20px; }
.ribbon-track { display: flex; width: max-content; direction: rtl; transform: translateX(0); font: 650 clamp(1.4rem, 3vw, 2.4rem) "Rubik", sans-serif; }
.ribbon-group { display: flex; align-items: center; justify-content: space-around; gap: var(--ribbon-gap); min-width: 100vw; flex: 0 0 auto; padding-inline: calc(var(--ribbon-gap) / 2); }
.ribbon-group > span, .ribbon-group > i { flex: 0 0 auto; white-space: nowrap; }
.ribbon-group > i { color: #b293e8; font-size: .55em; font-style: normal; }
[data-reveal-state="pending"] { opacity: 0; }
[data-reveal-state="pending"]:focus-within { opacity: 1; }
[data-motion-paused="true"] { --motion-play-state: paused; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > :is(.pill, h1, .hero-description) { animation: hero-arrive 650ms cubic-bezier(.23, 1, .32, 1) backwards; animation-play-state: var(--motion-play-state, running); }
  @keyframes hero-arrive {
    from { transform: translateY(18px); }
    to { transform: translateY(0); }
  }
  .hero { isolation: isolate; }
  .hero::before { content: ""; position: absolute; z-index: -1; inset: 5% 30% 10% -10%; pointer-events: none; background: radial-gradient(ellipse, color-mix(in srgb, var(--brand) 12%, transparent), transparent 65%); }
  .hero.motion-in-view::before { animation: ambient-drift 16s ease-in-out infinite alternate; animation-play-state: var(--motion-play-state, running); }
  .conversation-ribbon.motion-in-view .ribbon-track { animation: conversation-flow 32s linear infinite; animation-play-state: var(--motion-play-state, running); }
  .experience.motion-in-view .scene-topic { animation: topic-float 6s ease-in-out infinite alternate; animation-play-state: var(--motion-play-state, running); }
  .experience.motion-in-view .scene-topic:nth-child(even) { animation-delay: -3s; animation-direction: alternate-reverse; }
  .download-section.motion-in-view .floating-note { animation: note-float 6s ease-in-out infinite alternate; animation-play-state: var(--motion-play-state, running); }
  .download-section.motion-in-view .note-two { animation-delay: -3s; animation-direction: alternate-reverse; }
  @keyframes ambient-drift { to { transform: translate3d(3%, -3%, 0) scale(1.05); } }
  @keyframes conversation-flow { to { transform: translateX(50%); } }
  @keyframes topic-float { to { translate: 0 -9px; } }
  @keyframes note-float { to { translate: 0 -9px; } }
}
.experience {
  --story-ink: #faf7ff;
  --story-muted: #c1b5d7;
  --story-accent: #c4a2ff;
  position: relative;
  isolation: isolate;
  padding: 80px 0 60px;
  color: var(--story-ink);
  background: #171020;
  overflow: clip;
}
.experience::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 10% 40%, #7047eb24, transparent 55%), radial-gradient(ellipse at 90% 5%, #b17fe51c, transparent 40%); pointer-events: none; }
.experience-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 35px; border-bottom: 1px solid #ffffff1f; }
.experience .eyebrow { color: var(--story-accent); }
.experience-heading h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); font-weight: 650; line-height: 1.15; }
.experience-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; font-size: .78rem; }
.experience-controls button { min-height: 44px; padding: 8px 15px; border: 1px solid #736183; border-radius: 30px; background: transparent; color: var(--story-ink); font-size: inherit; }
.experience-controls a { padding-block: 10px; text-decoration: underline; text-underline-offset: 5px; color: var(--story-muted); }
.experience-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 65px; position: relative; }
.experience-visual { grid-column: 2; grid-row: 1; align-self: start; position: relative; margin: 0; min-width: 0; padding-block: 28px; }
.experience.is-enhanced .experience-visual { position: sticky; top: 110px; }
.experience-scene { position: relative; height: min(550px, calc(100svh - 230px)); min-height: 290px; perspective: 1000px; overflow: clip; }
.story-field { display: none; position: absolute; inset: 0; pointer-events: none; }
.experience.is-enhanced .story-field { display: block; }
.story-particle { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: clamp(52px, 7vw, 86px); aspect-ratio: 1; border: 1px solid #b896e77a; border-radius: 50%; background: #7047eb38; color: #dfcefa; font: 600 clamp(.8rem, 1.4vw, 1.1rem) "Rubik", sans-serif; }
.particle-large { width: clamp(72px, 10vw, 125px); background: #9562dd30; font-size: clamp(1.1rem, 2vw, 1.7rem); }
.particle-small { width: clamp(32px, 4.5vw, 55px); }
.particle-outline { background: transparent; border-style: dashed; color: #c4a2ff; }
.step .feature-icon { border-radius: 50%; }
.scene-orbit { position: absolute; width: 72%; aspect-ratio: 1; border: 1px solid #ac88ec35; border-radius: 50%; inset: 50% auto auto 50%; transform: translate(-50%, -50%); pointer-events: none; }
.scene-orbit-outer { width: 98%; border-style: dashed; border-color: #ac88ec20; }
.scene-panel { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; opacity: 0; }
.scene-conversation { opacity: 1; }
.experience.is-enhanced .scene-panel { will-change: transform, opacity; }
.scene-question { text-align: center; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.7; color: var(--story-muted); }
.scene-question strong { color: var(--story-ink); font-weight: 650; font-size: 1.15em; }
.scene-topic { position: absolute; padding: 9px 16px; border: 1px solid #8d6db75e; border-radius: 50px; background: #2b1f3d; color: #e1d4f6; font-size: .84rem; box-shadow: 0 12px 30px #0d071b40; white-space: nowrap; }
.topic-music { top: 12%; right: 10%; transform: rotate(-9deg); }
.topic-night { top: 27%; left: 3%; transform: rotate(8deg); }
.topic-coffee { bottom: 22%; right: 0; transform: rotate(5deg); }
.topic-game { bottom: 12%; left: 13%; transform: rotate(-7deg); }
.topic-hello { top: 0; left: 19%; transform: rotate(4deg); background: #56348a; }
.topic-day { bottom: 0; right: 14%; transform: rotate(-4deg); }
.connection-line { position: absolute; width: 60%; border-top: 2px dashed #bda2ec; top: 40%; }
.scene-avatar { display: grid; place-items: center; position: absolute; top: 29%; width: 92px; height: 92px; border-radius: 50%; font: 650 1.2rem "Rubik", sans-serif; box-shadow: 0 0 0 12px #bda2ec0a, 0 0 0 25px #bda2ec08; }
.avatar-you { right: 8%; background: #c4a2ff; color: #25143e; }
.avatar-new { left: 8%; background: #7047eb; color: #fff; font-size: 2.5rem; }
.scene-click { position: absolute; top: 59%; font: 750 clamp(3rem, 6vw, 5rem)/1 "Rubik", sans-serif; letter-spacing: -.06em; }
.scene-click span { color: var(--story-accent); }
.scene-caption { position: absolute; bottom: 8%; color: var(--story-muted); font-size: .82rem; text-align: center; }
.scene-dialog { width: min(100%, 390px); background: #241a32; border: 1px solid #7c5d9b; border-radius: 24px; overflow: hidden; box-shadow: 0 28px 70px #08030c66; transform: rotate(-3deg); }
.scene-dialog-head { display: flex; align-items: center; gap: 12px; padding: 20px; border-bottom: 1px solid #ffffff14; }
.dialog-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 15px; background: #c4a2ff; color: #25143e; font-weight: 650; }
.scene-dialog-head > div { display: grid; gap: 3px; }
.scene-dialog-head strong { font-size: .9rem; font-weight: 600; }
.scene-dialog-head div > span { font-size: .7rem; color: var(--story-muted); }
.scene-dialog-head > .icon { margin-inline-start: auto; color: var(--story-accent); width: 18px; }
.scene-messages { display: flex; flex-direction: column; gap: 16px; padding: 25px 20px 32px; font-size: .91rem; }
.scene-messages > span { max-width: 90%; width: fit-content; padding: 12px 17px; background: #39294b; border-radius: 17px 17px 3px 17px; }
.scene-messages > span:nth-child(2) { align-self: flex-end; background: #8054d9; color: #fff; border-radius: 17px 17px 17px 3px; }
.scene-compose { margin: 0 15px 15px; border: 1px solid #8c71a55e; border-radius: 12px; padding: 12px; display: flex; justify-content: space-between; font-size: .78rem; color: var(--story-muted); }
.scene-compose > span { color: var(--story-accent); }
.scene-phone { position: absolute; width: 46%; max-width: 215px; border: 5px solid #30263e; border-radius: 29px; background: #fff; overflow: hidden; box-shadow: 0 24px 50px #08030c80; }
.scene-phone img { width: 100%; height: auto; }
.phone-front { right: 10%; transform: rotate(7deg); }
.phone-back { left: 7%; top: 6%; transform: rotate(-10deg) scale(.88); opacity: .8; }
.scene-app-label { position: absolute; bottom: 0; padding: 8px 15px; background: #332149; border: 1px solid #80629b; border-radius: 30px; font-size: .78rem; text-align: center; }
.experience-visual figcaption { position: relative; margin-top: 18px; color: var(--story-muted); font-size: .68rem; text-align: center; }
.experience-progress { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.experience-progress > span { width: 30px; height: 3px; border-radius: 3px; background: #5c496f; }
.experience-progress > .is-current { background: #c4a2ff; }
.experience-chapters { grid-column: 1; grid-row: 1; min-width: 0; }
.experience-chapter { display: flex; flex-direction: column; align-items: start; justify-content: center; padding-block: 45px; }
.experience.is-enhanced .experience-chapter { min-height: 66svh; padding-block: 65px; }
.chapter-index { color: var(--story-accent); font-size: .77rem; font-weight: 600; margin-bottom: 25px; }
.experience-chapter h3 { font-size: clamp(2rem, 3.5vw, 3.25rem); font-weight: 650; line-height: 1.2; letter-spacing: -.045em; }
.experience-chapter h3 em { font-style: normal; color: var(--story-accent); }
.experience-chapter p { max-width: 36ch; margin-top: 23px; color: var(--story-muted); font-size: 1rem; line-height: 1.95; }
.experience-chapter > a { display: inline-flex; align-items: center; gap: 15px; color: #e1d1fc; font-size: .83rem; text-decoration: underline; text-underline-offset: 5px; margin-top: 24px; min-height: 44px; }
.chapter-note { display: block; font-size: .74rem; color: var(--story-muted); line-height: 1.9; margin-top: 20px; max-width: 40ch; }
.experience-end { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 35px; border-top: 1px solid #ffffff1f; }
.experience-end p { font: 500 clamp(1.2rem, 2.5vw, 2rem) "Rubik", sans-serif; }
.experience .btn-primary { background: #c4a2ff; color: #25143e; box-shadow: none; }
.experience :focus-visible { outline-color: #e0c8ff; }
.guide-section { padding-top: 70px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.guide-card { position: relative; padding: 30px 28px 60px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: transform .2s var(--ease-out), border-color .2s ease; }
.guide-category { color: var(--ink-soft); font-size: .73rem; }
.guide-card h3 { margin-top: 32px; font-size: 1.5rem; font-weight: 600; }
.guide-card p { margin-top: 14px; font-size: .87rem; color: var(--ink-soft); line-height: 1.8; max-width: 28ch; }
.guide-arrow { position: absolute; bottom: 20px; inset-inline-end: 25px; color: var(--brand); font-size: 1.5rem; }
.guide-card-purple { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 25%, var(--line)); }
@media (hover: hover) and (pointer: fine) {
  .guide-card:hover { transform: translateY(-4px); border-color: var(--brand-accent); }
  .experience .btn-primary:hover { background: #d6beff; }
}
@media (max-width: 900px) {
  .motion-toggle { width: 100%; border-radius: 10px; min-height: 44px; }
  .motion-toggle::after { content: "עצירת אנימציות"; margin-inline-start: 10px; font: 400 .85rem "Heebo", sans-serif; }
  .motion-toggle[aria-pressed="true"]::after { content: "הפעלת אנימציות"; }
  .motion-toggle { display: flex; justify-content: center; align-items: center; }
  .experience-layout { gap: 28px; }
  .experience-scene { min-height: 260px; }
  .experience-chapter h3 { font-size: 2.2rem; }
  .scene-topic { font-size: .72rem; padding: 8px 11px; }
  .scene-avatar { width: 70px; height: 70px; }
  .scene-dialog-head { padding: 14px; gap: 8px; }
  .scene-dialog-head strong { font-size: .75rem; }
  .scene-dialog-head div > span { font-size: .62rem; }
  .scene-dialog-head .icon { display: none; }
  .scene-messages { font-size: .78rem; padding: 18px 14px; gap: 12px; }
  .scene-phone { border-width: 4px; border-radius: 23px; }
}
@media (max-width: 680px) {
  .experience { padding-block: 45px 35px; }
  .experience-heading { display: block; padding-bottom: 24px; }
  .experience-heading h2 { font-size: 2.35rem; }
  .experience-controls { margin-top: 20px; }
  .experience-layout { display: block; }
  .experience-visual { position: relative; top: auto; padding: 24px 0 16px; }
  .experience.is-enhanced .experience-visual { position: sticky; top: 70px; z-index: 2; background: #171020; border-bottom: 1px solid #ffffff1a; }
  .experience-layout:has(.experience-chapter a:focus-visible) .experience-visual { position: relative; top: auto; }
  .experience-scene { height: 33svh; min-height: 210px; max-height: 300px; }
  .experience-visual figcaption { margin-top: 10px; font-size: .62rem; }
  .experience-progress { margin-top: 12px; }
  .experience-chapter { padding-block: 35px; }
  .experience.is-enhanced .experience-chapter { min-height: 70svh; }
  .experience-chapter h3 { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .experience-chapter p { font-size: .94rem; margin-top: 18px; }
  .chapter-index { margin-bottom: 16px; }
  .scene-question { font-size: 1rem; }
  .scene-topic { padding: 5px 10px; font-size: .65rem; }
  .topic-hello { left: 22%; top: -1%; }
  .topic-music { top: 15%; right: 3%; }
  .topic-night { left: 0; top: 27%; }
  .scene-avatar { top: 15%; width: 68px; height: 68px; }
  .connection-line { top: 31%; }
  .scene-click { top: 57%; font-size: 3.1rem; }
  .scene-caption { bottom: 0; font-size: .7rem; }
  .scene-dialog { width: min(88%, 310px); border-radius: 17px; transform: rotate(-2deg); }
  .scene-dialog-head { padding: 10px 14px; }
  .dialog-avatar { width: 28px; height: 28px; font-size: .7rem; border-radius: 9px; }
  .scene-dialog-head strong { font-size: .72rem; }
  .scene-dialog-head div > span { display: none; }
  .scene-messages { padding: 14px; font-size: .73rem; gap: 8px; }
  .scene-messages > span { padding: 8px 10px; }
  .scene-compose { font-size: .65rem; padding: 8px 10px; margin-bottom: 10px; }
  .scene-phone { width: auto; height: 95%; aspect-ratio: 440 / 956; border-width: 3px; border-radius: 17px; }
  .phone-front { right: 22%; }
  .phone-back { left: 18%; top: 0; }
  .scene-app-label { bottom: 0; font-size: .64rem; padding: 5px 12px; }
  .experience-end { flex-direction: column; align-items: start; }
  .experience-end .btn { width: 100%; }
  .guide-grid { grid-template-columns: 1fr; gap: 15px; }
  .guide-card { padding: 25px 24px 50px; }
  .guide-card h3 { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ribbon-track { transform: none; }
  .ribbon-group:nth-child(2) { display: none; }
  [data-reveal-state] { opacity: 1 !important; transform: none !important; }
  .experience-visual, .experience.is-enhanced .experience-visual { position: relative; top: auto; }
  .experience-chapter, .experience.is-enhanced .experience-chapter { min-height: 0; padding-block: 35px; }
  .experience .scene-panel, .guide-card { will-change: auto; transition: none; }
}
@media print {
  [data-reveal-state] { opacity: 1 !important; transform: none !important; }
}
@media (max-height: 599px) {
  .experience.is-enhanced .experience-visual { position: relative; top: auto; }
  .experience.is-enhanced .experience-chapter { min-height: 0; padding-block: 35px; }
}
