/* App landing pages */

.lp {
  --radius: 26px;
  --page: #f7f8f6;
  --line: rgba(10, 20, 15, .09);
  --muted: #5b6660;
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--page);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: clip;
}
.t-football { --hero-a: #03201a; --hero-b: #07402e; --hero-c: #0f7a52; --accent: #55e68f; --accent-ink: #03201a; --soft: #e6f8ee; --ink: #06241b; }
.t-gold { --hero-a: #0a0805; --hero-b: #1c1507; --hero-c: #4a3510; --accent: #f3c24c; --accent-ink: #181203; --soft: #fbf3dc; --ink: #181203; }
.t-teal { --hero-a: #021e26; --hero-b: #063b47; --hero-c: #0c7a86; --accent: #5ff0db; --accent-ink: #021e26; --soft: #e2f8f5; --ink: #04262e; }
.t-sky { --hero-a: #050b24; --hero-b: #0c1b4d; --hero-c: #1d4ed8; --accent: #67d6ff; --accent-ink: #04122e; --soft: #e4f1ff; --ink: #071331; }
.t-default { --hero-a: #090d14; --hero-b: #111a28; --hero-c: #243a56; --accent: #b6f24a; --accent-ink: #0b0f17; --soft: #f2fadf; --ink: #0d1420; }

.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp img { max-width: 100%; display: block; }
.lp a { text-decoration: none; }
.lp h1, .lp h2, .lp h3 { font-family: "Alexandria", "IBM Plex Sans Arabic", "Segoe UI", sans-serif; margin: 0; line-height: 1.2; }
.lp-wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: 20px; }
.lp :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Floating navigation */
.lp-nav {
  position: fixed;
  z-index: 40;
  top: 16px;
  inset-inline: 16px;
  max-width: 1140px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 10px 9px 14px;
  border-radius: 18px;
  color: #fff;
  background: rgba(8, 12, 12, .62);
  border: 1px solid rgba(255, 255, 255, .13);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.lp-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: "Alexandria", sans-serif; font-weight: 700; font-size: 15px; min-width: 0; }
.lp-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-brand img { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.lp-nav nav { display: flex; gap: 4px; margin-inline-start: auto; }
.lp-nav nav a { color: rgba(255, 255, 255, .78); font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 9px; white-space: nowrap; }
.lp-nav nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.lp-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 15px;
  border-radius: 11px;
}

/* Hero */
.lp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  min-height: min(880px, 100svh);
  display: flex;
  align-items: center;
  padding-block: 112px 72px;
  background:
    radial-gradient(70% 90% at 16% 62%, color-mix(in srgb, var(--hero-c) 88%, transparent) 0%, transparent 70%),
    radial-gradient(60% 70% at 90% 0%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 65%),
    linear-gradient(170deg, var(--hero-a), var(--hero-b));
}
.lp-pattern { position: absolute; z-index: -1; color: var(--accent); pointer-events: none; }
.lp-pattern--pitch {
  inset-inline: -14%;
  bottom: -26%;
  width: 128%;
  height: 92%;
  color: #fff;
  opacity: .13;
  transform: perspective(900px) rotateX(58deg);
  transform-origin: bottom center;
}
.lp-pattern--chart { inset-inline: 0; bottom: 0; width: 100%; height: 72%; opacity: .1; }
.lp-pattern--dots {
  inset: 0;
  opacity: .22;
  background-image: radial-gradient(rgba(255, 255, 255, .55) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 70% at 30% 50%, #000 10%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 30% 50%, #000 10%, transparent 75%);
}
.lp-pattern--code { width: 520px; height: 330px; inset-inline-end: -60px; bottom: -40px; opacity: .08; transform: rotate(-9deg); }
.lp-pattern--orbit { width: 860px; height: 860px; top: 50%; inset-inline-end: -8%; margin-top: -430px; opacity: .2; }
.lp-pattern--grid {
  inset: 0;
  opacity: .16;
  background-image: linear-gradient(rgba(255, 255, 255, .28) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .28) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(70% 70% at 40% 50%, #000 5%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 40% 50%, #000 5%, transparent 75%);
}
.lp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: 40px; }
.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
}
.lp-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 26%, transparent); }
.lp-hero h1 { font-size: clamp(36px, 5.2vw, 66px); font-weight: 900; letter-spacing: -.01em; margin-block: 18px 16px; text-wrap: balance; }
.lp-lead { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.8; color: rgba(255, 255, 255, .82); max-width: 560px; margin: 0 0 30px; }
.lp-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; scroll-margin-top: 110px; }

