/* =====================================================================
   rofofi — Landing / marketing page
   Shares the same design tokens as the portal & admin dashboards so the
   public site feels like part of the same product (light Tajawal theme,
   orange brand accent, soft cards).
   ===================================================================== */

:root {
    --bg: #f1f5f9;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --title: #0f172a;
    --text: #334155;
    --muted: #94a3b8;
    --border: #eef2f7;
    --border-strong: #e2e8f0;

    --brand: #f97316;
    --brand-dark: #ea580c;
    --brand-soft: #fff7ed;

    --green: #16a34a;
    --green-soft: #dcfce7;
    --blue: #2563eb;
    --blue-soft: #dbeafe;
    --amber: #d97706;
    --amber-soft: #fef3c7;
    --purple: #7e22ce;
    --purple-soft: #f3e8ff;
    --slate: #64748b;
    --slate-soft: #f1f5f9;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px -14px rgba(15, 23, 42, 0.20);
    --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.10);
    --font: 'Tajawal', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* =================== Buttons =================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
    transition: background .15s, border-color .15s, transform .12s, box-shadow .15s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(249,115,22,.6); }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); text-decoration: none; }
.btn-lg { padding: 15px 32px; font-size: 17px; }
.btn-block { width: 100%; }

/* =================== Nav =================== */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--title); font-size: 1.25rem; text-decoration: none; }
.brand-logo:hover { text-decoration: none; }
.brand-logo .mark { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a.link { color: var(--text); font-weight: 700; font-size: .92rem; padding: 8px 12px; border-radius: 8px; }
.nav-links a.link:hover { background: var(--surface-2); color: var(--title); text-decoration: none; }

/* =================== Hero =================== */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; background:
    radial-gradient(circle at 80% -10%, var(--brand-soft), transparent 55%),
    radial-gradient(circle at 10% 0%, var(--blue-soft), transparent 45%),
    var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--green-soft); color: var(--green); font-weight: 800; font-size: .82rem; padding: 6px 14px; border-radius: 30px; margin-bottom: 20px; }
