/* The public landing page (uses the tokens of app.css). */
body.lp { background: var(--surface); }
.lp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.btn.block { display: flex; justify-content: center; width: 100%; margin-top: 22px; }

/* header */
.lp-nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); }
.lp-nav-inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.lp-links { display: flex; gap: 6px; flex: 1; justify-content: center; }
.lp-links a { color: var(--muted); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 10px; }
.lp-links a:hover { color: var(--ink); background: var(--surface-2); }
.lp-nav-end { display: flex; align-items: center; gap: 10px; }
.lp-login { font-weight: 800; text-decoration: none; color: var(--ink); padding: 8px 10px; }
@media (max-width: 900px) { .lp-links { display: none; } .lp-nav-end { margin-inline-start: auto; } }
@media (max-width: 480px) {
  /* phones: sign-in stays in the bar (as a pill); the hero below has the big "start" button */
  .lp-nav-end .btn.primary { display: none; }
  .lp-login { border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 6px 14px; }
  .lp-nav-inner { gap: 10px; } .lp-nav .brand { font-size: 1rem; }
}

/* hero */
.lp-hero { position: relative; overflow: hidden; padding: 72px 0 40px;
  background: radial-gradient(1200px 500px at 85% -10%, var(--accent-soft), transparent 60%),
              radial-gradient(900px 500px at 0% 110%, var(--sun-soft), transparent 60%); }
.lp-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.lp-tag { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  font-weight: 800; font-size: .9rem; color: var(--accent); box-shadow: var(--shadow); }
.lp-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.2; margin: 18px 0 16px; font-weight: 900; letter-spacing: -.02em; }
.lp-hero h1 span { color: var(--accent); }
.lp-lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; line-height: 1.8; }
.lp-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.lp-cta-row .btn.primary { box-shadow: var(--shadow-lg); }
.lp-trust-row { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-weight: 700; font-size: .95rem; }
.lp-hero-art { position: relative; min-height: 420px; }
.mock { position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); }
.mock-app { width: min(100%, 400px); padding: 16px 18px 20px; }
.mock-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-title { font-weight: 900; font-size: 1.1rem; margin-bottom: 10px; }
.mock-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2);
  border: 1px solid var(--line); margin-top: 10px; }
.mock-row b { color: var(--accent); }
.mock-row small { color: var(--muted); font-weight: 700; }
.mock-chip { grid-column: 1 / -1; justify-self: start; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 1px 10px; font-size: .85rem; font-weight: 700; }
.mock-play { position: absolute; inset-inline-end: 0; bottom: 0; width: 280px; padding: 16px; background: #fff7e8; z-index: 3; animation: float 6s ease-in-out infinite; }
.mock-stars { position: absolute; top: 12px; inset-inline-end: 14px; background: #fff; border-radius: 999px; padding: 2px 10px; font-weight: 900; box-shadow: var(--shadow); }
.mock-cards { display: flex; gap: 12px; justify-content: center; margin: 26px 0 14px; }
.mock-cards span { width: 92px; height: 92px; background: #fff; border-radius: 20px; display: grid; place-items: center; font-size: 3rem; box-shadow: var(--shadow); }
.mock-cards span:first-child { outline: 4px solid #22c55e; }
.mock-lulu { display: flex; align-items: center; gap: 8px; }
.mock-lulu .bunny { width: 44px; height: 44px; object-fit: contain; }
.mock-lulu .bubble { background: #fff; border-radius: 14px; padding: 6px 12px; font-weight: 800; color: #0f172a; box-shadow: var(--shadow); }
.blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; z-index: 1; }
.blob.b1 { width: 260px; height: 260px; background: var(--accent-2); top: 10%; inset-inline-end: 10%; }
.blob.b2 { width: 200px; height: 200px; background: var(--sun); bottom: 0; inset-inline-start: 10%; }
@keyframes float { 50% { transform: translateY(-10px); } }
.lp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.lp-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow); }
.lp-stats b { display: block; font-size: 1.8rem; font-weight: 900; color: var(--accent); }
.lp-stats span { color: var(--muted); font-weight: 700; }
@media (max-width: 900px) {
  .lp-hero { padding-top: 40px; }
  .lp-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .lp-hero-art { min-height: 380px; }
  .lp-stats { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .mock-play { width: 230px; }
  .mock-cards span { width: 74px; height: 74px; font-size: 2.4rem; }
}

/* sections */
.lp-section { padding: 88px 0; }
.lp-alt { background: var(--bg); }
.lp-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.lp-head h2, .lp-split h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 900; margin: 0 0 10px; letter-spacing: -.01em; }
.lp-head p { color: var(--muted); font-size: 1.1rem; }
.lp-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: var(--accent-soft); flex-shrink: 0; }
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-feature { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; transition: transform .2s, box-shadow .2s; }
.lp-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lp-feature h3 { margin: 16px 0 8px; font-size: 1.15rem; }
.lp-feature p { color: var(--muted); }
.lp-feature:nth-child(3n+2) .lp-icon { background: var(--sun-soft); }
@media (max-width: 900px) { .lp-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .lp-features { grid-template-columns: 1fr; } .lp-section { padding: 60px 0; } }

.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.lp-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; text-align: center; box-shadow: var(--shadow); }
.lp-num { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; font-weight: 900;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 20px rgba(15, 118, 110, .3); }
.lp-steps h3 { margin: 0 0 6px; }
.lp-steps p { color: var(--muted); }
@media (max-width: 760px) { .lp-steps { grid-template-columns: 1fr; } }

