/*
 * yousser-plus.com — the landing page (resources/views/welcome.blade.php and
 * front/landing/*). Right to left, phone first. Content is always visible:
 * the reveal animation only runs once the script has marked the page
 * (html.js) and the visitor has not asked for less motion.
 */
:root {
    --brand: #4a41aa;
    --brand-2: #696cff;
    --brand-dark: #2e2875;
    --accent: #f5b11a;
    --ink: #1d2140;
    --muted: #61657f;
    --line: #e7e6f3;
    --soft: #f6f5ff;
    --white: #ffffff;
    --ok: #20a46b;
    --radius: 18px;
    --shadow: 0 18px 50px -18px rgba(46, 40, 117, .35);
    --shadow-sm: 0 6px 24px -10px rgba(46, 40, 117, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: 'Cairo', system-ui, sans-serif; color: var(--ink); background: var(--white); line-height: 1.8; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .6rem; color: var(--ink); }
p { margin: 0 0 1rem; color: var(--muted); }
.lp-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.lp-section { padding: 72px 0; }
.lp-section-soft { background: var(--soft); }
.lp-eyebrow { display: inline-block; font-weight: 700; color: var(--brand); background: rgba(105, 108, 255, .1); border-radius: 999px; padding: .2rem .9rem; font-size: .85rem; margin-bottom: .8rem; }
.lp-title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
.lp-lead { font-size: 1.08rem; max-width: 46rem; }
.lp-head { text-align: center; margin: 0 auto 2.6rem; max-width: 46rem; }
.lp-head .lp-lead { margin: 0 auto; }

/* Buttons */
.lp-btn { display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-weight: 700; border-radius: 12px; padding: .75rem 1.4rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; line-height: 1.4; }
.lp-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.lp-btn-primary { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: var(--white); box-shadow: 0 10px 24px -10px rgba(74, 65, 170, .8); }
.lp-btn-primary:hover { transform: translateY(-2px); color: var(--white); }
.lp-btn-ghost { background: var(--white); color: var(--brand); border-color: var(--line); }
.lp-btn-ghost:hover { border-color: var(--brand-2); }
.lp-btn-light { background: var(--white); color: var(--brand-dark); }
.lp-btn i { font-size: 1.2rem; }

/* Header */
.lp-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; }
.lp-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(29, 33, 64, .5); }
.lp-header .lp-container { display: flex; align-items: center; gap: 1rem; height: 72px; }
.lp-logo img { height: 42px; width: auto; }
.lp-nav { margin-inline-start: auto; display: none; gap: 1.6rem; }
.lp-nav a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.lp-nav a:hover { color: var(--brand); }
.lp-header-cta { display: none; }
.lp-menu-btn { margin-inline-start: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.6rem; color: var(--ink); cursor: pointer; }
.lp-drawer { display: none; border-top: 1px solid var(--line); background: var(--white); padding: .5rem 16px 1rem; }
.lp-drawer.is-open { display: block; }
.lp-drawer a { display: block; padding: .7rem .2rem; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.lp-drawer .lp-btn { margin-top: .9rem; width: 100%; justify-content: center; }
@media (min-width: 992px) {
    .lp-nav { display: flex; }
    .lp-header-cta { display: inline-flex; }
    .lp-menu-btn, .lp-drawer { display: none !important; }
}

/* Hero */
.lp-hero { position: relative; overflow: hidden; padding: 56px 0 72px; background:
    radial-gradient(900px 420px at 85% -10%, rgba(105, 108, 255, .18), transparent 60%),
    radial-gradient(700px 380px at 0% 30%, rgba(245, 177, 26, .12), transparent 60%),
    linear-gradient(180deg, #fbfaff, #ffffff); }
.lp-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.lp-hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; letter-spacing: -.5px; }
.lp-hero h1 span { background: linear-gradient(135deg, var(--brand-2), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero .lp-lead { margin-bottom: 1.6rem; }
.lp-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.lp-hero-points { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; list-style: none; padding: 0; margin: 0; color: var(--muted); font-weight: 600; font-size: .95rem; }
.lp-hero-points li { display: flex; align-items: center; gap: .35rem; }
.lp-hero-points i { color: var(--ok); font-size: 1.2rem; }
@media (min-width: 992px) { .lp-hero-grid { grid-template-columns: 1fr 1.1fr; } .lp-hero { padding: 80px 0 96px; } }

/* The illustrative app window in the hero (sample figures, drawn in HTML). */
.lp-window { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.lp-window-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; background: #f3f2fb; border-bottom: 1px solid var(--line); direction: ltr; }
.lp-window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #e0ddf3; }
.lp-window-bar span:nth-child(1) { background: #ff6b6b; } .lp-window-bar span:nth-child(2) { background: #ffd166; } .lp-window-bar span:nth-child(3) { background: #3ccf91; }
.lp-window-bar em { margin-left: auto; margin-right: auto; font-style: normal; font-size: .75rem; color: var(--muted); background: var(--white); border-radius: 8px; padding: .1rem 1.2rem; }
.lp-app { display: grid; grid-template-columns: 1fr; min-height: 300px; }
.lp-app-side { display: none; background: linear-gradient(180deg, var(--brand), var(--brand-dark)); padding: 1rem .8rem; color: rgba(255, 255, 255, .85); font-size: .8rem; }
.lp-app-side div { padding: .45rem .6rem; border-radius: 8px; display: flex; gap: .45rem; align-items: center; }
.lp-app-side div.on { background: rgba(255, 255, 255, .16); color: var(--white); font-weight: 700; }
.lp-app-main { padding: 1rem; display: grid; gap: .8rem; background: #fbfbfe; }
.lp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.lp-kpi { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .7rem; }
.lp-kpi small { display: block; color: var(--muted); font-size: .7rem; }
.lp-kpi strong { font-size: 1rem; }
.lp-kpi .up { color: var(--ok); font-size: .7rem; font-weight: 700; }
.lp-chart { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: .8rem; }
.lp-chart small { color: var(--muted); font-size: .72rem; }
.lp-bars { display: flex; align-items: flex-end; gap: 6%; height: 92px; margin-top: .4rem; direction: ltr; }
.lp-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); opacity: .9; }
.lp-bars i:nth-child(even) { background: linear-gradient(180deg, #ffd166, var(--accent)); }
.lp-rows { background: var(--white); border: 1px solid var(--line); border-radius: 12px; font-size: .78rem; }
.lp-rows div { display: flex; justify-content: space-between; gap: .6rem; padding: .45rem .7rem; border-bottom: 1px solid var(--line); }
.lp-rows div:last-child { border-bottom: 0; }
.lp-rows b { font-weight: 700; direction: ltr; }
.lp-tag { font-size: .68rem; border-radius: 999px; padding: 0 .5rem; background: rgba(32, 164, 107, .12); color: var(--ok); font-weight: 700; }
.lp-tag.wait { background: rgba(245, 177, 26, .16); color: #a46f00; }
@media (min-width: 576px) { .lp-app { grid-template-columns: 150px 1fr; } .lp-app-side { display: block; } }

/* Modules */
.lp-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .lp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .lp-grid-4 { grid-template-columns: repeat(4, 1fr); } .lp-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.lp-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; height: 100%; }
.lp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: rgba(105, 108, 255, .4); }
.lp-card h3 { font-size: 1.08rem; font-weight: 800; }
.lp-card p { font-size: .94rem; margin: 0; }
.lp-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; color: var(--brand); background: rgba(105, 108, 255, .12); margin-bottom: 1rem; }
.lp-icon.alt { color: #b67a00; background: rgba(245, 177, 26, .16); }

/* Screen tour */
.lp-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.6rem; }
.lp-tab { font: inherit; font-weight: 700; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: .5rem 1.2rem; cursor: pointer; }
.lp-tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--white); }
.lp-tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.lp-panel { max-width: 1000px; margin: 0 auto; }
.lp-panel[hidden] { display: none; }
.lp-panel figure { margin: 0; }
.lp-panel img { width: 100%; height: auto; border-radius: 0 0 var(--radius) var(--radius); }
.lp-panel figcaption { text-align: center; color: var(--muted); margin-top: 1rem; }

/* Steps */
.lp-steps { counter-reset: step; display: grid; gap: 1rem; }
@media (min-width: 768px) { .lp-steps { grid-template-columns: repeat(3, 1fr); } }
.lp-step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem 1.4rem; }
.lp-step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; inset-inline-start: 1.4rem; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--white); background: linear-gradient(135deg, var(--accent), #e89b00); box-shadow: 0 8px 18px -8px rgba(232, 155, 0, .9); }
.lp-step h3 { font-size: 1.05rem; font-weight: 800; margin-top: .4rem; }
.lp-step p { margin: 0; font-size: .94rem; }

/* Plans */
.lp-plan { display: flex; flex-direction: column; }
.lp-plan h3 { font-size: 1.25rem; }
.lp-plan ul { list-style: none; padding: 0; margin: .4rem 0 1.4rem; flex: 1; }
.lp-plan li { display: flex; gap: .5rem; align-items: flex-start; padding: .3rem 0; color: var(--muted); }
.lp-plan li i { color: var(--ok); font-size: 1.15rem; margin-top: .3rem; }
.lp-plan .lp-btn { justify-content: center; }
.lp-plan.is-featured { border: 2px solid var(--brand-2); box-shadow: var(--shadow-sm); }

/* FAQ */
.lp-faq { max-width: 820px; margin: 0 auto; display: grid; gap: .7rem; }
.lp-faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.2rem; }
.lp-faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 1rem 0; display: flex; justify-content: space-between; gap: 1rem; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--brand); transition: transform .2s ease; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { padding-bottom: 1rem; margin: 0; }

