/* Home page sections written in code (Views/Home/_Features.cshtml, _Assistant.cshtml), the header's
   language switch, and the privacy page's links to the legal documents. Logical properties keep
   them right in both RTL (ar) and LTR (en). */

.lp-features,
.lp-assistant {
  --lp-accent: #626efc;
  --lp-gradient: linear-gradient(21deg, #a16dff 0%, #806dfe 25.03%, #686dfe 50.17%, #5f6dfe 69.53%, #3969aa 100%);
  --lp-ink: #1a1a1a;
  --lp-text: #3e3f66;
  --lp-muted: #585858;
  --lp-soft: #f4f2ff;
  scroll-margin-top: 24px;
}

/* -------- shared -------- */
.lp-title {
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 700;
  line-height: 52px;
  color: var(--lp-ink);
}

.lp-lead {
  margin: 0 0 28px;
  font-size: 19px;
  line-height: 32px;
  color: var(--lp-text);
}

.lp-center {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

/* -------- Hero: the main features under the description (Components/ContentItem/Header.cshtml) -------- */
.hero-highlights {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  max-width: 600px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #3e3f66;
  font-size: 17px;
  font-weight: 500;
  line-height: 26px;
}

.hero-highlights img {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

@media (min-width: 992px) {
  .hero-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
  }
}

@media (min-width: 992px) and (max-width: 1399px) {
  .hero-highlights li {
    font-size: 16px;
  }
}

/* The list makes the text taller: start it higher so the store buttons stay in view */
@media (min-width: 1200px) {
  .hero-title {
    padding-top: 90px;
  }

  .hero-highlights + .download-app {
    padding-top: 40px;
  }
}

@media (min-width: 1400px) {
  .hero-title {
    padding-top: 120px;
  }
}

/* -------- Features: app screens in place of the video (Components/ContentList/Advantages.cshtml) -------- */
.middle-adv .advantage-point-img {
  overflow: visible;
}

/* Same height as the video was (styles.css: 658px; 250px on phones) */
.lp-showcase {
  position: relative;
  height: 658px;
  aspect-ratio: 440 / 922;
  filter: drop-shadow(0 12px 30px rgba(66, 56, 160, 0.2));
}

.lp-showcase img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 9.5% / 4.5%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.lp-showcase img.on {
  opacity: 1;
}

/* -------- Everything in the app -------- */
.lp-features {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, #ffffff 0%, var(--lp-soft) 16%, var(--lp-soft) 84%, #ffffff 100%);
}

.lp-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin: 36px 0 44px;
}

.lp-tab {
  padding: 9px 22px 11px;
  border: 1px solid rgba(98, 110, 252, 0.3);
  border-radius: 999px;
  background: #fff;
  color: var(--lp-text);
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lp-tab:hover {
  border-color: var(--lp-accent);
  color: var(--lp-accent);
}

.lp-tab.active {
  border-color: transparent;
  background: var(--lp-gradient);
  color: #fff;
  box-shadow: 0 6px 18px rgba(98, 110, 252, 0.28);
}

.lp-tab:focus-visible,
.lp-panel:focus-visible {
  outline: 3px solid rgba(98, 110, 252, 0.45);
  outline-offset: 3px;
}

.lp-panel:focus-visible {
  border-radius: 24px;
}

.lp-cards > [class*="col-"] {
  display: flex;
  margin-bottom: 30px;
}

.lp-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 4px 30px 0 #ede9fe;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px 0 rgba(128, 109, 254, 0.2);
}

/* The top of the phone, cropped at the card's edge */
.lp-card-shot {
  height: 250px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding-top: 26px;
  background: linear-gradient(160deg, #efeaff 0%, #e4ecff 100%);
}

/* The screenshots include the phone's frame: round them to it, hiding the background in the corners */
.lp-card-shot img,
.lp-phone {
  border-radius: 9.5% / 4.5%;
}

.lp-card-shot img {
  width: 190px;
  height: auto;
  align-self: flex-start;
  filter: drop-shadow(0 10px 24px rgba(66, 56, 160, 0.18));
}

.lp-card-body {
  padding: 22px 26px 26px;
}

.lp-card-body h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 700;
  line-height: 30px;
  color: #201928;
}

.lp-card-body p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 27px;
  color: var(--lp-muted);
}

.lp-card-body ul {
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid #efedfb;
  list-style: none;
}

.lp-card-body li {
  position: relative;
  margin-bottom: 8px;
  padding-inline-start: 18px;
  font-size: 15px;
  line-height: 25px;
  color: var(--lp-text);
}

.lp-card-body li:last-child {
  margin-bottom: 0;
}

.lp-card-body li::before {
  content: "";
  position: absolute;
  top: 10px;
  inset-inline-start: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lp-gradient);
}

/* -------- The AI assistant -------- */
.lp-assistant {
  padding: 100px 0 100px;
}

.lp-points {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.lp-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 17px;
  line-height: 28px;
  color: var(--lp-text);
}

