/* ═══════════════════════════════════════════════════════════════════
   founders.css 🦅 — Founders Program landing page
   RTL · Mobile-first · Tajawal · teal/orange palette
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --teal-900:    #134e4a;
    --teal-700:    #0f766e;
    --teal-600:    #0d9488;
    --teal-500:    #14b8a6;
    --teal-50:     #f0fdfa;

    --orange-500:  #f59e0b;
    --orange-100:  #fef3c7;
    --orange-600:  #d97706;

    --red-500:     #ef4444;
    --red-50:      #fef2f2;

    --green-500:   #10b981;
    --green-600:   #059669;

    --slate-900:   #0f172a;
    --slate-700:   #334155;
    --slate-500:   #64748b;
    --slate-300:   #cbd5e1;
    --slate-100:   #f1f5f9;
    --slate-50:    #f8fafc;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}
body {
    font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--slate-900);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ═══ HEADER ═══════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--slate-100);
    padding: 14px 0;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--teal-700);
}
.brand-logo { font-size: 1.5rem; }
.header-link {
    font-size: 0.95rem;
    color: var(--slate-700);
    font-weight: 500;
}
.header-link:hover { color: var(--teal-600); }

/* ═══ HERO ════════════════════════════════════════════════════ */
.hero {
    background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
    color: #fff;
    padding: 60px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.badge-top {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}
.hero .tagline {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 36px;
    max-width: 600px;
    margin-inline: auto;
}

/* ═══ COUNTDOWN ═══════════════════════════════════════════════ */
.countdown-wrapper {
    margin: 36px auto 28px;
    max-width: 600px;
}
.countdown-label {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 12px;
    font-weight: 600;
}
.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0 auto;
    direction: ltr;
}
.countdown-box {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 14px;
    padding: 16px 8px;
    backdrop-filter: blur(8px);
    transition: background 0.3s, transform 0.2s;
}
.countdown-number {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.countdown-label-small {
    font-size: 0.75rem;
    opacity: 0.85;
    margin-top: 6px;
    font-weight: 500;
}
/* color thresholds */
.countdown.warning .countdown-box {
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.5);
}
.countdown.danger .countdown-box {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.6);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* ═══ STATS BAR ═══════════════════════════════════════════════ */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 700px;
    margin: 28px auto;
}
.stat-card {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 16px;
    padding: 18px 12px;
    backdrop-filter: blur(8px);
}
.stat-card.highlight {
    background: rgba(255,255,255,0.95);
    color: var(--slate-900);
}
.stat-number {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 900;
    line-height: 1;
}
.stat-card.highlight .stat-number { color: var(--orange-600); }
.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 6px;
    opacity: 0.9;
}

.hero-warning {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 22px;
    border-radius: 12px;
    margin: 24px auto 20px;
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--teal-700);
    padding: 16px 36px;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 16px;
}
.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

/* ═══ SECTIONS ════════════════════════════════════════════════ */
section { padding: 70px 0; }
section h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 14px;
    color: var(--slate-900);
}
.subtitle {
    text-align: center;
    color: var(--slate-500);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* ═══ HOW IT WORKS ════════════════════════════════════════════ */
.how-it-works { background: var(--slate-50); }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.step {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-number {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 900;
    margin: 0 auto 18px;
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.3);
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--slate-500); font-size: 0.95rem; }