/* Blog */
.lp-post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 1rem; background: var(--soft); }
.lp-post h3 { font-size: 1.05rem; }
.lp-post p { font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Call to action band */
.lp-cta { border-radius: 24px; padding: 2.6rem 1.6rem; text-align: center; color: var(--white); background:
    radial-gradient(500px 220px at 90% 0%, rgba(245, 177, 26, .35), transparent 60%),
    linear-gradient(135deg, var(--brand-2), var(--brand) 60%, var(--brand-dark)); box-shadow: var(--shadow); }
.lp-cta h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.lp-cta p { color: rgba(255, 255, 255, .85); margin-bottom: 1.4rem; }

/* Contact */
.lp-contact { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 992px) { .lp-contact { grid-template-columns: 1fr 1.3fr; } }
.lp-contact-ways { display: grid; gap: .8rem; margin-top: 1.2rem; }
.lp-contact-ways a { display: flex; align-items: center; gap: .8rem; color: var(--ink); font-weight: 700; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; }
.lp-contact-ways i { font-size: 1.5rem; color: var(--brand); }
.lp-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); display: grid; gap: 1rem; }
.lp-form-row { display: grid; gap: 1rem; }
@media (min-width: 576px) { .lp-form-row { grid-template-columns: 1fr 1fr; } }
.lp-field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
.lp-field input, .lp-field select, .lp-field textarea { width: 100%; font: inherit; color: var(--ink); background: #fcfcff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; }
.lp-field input:focus, .lp-field select:focus, .lp-field textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(105, 108, 255, .15); }
.lp-field .lp-error { color: #d63b3b; font-size: .85rem; margin-top: .2rem; }
.lp-field.has-error input, .lp-field.has-error select, .lp-field.has-error textarea { border-color: #d63b3b; }
/* Hidden without moving it: an offset (left: -9999px) widens a right-to-left page by that much. */
.lp-trap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lp-trap * { width: 1px !important; }
.lp-form { position: relative; }
.lp-skip { position: absolute; top: -60px; inset-inline-start: 16px; z-index: 100; background: var(--brand); color: var(--white); padding: .5rem 1rem; border-radius: 10px; }
.lp-skip:focus { top: 12px; }
.lp-center { text-align: center; margin-top: 1.4rem; }
.lp-sent { display: flex; gap: .7rem; align-items: center; background: rgba(32, 164, 107, .1); color: #137a4d; border-radius: 12px; padding: .9rem 1rem; font-weight: 700; }

/* Footer */
.lp-footer { background: #15123a; color: rgba(255, 255, 255, .72); padding: 56px 0 24px; margin-top: 72px; }
.lp-footer a { color: rgba(255, 255, 255, .8); }
.lp-footer a:hover { color: var(--white); }
.lp-footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .lp-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.lp-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.lp-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.lp-footer-logo { background: var(--white); border-radius: 12px; padding: .5rem .8rem; display: inline-block; margin-bottom: 1rem; }
.lp-footer-logo img { height: 36px; width: auto; }
.lp-footer p { color: rgba(255, 255, 255, .65); }
.lp-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.4rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: .88rem; }

/* WhatsApp and back to top */
.lp-float { position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 40; display: grid; gap: .6rem; }
.lp-float a, .lp-float button { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; border: 0; cursor: pointer; box-shadow: var(--shadow-sm); }
.lp-float .wa { background: #25d366; color: var(--white); }
.lp-float .top { background: var(--white); color: var(--brand); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.lp-float .top.is-on { opacity: 1; pointer-events: auto; }

/* Reveal on scroll: only with the script, only without «less motion». */
@media (prefers-reduced-motion: no-preference) {
    html.js .lp-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
    html.js .lp-reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lp-card:hover, .lp-btn-primary:hover { transform: none; }
}
