/* صفحةُ الإطلاق: لوحةٌ ملوّنة مبنية على الشعار (أحمره وأسوده) + فيروزي وبنفسجي وأصفر */
:root {
    --fn-red: #e8461f; --fn-red-dark: #b93412; --fn-orange: #ff7a45;
    --fn-teal: #12b5a5; --fn-teal-dark: #0d8a7e; --fn-violet: #6a4cff; --fn-violet-dark: #4b2fd6;
    --fn-yellow: #ffc531; --fn-yellow-soft: #ffe66d; --fn-ink: #111111; --fn-paper: #fff8f1;
    --fn-muted: #3d3a35; --fn-faint: #6b675f;
}
* { box-sizing: border-box; }
body.funnel { margin: 0; background: #f2e9df; font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; color: var(--fn-ink); font-size: 16px; line-height: 1.7; }
.fn-wrap { max-width: 480px; margin: 0 auto; background: var(--fn-paper); min-height: 100vh; box-shadow: 0 0 40px rgba(0,0,0,.08); overflow: hidden; }
@media (min-width: 600px) { .fn-wrap { margin: 24px auto; border-radius: 22px; min-height: 0; } }
h1, h2, h3 { font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif; margin: 0; line-height: 1.3; }
h1 { font-size: 30px; font-weight: 900; }
h2 { font-size: 24px; font-weight: 900; }
h3 { font-size: 19px; font-weight: 800; }
p { margin: 0; }
.num, .ltr { direction: ltr; font-variant-numeric: tabular-nums; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.fn-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: #fff; border-bottom: 3px solid var(--fn-red); }
.fn-top.teal { border-color: var(--fn-teal); }
.fn-logo { height: 40px; width: auto; display: block; }
.fn-logo.chip { background: #fff; padding: 6px 10px; border-radius: 10px; height: 46px; }
.fn-pill { font-family: "Cairo", sans-serif; font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.fn-pill.teal { background: var(--fn-teal); color: #fff; }
.fn-pill.yellow { background: var(--fn-yellow-soft); color: var(--fn-ink); align-self: flex-start; }
.fn-step { font-family: "Cairo", sans-serif; font-size: 14px; font-weight: 800; color: var(--fn-red); }
.fn-step.teal { color: var(--fn-teal-dark); }

.fn-btn { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 56px; width: 100%; padding: 0 16px; border: 0; border-radius: 14px; font: 800 19px/1 "Cairo", sans-serif; text-decoration: none; cursor: pointer; }
.fn-btn.dark { background: var(--fn-ink); color: var(--fn-yellow-soft); box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.fn-btn.red { background: var(--fn-red); color: #fff; box-shadow: 0 8px 20px rgba(232,70,31,.35); }
.fn-btn.ghost { background: #fff; color: var(--fn-ink); border: 2px solid var(--fn-ink); font-size: 17px; font-weight: 700; min-height: 54px; }
.fn-btn.ghost.teal { color: var(--fn-teal-dark); border-color: var(--fn-teal); }
.fn-btn.ghost.violet { color: var(--fn-violet-dark); border-color: var(--fn-violet); }
.fn-btn:disabled { opacity: .7; cursor: default; }
.fn-link { background: none; border: 0; color: var(--fn-faint); font: inherit; font-size: 14px; cursor: pointer; padding: 10px 0; text-decoration: underline; align-self: center; }

.fn-hero { display: flex; flex-direction: column; gap: 16px; padding: 30px 20px 26px; background: linear-gradient(160deg, var(--fn-red) 0%, var(--fn-orange) 55%, #ffb347 100%); color: #fff; }
.fn-hero h1 { font-size: 32px; text-shadow: 0 2px 0 rgba(0,0,0,.12); }
.fn-hero p { font-size: 17px; color: #fff3e8; }
.fn-hero p strong { color: var(--fn-yellow-soft); }
.fn-eyebrow { font-family: "Cairo", sans-serif; font-size: 13px; font-weight: 800; background: rgba(17,17,17,.28); align-self: flex-start; padding: 4px 12px; border-radius: 999px; }
.fn-video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #111; box-shadow: 0 8px 20px rgba(0,0,0,.25); object-fit: cover; }

.fn-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px 18px; background: #fff; }
.fn-stats div { display: flex; flex-direction: column; align-items: center; padding: 12px 6px; border-radius: 12px; }
.fn-stats b { font-family: "Cairo", sans-serif; font-size: 26px; font-weight: 900; direction: ltr; line-height: 1.2; }
.fn-stats span { font-size: 12px; font-weight: 600; }
.fn-stats .red { background: #fff1eb; } .fn-stats .red b { color: var(--fn-red); }
.fn-stats .teal { background: #e6f8f6; } .fn-stats .teal b { color: var(--fn-teal); }
.fn-stats .violet { background: #f0ecff; } .fn-stats .violet b { color: var(--fn-violet); }

.fn-count { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; background: var(--fn-ink); color: #fff; }
.fn-count-title { font-family: "Cairo", sans-serif; font-size: 15px; font-weight: 800; color: var(--fn-yellow-soft); }
.fn-count-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; direction: ltr; }
.fn-count-grid div { display: flex; flex-direction: column; align-items: center; border-radius: 12px; padding: 10px 4px; }
.fn-count-grid b { font-family: "Cairo", sans-serif; font-size: 30px; font-weight: 900; line-height: 1.1; }
.fn-count-grid span { font-size: 12px; }
.fn-count-grid .red { background: var(--fn-red); } .fn-count-grid .orange { background: var(--fn-orange); }
.fn-count-grid .teal { background: var(--fn-teal); } .fn-count-grid .violet { background: var(--fn-violet); }
.fn-count p { font-size: 13px; color: #d9d4cc; }

.fn-pain { display: flex; flex-direction: column; gap: 12px; padding: 28px 20px; background: #fff3c4; }
.fn-pain-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; background: #fff; border-radius: 12px; box-shadow: 0 2px 0 #f2d97a; }
.fn-pain-row i { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.fn-pain-row i.red { background: var(--fn-red); } .fn-pain-row i.violet { background: var(--fn-violet); } .fn-pain-row i.teal { background: var(--fn-teal); }

.fn-features { display: flex; flex-direction: column; gap: 16px; padding: 28px 20px; }
.fn-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border-radius: 16px; padding: 16px; border-top: 6px solid var(--c); box-shadow: 0 6px 18px var(--shadow); }
.fn-card p { color: var(--fn-muted); }
.fn-card h3 { color: var(--c-dark); }
.fn-shot-img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: cover; object-position: top center; border-radius: 12px; border: 1px solid var(--c-soft); }
.fn-shot { border: 2px dashed var(--c-soft); background: var(--c-faint); border-radius: 12px; min-height: 150px; display: flex; align-items: center; justify-content: center; color: var(--c-dark); font-size: 13px; }
.fn-card.red { --c: var(--fn-red); --c-dark: var(--fn-red); --c-soft: #f3b9a8; --c-faint: #fff1eb; --shadow: rgba(232,70,31,.12); }
.fn-card.teal { --c: var(--fn-teal); --c-dark: var(--fn-teal-dark); --c-soft: #9fe0d8; --c-faint: #e6f8f6; --shadow: rgba(18,181,165,.14); }
.fn-card.violet { --c: var(--fn-violet); --c-dark: var(--fn-violet-dark); --c-soft: #c9bdff; --c-faint: #f0ecff; --shadow: rgba(106,76,255,.14); }
.fn-card.yellow { --c: var(--fn-yellow); --c-dark: #8a6516; --c-soft: #ffe08a; --c-faint: #fff8dc; --shadow: rgba(255,197,49,.2); }

.fn-course { display: flex; flex-direction: column; gap: 12px; padding: 26px 20px; background: linear-gradient(160deg, var(--fn-violet) 0%, #9b5cff 100%); color: #fff; }
.fn-course h2 { font-size: 23px; line-height: 1.35; }
.fn-course p { color: #ece7ff; }

.fn-proof { display: flex; flex-direction: column; gap: 12px; padding: 28px 20px; background: #e6f8f6; }
.fn-proof h2 { color: var(--fn-teal-dark); }
.fn-proof blockquote { margin: 0; background: #fff; border-radius: 14px; padding: 14px 16px; border-right: 6px solid var(--fn-teal); color: var(--fn-muted); display: flex; flex-direction: column; gap: 6px; }
.fn-proof blockquote.yellow { border-color: var(--fn-yellow); }
.fn-proof blockquote.red { border-color: var(--fn-red); }
.fn-proof blockquote.red footer { color: var(--fn-red); }
.fn-proof footer { font-size: 13px; font-weight: 700; color: var(--fn-teal-dark); }
.fn-proof blockquote.yellow footer { color: #8a6516; }
.fn-line { margin-top: 8px; font-family: "Cairo", sans-serif; font-size: 18px; font-weight: 800; text-align: center; }

.fn-faq { display: flex; flex-direction: column; gap: 8px; padding: 26px 20px 28px; background: #fff; }
.fn-faq details { background: var(--fn-paper); border-radius: 12px; padding: 12px 14px; }
.fn-faq summary { font-weight: 700; color: var(--fn-red); cursor: pointer; list-style: none; }
.fn-faq summary::-webkit-details-marker { display: none; }
.fn-faq p { color: var(--fn-muted); padding-top: 6px; }

.fn-final { display: flex; flex-direction: column; gap: 14px; padding: 28px 20px 34px; background: var(--fn-ink); color: #fff; align-items: center; text-align: center; }
.fn-final h2 { color: var(--fn-yellow-soft); font-size: 26px; }
.fn-final p { color: #d9d4cc; }
.fn-foot { font-size: 12px; color: #a8a29b !important; }
.fn-foot a { color: var(--fn-yellow-soft); }

.fn-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 14px 20px 0; }
.fn-progress i { height: 8px; border-radius: 999px; background: #ffd9cc; }
.fn-progress i.on { background: var(--fn-red); }
.fn-form { display: flex; flex-direction: column; gap: 16px; padding: 26px 20px 40px; min-height: 70vh; }
.fn-form h1 { font-size: 28px; }
.fn-sub { color: var(--fn-muted); }
.fn-hint { font-size: 13px; color: var(--fn-faint); }
.fn-flash { background: #f7e8e6; color: #a33a2f; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.fn-err { display: block; color: #a33a2f; font-size: 13px; margin-top: 4px; }
/* سطرُ التفسير تحت «الرقم مسجَّل»: ليس خطأً ثانيًا، بل ما يُفعل بعده */
.fn-note { font-size: 14px; line-height: 1.7; color: var(--fn-muted); margin: 10px 0 0; }
.fn-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fn-chips.small { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 52vh; overflow: auto; padding-bottom: 4px; }
.fn-chip { display: flex; align-items: center; justify-content: center; min-height: 54px; border: 2px solid #ffd9cc; background: #fff; border-radius: 12px; font: 700 16px "IBM Plex Sans Arabic", sans-serif; cursor: pointer; padding: 6px; }
.fn-chips.small .fn-chip { min-height: 46px; font-size: 14px; }
.fn-chip:hover, .fn-chip:focus-visible { border-color: var(--fn-red); background: #fff1eb; outline: none; }
.fn-chip.violet { border-color: #c9bdff; background: #f0ecff; color: var(--fn-violet-dark); }
.fn-chip.ghost { border-color: #e6e2da; color: var(--fn-faint); }
.fn-chip.wide { grid-column: 1 / -1; }
.fn-fields { display: flex; flex-direction: column; gap: 14px; }
.fn-fields label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.fn-fields small { font-weight: 400; color: var(--fn-faint); }
.fn-input { width: 100%; min-height: 52px; padding: 10px 14px; border: 2px solid #ffd9cc; border-radius: 12px; background: #fff; font: 500 17px "IBM Plex Sans Arabic", sans-serif; color: var(--fn-ink); }
.fn-input:focus { outline: none; border-color: var(--fn-red); box-shadow: 0 0 0 4px rgba(232,70,31,.15); }
.fn-input.ltr { text-align: left; }
.fn-input.otp { font: 700 28px "Cairo", sans-serif; letter-spacing: .4em; text-align: center; }
code { background: #fff1eb; padding: 2px 6px; border-radius: 6px; direction: ltr; display: inline-block; }

.fn-done { display: flex; flex-direction: column; gap: 14px; padding: 26px 20px 40px; background: linear-gradient(180deg, #e6f8f6 0%, var(--fn-paper) 60%); text-align: center; }
.fn-done h1 { font-size: 28px; }
.fn-done p { color: var(--fn-muted); }
.fn-done p strong { color: var(--fn-red); }
.fn-check { width: 72px; height: 72px; border-radius: 50%; background: var(--fn-teal); display: flex; align-items: center; justify-content: center; align-self: center; color: #fff; box-shadow: 0 8px 20px rgba(18,181,165,.35); }
.fn-check svg { width: 38px; height: 38px; stroke-width: 3; }
.fn-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #fff; border-radius: 14px; border: 2px solid #ffe08a; text-align: right; cursor: pointer; }
.fn-toggle span { display: flex; flex-direction: column; }
.fn-toggle small { font-size: 13px; color: var(--fn-faint); }
.fn-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.fn-toggle i { width: 50px; height: 28px; background: #e9e4dc; border-radius: 999px; position: relative; flex-shrink: 0; transition: background .15s; }
.fn-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.fn-toggle input:checked + i { background: var(--fn-teal); }
.fn-toggle input:checked + i::after { transform: translateX(22px); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* الحسابُ موجود: زرّا الاسترجاع والدخول تحت التنبيه */
.fn-dup { display: flex; gap: 10px; flex-wrap: wrap; margin: -6px 0 18px; }
.fn-dup .fn-btn { flex: 1 1 160px; text-align: center; }

/* زرّ Google في صفحة الإطلاق */
.fn-btn.google { background: #fff; color: #1f1f1f; border: 2px solid #dadce0; font-size: 17px; margin-top: 10px; }
.fn-btn.google svg { width: 22px; height: 22px; }

/*
 * فاصلٌ بين البابين: «أو اكتب بريدك».
 *
 * خطٌّ يقطعه نصٌّ — يقول إنّ ما تحته بديلٌ عمّا فوقه لا خطوةٌ بعده.
 */
.fn-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; color: #8a8a8a; font-size: 14px; }
.fn-or::before, .fn-or::after { content: ""; flex: 1; height: 1px; background: #e2e2e2; }

/* شعبتان أُضيفتا إلى شاشة السنة: لكلٍّ لونُها ليُفرَّق بلمحة */
.fn-chip.teal { border-color: #9fe3dc; background: #e6f8f6; color: var(--fn-teal-dark); }
.fn-chip.yellow { border-color: #ffd98a; background: #fff6e0; color: #8a5a00; }
