/* ============================================
   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%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
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);

    --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.1;
    letter-spacing: -0.02em;
}

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

.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: 10px 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);
}

/* ===================
   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__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__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin-inline: auto;
    padding-inline: 24px;
}

.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__subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(1rem, 1.5vw + 0.25rem, 1.125rem);
    line-height: 1.65;
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: 32px;
}

.hero__cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 56px;
}

.hero__no-card {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Steps inside hero */
.hero__steps {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-inline: auto;
    padding-inline: 24px;
    padding-bottom: 80px;
}

.hero__steps-label {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.hero__steps-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: center;
}

.hero__step {
    text-align: center;
    padding: 24px 16px;
}

.hero__step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__step-title {
    color: var(--white);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.hero__step-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.hero__steps-connector {
    width: 80px;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.25) 0,
        rgba(255, 255, 255, 0.25) 6px,
        transparent 6px,
        transparent 12px
    );
}

/* Hero curved bottom divider */
.hero__curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 2;
}
.hero__curve svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ===================
   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; }

/* ===================
   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);
}

/* ===================
   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;
}

/* ===================
   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); }

/* ===================
   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;
}

/* ===================
   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__steps {
    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__steps        { animation-delay: 0.65s; }

@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__subtitle,
    .hero__cta-group,
    .hero__steps {
        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) {
    .features__item {
        gap: 32px;
    }

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

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

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

    .tools {
        padding-block: 40px;
    }

    .tools__title {
        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 {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 0;
    }

    .hero__steps-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero__steps-connector {
        width: 2px;
        height: 40px;
        margin-inline: auto;
        background: repeating-linear-gradient(
            180deg,
            rgba(255,255,255,0.25) 0,
            rgba(255,255,255,0.25) 6px,
            transparent 6px,
            transparent 12px
        );
    }

    .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;
    }

    .pricing__cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

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

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .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__title {
        font-size: 2rem;
    }

    .hero__step {
        padding: 16px 8px;
    }

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

    .btn-lg {
        padding: 16px 32px;
        font-size: 1rem;
    }
}

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