/* 
  Tamamflex Landing Page Stylesheet
  Theme: Arabic HR & Workforce SaaS Platform
  Designed for modern visual excellence, responsiveness, and authentic SaaS patterns.
*/

:root {
    --navy-950: #060e1a;
    --navy-900: #0a1728;
    --navy-850: #0f2238;
    --navy-800: #142c47;
    --navy-700: #1b3858;

    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-light: rgba(16, 185, 129, 0.12);
    --emerald-glow: rgba(16, 185, 129, 0.25);

    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;

    --white: #ffffff;
    --header-h: 74px;
    --font-main: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px -6px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 36px -8px rgba(15, 23, 42, 0.12);
    --shadow-emerald: 0 12px 30px -6px rgba(16, 185, 129, 0.28);

    --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
    font-family: var(--font-main);
    background-color: var(--slate-50);
    color: var(--slate-800);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button,
input {
    font-family: inherit;
}

.shell {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -100px;
    inset-inline-start: 20px;
    z-index: 1000;
    padding: 10px 18px;
    background: var(--navy-900);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.skip-link:focus {
    top: 16px;
}

/* --- Top Brand Announcement --- */
.top-bar {
    background: var(--navy-900);
    color: var(--slate-300);
    font-size: 13px;
    padding: 8px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.top-badge {
    background: var(--emerald-500);
    color: #06281c;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 4px;
}

.top-bar a {
    color: var(--emerald-500);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--slate-200);
    transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.96);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--navy-900);
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: var(--navy-900);
    color: var(--emerald-500);
    font-size: 17px;
    font-weight: 800;
    border-radius: 6px;
    box-shadow: none;
}

.logo-text {
    letter-spacing: -0.02em;
}

.logo-text strong {
    color: var(--emerald-600);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--slate-700);
    position: relative;
    padding: 6px 0;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--emerald-600);
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 2px;
    background-color: var(--emerald-500);
    border-radius: 2px;
    transition: width var(--transition-normal);
}

.site-nav a:hover::after,
.site-nav a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy-900);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
}

.login-link:hover {
    background-color: var(--slate-100);
}

/* --- Language Switcher --- */
.language-menu {
    position: relative;
}

.language-menu details {
    position: relative;
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--navy-900);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    list-style: none;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.language-toggle:hover {
    background: var(--slate-100);
}

.language-toggle::-webkit-details-marker,
.language-toggle::marker {
    display: none;
}

.language-arrow {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.language-menu details[open] .language-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    z-index: 1200;
    width: 190px;
    padding: 14px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.language-title {
    margin: 0 0 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy-900);
}

.language-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.language-list li {
    width: 100%;
    margin: 0;
    padding: 0;
}

.language-link {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--navy-900);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.language-link:hover,
.language-link.active {
    background: var(--slate-100);
}

.language-link.active {
    font-weight: 700;
}

.language-link .fa-check {
    margin-inline-start: auto;
    font-size: 0.75rem;
    color: var(--emerald-600);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-normal);
    white-space: nowrap;
    box-shadow: none;
    transform: none;
}

.btn-primary {
    background: var(--emerald-600);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--emerald-700);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--white);
    color: var(--navy-900);
    border-color: var(--slate-300);
}

.btn-secondary:hover {
    background: var(--slate-100);
    border-color: var(--slate-400);
    transform: translateY(-2px);
}

.btn-navy {
    background: var(--navy-900);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-navy:hover {
    background: var(--navy-800);
    transform: translateY(-2px);
}

.btn-outline-navy {
    background: transparent;
    color: var(--navy-900);
    border: 1.5px solid var(--navy-900);
}

.btn-outline-navy:hover {
    background: var(--navy-900);
    color: var(--white);
    transform: translateY(-2px);
}

/* Menu button mobile */
.menu-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
}

.menu-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--navy-900);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
    padding: 76px 0;
    background: var(--white);
    border-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-kicker {
    display: block;
    padding: 0;
    background: transparent;
    color: #60766f;
    border: 0;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.2rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--navy-900);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.hero h1 em {
    font-style: normal;
    color: var(--emerald-600);
    position: relative;
    display: inline-block;
}

.hero h1 em::after {
    display: none;
}

.hero-desc {
    font-size: 18px;
    color: var(--slate-600);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-trust-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--slate-200);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-700);
}

