@font-face {
  font-family: Heebo;
  src: url("/media/heebo-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: Heebo;
  src: url("/media/heebo-hebrew.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

:root {
  --plum: #241434;
  --ink: #291938;
  --muted: #60516d;
  --paper: #fffaf4;
  --lilac: #f0e8fb;
  --peach: #ffc58d;
  --lighter: #e4d8ec;
  --accent: #664098;
  --line: #e7dce9;
  --edge: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 Heebo, Arial, sans-serif;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
}
h1, h2, h3, p, figure { margin: 0; }
section[id] { scroll-margin-block-start: 1rem; }

.wrap {
  width: min(100% - 2 * var(--edge), 76rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 1rem;
  z-index: 5;
  padding: 0.5rem 1rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.masthead {
  position: relative;
  z-index: 1;
  background: var(--plum);
  color: #fff;
  border-bottom: 1px solid #ffffff20;
}

.masthead-inner, .site-nav, .footer-inner, .site-footer nav {
  display: flex;
  align-items: center;
}

.masthead-inner {
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 5rem;
}

.brand { display: block; width: clamp(6.25rem, 13vw, 9.1rem); flex: none; }
.site-nav { gap: clamp(1rem, 3vw, 2.65rem); }
.site-nav a { font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-footer a:hover { text-decoration: underline; }
.site-nav .nav-language { color: var(--lighter); }

.nav-download {
  padding: 0.49rem 1rem;
  border-radius: 0.7rem;
  color: var(--plum);
  background: var(--peach);
}

.hero {
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(ellipse at 26% 62%, #6f3887, transparent 45%),
    linear-gradient(155deg, var(--plum) 32%, #411c59 88%);
}

[dir="ltr"] .hero {
  background:
    radial-gradient(ellipse at 74% 62%, #6f3887, transparent 45%),
    linear-gradient(205deg, var(--plum) 32%, #411c59 88%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(1rem, 2.8vw, 3rem);
}

.hero-copy { padding-block: clamp(3.25rem, 6vw, 6rem); position: relative; z-index: 1; }

.hero-label, .section-label {
  font-weight: 750;
  font-size: 0.95rem;
}

.hero-label {
  display: inline-block;
  color: #f3defb;
  border: 1px solid #ffffff3a;
  border-radius: 999px;
  padding: 0.31rem 0.85rem;
  background: #ffffff0b;
  margin-block-end: 1.5rem;
}

.hero-label span { margin-inline: 0.2em; color: var(--peach); }

.hero h1 {
  font-size: clamp(3.8rem, 6.7vw, 6.4rem);
  font-weight: 900;
  letter-spacing: -0.053em;
  line-height: 1.02;
}

.hero h1 span { color: var(--peach); }

.hero-intro {
  margin-block: 1.55rem 1.5rem;
  max-width: 24em;
  font-size: clamp(1.13rem, 1.7vw, 1.42rem);
  color: #f5eaf7;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: 0.35rem;
}

.store-link {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 0.65rem;
  transition: transform 160ms ease;
}

.store-link:hover { transform: translateY(-3px); }
.app-store img { width: 8.75rem; }
.google-play img { width: 10.4rem; }

.availability {
  color: var(--lighter);
  font-size: 0.9rem;
  margin-block-start: 0.4rem;
}

.hero-art {
  position: relative;
  direction: ltr;
  isolation: isolate;
  min-height: clamp(30rem, 46vw, 42rem);
  width: 100%;
}

.art-orbit {
  position: absolute;
  z-index: -1;
  top: 52%;
  left: 50%;
  width: min(100%, 34rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #ecd1ff3b;
  background: radial-gradient(circle at 50% 44%, #e4aefe26, transparent 74%);
  transform: translate(-50%, -50%);
}

.second-orbit { width: min(84%, 28rem); background: transparent; border-style: dashed; }

.screen-frame {
  display: block;
  direction: ltr;
  background: #1e1825;
  border: 4px solid #1e1825;
  border-radius: 1.5rem;
  box-shadow: 0 13px 30px #29183950, 0 0 0 1px #fff6;
}

.screen-frame img { width: 100%; border-radius: 1.24rem; }

.hero-phone { position: absolute; box-shadow: 0 24px 56px #13051fa3, 0 0 0 1px #fff7; }

.hero-main {
  width: clamp(12.25rem, 18vw, 15.8rem);
  left: 20%;
  top: 49%;
  border-width: 5px;
  border-radius: 2.1rem;
  transform: translateY(-48%) rotate(-11deg);
}

.hero-main img { border-radius: 1.8rem; }

.hero-peek {
  width: clamp(9rem, 13.25vw, 11.5rem);
  left: 51%;
  top: 51%;
  border-radius: 1.65rem;
  transform: translateY(-49%) rotate(13deg);
}

.hero-peek img { border-radius: 1.4rem; }

.float-tile {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(3rem, 5.65vw, 5.15rem);
  aspect-ratio: 1;
  border: 1px solid #ffffff97;
  border-radius: 26%;
  background: linear-gradient(145deg, var(--tile-light), var(--tile-base));
  color: var(--tile-ink);
  box-shadow: 0 6px 0 var(--tile-shadow), 0 12px 22px #1e102663, inset 0 0 0 4px #ffffff38;
  font-size: clamp(2rem, 3.85vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
}

.purple-tile {
  --tile-light: #ead2ff; --tile-base: #c8a1f7; --tile-shadow: #865cb7; --tile-ink: #54217f;
  top: 14%; right: 9%; transform: rotate(17deg);
}

.mint-tile {
  --tile-light: #d5f9d9; --tile-base: #8ce0b0; --tile-shadow: #439f7c; --tile-ink: #1b6548;
  bottom: 13%; right: 10%; transform: rotate(-14deg);
}

.gold-tile {
  --tile-light: #fff2bb; --tile-base: #ffc75f; --tile-shadow: #c47c33; --tile-ink: #763f0b;
  left: 3%; top: 55%; transform: rotate(-22deg);
}

.hero-spark { position: absolute; color: #ffd9ab; line-height: 1; }
.spark-top { font-size: 2rem; top: 17%; left: 9%; }
.spark-bottom { font-size: 2.75rem; bottom: 7%; left: 58%; }

.section-space { padding-block: clamp(3.75rem, 7vw, 6.5rem); }

.section-copy h2, .faq h2, .download h2 {
  font-size: clamp(2.1rem, 4vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.042em;
  line-height: 1.13;
}

.section-label { margin-block-end: 0.55rem; color: var(--accent); }
.section-copy > p:last-child { margin-block-start: 1rem; max-width: 33em; font-size: 1.16rem; color: var(--muted); }

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2.75rem clamp(2rem, 7vw, 7rem);
  align-items: center;
}

.chain-board {
  display: grid;
  align-items: center;
  min-height: 10.75rem;
  padding: 1.5rem 1rem;
  border: 1px solid #ead6ee;
  border-radius: 1.8rem;
  background:
    radial-gradient(circle, #8c629233 1px, transparent 1.4px) 0 0 / 15px 15px,
    linear-gradient(135deg, #ffe5ce, #f5e5ff 80%);
}

.chain {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.75rem, 1.65vw, 1.6rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.chain li {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 0.72rem;
  border: 1px solid #ffffffa0;
  box-shadow: 0 4px 0 var(--tile-shadow), 0 6px 12px #3f235927;
  padding: 0.38em 0.52em;
  white-space: nowrap;
  font-size: clamp(0.98rem, 2.1vw, 1.7rem);
  font-weight: 900;
  background: var(--tile-base);
  color: var(--tile-ink);
}

.chain li:nth-child(1) { --tile-base: #fff1af; --tile-shadow: #e0b466; --tile-ink: #53360a; transform: rotate(5deg); }
.chain li:nth-child(2) { --tile-base: #ffd6b1; --tile-shadow: #e29b79; --tile-ink: #63331e; transform: rotate(-3deg); }
.chain li:nth-child(3) { --tile-base: #c6edd5; --tile-shadow: #80ba9b; --tile-ink: #235740; transform: rotate(4deg); }
.chain li:nth-child(4) { --tile-base: #d9befa; --tile-shadow: #a380cc; --tile-ink: #492773; transform: rotate(-4deg); }

.steps {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 3.5vw, 3rem);
  padding: 0;
  margin: 0;
  counter-reset: step;
  list-style: none;
}

.steps li {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 1.1rem 3.25rem 0 0;
  padding-inline: 3.25rem 0;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 1.15rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  color: #563282;
  font-weight: 850;
  background: #eee1f9;
}

.steps strong { font-size: 1.18rem; font-weight: 850; }
.steps p { margin-block-start: 0.24rem; color: var(--muted); }

.gallery { background: var(--lilac); }
.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 2rem);
  margin-block-start: 2.25rem;
}

.shot {
  min-width: 0;
  padding: 0.75rem;
  border-radius: 1.45rem;
  border: 1px solid #e3d4ed;
  background: #fffafef0;
}

.shot-window {
  display: grid;
  position: relative;
  isolation: isolate;
  place-items: center;
  min-height: 24rem;
  border-radius: 0.95rem;
  text-decoration: none;
  overflow: hidden;
}

.shot-window::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #fff9;
  box-shadow: 0 0 0 1.35rem #fff3;
}

.word-tower { background: radial-gradient(at 60% 35%, #fff1d1, #ffcdab); }
.hebrew-crossword { background: radial-gradient(at 55% 35%, #e5f9df, #b4e6cc); }
.ramilim { background: radial-gradient(at 55% 35%, #efddfb, #d6baea); }

.shot-window .screen-frame {
  width: 10rem;
  max-width: 70%;
  transition: transform 180ms ease;
}

.shot-window:hover .screen-frame { transform: scale(1.045); }

.shot-window.ramilim .screen-frame {
  width: 18.125rem;
  max-width: 92%;
  border-radius: 1.25rem;
}
.shot-window.ramilim img { border-radius: 1rem; }

.shot figcaption { padding: 1.2rem 0.65rem 0.55rem; }
.shot h3 { font-size: 1.32rem; font-weight: 850; line-height: 1.3; }
.shot p { margin-block-start: 0.4rem; color: var(--muted); }

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
  align-items: start;
  gap: 2rem clamp(2rem, 6vw, 6rem);
}

.faq-items { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.02rem;
  cursor: pointer;
  list-style: none;
  font-size: 1.15rem;
  font-weight: 800;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 1.85rem;
  height: 1.85rem;
  flex: none;
  border-radius: 50%;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 0.67rem 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 0.67rem no-repeat,
    #eee1f9;
}
.faq details[open] summary::after {
  background: linear-gradient(var(--accent), var(--accent)) center / 0.67rem 2px no-repeat, #eee1f9;
}
.faq details p { max-width: 41em; padding: 0 0 1.2rem; color: var(--muted); }

.download {
  background: radial-gradient(ellipse at 50% 0%, #5c3272, var(--plum) 80%);
  color: var(--paper);
  text-align: center;
  padding-block: clamp(3.5rem, 6.5vw, 5.5rem);
}
.download-inner { display: grid; justify-items: center; gap: 1.35rem; }
.download-icon {
  width: 5.1rem;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px #170a21a0;
}
.download p { color: #f5eaf7; margin-block: 0.9rem 0.8rem; font-size: 1.15rem; }
.download .store-links { margin-inline: auto; justify-content: center; }

.site-footer {
  background: var(--plum);
  color: var(--lighter);
  border-top: 1px solid #ffffff20;
}
.footer-inner {
  min-height: 4.75rem;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem 2rem;
  padding-block: 1rem;
}
.site-footer nav { flex-wrap: wrap; gap: 0.5rem 1.45rem; }
.site-footer a, .site-footer small { font-size: 0.9rem; }
.site-footer a { text-decoration: none; }

@media (max-width: 960px) {
  .hero h1 { font-size: clamp(3.1rem, 7.4vw, 5.15rem); }
  .hero-main { left: 14%; }
  .hero-peek { left: 45%; }
  .gold-tile { left: 0; }
  .purple-tile { right: 3%; }
  .mint-tile { right: 3%; }
  .spark-top { top: 12%; }
  .spark-bottom { bottom: 5%; }
  .shot-window { min-height: 21rem; }
  .shot-window .screen-frame { width: 8.7rem; }
  .shots { gap: 0.85rem; }
}

@media (max-width: 680px) {
  .masthead-inner { min-height: 4.25rem; }
  .site-nav { gap: 0.9rem; }
  .site-nav a { font-size: 0.9rem; }
  .nav-section { display: none; }
  .nav-download { padding-inline: 0.75rem; }
  .hero-layout { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-block: 2.4rem 0.6rem; text-align: center; }
  .hero-label { margin-block-end: 1.08rem; }
  .hero h1 { font-size: clamp(2.8rem, 10vw, 4.8rem); }
  .hero-intro { margin: 1rem auto 0.75rem; max-width: 28rem; }
  .hero .store-links { margin-inline: auto; justify-content: center; }
  .hero-art { min-height: clamp(25rem, 88vw, 31rem); max-width: 26rem; margin-inline: auto; }
  .hero-main { width: 11.5rem; left: 21%; border-radius: 1.7rem; }
  .hero-main img { border-radius: 1.4rem; }
  .hero-peek { width: 7.9rem; left: 51%; border-radius: 1.4rem; }
  .hero-peek img { border-radius: 1.15rem; }
  .purple-tile { top: 11%; right: 5%; }
  .mint-tile { bottom: 12%; right: 7%; }
  .gold-tile { left: 3%; }
  .spark-top { top: 18%; }
  .spark-bottom { bottom: 5%; }
  .how-grid, .faq-grid, .steps, .shots { grid-template-columns: 1fr; }
  .how-grid { gap: 1.65rem; }
  .steps { gap: 1.1rem; }
  .chain-board { min-height: 7.5rem; }
  .chain { gap: 0.95rem; }
  .chain li { font-size: clamp(1rem, 4.6vw, 1.45rem); }
  .shots { gap: 1.1rem; margin-block-start: 1.4rem; }
  .shot-window { min-height: 22rem; }
  .shot-window .screen-frame { width: 9rem; }
  .shot-window.ramilim { min-height: 15rem; }
  .shot-window.ramilim::before { width: min(50%, 13rem); }
  .shot-window.ramilim .screen-frame { width: min(84%, 17rem); }
  .footer-inner { justify-content: center; text-align: center; }
  .site-footer nav { justify-content: center; }
}

@media (max-width: 350px) {
  .app-store img { width: 7.1rem; }
  .google-play img { width: 8.65rem; }
  .hero-main { left: 16%; }
  .hero-peek { left: 47%; }
  .chain { gap: 0.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .store-link, .shot-window .screen-frame { transition: none; }
}
