/* ============================================
   Wakeel Landing Page — landing.css
   Single file. No Tailwind. No build tools.
   ============================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
[x-cloak] { display: none !important; }

/* --- Tokens --- */
:root {
    --teal: #0F766E;
    --teal-light: #14B8A6;
    --teal-pale: #CCFBF1;
    --amber: #F59E0B;
    --amber-dark: #D97706;
    --amber-pale: #FEF3C7;

    --text-dark: #1E293B;
    --text-medium: #475569;
    --text-light: #94A3B8;

    --white: #FFFFFF;
    --off-white: #FAFAF9;
    --warm-gray: #F5F5F4;
    --border: #E7E5E4;

    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    --dark: #0C1222;
    --dark-surface: #162032;

    --shadow-sm: 0 1px 3px rgba(15, 118, 110, 0.06);
    --shadow-md: 0 4px 16px rgba(15, 118, 110, 0.08);
    --shadow-lg: 0 8px 32px rgba(15, 118, 110, 0.12);
    --shadow-card: 0 2px 12px rgba(15, 118, 110, 0.06);
    --shadow-card-hover: 0 8px 24px rgba(15, 118, 110, 0.12);

    --section-py: 100px;
    --section-py-mobile: 64px;
    --container-max: 1200px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 50px;

    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 200ms var(--ease-out-quart);
    --transition-normal: 300ms var(--ease-out-quart);
    --transition-slow: 500ms var(--ease-out-expo);

    --whatsapp: #25D366;
    --whatsapp-hover: #1DA851;

    --z-dropdown: 10;
    --z-sticky: 20;
    --z-modal-backdrop: 30;
    --z-modal: 40;
    --z-toast: 50;
    --z-tooltip: 60;
}

/* --- Typography --- */
body {
    font-family: 'Alexandria', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--off-white);
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.hero__title {
    font-size: clamp(2.25rem, 5vw + 0.5rem, 3.25rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.section__title {
    font-size: clamp(1.75rem, 3vw + 0.5rem, 2.25rem);
    font-weight: 700;
    line-height: 1.3;
}

.section__subtitle {
    font-size: clamp(1rem, 1.5vw + 0.25rem, 1.125rem);
    font-weight: 400;
    line-height: 1.5;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 24px;
}

.section {
    padding-block: var(--section-py);
}

.bg-off-white { background: var(--off-white); }
.bg-warm-gray { background: var(--warm-gray); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

.btn-amber {
    background: var(--amber);
    color: var(--dark);
    border-color: var(--amber);
}
.btn-amber:hover {
    background: var(--amber-dark);
    border-color: var(--amber-dark);
}

.btn-teal {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}
.btn-teal:hover {
    background: var(--teal-light);
    border-color: var(--teal-light);
}

.btn-outline {
    background: transparent;
    color: var(--teal);
    border-color: var(--teal);
}
.btn-outline:hover {
    background: var(--teal);
    color: var(--white);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 12px 24px;
    font-size: 0.875rem;
}

.btn-white-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}
.btn-white-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
    border-color: var(--whatsapp);
}
.btn-whatsapp:hover {
    background: var(--whatsapp-hover);
    border-color: var(--whatsapp-hover);
}

.btn__wa-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ===================
   NAVBAR
   =================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: 16px 0;
    transition: all var(--transition-normal);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.navbar__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar__logo-img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter var(--transition-normal);
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar__link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}
.navbar__link:hover { color: var(--white); }

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

.navbar__lang {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
    padding: 4px 8px;
}
.navbar__lang:hover { color: var(--white); }

.navbar__login {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}
.navbar__login:hover { color: var(--white); }

/* Navbar scrolled state */
.navbar--scrolled {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}
.navbar--scrolled .navbar__logo-img { filter: none; }
.navbar--scrolled .navbar__link { color: var(--text-medium); }
.navbar--scrolled .navbar__link:hover { color: var(--teal); }
.navbar--scrolled .navbar__lang { color: var(--text-medium); }
.navbar--scrolled .navbar__lang:hover { color: var(--teal); }
.navbar--scrolled .navbar__login { color: var(--text-medium); }
.navbar--scrolled .navbar__login:hover { color: var(--teal); }
.navbar--scrolled .btn-sm.btn-teal {
    background: var(--teal);
    color: var(--white);
}