.trust-item svg {
    color: var(--emerald-600);
    flex-shrink: 0;
}

/* Hero Showcase Image & Mockup */
.hero-visual {
    position: relative;
}

.device-frame {
    position: relative;
    background: var(--navy-900);
    border-radius: 10px;
    padding: 12px 12px 0 12px;
    box-shadow: 0 18px 38px -20px rgba(10, 23, 40, .5);
    transform: none;
    transition: transform var(--transition-slow);
}

.device-frame:hover {
    transform: none;
}

.device-screen {
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius-lg) - 6px) calc(var(--radius-lg) - 6px) 0 0;
    display: block;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: none;
    border: 1px solid var(--slate-200);
    padding: 11px 14px;
    border-radius: 7px;
    box-shadow: 0 10px 22px -15px rgba(10, 23, 40, .35);
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 10;
    animation: none;
}

.badge-1 {
    top: 24px;
    inset-inline-start: -24px;
    animation: none;
}

.badge-2 {
    bottom: -18px;
    inset-inline-end: -18px;
    animation: none;
}

.badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--emerald-light);
    color: var(--emerald-600);
    display: none;
    place-items: center;
    font-size: 18px;
}

.badge-text strong {
    display: block;
    font-size: 13px;
    color: var(--navy-900);
    font-weight: 700;
}

.badge-text span {
    font-size: 11px;
    color: var(--slate-500);
}

@keyframes floatAnim {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-8px);
    }
}

/* --- Stats Strip --- */
.stats-strip {
    background: var(--navy-900);
    color: var(--white);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-card {
    padding: 12px;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-card:first-child {
    border-inline-start: none;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--emerald-500);
    line-height: 1.1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 14px;
    color: var(--slate-300);
}

/* --- Section Global --- */
.section {
    padding: 88px 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: 56px;
}

.section-kicker {
    display: inline-block;
    color: var(--emerald-600);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.3;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--slate-600);
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    padding: 32px 28px;
    transition: all var(--transition-normal);
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(16, 185, 129, 0.4);
}

.feature-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--emerald-light);
    color: var(--emerald-600);
    display: grid;
    place-items: center;
    font-size: 24px;
    margin-bottom: 22px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.feature-list {
    list-style: none;
    border-top: 1px solid var(--slate-100);
    padding-top: 16px;
}

.feature-list li {
    font-size: 14px;
    color: var(--slate-700);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.feature-list li svg {
    color: var(--emerald-600);
    flex-shrink: 0;
}

/* --- How it works --- */
.how-section {
    background: #f7f9fa;
    border-block: 1px solid var(--slate-200);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.step-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: 10px;
    border: 1px solid var(--slate-200);
    position: relative;
    box-shadow: none;
}

.step-number {
    position: absolute;
    top: -18px;
    inset-inline-start: 28px;
    width: 38px;
    height: 38px;
    background: var(--emerald-600);
    color: var(--white);
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 16px;
    box-shadow: none;
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy-900);
    margin: 10px 0 10px;
}

.step-card p {
    font-size: 15px;
    color: var(--slate-600);
}

/* ==========================================================================
   PRICING SECTION (CUSTOM HIGH-CONVERTING SAAS DESIGN - NOT GENERIC AI)
   ========================================================================== */

.section-pricing {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.pricing-header-wrap {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

/* Billing Toggle Switcher */
.billing-switcher-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.switcher-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--slate-700);
    cursor: pointer;
}

.switcher-label.active {
    color: var(--navy-900);
}

.toggle-switch {
    position: relative;
    width: 58px;
    height: 32px;
    background-color: var(--navy-900);
    border-radius: var(--radius-full);
    cursor: pointer;
    padding: 3px;
    transition: background-color var(--transition-fast);
}

.toggle-knob {
    width: 26px;
    height: 26px;
    background-color: var(--white);
    border-radius: 50%;
    transition: transform var(--transition-normal);
}

.toggle-switch.yearly .toggle-knob {
    transform: translateX(26px);
}

/* The selector stays reliable in the English LTR version. */
.toggle-switch {
    border: 1px solid var(--navy-900);
    box-sizing: border-box;
}

.toggle-switch:focus-visible {
    outline: 3px solid rgba(5, 150, 105, 0.35);
    outline-offset: 3px;
}