.lp-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.lulu-scene { position: relative; aspect-ratio: 1; max-width: 420px; margin: 0 auto; border-radius: 40px;
  background: linear-gradient(160deg, #fff7e8, var(--sun-soft)); display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.lulu-scene .big { width: 52%; height: auto; }
.lulu-scene .pic { position: absolute; width: 84px; height: 84px; background: #fff; border-radius: 22px; display: grid; place-items: center; font-size: 2.6rem;
  box-shadow: var(--shadow); animation: float 5s ease-in-out infinite; }
.lulu-scene .pic:nth-of-type(1) { top: 8%; inset-inline-start: 8%; }
.lulu-scene .pic:nth-of-type(2) { top: 14%; inset-inline-end: 6%; animation-delay: -1.5s; }
.lulu-scene .pic:nth-of-type(3) { bottom: 8%; inset-inline-end: 14%; animation-delay: -3s; }
.lp-checks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; font-weight: 700; }
.lp-checks li::before { content: '✓'; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; margin-inline-end: 10px;
  background: var(--accent-soft); color: var(--accent); font-weight: 900; }
@media (max-width: 900px) { .lp-split { grid-template-columns: 1fr; gap: 32px; } }

.lp-pricing { max-width: 820px; margin: 0 auto; }
.lp-popular { position: absolute; top: -14px; inset-inline-start: 24px; background: var(--sun); color: #fff; font-weight: 900; font-size: .85rem;
  border-radius: 999px; padding: 3px 14px; }

.lp-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lp-trust article { display: flex; gap: 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.lp-trust h3 { margin: 0 0 4px; font-size: 1.1rem; }
.lp-trust p { color: var(--muted); }
@media (max-width: 700px) { .lp-trust { grid-template-columns: 1fr; } }

.lp-faq-wrap { max-width: 780px; }
.lp-faq { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin-bottom: 12px; }
.lp-faq summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.lp-faq[open] summary::after { content: '−'; }
.lp-faq p { color: var(--muted); margin-top: 10px; }

.lp-final { text-align: center; color: #fff; border-radius: 32px; padding: 56px 24px;
  background: linear-gradient(135deg, var(--accent), #0d9488 55%, var(--accent-2)); box-shadow: var(--shadow-lg); }
.lp-final h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 900; margin: 0 0 8px; }
.lp-final p { opacity: .9; font-size: 1.1rem; margin-bottom: 24px; }
.btn.lp-white { background: #fff; color: #0f766e; border-color: #fff; }

.lp-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.lp-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (prefers-color-scheme: dark) {
  .mock-play, .lulu-scene { background: #2a2414; }
}

/* The explainer videos (vertical, Arabic): a card each, played in a pop-up. */
.lp-videos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.lp-video { display: flex; flex-direction: column; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface);
  box-shadow: var(--shadow); text-align: start; font: inherit; color: inherit; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.lp-video:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lp-video-poster { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.lp-video-poster img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.lp-video-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: #fda41c; color: #fff;
  display: grid; place-items: center; font-size: 26px; padding-inline-start: 4px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); transition: transform .2s; }
.lp-video:hover .lp-video-play { transform: scale(1.08); }
.lp-video-text { display: flex; flex-direction: column; gap: 4px; padding: 0 4px 4px; }
.lp-video-text b { font-size: 1.05rem; }
.lp-video-text small { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lp-player { padding: 0; border: 0; border-radius: 22px; background: #000; overflow: visible; max-width: 96vw; }
.lp-player::backdrop { background: rgba(15, 23, 42, .78); }
.lp-player video { display: block; height: min(88vh, 900px); max-width: 96vw; aspect-ratio: 720 / 1600; border-radius: 22px; background: #000; }
.lp-player video::cue { font-family: Tajawal, sans-serif; font-size: 1rem; background: rgba(0, 0, 0, .7); }
.lp-player-close { position: absolute; top: -14px; inset-inline-end: -14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: #fff; color: #0f172a; font-size: 18px; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
@media (max-width: 860px) {
  .lp-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lp-video-play { width: 52px; height: 52px; font-size: 21px; }
  .lp-player-close { top: 8px; inset-inline-end: 8px; }
}

/* Moving between pages (with assets/nav-loader.js): the new page fades in where the browser can (Chrome, Edge…). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .16s ease both; }
::view-transition-new(root) { animation: vt-in .26s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* Phones: a slimmer bar with smaller buttons (the hero below has the big "start" button). */
@media (max-width: 480px) {
  .lp-nav-inner { height: 56px; gap: 8px; }
  .lp-nav .brand { font-size: .98rem; gap: 6px; }
  .lp-nav .brand .logo { width: 30px; height: 30px; }
  .lp-nav-end { gap: 6px; }
  .lp-login { padding: 5px 12px; font-size: .82rem; }
}