/* Mobile hamburger */
.navbar__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
}
.navbar__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-normal);
}
.navbar--scrolled .navbar__hamburger span { background: var(--text-dark); }

.navbar__mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: calc(var(--z-sticky) + 5);
    padding: 80px 24px 40px;
    flex-direction: column;
    gap: 0;
}
.navbar__mobile.is-open { display: flex; }

.navbar__mobile-close {
    position: absolute;
    top: 20px;
    inset-inline-end: 24px;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}

.navbar__mobile-link {
    display: block;
    padding: 16px 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
}
.navbar__mobile-link:hover { color: var(--teal); }

.navbar__mobile-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===================
   HERO
   =================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--teal) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding-bottom: 100px;
}

.hero__grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Hero wave divider — positioned via CSS, SVG rendered in markup */
.hero__curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 2;
    line-height: 0;
    pointer-events: none;
}

.hero__curve svg {
    display: block;
    width: 100%;
    height: 80px;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: start;
    padding-inline: 0;
}

.hero__badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(204, 251, 241, 0.15);
    color: var(--teal-pale);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
    margin-bottom: 24px;
    border: 1px solid rgba(204, 251, 241, 0.2);
}

.hero__title {
    color: var(--white);
    margin-bottom: 20px;
}

.hero__promise {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1.125rem, 2vw + 0.25rem, 1.375rem);
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(20px);
    animation: hero-entrance 0.7s var(--ease-out-expo) forwards;
    animation-delay: 0.25s;
}

.hero__subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 1.5vw + 0.25rem, 1.125rem);
    line-height: 1.65;
    max-width: 540px;
    margin-bottom: 32px;
}

.hero__cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hero__watch-btn {
    border-color: rgba(255, 255, 255, 0.35);
}

.hero__play-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Hero phone mockup */
.hero__mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__phone {
    position: relative;
    width: 320px;
    background: #111;
    border-radius: 36px;
    padding: 12px;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero__phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #111;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.wa-mockup--hero {
    border-radius: 24px;
}

.wa-mockup--hero .wa-mockup__chat {
    min-height: 280px;
}

.wa-bubble__spacer {
    height: 6px;
}

/* ===================
   TOOLS CAROUSEL
   =================== */
.tools {
    padding-block: 60px;
    background: var(--warm-gray);
    overflow: hidden;
}

.tools__title {
    text-align: center;
    margin-bottom: 40px;
}

.tools__track-wrapper {
    position: relative;
    direction: ltr;
}

.tools__track-wrapper::before,
.tools__track-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 1;
    pointer-events: none;
}
.tools__track-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--warm-gray), transparent);
}
.tools__track-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--warm-gray), transparent);
}

.tools__track {
    display: flex;
    gap: 48px;
    align-items: center;
    width: max-content;
    padding-block: 12px;
}

.tools__track--row1 {
    animation: scroll-ltr 30s linear infinite;
}
.tools__track--row2 {
    animation: scroll-rtl 35s linear infinite;
    margin-top: 16px;
}

@keyframes scroll-ltr {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes scroll-rtl {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.tools__icon {
    height: 40px;
    width: auto;
    opacity: 0.55;
    transition: opacity var(--transition-normal);
    flex-shrink: 0;
}
.tools__icon:hover { opacity: 1; }

.tools__subtitle {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 32px;
    max-width: 500px;
    margin-inline: auto;
}

.tools__custom {
    text-align: center;
    color: var(--teal);
    font-weight: 600;
    font-size: 1.0625rem;
    margin-top: 32px;
}

/* ===================
   PROBLEM SECTION
   =================== */
.problem {
    background: var(--warm-gray);
}

.problem__title {
    font-size: clamp(1.75rem, 3vw + 0.5rem, 2.25rem);
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.problem__list {
    max-width: 520px;
    margin-inline: auto;
    margin-bottom: 40px;
}

.problem__item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.0625rem;
    color: var(--text-medium);
    line-height: 1.6;
    padding: 10px 0;
}

.problem__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--text-light);
}

.problem__solution {
    text-align: center;
    font-size: clamp(1.25rem, 2vw + 0.25rem, 1.5rem);
    font-weight: 700;
    color: var(--teal);
}

/* ===================
   VIDEO DEMO
   =================== */
.video-demo {
    background: var(--off-white);
}