.discount-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald-700);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: none;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

/* Employee Quantity Calculator Box */
.calculator-box {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    padding: 24px 32px;
    max-width: 640px;
    margin: 0 auto 48px;
    box-shadow: none;
}

.calculator-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 14px;
}

.emp-count-display {
    color: var(--emerald-600);
    font-size: 17px;
    font-weight: 800;
    background: var(--emerald-light);
    padding: 3px 12px;
    border-radius: var(--radius-sm);
}

.emp-slider {
    width: 100%;
    height: 8px;
    accent-color: var(--emerald-600);
    border-radius: 4px;
    background: var(--slate-200);
    cursor: pointer;
}

.calc-hint {
    font-size: 13px;
    color: var(--slate-500);
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

/* Pricing Grid Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    padding: 36px 30px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--transition-normal);
    box-shadow: none;
}

.pricing-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--slate-300);
}

/* Featured Popular Card Styling */
.pricing-card.featured {
    border-color: #10b981;
    box-shadow: none;
    background: #f6fbf9;
    transform: none;
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: none;
    box-shadow: none;
}

.popular-ribbon {
    position: absolute;
    top: -16px;
    inset-inline-start: 50%;
    transform: translateX(50%);
    /* RTL offset fix */
    background: var(--emerald-600);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 18px;
    border-radius: 4px;
    letter-spacing: 0;
    box-shadow: none;
    white-space: nowrap;
}

.card-header-block {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--slate-100);
    padding-bottom: 20px;
}

.tier-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--emerald-600);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.plan-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.plan-subtitle {
    font-size: 14px;
    color: var(--slate-500);
}

/* Price Value Layout */
.price-block {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.price-currency {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-900);
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1;
}

.price-period {
    font-size: 14px;
    color: var(--slate-500);
    font-weight: 500;
}

.price-subtext {
    width: 100%;
    font-size: 12px;
    color: var(--emerald-700);
    font-weight: 600;
    margin-top: 4px;
}

.plan-features-list {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.plan-features-list li {
    display: block;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--slate-700);
    margin-bottom: 14px;
    line-height: 1.5;
    padding-right: 0;
}

.plan-features-list li svg {
    display: none;
}

.plan-features-list li::before {
    content: 'Included';
    display: inline-block;
    margin-left: 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.plan-features-list li.check svg {
    color: var(--emerald-600);
}

.plan-features-list li.cross {
    color: var(--slate-400);
    text-decoration: line-through;
}

.plan-features-list li.cross::before {
    content: 'Not included';
    color: #94a3b8;
}

.plan-features-list li.cross svg {
    color: var(--slate-300);
}

.pricing-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

/* Full Features Comparison Matrix Toggle */
.comparison-trigger-wrap {
    text-align: center;
    margin-top: 56px;
}

.btn-toggle-matrix {
    background: var(--white);
    border: 1.5px solid var(--slate-300);
    color: var(--navy-900);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-toggle-matrix:hover {
    border-color: var(--emerald-500);
    color: var(--emerald-600);
    background: var(--slate-50);
}

.comparison-matrix-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    margin-top: 32px;
}

.comparison-matrix-container.open {
    max-height: 2000px;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-200);
}

.matrix-table th,
.matrix-table td {
    padding: 16px 20px;
    text-align: start;
    border-bottom: 1px solid var(--slate-200);
    font-size: 14px;
}

.matrix-table th {
    background: var(--navy-900);
    color: var(--white);
    font-weight: 700;
}

.matrix-table tr:nth-child(even) td {
    background: var(--slate-50);
}

.matrix-table td.center {
    text-align: center;
    font-size: 13px;
}

.matrix-table td.center::after {
    display: none;
}

.matrix-category-row td {
    background: var(--slate-100) !important;
    font-weight: 800;
    color: var(--navy-900);
}

/* Guarantees Strip below pricing */
.pricing-guarantees {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-700);
}

.guarantee-item span {
    font-size: 20px;
}

/* --- FAQ Section --- */
.faq-section {
    background: var(--white);
}

.faq-grid {
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    background: var(--slate-50);
    overflow: hidden;
    transition: border-color var(--transition-fast);
    box-shadow: none;
}

