/**
 * Marketing Stylesheet
 * Ledger & Logic Cafe — Phase 13
 *
 * Builds on the same design tokens as app.css.
 * Arabic RTL, Bootstrap 5 compatible, mobile-first.
 */

/* ================================================================
   DESIGN TOKENS
================================================================ */
:root {
    --mkt-primary:    #6366f1;
    --mkt-primary-dk: #4f46e5;
    --mkt-accent:     #f59e0b;
    --mkt-success:    #10b981;
    --mkt-bg:         #ffffff;
    --mkt-bg-alt:     #f8f9fb;
    --mkt-text:       #1e293b;
    --mkt-muted:      #64748b;
    --mkt-border:     #e2e8f0;
    --mkt-radius:     14px;
    --mkt-radius-sm:  8px;
    --mkt-shadow:     0 2px 16px rgba(0,0,0,0.07);
    --mkt-shadow-lg:  0 8px 40px rgba(99,102,241,0.12);
    --mkt-font:       'Alexandria', sans-serif;
}

/* ================================================================
   BASE
================================================================ */
.mkt-body {
    font-family: var(--mkt-font);
    color: var(--mkt-text);
    background: var(--mkt-bg);
    line-height: 1.7;
    font-size: 1rem;
}

.mkt-body *,
.mkt-body *::before,
.mkt-body *::after {
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

.text-accent { color: var(--mkt-accent) !important; }

.text-gradient {
    background: linear-gradient(135deg, var(--mkt-primary), var(--mkt-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================================================
   NAVBAR
================================================================ */
.mkt-navbar {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--mkt-border);
    padding: 0.75rem 0;
    z-index: 1030;
}

.mkt-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--mkt-text);
}

.mkt-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--mkt-primary);
    color: #fff;
    border-radius: 10px;
    font-size: 1.1rem;
}

.mkt-brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--mkt-text);
}

.mkt-nav-link {
    color: var(--mkt-muted);
    font-weight: 500;
    padding: 0.4rem 0.75rem !important;
    border-radius: var(--mkt-radius-sm);
    transition: color 0.15s, background 0.15s;
}

.mkt-nav-link:hover,
.mkt-nav-link.active {
    color: var(--mkt-primary);
    background: rgba(99,102,241,0.07);
}

/* ================================================================
   HERO
================================================================ */
.mkt-hero {
    padding: 4rem 0 3rem;
    background: linear-gradient(160deg, #f8f9ff 0%, #fff 60%);
    border-bottom: 1px solid var(--mkt-border);
    overflow: hidden;
}

.mkt-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--mkt-text);
}

.mkt-hero-subtitle {
    font-size: 1.15rem;
    color: var(--mkt-muted);
    max-width: 520px;
}

.mkt-badge-pill {
    background: rgba(99,102,241,0.1);
    color: var(--mkt-primary);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    font-weight: 500;
}

/* Hero illustration card */
.mkt-hero-illustration {
    position: relative;
}

.mkt-hero-card {
    border-radius: var(--mkt-radius) !important;
    max-width: 360px;
    margin: 0 auto;
}

.mkt-hero-avatar {
    width: 44px;
    height: 44px;
    background: rgba(99,102,241,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================================================
   SECTION DEFAULTS
================================================================ */
.mkt-section {
    position: relative;
}

/* ================================================================
   VALUE ITEMS
================================================================ */
.mkt-val-item {
    padding: 1.5rem 1rem;
}

/* ================================================================
   MODULE CARDS
================================================================ */
.mkt-module-card {
    border-radius: var(--mkt-radius) !important;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
}

.mkt-module-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mkt-shadow-lg) !important;
}

.mkt-module-icon {
    width: 42px;
    height: 42px;
    background: rgba(99,102,241,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--mkt-primary);
}

/* ================================================================
   PERSONA CARDS
================================================================ */
.mkt-persona-card {
    border-radius: var(--mkt-radius) !important;
    transition: transform 0.2s;
}
.mkt-persona-card:hover { transform: translateY(-3px); }

/* ================================================================
   STEPS
================================================================ */
.mkt-step-num {
    width: 52px;
    height: 52px;
    background: var(--mkt-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 auto;
}

/* ================================================================
   PRICING CARDS
================================================================ */
.mkt-price-card {
    border-radius: var(--mkt-radius) !important;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mkt-price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mkt-shadow-lg) !important;
}

.mkt-price-featured {
    border: 2px solid var(--mkt-primary) !important;
    background: linear-gradient(180deg, #fafaff 0%, #fff 100%) !important;
}

.mkt-featured-badge {
    position: absolute;
    top: -14px;
    right: 50%;
    transform: translateX(50%);
    background: var(--mkt-primary);
    color: #fff;
    padding: 0.2rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.mkt-price {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.mkt-price-amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--mkt-primary);
    line-height: 1;
}

.mkt-feature-list li {
    padding: 0.35rem 0;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--mkt-border);
}
.mkt-feature-list li:last-child { border-bottom: none; }

/* Billing toggle */
.mkt-billing-toggle {
    font-size: 0.95rem;
    cursor: pointer;
}

#toggleMonthly.active-mode  { color: var(--mkt-primary); font-weight: 700; }
#toggleYearly.active-mode   { color: var(--mkt-primary); font-weight: 700; }

/* ================================================================
   COMPARISON TABLE
================================================================ */
.mkt-compare-table {
    font-size: 0.92rem;
    border-radius: var(--mkt-radius);
    overflow: hidden;
}

.mkt-compare-table thead th {
    background: rgba(99,102,241,0.06);
    font-weight: 700;
    padding: 1rem;
}

.mkt-compare-table tbody td {
    padding: 0.75rem 1rem;
    border-color: var(--mkt-border);
}