/* Buttons */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 11px 24px 11px 22px;
  border-radius: 17px;
  background: #fff;
  color: #0c1110;
  box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .55);
  transition: transform .18s ease, box-shadow .18s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -14px rgba(0, 0, 0, .6); }
.store-btn svg { flex: none; }
.store-btn__text { display: flex; flex-direction: column; line-height: 1.25; text-align: start; }
.store-btn__text small { font-size: 12.5px; color: #55605b; font-weight: 500; }
.store-btn__text b { font-family: "Alexandria", "Segoe UI", sans-serif; font-size: 21px; font-weight: 700; }
.ghost-btn, .accent-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 17px;
  font-weight: 600;
  font-size: 15.5px;
  transition: background .18s ease, transform .18s ease;
}
.ghost-btn { color: #fff; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); }
.ghost-btn:hover { background: rgba(255, 255, 255, .14); }
.accent-btn { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.accent-btn:hover { transform: translateY(-2px); }
.ghost-btn small, .accent-btn small { font-weight: 500; opacity: .75; margin-inline-start: 4px; }

/* Phones */
.lp-visual { position: relative; min-height: 600px; display: flex; align-items: center; justify-content: center; }
.phone {
  position: relative;
  flex: none;
  width: 268px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 28px;
  background: #111;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 36px 70px -22px rgba(0, 0, 0, .8);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone--front { z-index: 2; width: 302px; transform: translateX(-40px) rotate(-3deg); }
.phone--back { position: absolute; z-index: 1; width: 256px; transform: translateX(112px) translateY(20px) rotate(7deg); opacity: .92; }
[dir="rtl"] .phone--front { transform: translateX(40px) rotate(3deg); }
[dir="rtl"] .phone--back { transform: translateX(-112px) translateY(20px) rotate(-7deg); }
.lp-hero-icon { width: 240px; height: 240px; border-radius: 54px; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .7); }
.lp-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 14px;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(10, 14, 14, .62);
  border: 1px solid rgba(255, 255, 255, .17);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .6);
  animation: lp-float 6s ease-in-out infinite;
}
.lp-chip svg { color: var(--accent); }
.lp-chip--0 { top: 40%; inset-inline-start: -2%; }
.lp-chip--1 { top: 62%; inset-inline-end: 0; animation-delay: -2s; }
.lp-chip--2 { bottom: 5%; inset-inline-start: 6%; animation-delay: -4s; }