.faq-item.active {
    border-color: var(--emerald-500);
    background: var(--white);
    box-shadow: none;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-900);
    text-align: start;
    cursor: pointer;
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--slate-200);
    color: var(--navy-900);
    display: grid;
    place-items: center;
    font-size: 16px;
    transition: transform var(--transition-normal), background var(--transition-normal), color var(--transition-normal);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: var(--emerald-600);
    color: var(--white);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
    padding: 0 24px;
    color: var(--slate-600);
    font-size: 15px;
    line-height: 1.75;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

/* --- CTA Banner Section --- */
.cta-section {
    padding: 72px 0;
    background: var(--slate-50);
}

.cta-box {
    background: var(--navy-900);
    border-radius: 12px;
    padding: 64px 48px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.cta-box::before {
    display: none;
}

.cta-box h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 18px;
    color: var(--slate-300);
    max-width: 580px;
    margin: 0 auto 36px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

/* --- Footer --- */
.site-footer {
    background: #060e1a;
    color: var(--slate-400);
    padding: 64px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 14px;
    margin-top: 16px;
    max-width: 320px;
    line-height: 1.7;
}

.brand-logo {
    display: block;
    width: 104px;
    height: auto;
}

.brand-icon {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.site-footer .brand-icon {
    filter: brightness(0) invert(1);
    opacity: .96;
}

.site-footer .logo {
    gap: 0;
}

.site-footer .logo-text strong {
    color: #6fce9a;
}

.footer-brand-logo {
    display: block;
    width: 92px;
    height: auto;
    padding: 7px 10px;
    border-radius: 5px;
    background: var(--white);
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    font-size: 14px;
    color: var(--slate-400);
}

.footer-col a:hover {
    color: var(--emerald-500);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    flex-wrap: wrap;
    gap: 16px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald-500);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--emerald-500);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--emerald-500);
    display: none;
}

.kicker-status {
    display: none;
}

.riyal-symbol {
    display: inline-block;
    width: 21px;
    height: 21px;
    object-fit: contain;
    vertical-align: -4px;
}

.price-block > .riyal-symbol {
    width: 25px;
    height: 25px;
    margin-inline-end: 2px;
    vertical-align: -6px;
}

.riyal-symbol-inline {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
}

.app-store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.app-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 172px;
    min-height: 54px;
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    background: var(--white);
    color: #111 !important;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.app-store-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(10, 23, 40, .18);
}

.app-store-badge svg {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
}

.app-store-badge-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    white-space: nowrap;
}

.app-store-badge-copy small {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.app-store-badge-copy strong {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.03em;
}

.app-store-badge.google-play {
    border-color: #111;
    background: #111;
    color: var(--white) !important;
}

.app-store-badge.google-play svg {
    width: 30px;
    height: 30px;
}

.footer-store-badges {
    margin-top: 20px;
    flex-wrap: nowrap;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--emerald-500);
    outline-offset: 3px;
}

html[dir="ltr"] .hero-layout {
    text-align: left;
}

html[dir="ltr"] .site-nav a::after {
    left: 0;
    right: auto;
}

html[dir="ltr"] .feature-list li,
html[dir="ltr"] .plan-features-list li,
html[dir="ltr"] .guarantee-item {
    flex-direction: row;
}

html[dir="ltr"] .floating-badge {
    direction: ltr;
}

html[dir="ltr"] .matrix-table th,
html[dir="ltr"] .matrix-table td {
    text-align: left;
}

html[dir="ltr"] .matrix-table td.center {
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc {
        margin-inline: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-trust-bullets {
        justify-content: center;
    }

    .device-frame {
        transform: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-inline: auto;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-6px);
    }

    .popular-ribbon {
        transform: translateX(50%);
    }

    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-button {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        inset-inline: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--slate-200);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }

    .site-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-actions {
        gap: 10px;
    }

    .nav-actions .btn-primary {
        display: none;
    }

    .language-toggle {
        padding: 8px 10px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calculator-box {
        padding: 20px 18px;
    }

    .pricing-guarantees {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .floating-badge {
        display: none;
    }

    .top-bar {
        font-size: 11px;
    }

    .top-bar-inner {
        gap: 7px;
    }

    .top-bar a {
        display: none;
    }

    .hero-ctas .app-store-badges {
        justify-content: center;
    }

    .footer-store-badges {
        flex-wrap: wrap;
    }
}