.video-demo__title {
    text-align: center;
    margin-bottom: 40px;
}

.video-demo__player {
    max-width: 500px;
    margin-inline: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-demo__placeholder {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--dark) 0%, #1a2744 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.video-demo__play-btn {
    width: 80px;
    height: 80px;
    opacity: 0.7;
    transition: opacity var(--transition-normal);
}
.video-demo__placeholder:hover .video-demo__play-btn {
    opacity: 1;
}

.video-demo__placeholder-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9375rem;
    font-weight: 500;
}

.video-demo__iframe {
    width: 100%;
    border: 0;
    display: block;
    aspect-ratio: 4 / 5;
}

@media (max-width: 768px) {
    .video-demo__player {
        max-width: 380px;
    }
    .video-demo__iframe {
        aspect-ratio: 9 / 16;
    }
}

/* ===================
   HOW IT WORKS
   =================== */
.how-it-works {
    background: var(--warm-gray);
}

.how-it-works__title {
    text-align: center;
    margin-bottom: 56px;
}

.how-it-works__steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: flex-start;
    max-width: 900px;
    margin-inline: auto;
}

.how-it-works__step {
    text-align: center;
    padding: 0 16px;
}

.how-it-works__num {
    font-size: 2rem;
    color: var(--teal);
    margin-bottom: 16px;
    line-height: 1;
}

.how-it-works__step-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.how-it-works__step-desc {
    font-size: 0.9375rem;
    color: var(--text-medium);
    line-height: 1.5;
}

.how-it-works__connector {
    width: 60px;
    height: 2px;
    background: var(--border);
    margin-top: 1rem;
    flex-shrink: 0;
}

/* ===================
   INDUSTRIES
   =================== */
.industries {
    background: var(--off-white);
}

.industries__title {
    text-align: center;
    margin-bottom: 48px;
}

.industries__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 800px;
    margin-inline: auto;
}

.industries__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.industries__item:hover {
    border-color: var(--teal-light);
    box-shadow: var(--shadow-card);
}

.industries__icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--teal-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.industries__icon {
    width: 20px;
    height: 20px;
    color: var(--teal);
}

.industries__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.3;
}

/* ===================
   FEATURES (staggered)
   =================== */
.features {
    background: var(--off-white);
}

.features__title {
    text-align: center;
    margin-bottom: 64px;
}

.features__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 80px;
}
.features__item:last-child { margin-bottom: 0; }

.features__item:nth-child(even) .features__mockup { order: 2; }
.features__item:nth-child(even) .features__text { order: 1; }

[dir="rtl"] .features__item:nth-child(even) .features__mockup { order: 1; }
[dir="rtl"] .features__item:nth-child(even) .features__text { order: 2; }

.features__text {
    padding-inline: 16px;
}

