/* AIAY landing page (templates/landing/index.html) - the app's palette and fonts: Inter for English
   (app_fonts.css), Alexandria for Arabic (declared here: fonts.css isn't loaded on the landing). */
@font-face { font-family: 'Alexandria'; src: url("../fonts/Alexandria-Regular.119a21d280e9.ttf") format('truetype'); font-weight: 300 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Alexandria'; src: url("../fonts/Alexandria-Medium.3d95dc34b908.ttf") format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Alexandria'; src: url("../fonts/Alexandria-SemiBold.f3e411614f80.ttf") format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Alexandria'; src: url("../fonts/Alexandria-Bold.af5b2dd6f7b8.ttf") format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Alexandria'; src: url("../fonts/Alexandria-ExtraBold.b30d2c5b1685.ttf") format('truetype'); font-weight: 800 900; font-style: normal; font-display: swap; }
:root {
    --ink: #311E13;
    --deep: #53321D;
    --accent: #C96F4A;
    --canvas: #FAF8F5;
    --sand: #F4E8D4;
    --soft: #FBE8DB;
    --search: #F7EFE7;
    --track: #E7DDD6;
    --muted: #8B7569;
    --gold: #E8CE80;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --font: var(--app-font, 'Inter', sans-serif);
    --font-ar: var(--app-font-ar, 'Alexandria', sans-serif);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.lp { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
html[dir='rtl'] body.lp { font-family: var(--font-ar); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 700; }
.lp-skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--deep); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 60; }
.lp-skip:focus { top: 12px; }

/* Nav */
.lp-nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 16px clamp(18px, 5vw, 56px); color: #fff; transition: background .3s var(--ease), box-shadow .3s var(--ease), color .3s; }
.lp-nav.is-solid { background: rgba(250, 248, 245, .94); color: var(--ink); box-shadow: 0 1px 0 var(--track); backdrop-filter: blur(10px); }
.lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: .06em; }
.lp-brand img { border-radius: 10px; }
.lp-links { display: flex; gap: 22px; margin-inline-start: 12px; }
.lp-links a, .lp-lang, .lp-signin { text-decoration: none; font-size: 15px; opacity: .9; }
.lp-links a:hover, .lp-lang:hover, .lp-signin:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.lp-nav__end { margin-inline-start: auto; display: flex; align-items: center; gap: 18px; }

