/* שעשועי לשון: landing page styles */
:root {
  --ink: #fff;
  --ink-soft: rgba(255, 255, 255, .82);
  --ink-dim: rgba(255, 255, 255, .7);
  --bg: #071a42;
  --bg-2: #0b2558;
  --pink: #fac93c;
  --violet: #1e7bff;
  --glass: rgba(255, 255, 255, .07);
  --glass-line: rgba(255, 255, 255, .14);
  --display: "Rubik", system-ui, sans-serif;
  --display-weight: 900;
  --body: "Rubik", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  color-scheme: dark;
}
:root[lang="he"] {
  --display: "Rubik", system-ui, sans-serif;
  --display-weight: 900;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible {
  outline: 3px solid #ffe14d;
  outline-offset: 3px;
  border-radius: 12px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 50;
  background: #fff; color: #071a42; padding: 10px 16px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- atmosphere ---------- */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(60vmax 50vmax at 85% -10%, rgba(250, 201, 60, .22), transparent 60%),
    radial-gradient(55vmax 45vmax at -10% 30%, rgba(30, 123, 255, .55), transparent 60%),
    radial-gradient(50vmax 40vmax at 100% 90%, rgba(0, 200, 220, .22), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.sky::after {
  /* faint star dust */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 120px 80px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 200px 160px, #fff3c4 50%, transparent 51%),
    radial-gradient(1px 1px at 60px 190px, #fff 50%, transparent 51%);
  background-size: 240px 220px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  background: rgba(7, 26, 66, .6);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Rubik", sans-serif; font-weight: 900; font-size: 19px; white-space: nowrap; }


/* ---------- hero ---------- */
.hero { padding-block: clamp(32px, 7vw, 96px) clamp(40px, 7vw, 88px); }
.hero .wrap {
  display: grid; gap: clamp(28px, 5vw, 64px); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.1fr .9fr; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line);
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
}
:root[dir="rtl"] .eyebrow { padding: 6px 6px 6px 14px; }

h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); line-height: 1.02; margin: 0; letter-spacing: -.02em; }
:root[lang="he"] h1, :root[lang="he"] h2, :root[lang="he"] h3 { letter-spacing: 0; line-height: 1.08; }
h1 {
  font-size: clamp(48px, 11vw, 112px);
  margin-top: 22px;
  background: linear-gradient(100deg, #fff 30%, #ffe89a 70%, #fac93c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[lang="he"] h1 { letter-spacing: -.01em; }
.tagline {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: clamp(22px, 3.6vw, 34px); line-height: 1.15; margin: 14px 0 0;
  color: #ffe14d;
}
.pitch { font-size: clamp(17px, 2vw, 19px); color: var(--ink-soft); max-width: 34em; margin: 18px 0 28px; }

/* ---------- store badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 9px 22px 9px 18px; border-radius: 999px;
  background: #0b0614; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s, border-color .18s;
}
:root[dir="rtl"] .badge { padding: 9px 18px 9px 22px; }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge span { display: flex; flex-direction: column; line-height: 1.1; text-align: start; }
.badge small { font-size: 11.5px; font-weight: 500; opacity: .85; letter-spacing: .02em; }
.badge strong { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
a.badge:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .55); }
a.badge:active { transform: translateY(1px) scale(.98); }
.badge.is-soon { cursor: default; color: rgba(255, 255, 255, .78); background: rgba(11, 6, 20, .55); border-style: dashed; }
.badge.is-soon svg { filter: grayscale(1); opacity: .7; }

/* ---------- the riddle ---------- */
.stage { position: relative; display: grid; justify-items: center; gap: 16px; padding-block: 12px; }
.stage::before {
  content: ""; position: absolute; top: -4%; width: min(520px, 96vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 201, 60, .3), rgba(30, 123, 255, .25) 45%, transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.pic {
  position: relative; width: min(330px, 76vw); aspect-ratio: 1; border-radius: 30px; overflow: hidden;
  border: 6px solid #fac93c; background: #0b2558;
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .85); transition: border-color .15s;
}
.pic img { width: 100%; height: 100%; object-fit: cover; }
.is-won .pic { border-color: #31d68e; }
.is-wrong .pic { border-color: #e5484d; }
.clue { position: relative; margin: 0; font-weight: 600; color: var(--ink-soft); text-align: center; min-height: 1.6em; }
.is-won .clue { color: #31d68e; font-weight: 800; }
.board { position: relative; display: flex; gap: 6px; justify-content: center; direction: rtl; }
.board .gap { width: 12px; }
.cell {
  appearance: none; width: clamp(38px, 10vw, 46px); height: clamp(48px, 12vw, 56px); padding: 0; border-radius: 13px;
  border: 2px solid rgba(255, 255, 255, .22); background: #0a2150; color: #fff;
  font: 800 25px/1 var(--body); cursor: pointer; box-shadow: inset 0 3px 6px rgba(0, 0, 0, .4);
}
.cell.on { border-color: transparent; background: #fac93c; color: #2c2000; box-shadow: 0 4px 0 #c28f14; }
.is-won .cell.on { background: #31d68e; color: #fff; box-shadow: 0 4px 0 #0a7f52; animation: wave .43s cubic-bezier(.3, 1.5, .5, 1) backwards; animation-delay: calc(var(--i) * 65ms); }
.is-wrong .cell.on { background: #e5484d; color: #fff; box-shadow: 0 4px 0 #a82d31; animation: shake .42s; }
@keyframes wave { 50% { transform: translateY(-14px) scale(1.12); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.keys { position: relative; display: grid; grid-template-columns: repeat(6, clamp(42px, 12vw, 50px)); gap: 7px; direction: rtl; }
.key {
  appearance: none; height: 50px; padding: 0; border: 0; border-radius: 12px; cursor: pointer; touch-action: manipulation;
  background: #f7f3e8; color: #10244d; font: 800 22px/1 var(--body); box-shadow: 0 4px 0 #b7ae9b;
  transition: transform .09s, box-shadow .09s, opacity .15s;
}
.key:active { transform: translateY(3px); box-shadow: 0 1px 0 #b7ae9b; }
.key[disabled] { opacity: .22; cursor: default; }
.fx { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.spark {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); color: var(--c);
  animation: spark .9s cubic-bezier(.15, .7, .3, 1) forwards;
}
.spark svg { width: 100%; height: 100%; display: block; }
@keyframes spark {
  0% { transform: translate(0, 0) scale(.3) rotate(0); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--r)); opacity: 0; }
}

/* ---------- sections ---------- */
section { scroll-margin-top: 80px; }
.sec { padding-block: clamp(48px, 8vw, 110px); }
.sec-head { max-width: 760px; margin-bottom: clamp(26px, 4vw, 48px); }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fac93c; margin-bottom: 12px; }
:root[lang="he"] .kicker { letter-spacing: .04em; font-size: 15px; }
h2 { font-size: clamp(30px, 5.4vw, 58px); }
.sec-head p { color: var(--ink-soft); margin: 14px 0 0; font-size: 18px; }

/* gallery */
.shots {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(18px, 2.4vw, 28px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.shot {
  --g1: #ff2d75; --g2: #7b2ff7;
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.shot figure { margin: 0; padding: 22px 22px 0; background: linear-gradient(160deg, var(--g1), var(--g2)); }
.shot img {
  width: 100%; aspect-ratio: 558 / 1210; object-fit: cover; object-position: top;
  border-radius: 18px 18px 0 0; max-height: 520px;
  box-shadow: 0 -6px 30px rgba(0, 0, 0, .25);
}
.shot .body { padding: 20px 22px 26px; }
.shot .tag { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.shot .ico {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .5), transparent 45%), linear-gradient(160deg, var(--g1), var(--g2));
  box-shadow: inset -3px -4px 8px rgba(0, 0, 0, .25), inset 3px 3px 6px rgba(255, 255, 255, .35);
}
.shot .ico svg { width: 20px; height: 20px; }
.shot .num { font-size: 13px; font-weight: 700; color: var(--ink-dim); letter-spacing: .1em; }
.shot h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.15; }
.shot p { margin: 10px 0 0; color: var(--ink-soft); font-size: 16px; }
.g-pink   { --g1: #ff2d75; --g2: #7b2ff7; }
.g-orange { --g1: #ff9a1f; --g2: #f0263c; }
.g-blue   { --g1: #3a8bff; --g2: #4b2bd6; }
.g-lime   { --g1: #a6e22e; --g2: #11a058; }
.g-cyan   { --g1: #20d4e8; --g2: #0b8f8a; }
.g-purple { --g1: #9b3cf5; --g2: #e0249a; }

@media (max-width: 899px) {
  .shots-scroller {
    margin-inline: calc(var(--gutter) * -1);
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .shots-scroller::-webkit-scrollbar { display: none; }
  .shots {
    display: flex; width: max-content; padding-inline: var(--gutter); padding-bottom: 8px;
  }
  .shot { width: min(78vw, 340px); scroll-snap-align: start; flex: none; }
  .swipe { display: flex; }
}
.swipe { display: none; align-items: center; gap: 8px; margin-top: 18px; color: var(--ink-dim); font-size: 14px; font-weight: 500; }
.swipe svg { width: 18px; height: 18px; }
:root[dir="rtl"] .swipe svg { transform: scaleX(-1); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step {
  position: relative; padding: 28px 26px 30px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.step .n {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px;
  font: 900 28px/1 "Rubik", sans-serif; color: #fff;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55) 0 10%, transparent 40%), linear-gradient(160deg, var(--g1), var(--g2));
  box-shadow: inset -6px -8px 14px rgba(0, 0, 0, .28), inset 6px 6px 12px rgba(255, 255, 255, .3), 0 6px 0 rgba(0, 0, 0, .25);
}
.step h3 { font-size: 24px; }
.step p { margin: 10px 0 0; color: var(--ink-soft); }

/* CTA band */
.cta {
  border-radius: calc(var(--radius) + 8px); padding: clamp(28px, 5vw, 56px);
  background: linear-gradient(120deg, #1e7bff, #3b1fd1);
  display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr;
  box-shadow: 0 40px 80px -40px rgba(30, 123, 255, .7);
}
@media (min-width: 820px) { .cta { grid-template-columns: auto 1fr auto; } }

.cta h2 { font-size: clamp(26px, 4vw, 42px); }
.cta p { margin: 8px 0 0; color: #fff; }

/* footer */
.foot { padding-block: 40px 48px; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: clamp(48px, 8vw, 96px); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 22px 40px; align-items: center; justify-content: space-between; }
.foot nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.foot a:not(.badge) { color: var(--ink-soft); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 4px; }
.foot a:not(.badge):hover { color: #fff; text-decoration-color: #fff; }
.foot .copy { color: var(--ink-dim); font-size: 14px; margin: 0; width: 100%; }

/* entrance */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0s); }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .pic { animation: bob 4.5s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translateY(-5px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .spark { display: none; }
}
@media (max-width: 380px) {
  .brand > span:not(.tile) { display: none; }
  .badge { padding-inline: 16px; }
  .badge strong { font-size: 17px; }
}

/* app icon tile (the icon art is on white, presented as an iOS-style app tile) */
.tile {
  position: relative; display: inline-block; flex: none; line-height: 0;
  border-radius: 22.37%; overflow: hidden; background: #fff;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .3);
}
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); pointer-events: none; }
.tile img { width: 100%; height: 100%; }
.brand .tile { width: 34px; height: 34px; }
.eyebrow .tile { width: 30px; height: 30px; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.cta .tile { width: 96px; height: 96px; box-shadow: 0 18px 36px -14px rgba(40, 0, 60, .7), 0 2px 6px rgba(0, 0, 0, .25); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.d06 { --d: .06s; } .d1 { --d: .1s; } .d12 { --d: .12s; } .d18 { --d: .18s; } .d24 { --d: .24s; }

/* ---------- legal pages (privacy.html) ---------- */
/* only the article in the page language is shown */
:root[lang="en"] [data-l="he"], :root[lang="he"] [data-l="en"] { display: none; }
.legal { padding-block: clamp(32px, 6vw, 80px) 0; }
.legal .wrap { max-width: 820px; }
.legal-head { margin-bottom: clamp(24px, 4vw, 40px); }
.legal h1 { margin-top: 0; font-size: clamp(38px, 8vw, 72px); }
:root[lang="he"] .legal h1 { font-family: "Rubik", sans-serif; letter-spacing: 0; }
.legal .updated { margin: 14px 0 0; color: var(--ink-dim); font-size: 15px; font-weight: 500; }
.legal .lead { margin: 18px 0 0; font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); }
.legal .card {
  padding: clamp(22px, 3vw, 30px) clamp(20px, 3vw, 32px); margin-bottom: 16px;
  border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.legal .card h2 { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.2; color: #ffe14d; }
.legal .card p { margin: 12px 0 0; color: var(--ink-soft); }
.legal .card a { color: #fac93c; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal .card a:hover { color: #fff; }
.legal .back { margin: 32px 0 0; }
.back-btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; text-decoration: none; color: #fff;
  background: linear-gradient(120deg, #1e7bff, #3b1fd1);
  box-shadow: 0 6px 0 rgba(10, 30, 90, .55), 0 20px 40px -18px rgba(30, 123, 255, .7);
  transition: transform .15s cubic-bezier(.2, .8, .2, 1);
}
.back-btn:hover { transform: translateY(-2px); }
.back-btn:active { transform: translateY(3px); }
.ico img { width: 100%; height: 100%; object-fit: contain; display: block; }