/* ================================================================
   FEATURES PAGE
================================================================ */
.mkt-feature-group { padding: 1rem 0; }

.mkt-feat-icon-lg {
    width: 52px;
    height: 52px;
    background: rgba(99,102,241,0.07);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mkt-feat-item {
    padding: 0.4rem 0;
    font-size: 0.92rem;
}

/* ================================================================
   TOUR PAGE
================================================================ */
.mkt-tour-phase-num {
    width: 48px;
    height: 48px;
    background: var(--mkt-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    flex-shrink: 0;
}

.mkt-tour-card {
    border-radius: var(--mkt-radius) !important;
    transition: transform 0.2s;
}
.mkt-tour-card:hover { transform: translateY(-3px); }

.mkt-tour-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(99,102,241,0.07);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.mkt-role-card {
    border-radius: var(--mkt-radius) !important;
    transition: transform 0.2s;
}
.mkt-role-card:hover { transform: translateY(-3px); }

.mkt-role-icon {
    font-size: 2.2rem;
}

/* ================================================================
   COMPARE PAGE
================================================================ */
.mkt-compare-visual {
    border-radius: var(--mkt-radius) !important;
}

/* ================================================================
   PAGE HERO (inner pages)
================================================================ */
.mkt-page-hero {
    background: linear-gradient(160deg, #f8f9ff 0%, #fff 100%);
    border-bottom: 1px solid var(--mkt-border);
}

/* ================================================================
   ACCORDION / FAQ
================================================================ */
.mkt-accordion .accordion-button {
    font-family: var(--mkt-font);
    color: var(--mkt-text);
    background: #fff;
    font-size: 1rem;
    padding: 1.1rem 1.25rem;
}

.mkt-accordion .accordion-button:not(.collapsed) {
    color: var(--mkt-primary);
    background: rgba(99,102,241,0.04);
    box-shadow: none;
}

.mkt-accordion .accordion-button::after {
    filter: none;
}

.mkt-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.15rem rgba(99,102,241,0.25);
}

.mkt-accordion .accordion-body {
    font-size: 0.95rem;
    padding: 1rem 1.25rem 1.25rem;
}

/* ================================================================
   CTA SECTION
================================================================ */
.mkt-cta-section {
    background: linear-gradient(135deg, #f0f0ff 0%, #fff8ec 100%);
    border-top: 1px solid var(--mkt-border);
    border-bottom: 1px solid var(--mkt-border);
}

.mkt-cta-inner {
    max-width: 600px;
}

/* ================================================================
   FOOTER
================================================================ */
.mkt-footer {
    background: #f8f9fb;
    border-top: 1px solid var(--mkt-border);
    padding: 3rem 0 2rem;
    font-size: 0.92rem;
}

.mkt-footer-links { padding: 0; margin: 0; }
.mkt-footer-links li { margin-bottom: 0.5rem; }
.mkt-footer-links a {
    color: var(--mkt-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.mkt-footer-links a:hover { color: var(--mkt-primary); }

.mkt-footer-divider { border-color: var(--mkt-border); }

/* ================================================================
   STICKY MOBILE CTA
================================================================ */
.mkt-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--mkt-border);
    z-index: 1050;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.mkt-sticky-cta.visible {
    transform: translateY(0);
}

/* ================================================================
   UTILITY OVERRIDES (Bootstrap compatibility)
================================================================ */
.btn-primary {
    background-color: var(--mkt-primary);
    border-color: var(--mkt-primary);
}
.btn-primary:hover {
    background-color: var(--mkt-primary-dk);
    border-color: var(--mkt-primary-dk);
}

.bg-primary-subtle { background-color: rgba(99,102,241,0.1) !important; }
.text-primary       { color: var(--mkt-primary) !important; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 991.98px) {
    .mkt-hero { padding: 2.5rem 0 2rem; }
    .mkt-hero-title { font-size: 2rem; }
    .mkt-navbar .d-flex { padding: 0.75rem 0; }
}

@media (max-width: 575.98px) {
    .mkt-hero-title { font-size: 1.75rem; }
    .mkt-price-amount { font-size: 1.9rem; }
    .mkt-compare-table { font-size: 0.8rem; }
    .mkt-compare-table thead th,
    .mkt-compare-table tbody td { padding: 0.5rem 0.4rem; }
    .mkt-featured-badge { font-size: 0.72rem; }
}

/* Give footer sticky CTA breathing room on mobile */
@media (max-width: 767.98px) {
    .mkt-footer { padding-bottom: 5rem; }
}

/* ================================================================
   PARTNERS PAGE
================================================================ */

/* Generic card — white surface with subtle shadow */
.mkt-card {
    background: #fff;
    border: 1px solid var(--mkt-border);
    border-radius: var(--mkt-radius);
    box-shadow: var(--mkt-shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}
.mkt-card:hover {
    box-shadow: var(--mkt-shadow-lg);
    transform: translateY(-2px);
}

/* Hero stat numbers */
.partners-stat-num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

/* How it works — numbered circles */
.partners-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--mkt-primary);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}

/* Commission list check badges */
.partners-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(99,102,241,0.1);
    color: var(--mkt-primary);
    font-size: 1rem;
    margin-top: 2px;
}

/* Value card icon wrapper */
.partners-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(99,102,241,0.08);
}

/* Final CTA inner — dark gradient with white text */
.partners-cta-inner {
    background: linear-gradient(135deg, var(--mkt-primary) 0%, #4338ca 100%);
    box-shadow: var(--mkt-shadow-lg);
    max-width: 720px;
    margin: 0 auto;
}

@media (max-width: 575.98px) {
    .partners-stat-num { font-size: 1.5rem; }
    .partners-step { width: 44px; height: 44px; font-size: 1.2rem; }
}