/* Sections */
.lp-section { padding-block: 92px; }
.lp-head { margin-bottom: 40px; max-width: 680px; }
.lp-kicker { display: block; color: color-mix(in srgb, var(--hero-c) 82%, #000); font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.lp-head h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; }
.lp-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.lp-card {
  grid-column: span 4;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease;
}
.lp-card:hover { transform: translateY(-3px); box-shadow: 0 26px 46px -28px rgba(10, 30, 20, .35); }
.lp-card:nth-child(1) { grid-column: span 7; color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--hero-b), var(--hero-c)); }
.lp-card:nth-child(2) { grid-column: span 5; background: var(--soft); border-color: transparent; }
.lp-card:nth-child(6) { grid-column: span 12; }
.lp-card__icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 16px;
  color: var(--hero-b);
  background: var(--soft);
}
.lp-card:nth-child(1) .lp-card__icon { color: var(--accent-ink); background: var(--accent); }
.lp-card:nth-child(2) .lp-card__icon { background: #fff; }
.lp-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.lp-card p { margin: 0; color: var(--muted); }
.lp-card:nth-child(1) h3 { font-size: 27px; }
.lp-card:nth-child(1) p { color: rgba(255, 255, 255, .84); font-size: 17px; max-width: 460px; }

/* Tags band */
.lp-tags { padding-block: 0 92px; }
.lp-tags .lp-wrap { display: flex; flex-direction: column; gap: 20px; }
.lp-tags h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.lp-tags ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lp-tags li { padding: 9px 18px; background: #fff; border: 1px solid var(--line); border-radius: 99px; font-weight: 600; font-size: 15px; }

/* Screens */
.lp-screens { padding-block: 88px; color: #fff; background: linear-gradient(170deg, var(--hero-a), var(--hero-b)); }
.lp-head--light { max-width: 1180px; margin-bottom: 36px; }
.lp-head--light .lp-kicker { color: var(--accent); }
.lp-strip {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 12px max(20px, calc((100vw - 1140px) / 2)) 30px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .3) transparent;
}
.lp-strip .phone { width: 240px; scroll-snap-align: center; }

/* Final call */
.lp-about { max-width: 800px; }
.lp-about h2 { font-size: 30px; margin-bottom: 14px; }
.lp-final { padding-block: 92px; }
.lp-final__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: min(1140px, calc(100% - 40px));
  padding: clamp(36px, 6vw, 68px) 24px;
  border-radius: 36px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(60% 90% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    linear-gradient(160deg, var(--hero-b), var(--hero-a));
}
.lp-final__card img { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6); }
.lp-final__card h2 { font-size: clamp(26px, 4vw, 44px); font-weight: 800; text-wrap: balance; }
.lp-final__card .lp-actions { justify-content: center; }
.lp-install { max-width: 560px; text-align: start; font-size: 15px; color: rgba(255, 255, 255, .82); }
.lp-install summary { cursor: pointer; font-weight: 600; text-align: center; }
.lp-install ol { margin: 12px 0 0; padding-inline-start: 20px; }

/* Footer */
.lp-foot { padding-block: 0 34px; color: var(--muted); font-size: 14.5px; }
.lp-note { margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.lp-foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 22px; }
.lp-foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.lp-foot a { color: var(--ink); font-weight: 600; }
.lp-foot a:hover { text-decoration: underline; }

/* Motion */
.lp-rise { animation: lp-rise .75s cubic-bezier(.2, .7, .2, 1) both; }
.lp-d1 { animation-delay: .07s; }
.lp-d2 { animation-delay: .15s; }
.lp-d3 { animation-delay: .24s; }
@keyframes lp-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) {
  .lp-rise, .lp-chip { animation: none; }
  .lp-card, .store-btn, .accent-btn { transition: none; }
}

/* Smaller screens */
@media (max-width: 960px) {
  .lp-hero { min-height: 0; padding-block: 104px 56px; }
  .lp-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; text-align: center; }
  .lp-lead { margin-inline: auto; }
  .lp-actions { justify-content: center; }
  .lp-visual { min-height: 500px; }
  .phone--front { width: 252px; }
  .phone--back { width: 212px; }
  [dir="rtl"] .phone--front { transform: translateX(30px) rotate(3deg); }
  [dir="rtl"] .phone--back { transform: translateX(-84px) translateY(14px) rotate(-7deg); }
  .lp-section, .lp-screens, .lp-final { padding-block: 64px; }
  .lp-tags { padding-block: 0 64px; }
  .lp-head { text-align: center; margin-inline: auto; }
  .lp-tags .lp-wrap { align-items: center; text-align: center; }
  .lp-tags ul { justify-content: center; }
  .lp-card, .lp-card:nth-child(1), .lp-card:nth-child(2), .lp-card:nth-child(6) { grid-column: span 12; }
}
@media (max-width: 560px) {
  .lp-nav { top: 10px; inset-inline: 10px; padding-inline: 10px 8px; gap: 8px; }
  .lp-nav nav { display: none; }
  .lp-nav-cta { margin-inline-start: auto; }
  .lp-actions > a { width: 100%; justify-content: center; }
  .lp-visual { min-height: 430px; }
  .phone { border-radius: 22px; }
  .phone--front { width: 214px; }
  .phone--back { width: 176px; }
  [dir="rtl"] .phone--front { transform: translateX(26px) rotate(3deg); }
  [dir="rtl"] .phone--back { transform: translateX(-70px) translateY(12px) rotate(-7deg); }
  .lp-chip { font-size: 12.5px; padding: 7px 11px; }
  .lp-chip--1 { inset-inline-end: -4px; }
  .lp-strip .phone { width: 214px; }
}