/* Buttons */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--deep); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; transition: transform .2s var(--ease), background .2s; }
.lp-btn:hover { transform: translateY(-2px); background: #643d24; }
.lp-btn:focus-visible, .lp-link:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.lp-btn--small { min-height: 42px; padding: 0 20px; font-size: 14px; }
.lp-btn--ghost { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .5); backdrop-filter: blur(6px); }
.lp-btn--ghost:hover { background: rgba(255, 255, 255, .24); }
.lp-btn--light { background: var(--canvas); color: var(--deep); }
.lp-btn--light:hover { background: #fff; }

/* Hero */
.lp-hero { position: relative; min-height: min(100svh, 900px); display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: var(--ink); }
.lp-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 45%; animation: lp-push 18s var(--ease) both; }
html[dir='rtl'] .lp-hero__photo { transform: scaleX(-1); animation-name: lp-push-rtl; }
.lp-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(49, 30, 19, .45) 0%, rgba(49, 30, 19, .1) 35%, rgba(49, 30, 19, .82) 100%); }
.lp-hero__glow { position: absolute; width: 520px; top: 8%; inset-inline-end: 4%; opacity: .7; animation: lp-breathe 6s ease-in-out infinite; pointer-events: none; }
.lp-hero__star { position: absolute; width: 46px; top: calc(8% + 237px); inset-inline-end: calc(4% + 237px); filter: drop-shadow(0 0 18px #FFE7B0); animation: lp-twinkle 3.2s ease-in-out infinite; }
.lp-hero__body { position: relative; width: min(1120px, 100%); margin: 0 auto; padding: 0 clamp(18px, 5vw, 56px) clamp(56px, 10vh, 110px); }
.lp-hero h1 { max-width: 760px; font-size: clamp(38px, 6vw, 68px); letter-spacing: -.01em; }
html[dir='rtl'] .lp-hero h1 { letter-spacing: 0; line-height: 1.35; }
.lp-lead { max-width: 600px; margin: 20px 0 30px; font-size: clamp(17px, 2vw, 20px); color: rgba(255, 255, 255, .9); }
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-note { margin: 18px 0 0; font-size: 14px; color: var(--gold); }
.lp-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.lp-hero .lp-eyebrow { color: var(--gold); }
html[dir='rtl'] .lp-eyebrow { letter-spacing: 0; font-size: 15px; }

/* Sections */
.lp-section { width: min(1120px, 100%); margin: 0 auto; padding: clamp(64px, 10vw, 112px) clamp(18px, 5vw, 56px); }
.lp-section > h2, .lp-split h2, .lp-cta h2 { font-size: clamp(28px, 4vw, 42px); max-width: 680px; }
.lp-section--sand { width: 100%; max-width: none; background: var(--search); }
.lp-section--sand > * { max-width: 1008px; margin-inline: auto; }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.lp-card { background: #fff; border: 1px solid var(--track); border-radius: 24px; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.lp-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(49, 30, 19, .1); }
.lp-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lp-card h3 { font-size: 20px; margin: 20px 22px 8px; }
.lp-card p { margin: 0 22px 24px; color: var(--muted); font-size: 15px; }

.lp-steps { list-style: none; margin: 44px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lp-steps li { background: var(--canvas); border-radius: 24px; padding: 28px; border: 1px solid var(--track); }
.lp-steps__n { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--soft); color: var(--deep); font-weight: 700; margin-bottom: 18px; }
.lp-steps h3 { font-size: 20px; margin-bottom: 8px; }
.lp-steps p { margin: 0; color: var(--muted); }

.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.lp-split__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; }
.lp-checks { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 14px; }
.lp-checks li { position: relative; padding-inline-start: 34px; font-size: 17px; }
.lp-checks li::before { content: ''; position: absolute; inset-inline-start: 0; top: .3em; width: 22px; height: 22px; border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23C96F4A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.lp-link { color: var(--accent); font-weight: 600; text-underline-offset: 4px; }

.lp-faq { margin-top: 36px; display: grid; gap: 12px; max-width: 820px; }
.lp-faq details { background: #fff; border: 1px solid var(--track); border-radius: 18px; padding: 4px 22px; }
.lp-faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; color: var(--accent); font-size: 24px; line-height: 1; transition: transform .25s var(--ease); }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details div { color: var(--muted); padding-bottom: 12px; }

.lp-cta { position: relative; overflow: hidden; text-align: center; color: #fff; background: radial-gradient(ellipse at 50% 0%, #936036 0%, var(--deep) 45%, var(--ink) 100%); padding: clamp(72px, 11vw, 120px) 20px; }
.lp-cta h2 { margin: 0 auto 12px; }
.lp-cta p { margin: 0 0 30px; color: rgba(255, 255, 255, .85); font-size: 18px; }
.lp-cta__star { width: 48px; margin: 0 auto 22px; filter: drop-shadow(0 0 20px #FFE7B0); animation: lp-twinkle 3.2s ease-in-out infinite; }

.lp-footer { background: var(--ink); color: rgba(250, 248, 245, .7); text-align: center; padding: 40px 20px 48px; font-size: 14px; }
.lp-footer__logo { margin: 0 auto 18px; filter: brightness(0) invert(.96); width: 150px; height: auto; }
.lp-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-bottom: 16px; }
.lp-footer a { text-decoration: none; color: var(--sand); }
.lp-footer a:hover { text-decoration: underline; }
.lp-footer p { margin: 0; }

/* Motion */
.lp-rise { opacity: 0; transform: translateY(18px); animation: lp-rise .9s var(--ease) forwards; }
.lp-rise--2 { animation-delay: .12s; } .lp-rise--3 { animation-delay: .24s; } .lp-rise--4 { animation-delay: .36s; } .lp-rise--5 { animation-delay: .48s; }
.lp-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.lp-reveal.is-in { opacity: 1; transform: none; }
.lp-grid .lp-reveal:nth-child(3n+2), .lp-steps .lp-reveal:nth-child(2) { transition-delay: .1s; }
.lp-grid .lp-reveal:nth-child(3n), .lp-steps .lp-reveal:nth-child(3) { transition-delay: .2s; }
@keyframes lp-rise { to { opacity: 1; transform: none; } }
@keyframes lp-push { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes lp-push-rtl { from { transform: scaleX(-1) scale(1.08); } to { transform: scaleX(-1) scale(1); } }
@keyframes lp-breathe { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: .85; transform: scale(1.04); } }
@keyframes lp-twinkle { 0%, 100% { opacity: .85; transform: scale(.9) rotate(0deg); } 50% { opacity: 1; transform: scale(1.12) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .lp-rise, .lp-reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* Smaller screens */
@media (max-width: 900px) {
    .lp-links { display: none; }
    .lp-grid, .lp-steps { grid-template-columns: 1fr 1fr; }
    .lp-split { grid-template-columns: 1fr; }
    .lp-split__photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
    .lp-signin { display: none; }
    .lp-nav { gap: 12px; padding: 14px 16px; }
    .lp-nav__end { gap: 12px; }
    .lp-brand span { display: none; }
    .lp-grid, .lp-steps { grid-template-columns: 1fr; }
    .lp-hero__glow { width: 340px; top: 10%; inset-inline-end: -40px; }
    .lp-hero__star { width: 34px; top: calc(10% + 153px); inset-inline-end: calc(-40px + 153px); }
    .lp-actions .lp-btn { flex: 1 1 100%; }
}