.features__item-title {
    font-size: clamp(1.25rem, 2vw + 0.25rem, 1.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.features__item-caption {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* WhatsApp mockup */
.wa-mockup {
    background: #ECE5DD;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.06);
    max-width: 380px;
    margin-inline: auto;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.wa-mockup__header {
    background: #075E54;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-mockup__back {
    color: var(--white);
    font-size: 1.125rem;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.9;
}
[dir="rtl"] .wa-mockup__back {
    transform: scaleX(-1);
}

.wa-mockup__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.wa-mockup__name {
    color: var(--white);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.2;
}

.wa-mockup__status {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.6875rem;
    line-height: 1.2;
}

.wa-mockup__actions {
    margin-inline-start: auto;
    display: flex;
    gap: 16px;
    color: var(--white);
    font-size: 1rem;
    opacity: 0.85;
}

.wa-mockup__chat {
    padding: 8px 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 160px;
    background-color: #ECE5DD;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' opacity='0.06'%3E%3Cdefs%3E%3Cpattern id='p' width='50' height='50' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='5' cy='5' r='1.5' fill='%23000'/%3E%3Cpath d='M20 3l3 5h-6z' fill='%23000'/%3E%3Crect x='38' y='4' width='4' height='4' rx='0.5' fill='%23000'/%3E%3Cpath d='M8 25c2-3 6-3 8 0' stroke='%23000' fill='none' stroke-width='1.2'/%3E%3Ccircle cx='30' cy='28' r='3' fill='none' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M44 22l-2 6 4-2z' fill='%23000'/%3E%3Cpath d='M12 40h6v4h-6z' rx='1' fill='%23000'/%3E%3Ccircle cx='32' cy='42' r='2' fill='%23000'/%3E%3Cpath d='M45 38c0 3-4 5-4 5s-4-2-4-5a4 4 0 018 0z' fill='%23000'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='200' height='200' fill='url(%23p)'/%3E%3C/svg%3E");
}

.wa-bubble {
    max-width: 82%;
    padding: 6px 8px 6px;
    border-radius: 8px;
    font-size: 0.8125rem;
    line-height: 1.35;
    position: relative;
    word-break: break-word;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.08);
}

.wa-bubble--user {
    background: #D9FDD3;
    color: #111B21;
    align-self: flex-end;
    border-top-right-radius: 0;
    margin-inline-end: 2px;
}

.wa-bubble--bot {
    background: #FFFFFF;
    color: #111B21;
    align-self: flex-start;
    border-top-left-radius: 0;
    margin-inline-start: 2px;
}

[dir="rtl"] .wa-bubble--user {
    border-radius: 8px;
    border-top-left-radius: 0;
}
[dir="rtl"] .wa-bubble--bot {
    border-radius: 8px;
    border-top-right-radius: 0;
}

.wa-bubble__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    margin-top: 2px;
}

.wa-bubble__time {
    font-size: 0.6575rem;
    color: #667781;
    line-height: 1;
}

.wa-bubble__checks {
    color: #53BDEB;
    font-size: 0.7rem;
    letter-spacing: -2px;
    font-weight: 700;
    line-height: 1;
}

/* ===================
   PRICING + COMPARISON
   =================== */
.pricing {
    background: var(--warm-gray);
}

.pricing__title {
    text-align: center;
    margin-bottom: 48px;
}

.pricing__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 800px;
    margin-inline: auto;
    margin-bottom: 80px;
}

.pricing__card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 2px solid var(--border);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
}

.pricing__card--featured {
    border-color: var(--teal);
    background: linear-gradient(180deg, rgba(204, 251, 241, 0.08) 0%, var(--white) 100%);
}

.pricing__badge {
    position: absolute;
    top: -14px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    background: var(--amber);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

[dir="rtl"] .pricing__badge { transform: translateX(50%); }

.pricing__plan-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.pricing__price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--teal);
    line-height: 1;
    margin-bottom: 4px;
}

.pricing__duration {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin-bottom: 24px;
}

.pricing__features {
    text-align: start;
    margin-bottom: 32px;
}

.pricing__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9375rem;
    color: var(--text-medium);
}

.pricing__feature-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--teal-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pricing__feature-check svg {
    width: 12px;
    height: 12px;
    color: var(--teal);
}

/* Comparison */
.comparison__title {
    text-align: center;
    margin-bottom: 40px;
    font-size: clamp(1.25rem, 2vw + 0.25rem, 1.5rem);
    font-weight: 700;
    color: var(--text-dark);
}

.comparison__table {
    max-width: 800px;
    margin-inline: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.comparison__row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.comparison__row--header {
    background: var(--dark);
}

.comparison__cell {
    padding: 16px 20px;
    font-size: 0.9375rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.comparison__cell--header {
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 14px 20px;
    background: transparent;
    border-bottom: none;
}

.comparison__cell--label {
    font-weight: 600;
    color: var(--text-dark);
    background: var(--off-white);
}

.comparison__cell--human {
    color: var(--text-medium);
}

.comparison__cell--ai {
    color: var(--teal);
    font-weight: 600;
    background: rgba(204, 251, 241, 0.15);
}

.pricing__bottom {
    text-align: center;
    margin-top: 40px;
}

.pricing__bottom-text {
    color: var(--text-medium);
    font-size: 1rem;
    margin-bottom: 20px;
}

/* ===================
   FAQ
   =================== */
.faq {
    background: var(--off-white);
}

.faq__title {
    text-align: center;
    margin-bottom: 48px;
}

.faq__list {
    max-width: 720px;
    margin-inline: auto;
}

.faq__item {
    border-bottom: 1px solid var(--border);
}
.faq__item:first-child { border-top: 1px solid var(--border); }

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    background: none;
    border: none;
    cursor: pointer;
    text-align: start;
    line-height: 1.4;
}
.faq__question:hover { color: var(--teal); }

.faq__chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform var(--transition-normal);
    color: var(--text-light);
}

