/* TICKARASHI — אתר הנחיתה.
   הצבעים לא כתובים כאן: site.js קורא אותם מהפונטים (THEME בכל פונט) ושם אותם במשתנים. */
:root {
  --stage: #1b0a2e;
  --bg: #6a25a3; --ink: #3e1470; --text: #e4ddb2; --soft: #c8b4e0; --accent: #36c7a0;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--stage); color: var(--text); font-family: 'Assistant', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h2 { font-size: clamp(36px, 6.4vw, 76px); line-height: .98; letter-spacing: -.02em; font-weight: 800; margin: 0; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; opacity: .7; margin: 0 0 14px; }
.lede { font-size: clamp(16px, 2vw, 20px); line-height: 1.5; max-width: 34em; opacity: .85; margin: 18px 0 0; }
section { position: relative; padding: clamp(80px, 12vw, 150px) 16px; overflow: hidden; }
.head { position: relative; max-width: 1120px; margin: 0 auto 48px; }

/* הלוגו הקטן בפינה, וכפתור ההורדה */
.mark { position: fixed; top: 16px; right: 16px; z-index: 20; width: 64px; height: 44px; display: block; transition: transform .4s var(--ease), opacity .4s; }
.mark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mark:hover { transform: rotate(-6deg) scale(1.06); }
.get-pill { position: fixed; top: 20px; left: 16px; z-index: 20; padding: 9px 18px; border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: 800; font-size: 14px; text-decoration: none; box-shadow: -4px 4px 0 var(--ink); transition: transform .3s var(--ease), opacity .4s; }
.get-pill:hover { transform: translate(2px, -2px); }
body.at-top .get-pill { opacity: 0; pointer-events: none; }

/* 1. פתיחה: השעון החי ממלא את המסך; הסקשן הבא מציץ מלמטה */
.hero { position: relative; height: 90vh; height: 90svh; min-height: 540px; overflow: hidden; background: var(--bg); }
.hero-wipe { position: absolute; inset: 0; z-index: 0; clip-path: polygon(100% 0, 100% 0, 100% 0, 100% 0); pointer-events: none; }
.hero-stage { position: absolute; inset: 0; z-index: 1; will-change: transform, opacity; transform-origin: 50% 40%; }
.hero-time { position: absolute; left: 50%; top: 40%; width: min(98vw, 1500px); height: min(66vh, 760px); transform: translate(-50%, -50%); overflow: visible; }
.hero-logo { position: absolute; left: 50%; bottom: 18%; width: min(64vw, 560px); transform: translateX(-50%); }
.hero-logo svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero-line { position: absolute; z-index: 2; inset: auto 0 calc(5% + 40px) 0; margin: 0; text-align: center; font-weight: 700; font-size: clamp(14px, 1.8vw, 17px); opacity: 0; transition: opacity .8s; }
.hero.ready .hero-line { opacity: .8; }
/* חץ שקופץ — בלי מילים */
.hero-down { position: absolute; z-index: 2; left: 50%; bottom: 3%; width: 48px; height: 44px; transform: translateX(-50%); display: block; animation: down 1.4s var(--ease) infinite; }
.hero-down i { position: absolute; left: 50%; width: 26px; height: 26px; border-right: 4px solid currentColor; border-bottom: 4px solid currentColor; transform: translateX(-50%) rotate(45deg); }
.hero-down i:first-child { top: 0; opacity: .45; } .hero-down i:last-child { top: 12px; }
@keyframes down { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }
@media (prefers-reduced-motion: reduce) { .hero-down { animation: none; } }

/* טלפון: האפליקציה האמיתית, 360×780, מוקטנת (‎--s נקבע ב-site.js לפי הרוחב) */
.phone-wrap { --w: 260px; width: var(--w); aspect-ratio: 360 / 780; position: relative; flex: none; }
.phone-wrap.big { --w: min(340px, 82vw); }
.phone-frame { position: absolute; inset: 0; border-radius: calc(var(--w) * .12); overflow: hidden; box-shadow: 0 0 0 calc(var(--w) * .028) #111, 0 30px 60px -20px rgba(0,0,0,.55); background: #111; }
.phone-frame iframe { position: absolute; left: 0; top: 0; width: 360px; height: 780px; border: 0; transform-origin: 0 0; transform: scale(var(--s, .72)); }

/* 2. הפונקציות */
.screens { background: var(--bg); color: var(--text); }
.screens-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 760px) { .screens-grid { grid-template-columns: 1fr; justify-items: center; } }
.screens-copy h2 { margin-bottom: 28px; }
.tool-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.tool-list button { display: block; width: 100%; text-align: right; padding: 14px 0; border: 0; border-top: 1px solid color-mix(in srgb, var(--text) 25%, transparent); background: none; color: var(--text); opacity: .45; transition: opacity .3s; }
.tool-list button.on, .tool-list button:hover { opacity: 1; }
.tool-list b { display: block; font-size: clamp(24px, 3.4vw, 38px); font-weight: 800; line-height: 1.05; }
.tool-list span { display: block; max-height: 0; overflow: hidden; font-size: 17px; opacity: .85; transition: max-height .5s var(--ease), margin .5s; }
.tool-list .on span { max-height: 80px; margin-top: 8px; }

/* 3. כל חודש, עיצוב אחר */
.switch { background: var(--bg); color: var(--text); transition: color .5s; }
.switch-wipe { position: absolute; inset: 0; clip-path: polygon(100% 0, 100% 0, 100% 0, 100% 0); pointer-events: none; }
.switch-bg { position: absolute; left: 50%; top: 56%; width: min(130vw, 1600px); height: 80%; transform: translate(-50%, -50%); opacity: .22; overflow: visible; pointer-events: none; }
.switch-row { position: relative; max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: clamp(24px, 6vw, 80px); }
@media (max-width: 760px) { .switch-row { flex-direction: column-reverse; } }
.switch-cubes { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 760px) { .switch-cubes { flex-direction: row; } }
.switch-cubes button { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 22px; border: 2px solid color-mix(in srgb, var(--text) 25%, transparent); background: transparent; font-weight: 800; font-size: 20px; transition: transform .3s var(--ease), background .3s; }
.switch-cubes button:hover { transform: translateX(-4px); }
.switch-cubes button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.switch-cubes svg { width: 64px; height: 64px; overflow: visible; display: block; }
@media (max-width: 760px) { .switch-cubes button { flex-direction: column; padding: 10px; font-size: 15px; gap: 6px; } .switch-cubes svg { width: 52px; height: 52px; } }

/* 4. סטודיו */
.studio-sec { background: var(--stage); color: #f1eee8; }   /* רקע הבמה תמיד כהה — הטקסט תמיד בהיר */
.studio-wrap { max-width: 1200px; margin: 0 auto; }

/* 5. הורדה */
.get { background: var(--bg); }
.get-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
@media (max-width: 760px) { .get-grid { grid-template-columns: 1fr; } }
.get-btn { display: inline-block; margin-top: 32px; padding: 18px 34px; border-radius: 18px; text-decoration: none; background: var(--accent); color: var(--ink); font-weight: 800; font-size: 20px; box-shadow: -6px 6px 0 var(--ink); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.get-btn:hover { transform: translate(3px, -3px); box-shadow: -9px 9px 0 var(--ink); }
.get-url { margin: 14px 0 0; font-size: 13px; opacity: .6; word-break: break-all; }
.qr { width: min(280px, 70vw); aspect-ratio: 1; background: #fff; border-radius: 24px; padding: 18px; box-shadow: -10px 10px 0 var(--ink); display: grid; place-items: center; color: #22201e; text-align: center; font-weight: 700; }
.qr svg, .qr img { width: 100%; height: 100%; display: block; }

.foot { background: var(--stage); color: #f1eee8; padding: 64px 16px 48px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.foot p { margin: 0; font-size: 13px; opacity: .55; }
.foot-logo { display: block; width: min(420px, 80vw); }
.foot-logo svg { width: 100%; height: auto; display: block; overflow: visible; }

/* המעבר למערכת העיצוב: השם מתפרק והמסך נסגר בצבע של העולם */
.door { position: fixed; inset: 0; z-index: 50; pointer-events: none; background: var(--bg); clip-path: circle(0 at var(--x, 50%) var(--y, 50%)); transition: clip-path .7s cubic-bezier(.7, 0, .3, 1); }
.door.open { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); }

/* הסרטון */
.film { background: var(--stage); color: #f1eee8; }
.film-frame { position: relative; max-width: 1120px; margin: 0 auto; border-radius: 24px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.film-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.film-sound { position: absolute; left: 16px; bottom: 16px; padding: 10px 18px; border-radius: 999px; border: 0; background: rgba(0,0,0,.55); color: #fff; font-weight: 800; font-size: 14px; backdrop-filter: blur(6px); }
.film-sound[aria-pressed=true] { background: var(--accent); color: var(--ink); }
.get-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 32px; }
.get-actions .get-btn { margin-top: 0; }
.get-web { font-weight: 800; font-size: 17px; text-decoration: underline; text-underline-offset: 4px; opacity: .85; }