/* ═══ PRICING EXPLAINED (💎) ══════════════════════════════════ */
.pricing-explained {
    background: linear-gradient(135deg, var(--orange-100), #fff);
}
.pricing-formula {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    max-width: 800px;
    margin: 30px auto;
}
.formula-card {
    background: #fff;
    border: 2px solid var(--orange-500);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.formula-label {
    font-size: 0.95rem;
    color: var(--slate-500);
    font-weight: 600;
    margin-bottom: 10px;
}
.formula-value {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--orange-600);
    line-height: 1.3;
}
.formula-note {
    font-size: 0.85rem;
    color: var(--slate-500);
    margin-top: 8px;
}
.formula-plus {
    font-size: 2rem;
    font-weight: 900;
    color: var(--orange-500);
    text-align: center;
}
.pricing-examples {
    max-width: 800px;
    margin: 30px auto 0;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.pricing-examples h3 {
    font-size: 1.15rem;
    color: var(--orange-600);
    margin-bottom: 18px;
    font-weight: 900;
    text-align: center;
}

/* ─── Example cards (rich comparison) ─── */
.example-card {
    background: var(--slate-50);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 14px;
    border-right: 4px solid var(--orange-500);
}
.example-card:last-child { margin-bottom: 0; }
.example-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--slate-300);
}
.example-head strong {
    font-size: 1.1rem;
    color: var(--slate-900);
    font-weight: 900;
}
.example-tag {
    background: var(--slate-200);
    color: var(--slate-700);
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}
.example-tag-gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.example-tag-late {
    background: var(--slate-300);
    color: var(--slate-700);
}
.example-compare {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.ec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    flex-wrap: wrap;
}
.ec-row span { color: var(--slate-700); }
.ec-row strong {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    white-space: nowrap;
}
.ec-row-you {
    background: linear-gradient(135deg, var(--teal-50), #fff);
    border: 1.5px solid var(--teal-500);
}
.ec-row-you strong { color: var(--teal-700); font-size: 1.05rem; }
.ec-row-vs {
    background: #fff;
    border: 1px solid var(--slate-300);
}
.ec-row-vs strong { color: var(--slate-500); text-decoration: line-through; }
.ec-savings {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: var(--green-600);
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
}
.ec-savings strong { font-size: 1.1rem; color: #065f46; }
.ec-savings-high {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1.5px solid #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}
.ec-savings-high strong { color: #78350f; font-size: 1.2rem; }
.ec-savings-low {
    background: var(--slate-100);
    color: var(--slate-700);
    font-weight: 600;
}
.ec-savings-low em {
    font-style: normal;
    color: var(--orange-600);
    font-weight: 700;
}

@media (max-width: 520px) {
    .example-card { padding: 14px; }
    .ec-row { padding: 8px 12px; font-size: 0.9rem; }
    .ec-row strong { font-size: 0.95rem; }
    .example-head { gap: 8px; }
    .example-tag { font-size: 0.72rem; padding: 2px 10px; }
}
.pricing-insight {
    max-width: 800px;
    margin: 24px auto 0;
    background: var(--teal-50);
    border-right: 4px solid var(--teal-600);
    padding: 18px 22px;
    border-radius: 12px;
    color: var(--slate-700);
    font-size: 0.95rem;
}
.pricing-insight strong { color: var(--teal-700); }

/* ═══ WHY FOUNDER ═════════════════════════════════════════════ */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.benefit {
    background: #fff;
    border: 1px solid var(--slate-100);
    border-radius: 16px;
    padding: 26px 22px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.benefit:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal-500);
}
.benefit-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
}
.benefit h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--slate-900);
}
.benefit p {
    color: var(--slate-500);
    font-size: 0.9rem;
}

/* ═══ SEATS GRID ══════════════════════════════════════════════ */
.seats-section { background: var(--slate-50); }
.legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0 30px;
    font-size: 0.9rem;
    color: var(--slate-700);
    flex-wrap: wrap;
}
.legend-item { display: flex; align-items: center; gap: 8px; }
.seat-mini {
    width: 18px; height: 18px;
    border-radius: 5px;
    display: inline-block;
}
.seat-mini.available { background: var(--green-500); }
.seat-mini.taken { background: var(--slate-300); }

.batches-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.batch {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
}
.batch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}
.batch-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--teal-700);
}
.batch-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.batch-price-tag {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}
.batch-price-tag .min { opacity: 0.85; font-weight: 500; }
.batch-discount-tag {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
    letter-spacing: 0.02em;
}
.batch-progress {
    height: 6px;
    background: var(--slate-100);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 16px;
}
.batch-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal-500), var(--teal-600));
    border-radius: 999px;
    transition: width 0.5s ease;
}
.seats-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
}
.seat {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    position: relative;
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: default;
}
.seat.available {
    background: linear-gradient(135deg, var(--green-500), var(--green-600));
}
.seat.taken {
    background: linear-gradient(135deg, var(--slate-500), var(--slate-700));
}
.seat:hover {
    transform: scale(1.15);
    z-index: 10;
    box-shadow: var(--shadow-md);
}
.seat-num { display: block; line-height: 1; }
.seat-activity {
    display: block;
    font-size: 0.65rem;
    margin-top: 1px;
    opacity: 0.95;
}

/* Tooltip */
.seat-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--slate-900);
    color: #fff;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 20;
    box-shadow: var(--shadow-md);
    max-width: 90vw;
}
.seat-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--slate-900);
}
.seat:hover .seat-tooltip { opacity: 1; }

