:root {
  --sky: #7460f2;
  --sky-deep: #5c49d6;
  --muted: rgba(255, 255, 255, 0.85);
  --white: #ffffff;
  --page-pad: clamp(2rem, 4.5vw, 4rem);
  --font-he: "Heebo", system-ui, sans-serif;
  --font-en: "Sora", system-ui, sans-serif;
  --badge-h: 48px;
  --line-soft: rgba(255, 255, 255, 0.45);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  overflow: auto;
  font-family: var(--font-en);
  font-weight: 400;
  color: var(--white);
  background: var(--sky-deep);
}

html[lang="he"],
html[lang="he"] body { font-family: var(--font-he); }

img { display: block; max-width: 100%; height: auto; }

.page {
  position: relative;
  min-height: 100svh;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.page-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% 20%, rgba(255, 255, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(49, 23, 103, 0.35), transparent 60%),
    linear-gradient(145deg, #8d7cf6 0%, var(--sky) 42%, var(--sky-deep) 100%);
  z-index: 0;
}

.top-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem var(--page-pad);
  background: rgba(0, 0, 0, 0.18);
  direction: ltr;
}

.app-icon {
  width: 66px;
  height: 66px;
  border-radius: 22%;
  object-fit: cover;
  border: 1.5px solid var(--line-soft);
  flex-shrink: 0;
  margin-left: 100px;
}

.lang-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  direction: ltr;
  margin-left: auto;
  margin-right: 100px;
}

.lang-btn {
  appearance: none;
  border: 1.5px solid var(--line-soft);
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 400;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.7); }

.lang-btn.is-active {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.top {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(0.25rem, 0.8vh, 0.55rem) var(--page-pad) 0.15rem;
  flex-shrink: 0;
}

.brand {
  margin: 0 0 0.25rem;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.top h1 {
  margin: 0;
  font-size: clamp(0.88rem, 1.65vw, 1.18rem);
  font-weight: 700;
  line-height: 1.3;
}

.layout {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: 0.8rem 0 0.6rem;
  direction: ltr;
}

html[dir="rtl"] .layout { direction: rtl; }

.copy-col {
  position: static;
  left: auto;
  right: auto;
  min-width: 0;
  width: 100%;
  max-width: 38rem;
  max-height: none;
  overflow: visible;
  color: #fff;
}

html[dir="ltr"] .copy-col { text-align: left; justify-self: start; }
html[dir="rtl"] .copy-col { text-align: right; justify-self: end; }

.slider-wrap { justify-self: center; }

.line {
  margin: 0 0 0.55rem;
  font-size: clamp(0.88rem, 1.2vw, 1.02rem);
  font-weight: 400;
  line-height: 1.45;
  opacity: 0.96;
}

.line-names {
  font-weight: 700;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  letter-spacing: 0.02em;
}

.line-brand {
  margin-top: 0.7rem;
  font-weight: 800;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  letter-spacing: 0.06em;
}

.line-tag { font-weight: 700; }

.slider-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.iphone {
  position: relative;
  width: min(28vw, 260px, calc(min(58svh, 540px) * 389 / 800));
  aspect-ratio: 389 / 800;
  max-height: min(58svh, 540px);
}

.iphone-screen {
  position: absolute;
  z-index: 1;
  top: 1.75%;
  left: 4.37%;
  width: 91.26%;
  height: 96.5%;
  border-radius: 12.8% / 5.9%;
  overflow: hidden;
  background: #5c49d6;
}

.iphone-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.slider { position: absolute; inset: 0; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

.slide.is-active { opacity: 1; pointer-events: auto; }

.slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  background: #7460f2;
}

.dots { display: flex; gap: 0.45rem; margin-top: 0.75rem; }

.dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.dots button.is-active { background: var(--white); transform: scale(1.2); }

.stores {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 0.55rem var(--page-pad) 0.85rem;
}

.store-badges { display: flex; align-items: center; justify-content: center; gap: 1rem 1.25rem; }

.store-badge { display: inline-flex; height: var(--badge-h); line-height: 0; }
.store-badge:hover { transform: translateY(-2px); }
.badge-img { height: var(--badge-h); width: auto; }

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem var(--page-pad) 1.1rem;
  background: rgba(0, 0, 0, 0.18);
  font-size: calc(0.9rem - 2pt);
  direction: ltr;
}

.copyright { margin: 0 100px 0 0; opacity: 0.92; order: 2; }
.legal { display: flex; gap: 0.75rem 1.5rem; margin-left: 100px; order: 1; }
.legal a { color: var(--white); text-underline-offset: 3px; opacity: 0.92; }
.legal a:hover { opacity: 1; }

.legal-page,
.legal-page body { overflow: auto; height: auto; min-height: 100svh; }

.legal-page .page { height: auto; min-height: 100svh; }

.legal-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem var(--page-pad) 3rem;
}

.legal-wrap h1 { margin: 0 0 1rem; font-size: 1.6rem; }

.legal-card {
  background: #fff;
  color: #334155;
  border-radius: 1.25rem;
  padding: 1.5rem 1.35rem 2rem;
  box-shadow: 0 12px 40px rgba(49, 23, 103, 0.16);
}

.legal-card h2 {
  margin: 1.15rem 0 0.35rem;
  color: #1e1638;
  font-size: 1.05rem;
}

.legal-card h2:first-child { margin-top: 0; }

.legal-card p { margin: 0; line-height: 1.55; font-size: 0.95rem; }

.back-home {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 900px) {
  html, body { overflow: auto; }
  .page { height: auto; min-height: 100svh; }
  .layout {
    grid-template-columns: 1fr;
    width: min(40rem, calc(100% - 2rem));
    gap: 1.25rem;
  }
  .copy-col, html[dir="ltr"] .copy-col, html[dir="rtl"] .copy-col {
    max-width: none;
    justify-self: stretch;
  }
  .slider-wrap { order: -1; }
  .iphone { width: min(42vw, 168px); max-width: 168px; max-height: none; }
  .footer { justify-content: center; text-align: center; }
  .app-icon, .lang-bar, .legal, .copyright { margin-left: 0; margin-right: 0; }
}