.faq__item[data-open="true"] .faq__chevron {
    transform: rotate(180deg);
}

.faq__answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--transition-slow);
    overflow: hidden;
}

.faq__item[data-open="true"] .faq__answer {
    grid-template-rows: 1fr;
}

.faq__answer-inner {
    min-height: 0;
    padding-bottom: 20px;
    font-size: 0.9375rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ===================
   FINAL CTA
   =================== */
.final-cta {
    position: relative;
    background: linear-gradient(135deg, var(--teal) 0%, var(--dark) 100%);
    padding-block: 100px;
    overflow: hidden;
    text-align: center;
}

.final-cta__grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

.final-cta__content {
    position: relative;
    z-index: 1;
}

.final-cta__title {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw + 0.25rem, 2rem);
    font-weight: 700;
    line-height: 1.3;
    max-width: 700px;
    margin-inline: auto;
    margin-bottom: 16px;
}

.final-cta__subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-bottom: 32px;
}

.final-cta__promise {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 1.5vw + 0.25rem, 1.25rem);
    font-weight: 600;
    margin-bottom: 24px;
}

.final-cta__urgency {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-top: 20px;
    font-weight: 500;
}

/* ===================
   FOOTER
   =================== */
.footer {
    background: var(--dark);
    padding: 64px 0 32px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__brand {
    display: inline-block;
    margin-bottom: 12px;
}

.footer__logo-img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer__desc {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer__heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.footer__link {
    display: block;
    padding: 6px 0;
    font-size: 0.875rem;
    color: var(--text-light);
    transition: color var(--transition-fast);
}
.footer__link:hover { color: var(--white); }

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__copyright {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.footer__bottom-lang {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-light);
    transition: color var(--transition-fast);
}
.footer__bottom-lang:hover { color: var(--white); }

/* Footer minimal variant */
.footer--minimal .footer__row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    margin-bottom: 32px;
}

.footer--minimal .footer__desc {
    max-width: none;
}

.footer__links-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ===================
   WHATSAPP FIXED BUTTON
   =================== */
.whatsapp-fixed {
    position: fixed;
    bottom: 20px;
    inset-inline-start: 20px;
    z-index: var(--z-toast);
    background: var(--whatsapp);
    color: var(--white);
    border-radius: var(--radius-pill);
    padding: 14px 24px;
    font-size: 0.9375rem;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: background var(--transition-normal), box-shadow var(--transition-normal);
}
.whatsapp-fixed:hover {
    background: var(--whatsapp-hover);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.whatsapp-fixed svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ===================
   AUTH PAGES
   =================== */
.auth-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--off-white);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 40px 32px;
    position: relative;
}

.auth-card__logo {
    display: block;
    text-align: center;
    margin-bottom: 32px;
}

.auth-card__logo-img {
    height: 36px;
    width: auto;
}

.auth-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 8px;
}

.auth-card__subtitle {
    font-size: 0.875rem;
    color: var(--text-medium);
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.5;
}

.auth-card__lang {
    position: absolute;
    top: 20px;
    inset-inline-end: 24px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-medium);
    transition: color var(--transition-fast);
}
.auth-card__lang:hover { color: var(--teal); }

/* Form elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}
.form-input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}
.form-input::placeholder {
    color: var(--text-light);
}

.form-input-wrapper {
    position: relative;
}

.form-toggle-password {
    position: absolute;
    top: 50%;
    inset-inline-end: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 8px;
}
.form-toggle-password:hover { color: var(--teal); }

.form-phone-wrapper {
    display: flex;
    gap: 8px;
}

.form-phone-code {
    width: 90px;
    flex-shrink: 0;
}

.form-checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
    cursor: pointer;
}

.form-checkbox-label {
    font-size: 0.875rem;
    color: var(--text-medium);
    cursor: pointer;
}

.form-submit {
    width: 100%;
    margin-top: 8px;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 4px;
}

.form-error {
    font-size: 0.8125rem;
    color: var(--error);
    margin-top: 4px;
}

.auth-card__footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.875rem;
    color: var(--text-medium);
}
.auth-card__footer a {
    color: var(--teal);
    font-weight: 600;
}
.auth-card__footer a:hover {
    text-decoration: underline;
}

.auth-card__link {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--teal);
    font-weight: 500;
}
.auth-card__link:hover { text-decoration: underline; }

/* OTP Input */
.otp-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
    direction: ltr;
}