.cta-bottom {
    text-align: center;
    margin-top: 40px;
}
.cta-bottom .cta-primary { color: var(--teal-700); background: var(--teal-50); border: 1px solid var(--teal-500); }
.cta-bottom .cta-primary:hover { background: var(--teal-500); color: #fff; }
.cta-note {
    color: var(--slate-500);
    font-size: 0.9rem;
    margin-top: 14px;
}

/* ═══ TESTIMONIAL ═════════════════════════════════════════════ */
.testimonial-card {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--teal-50), #fff);
    border-radius: 24px;
    padding: 36px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--slate-100);
}
.testimonial-quote {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--slate-700);
    margin-bottom: 24px;
    font-weight: 500;
}
.testimonial-quote::before { content: '"'; color: var(--teal-500); font-size: 2rem; line-height: 0; }
.testimonial-quote::after  { content: '"'; color: var(--teal-500); font-size: 2rem; line-height: 0; }
.testimonial-author strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--slate-900);
}
.testimonial-author span {
    display: block;
    color: var(--slate-500);
    font-size: 0.9rem;
    margin-bottom: 6px;
}
.founder-badge-mini {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 6px;
}

/* ═══ FAQ ═════════════════════════════════════════════════════ */
.faq-section { background: var(--slate-50); }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
details {
    background: #fff;
    border-radius: 12px;
    padding: 16px 22px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}
details:hover { box-shadow: var(--shadow-md); }
details[open] { background: var(--teal-50); }
summary {
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-left: 30px;
    color: var(--slate-900);
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: '+';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--teal-600);
    transition: transform 0.2s;
}
details[open] summary::after { content: '−'; }
details p {
    margin-top: 12px;
    color: var(--slate-700);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ═══ FINAL CTA ═══════════════════════════════════════════════ */
.final-cta {
    background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
    color: #fff;
    text-align: center;
}
.final-cta h2 { color: #fff; margin-bottom: 28px; line-height: 1.4; }
.final-cta .cta-primary { background: #fff; color: var(--teal-700); }

/* ═══ PROGRAM-ENDED BANNER ════════════════════════════════════ */
.program-ended-banner {
    display: none;
    background: linear-gradient(135deg, var(--slate-700), var(--slate-900));
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    margin: 0;
}
.program-ended-banner h2 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 14px;
}
.program-ended-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}
body.program-ended .program-ended-banner { display: block; }
body.program-ended .countdown-wrapper { display: none; }
body.program-ended .cta-primary { display: none !important; }
body.program-ended .hero-warning { display: none; }
body.program-ended .cta-note { display: none; }

/* ═══ FOOTER ══════════════════════════════════════════════════ */
.site-footer {
    background: var(--slate-900);
    color: var(--slate-300);
    text-align: center;
    padding: 28px 20px;
    font-size: 0.85rem;
}
.site-footer a { color: var(--teal-500); }

/* ═══ LOADING STATE ═══════════════════════════════════════════ */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--slate-500);
    font-size: 1rem;
}

/* ═══ RESPONSIVE ═══════════════════════════════════════════════
   Mobile breakpoints:  ≤ 768px (tablet) , ≤ 480px (small phone)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    section { padding: 50px 0; }
    .hero { padding: 50px 0 60px; }
    .stats-bar { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .pricing-formula { grid-template-columns: 1fr; }
    .formula-plus { transform: rotate(90deg); }
    .seats-grid { grid-template-columns: repeat(5, 1fr); }
    .countdown { gap: 6px; }
    .countdown-box { padding: 12px 4px; }
    .stat-card { padding: 14px 8px; }
    .batch { padding: 16px; }
    .batch-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .testimonial-card { padding: 26px 22px; }
    .testimonial-quote { font-size: 1rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .hero h1 { font-size: 1.8rem; }
    .hero .tagline { font-size: 1rem; }
    .stat-number { font-size: 1.4rem; }
    .stat-label { font-size: 0.75rem; }
    .cta-primary { padding: 14px 26px; font-size: 1rem; }
    .countdown-number { font-size: 1.4rem; }
    .countdown-label-small { font-size: 0.65rem; }
    .seats-grid { grid-template-columns: repeat(5, 1fr); }
    .seat { font-size: 0.7rem; }
    .legend { gap: 12px; font-size: 0.8rem; }
}