.eyebrow-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hero h1 { font-size: 3rem; line-height: 1.25; color: var(--title); font-weight: 800; margin-bottom: 18px; letter-spacing: -.01em; }
.hero h1 .hl { color: var(--brand); }
.hero p.lead { font-size: 1.15rem; color: var(--text); max-width: 560px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; font-weight: 700; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .ck { color: var(--green); font-weight: 800; }

/* Hero mock card */
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); }
.mock-bar { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.mock-bar .pd { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock-bar .pd.r { background: #fca5a5; } .mock-bar .pd.y { background: #fcd34d; } .mock-bar .pd.g { background: #86efac; }
.mock-bar .ttl { font-weight: 800; color: var(--title); font-size: .9rem; margin-right: auto; }
.mock-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.mock-stat { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px; border: 1px solid var(--border); }
.mock-stat .l { font-size: .72rem; color: var(--muted); font-weight: 700; }
.mock-stat .v { font-size: 1.5rem; font-weight: 800; color: var(--title); }
.mock-stat .v.green { color: var(--green); } .mock-stat .v.blue { color: var(--blue); }
.mock-chart { height: 90px; display: flex; align-items: flex-end; gap: 7px; padding: 8px 4px; }
.mock-chart .bar { flex: 1; background: linear-gradient(var(--brand), #fdba74); border-radius: 5px 5px 0 0; opacity: .9; }

/* =================== Section =================== */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .kicker { color: var(--brand-dark); font-weight: 800; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
.section-head h2 { font-size: 2.1rem; color: var(--title); font-weight: 800; margin: 8px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* =================== Features =================== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-soft); }
.feature-ic { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
.ic-brand { background: var(--brand-soft); color: var(--brand-dark); }
.ic-green { background: var(--green-soft); color: var(--green); }
.ic-blue { background: var(--blue-soft); color: var(--blue); }
.ic-purple { background: var(--purple-soft); color: var(--purple); }
.ic-amber { background: var(--amber-soft); color: var(--amber); }
.ic-slate { background: var(--slate-soft); color: var(--slate); }
.feature-card h3 { color: var(--title); font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--text); font-size: .95rem; }

/* =================== Pricing =================== */
.pricing-section { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; max-width: 1020px; margin: 0 auto; align-items: stretch; }
.plan-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; position: relative; transition: transform .15s, box-shadow .15s; }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-card.featured { border-color: var(--brand); box-shadow: 0 16px 40px -18px rgba(249,115,22,.55); }
.plan-card.featured::after { content: 'الأكثر شيوعاً'; position: absolute; top: -13px; right: 50%; transform: translateX(50%); background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800; padding: 4px 14px; border-radius: 20px; white-space: nowrap; }
.plan-card .plan-name { font-size: 1.35rem; font-weight: 800; color: var(--title); }
.plan-card .plan-tag { color: var(--muted); font-size: .85rem; margin: 4px 0 14px; }
.plan-card .plan-price { font-size: 2.6rem; font-weight: 800; color: var(--title); line-height: 1; }
.plan-card .plan-price small { font-size: .9rem; color: var(--muted); font-weight: 700; }
.plan-card ul { list-style: none; margin: 20px 0; flex: 1; }
.plan-card li { padding: 8px 0; color: var(--text); font-size: .92rem; position: relative; padding-right: 24px; border-bottom: 1px dashed var(--border); }
.plan-card li:last-child { border-bottom: none; }
.plan-card li::before { content: '✓'; position: absolute; right: 0; top: 8px; color: var(--green); font-weight: 800; }
.plan-card .btn { margin-top: 8px; }

/* =================== CTA / Waitlist =================== */
.cta-section { padding: 72px 0; }
.cta-card { max-width: 760px; margin: 0 auto; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); border-radius: var(--radius); padding: 48px; text-align: center; box-shadow: var(--shadow); color: #fff; position: relative; overflow: hidden; }
.cta-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 40%); pointer-events: none; }
.cta-card h2 { font-size: 2rem; margin-bottom: 10px; position: relative; }
.cta-card p { opacity: .92; margin-bottom: 24px; position: relative; }
.cta-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; position: relative; flex-wrap: wrap; }
.cta-form input { flex: 1; min-width: 200px; padding: 13px 16px; border-radius: var(--radius-sm); border: none; font-size: 15px; font-family: inherit; }
.cta-form input:focus { outline: 3px solid rgba(255,255,255,.4); }
.cta-form .btn-white { background: #fff; color: var(--brand-dark); }
.cta-form .btn-white:hover { background: var(--surface-2); transform: translateY(-1px); text-decoration: none; }
#wl-status { margin-top: 14px; font-weight: 700; font-size: .9rem; position: relative; min-height: 1.2em; }

/* =================== FAQ =================== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 800; color: var(--title); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { color: var(--brand); font-size: 1.3rem; transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary .chev { transform: rotate(45deg); }
.faq-item .ans { padding: 0 22px 18px; color: var(--text); font-size: .95rem; }

/* =================== Footer =================== */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 0 30px; margin-top: 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer .f-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--title); font-size: 1.1rem; margin-bottom: 6px; }
.footer .f-desc { color: var(--muted); font-size: .86rem; max-width: 320px; }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h5 { color: var(--title); font-size: .9rem; margin-bottom: 10px; font-weight: 800; }
.footer-col a { display: block; color: var(--muted); font-size: .86rem; padding: 3px 0; }
.footer-col a:hover { color: var(--brand-dark); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 18px; text-align: center; color: var(--muted); font-size: .82rem; }

/* =================== Brand mark (shelves icon for "رفوفي") =================== */
.mark.shelf { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 10px 9px; flex-shrink: 0; }
.mark.shelf i { display: block; width: 20px; height: 4px; border-radius: 2px; background: var(--brand-dark); }
.mark.shelf i:nth-child(2) { width: 15px; }
.f-brand .mark.shelf { width: 34px; height: 34px; padding: 9px 8px; }
.f-brand .mark.shelf i { width: 18px; height: 3px; }
.f-brand .mark.shelf i:nth-child(2) { width: 13px; }

/* =================== Industries strip =================== */
.industries-band { background: var(--surface); border-bottom: 1px solid var(--border); padding: 26px 0; }
.industries-band .ib-title { text-align: center; color: var(--muted); font-weight: 800; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.industries { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.industry-chip { background: var(--surface-2); border: 1px solid var(--border); border-radius: 30px; padding: 8px 16px; font-size: .86rem; font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow-sm); transition: transform .12s, border-color .12s; }
.industry-chip:hover { transform: translateY(-2px); border-color: var(--brand-soft); }
.industry-chip .em { font-size: 17px; }

/* =================== Responsive =================== */
@media (max-width: 880px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .mock { transform: none; max-width: 420px; margin: 0 auto; }
    .hero h1 { font-size: 2.3rem; }
}
@media (max-width: 560px) {
    .nav-links a.link { display: none; }
    .hero { padding: 48px 0 40px; }
    .hero h1 { font-size: 1.9rem; }
    .section { padding: 52px 0; }
    .section-head h2 { font-size: 1.6rem; }
    .cta-card { padding: 32px 22px; }
    .cta-card h2 { font-size: 1.5rem; }
}