.lp-points img {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
}

.lp-note {
  display: inline-block;
  margin: 0;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--lp-soft);
  color: #5f6dfe;
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
}

.lp-phones {
  position: relative;
  height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* A soft glow behind the phones */
.lp-phones::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 109, 254, 0.22) 0%, rgba(128, 109, 254, 0) 70%);
}

.lp-phone {
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(66, 56, 160, 0.22));
}

.lp-phone-front {
  position: relative;
  z-index: 2;
  width: 265px;
}

.lp-phone-side {
  position: absolute;
  z-index: 1;
  top: 50%;
  width: 205px;
  transform: translateY(-50%);
  opacity: 0.92;
}

.lp-phone-start {
  inset-inline-start: calc(50% - 245px);
}

.lp-phone-end {
  inset-inline-end: calc(50% - 245px);
}

/* -------- Privacy page: links to the full legal documents (Views/Content/ListNewPrivacy.cshtml) -------- */
.legal-docs {
  margin: 10px 0 70px;
  padding: 28px 32px;
  border-radius: 24px;
  background: #f4f2ff;
  text-align: center;
}

.legal-docs p {
  max-width: 760px;
  margin: 0 auto 20px;
  color: #3e3f66;
  font-size: 17px;
  line-height: 29px;
}

.legal-docs-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
}

.legal-docs-links .default-btn {
  padding: 10px 32px 13px;
  font-size: 17px;
}

.legal-docs-secondary {
  color: #5f6dfe;
  font-size: 17px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Footer: privacy policy + terms of use links side by side (Components/Menu/Footer.cshtml) */
.footer ul.links {
  column-gap: 28px;
  flex-wrap: wrap;
}

/* -------- Header: language switch (Components/Menu/Default.cshtml) -------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 8px;
  border: 1px solid rgba(98, 110, 252, 0.35);
  border-radius: 999px;
  background: #fff;
  color: #626efc;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.lang-switch:hover,
.lang-switch:focus-visible {
  border-color: #626efc;
  background: #f4f2ff;
  color: #626efc;
}

.lang-switch svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

/* Desktop menu: keep each link on one line, tightening the spacing (styles.css: 18px each side)
   until the container is wide enough */
@media (min-width: 992px) {
  .navbar-nav li a {
    white-space: nowrap;
  }
}

@media (min-width: 992px) and (max-width: 1399px) {
  .navbar-nav li a {
    padding-inline: 11px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .navbar-nav li a {
    padding-inline: 7px;
    font-size: 15px;
  }

  html[lang="ar"] .navbar-nav li a {
    font-size: 16px;
  }
}

/* -------- responsive -------- */
@media (max-width: 991px) {
  /* English: logo first and burger last, like the Arabic header (responsive.css reverses the row for RTL) */
  html[lang="en"] .nav-burger-menu {
    flex-direction: row !important;
  }

  /* Next to the burger, which responsive.css positions absolutely at the end of the header */
  .lang-switch-mobile {
    position: absolute;
    z-index: 10;
    top: 0;
    right: 40px;
    padding: 5px 12px 6px;
    font-size: 15px;
  }

  .lp-title {
    font-size: 32px;
    line-height: 44px;
  }

  .lp-features {
    padding: 70px 0 50px;
  }

  .lp-assistant {
    padding: 70px 0 60px;
  }

  .lp-phones {
    margin-top: 40px;
    height: 520px;
  }
}

@media (max-width: 767px) {
  /* The hero is centered on phones: center the list as a block, its lines still start-aligned */
  .hero-highlights {
    width: fit-content;
    margin: 20px auto 0;
    text-align: start;
  }

  .hero-highlights li {
    font-size: 16px;
    line-height: 24px;
  }

  .lp-showcase {
    height: 250px;
    margin-inline: auto;
  }

  .lang-switch-mobile {
    top: -10px;
    right: 44px;
    transform: translateY(-100%);
  }

  /* One row of tabs that scrolls sideways, edge to edge */
  .lp-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin: 28px -12px 32px;
    padding: 4px 12px 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .lp-tabs::-webkit-scrollbar {
    display: none;
  }

  .lp-tab {
    flex: none;
    padding: 8px 18px 10px;
    font-size: 16px;
  }
}

@media (max-width: 575px) {
  .lp-title {
    font-size: 28px;
    line-height: 40px;
  }

  .lp-lead {
    font-size: 17px;
    line-height: 29px;
  }

  .lp-points li {
    font-size: 16px;
    line-height: 26px;
  }

  .lp-phones {
    height: 440px;
  }

  .lp-phones::before {
    width: 320px;
    height: 320px;
  }

  .lp-phone-front {
    width: 200px;
  }

  .lp-phone-side {
    width: 150px;
  }

  .lp-phone-start {
    inset-inline-start: calc(50% - 170px);
  }

  .lp-phone-end {
    inset-inline-end: calc(50% - 170px);
  }

  .lp-card-shot {
    height: 230px;
  }
}