.otp-input {
    width: 52px;
    height: 56px;
    text-align: center;
    font-size: 1.375rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.otp-input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.otp-resend {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-medium);
    margin-bottom: 24px;
}
.otp-resend a {
    color: var(--teal);
    font-weight: 600;
}
.otp-resend a:hover { text-decoration: underline; }

.auth-card__success {
    text-align: center;
    padding: 24px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}
.auth-card__success-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}
.auth-card__success-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--success);
}

/* ===================
   TOAST NOTIFICATIONS
   =================== */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-50px);
    z-index: 9999;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.toast--success {
    background: #E1F5EE;
    border: 1px solid #A7F3D0;
    color: #0F766E;
}

.toast--error {
    background: #FEE2E2;
    border: 1px solid #FECACA;
    color: #EF4444;
}

.toast--warning {
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    color: #92400E;
}

/* ===================
   AJAX FORM HELPERS
   =================== */
.input--error {
    border-color: var(--error, #EF4444) !important;
}

.error-message {
    display: block;
    color: var(--error, #EF4444);
    font-size: 0.8125rem;
    margin-top: 4px;
}

.spinner {
    animation: spin 0.6s linear infinite;
}

.hidden {
    display: none !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-submit,
.btn[type="submit"] {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* ===================
   SAR ICON
   =================== */
.sar-icon {
    display: inline-block;
    height: 0.9em;
    width: auto;
    vertical-align: -0.15em;
    fill: currentColor;
    max-width: none;
    margin-inline: 0.15em;
}

/* ===================
   OFFER SECTION
   =================== */
.offer {
    background: var(--off-white);
    padding-block: 64px;
}

.offer__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin-inline: auto;
}

.offer__card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.offer__card:hover {
    border-color: var(--teal-light);
    box-shadow: var(--shadow-card-hover);
}

.offer__icon {
    width: 48px;
    height: 48px;
    margin-inline: auto;
    margin-bottom: 16px;
    color: var(--teal);
}

.offer__icon svg {
    width: 100%;
    height: 100%;
}

.offer__text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===================
   FOOTER WIBEX
   =================== */
.footer__wibex {
    color: var(--text-light);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* ===================
   LEGAL PAGES
   =================== */
.legal {
    padding-top: 120px;
    padding-bottom: var(--section-py);
    background: var(--off-white);
    min-height: 100vh;
}

.legal__title {
    font-size: clamp(1.75rem, 3vw + 0.5rem, 2.25rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.legal__intro {
    font-size: 1.0625rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 720px;
}

.legal__section {
    margin-bottom: 40px;
    max-width: 720px;
}

.legal__section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.legal__section p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.legal__contact {
    font-size: 0.9375rem;
    color: var(--teal);
    font-weight: 500;
    margin-top: 48px;
    max-width: 720px;
}

/* ===================
   SCROLL REVEAL
   =================== */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.reveal[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero entrance */
.hero__badge,
.hero__title,
.hero__subtitle,
.hero__cta-group,
.hero__mockup {
    opacity: 0;
    transform: translateY(20px);
    animation: hero-entrance 0.7s var(--ease-out-expo) forwards;
}
.hero__badge        { animation-delay: 0.1s; }
.hero__title        { animation-delay: 0.2s; }
.hero__subtitle     { animation-delay: 0.35s; }
.hero__cta-group    { animation-delay: 0.5s; }
.hero__mockup       { animation-delay: 0.4s; }

@keyframes hero-entrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================
   REDUCED MOTION
   =================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero__badge,
    .hero__title,
    .hero__promise,
    .hero__subtitle,
    .hero__cta-group,
    .hero__mockup {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }

    html { scroll-behavior: auto; }

    .tools__track--row1,
    .tools__track--row2 {
        animation: none;
    }
}

/* ===================
   RESPONSIVE
   =================== */
@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding-top: 88px;
    }

    .hero__layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 100px;
    }

    .hero__content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 640px;
        width: 100%;
        margin-inline: auto;
    }

    .hero__subtitle {
        margin-inline: auto;
    }

    .hero__cta-group {
        justify-content: center;
        width: 100%;
        align-items: center;
    }

    .hero__mockup {
        display: none;
    }

    .features__item {
        gap: 32px;
    }

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

@media (max-width: 768px) {
    :root {
        --section-py: 64px;
    }

    .navbar__links { display: none; }
    .navbar__hamburger { display: flex; }
    .navbar__actions .btn-sm,
    .navbar__actions .btn-whatsapp { display: none; }

    /* Show fixed WhatsApp on mobile */
    .whatsapp-fixed { display: flex; }

    .tools {
        padding-block: 40px;
    }

    .tools__title {
        margin-bottom: 16px;
    }

    .tools__subtitle {
        margin-bottom: 24px;
    }

    .tools__track {
        gap: 32px;
    }

    .tools__track--row2 {
        margin-top: 12px;
    }

    .tools__track-wrapper::before,
    .tools__track-wrapper::after {
        width: 40px;
    }

    .tools__icon {
        height: 36px;
        opacity: 0.65;
    }

    .hero__curve svg {
        height: 60px;
    }

    .hero__layout {
        padding-bottom: 80px;
    }

    .hero__content {
        max-width: 540px;
    }

    .hero__subtitle {
        max-width: none;
    }

    /* Pricing — single column on mobile */
    .pricing__cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-inline: auto;
    }

    .pricing__card {
        padding: 32px 24px;
    }

    /* Footer grid — single column on mobile */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__desc {
        max-width: none;
    }

    /* How it works — vertical on mobile */
    .how-it-works__steps {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 400px;
    }

    .how-it-works__connector {
        width: 40px;
        margin-inline: auto;
    }

    /* Industries — 2 columns on mobile */
    .industries__grid {
        grid-template-columns: 1fr 1fr;
    }

    .features__item {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 56px;
    }

    .features__item:nth-child(even) .features__mockup,
    .features__item:nth-child(even) .features__text { order: unset; }
    [dir="rtl"] .features__item:nth-child(even) .features__mockup,
    [dir="rtl"] .features__item:nth-child(even) .features__text { order: unset; }

    .features__text {
        text-align: center;
        padding-inline: 0;
    }

    .comparison__table {
        border-radius: var(--radius-md);
    }

    .comparison__cell {
        padding: 12px 8px;
        font-size: 0.8125rem;
    }
    .comparison__cell--header {
        font-size: 0.75rem;
        padding: 10px 8px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer__links-row {
        flex-direction: column;
        gap: 8px;
    }

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

    .legal {
        padding-top: 100px;
    }

    .auth-card {
        padding: 32px 24px;
    }

    .otp-input {
        width: 44px;
        height: 48px;
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .tools__track {
        gap: 24px;
    }

    .tools__track-wrapper::before,
    .tools__track-wrapper::after {
        width: 24px;
    }

    .tools__icon {
        height: 32px;
    }

    .hero {
        padding-top: 76px;
    }

    .hero__curve svg {
        height: 40px;
    }

    .hero__layout {
        padding-bottom: 50px;
    }

    .hero__content {
        max-width: none;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .hero__promise {
        font-size: 1rem;
    }

    .hero__subtitle {
        font-size: 0.9375rem;
    }

    .hero__badge {
        font-size: 0.8125rem;
        padding: 6px 16px;
    }

    .hero__cta-group {
        flex-direction: column;
        align-items: stretch;
        margin-inline: auto;
    }

    .hero__cta-group .btn {
        text-align: center;
        justify-content: center;
    }

    .industries__grid {
        grid-template-columns: 1fr;
    }

    .industries__item {
        padding: 12px 16px;
    }

    .comparison__cell {
        padding: 10px 6px;
        font-size: 0.75rem;
    }
    .comparison__cell--header {
        font-size: 0.6875rem;
        padding: 8px 6px;
    }

    .problem__item {
        font-size: 1rem;
    }

    .final-cta {
        padding-block: 64px;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
        white-space: normal;
        text-align: center;
    }

    .whatsapp-fixed {
        padding: 12px 18px;
        font-size: 0.8125rem;
    }
}

@media (max-width: 375px) {
    .container {
        padding-inline: 16px;
    }

    .hero__title {
        font-size: 1.5rem;
    }

    .hero__promise {
        font-size: 0.9375rem;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 0.8375rem;
    }
}

/* ===================
   RTL SPECIFIC
   =================== */
[dir="rtl"] .faq__question {
    text-align: right;
}
