html, body {
    overflow-x: clip;
    max-inline-size: 100%;
}

.sanad-footer__logo {
    filter: brightness(0) invert(1);
}

/* Keep the sentiment labels in the normal flow, clear of the progress bar. */
.ai-step__illustration--semantic {
    display: grid;
    place-items: center;
    color: var(--a-blue);
}
.ai-step__illustration--semantic svg {
    display: block;
    width: min(120px, 100%);
    height: 88px;
}
[data-theme="dark"] .ai-step__illustration--semantic { color: #99bffe; }
.ai-sent {
    display: flex;
    flex-direction: column;
    min-height: 292px;
    height: auto;
    padding: 32px;
}
.ai-sent > h3, .ai-sent > p {
    position: static !important;
    margin: 0 !important;
}
.ai-sent > p { margin-block-start: 16px !important; }
.ai-sent .ai-sent__bar {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 16px !important;
    min-height: 16px !important;
    margin-block: 24px 12px !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    flex: 0 0 16px !important;
}
.ai-sent .ai-sent__bar i {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    width: 72% !important;
    border-radius: 999px !important;
}
.ai-sent .ai-sent__leg {
    position: static !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px 20px !important;
    margin: 0 !important;
    width: 100% !important;
}

@media (max-width: 1023px) {
    .sanad-header {
        position: sticky !important;
        top: 0;
        z-index: 1000;
        background: var(--sanad-surface-page, #0d1b2a);
    }
    .sanad-header + main {
        padding-block-start: 0 !important;
    }
    .sanad-header .sanad-header__row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px auto;
        grid-template-areas: "brand menu actions" "nav nav nav";
        grid-template-rows: 80px auto;
        column-gap: 8px;
        row-gap: 0;
        height: auto;
        min-height: 80px;
        padding: 0 20px;
    }
    .sanad-header .sanad-header__brand {
        width: min(100%, 150px);
    }
    .sanad-header .sanad-header__actions { gap: 4px; }
    .sanad-header.sanad-header--menu-open {
        position: sticky !important;
        background: var(--sanad-surface-page, #0d1b2a);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    }
    .sanad-header.sanad-header--menu-open + main {
        padding-block-start: 0 !important;
    }
    .sanad-header .sanad-header__nav {
        max-block-size: calc(100vh - 96px);
        max-block-size: calc(100dvh - 96px);
        overflow-y: auto;
        margin-block-end: 12px;
        border: 1px solid rgba(56, 189, 248, 0.22);
        border-radius: 20px;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
    }
}

@media (max-width: 1250px) {
    .ai-sent {
        min-height: 0 !important;
        padding: 24px !important;
    }
    .ai-walkthrough .ai-step .ai-step__number {
        position: static !important;
        display: grid !important;
        place-items: center !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        margin: 0 auto 16px !important;
        border-radius: 50% !important;
        transform: none !important;
        flex: 0 0 48px !important;
    }
    .ai-walkthrough .ai-step .ai-step__illustration {
        position: relative !important;
        width: min(100%, 234px) !important;
        height: 92px !important;
        margin: 0 auto 16px !important;
    }
    .ai-walkthrough .ai-step__illustration--knowledge .ai-doc:nth-child(2) { left: 35%; }
    .ai-walkthrough .ai-step__illustration--knowledge .ai-doc:nth-child(3) { left: 70%; }
}

.sanad-footer__legal{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:81px;padding-block:1.5rem;text-align:center}
.sanad-footer__legal p{margin:0;font-size:14px;line-height:21px}
.whatsapp-float{position:fixed;inset-block-end:36px;right:36px;left:auto;width:56px;height:56px;border:0;border-radius:9999px;background:#25d366;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 20px rgba(37,211,102,.4);z-index:9999;cursor:pointer;transition:transform .2s,background-color .2s}
.whatsapp-float:hover{background:#128c7e;transform:scale(1.08)}
.whatsapp-float:focus-visible{outline:3px solid #1e40af;outline-offset:3px}
.whatsapp-float svg{width:28px;height:28px}
@media (max-width:768px){.whatsapp-float{width:48px;height:48px;inset-block-end:20px;right:20px}.whatsapp-float svg{width:24px;height:24px}}
@media (prefers-reduced-motion:reduce){.whatsapp-float{transition:none}.whatsapp-float:hover{transform:none}}

/* Figma Site Header Styling */
.sanad-header {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 100;
}
.sanad-header + main { padding-block-start: 80px; }
.sanad-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 16px;
    max-inline-size: 1400px;
    margin-inline: auto;
}
@media (min-width: 1024px) {
    .sanad-header + main { padding-block-start: 112px; }
    .sanad-header__nav {
        background: #0d1b2a;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 9999px;
        padding: 6px 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    }
    .sanad-header__list {
        display: flex;
        align-items: center;
        gap: 20px;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .sanad-header__link {
        color: #cbd5e1;
        font-size: 15px;
        font-weight: 500;
        text-decoration: none;
        padding: 8px 12px;
        border-radius: 9999px;
        transition: color 0.2s, background-color 0.2s;
    }
    .sanad-header__link:hover,
    .sanad-header__link--active {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
    }
}
.sanad-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sanad-header__cta {
    background-color: #1e40af;
    color: #ffffff;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}
.sanad-header__cta:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}
.sanad-header__language {
    display: grid;
    place-items: center;
    inline-size: 44px;
    block-size: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: border-color 0.2s, background-color 0.2s;
}
.sanad-header__language:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}
.sanad-theme-toggle {
    display: grid;
    place-items: center;
    inline-size: 44px;
    block-size: 44px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #d97706;
    cursor: pointer;
    transition: transform 0.2s;
}
.sanad-theme-toggle:hover {
    transform: rotate(15deg);
}

html:not([data-theme="dark"]) .sanad-header .sanad-header__language {
    color: #1e40af;
    border-color: #1e40af;
}

@media (min-width: 1024px) {
    .sanad-header .sanad-header__row {
        padding-block: 16px 0;
    }
    .sanad-header .sanad-header__nav {
        align-self: end;
        position: relative;
        background: #0e1e30;
        border: 0;
        border-radius: 40px 40px 0 0;
        box-shadow: none;
    }
    .sanad-header .sanad-header__nav::before,
    .sanad-header .sanad-header__nav::after {
        content: "";
        position: absolute;
        bottom: 0;
        width: 88px;
        height: 32px;
        pointer-events: none;
    }
    .sanad-header .sanad-header__nav::before {
        inset-inline-start: -88px;
        background: radial-gradient(ellipse 88px 32px at var(--sanad-header-curve-start, 100%) 0, transparent calc(100% - .5px), #0e1e30 calc(100% + .5px));
    }
    .sanad-header .sanad-header__nav::after {
        inset-inline-end: -88px;
        background: radial-gradient(ellipse 88px 32px at var(--sanad-header-curve-end, 0%) 0, transparent calc(100% - .5px), #0e1e30 calc(100% + .5px));
    }
    [dir="ltr"] .sanad-header .sanad-header__nav {
        --sanad-header-curve-start: 0%;
        --sanad-header-curve-end: 100%;
    }
    .sanad-header .sanad-header__link {
        color: #fff;
        font-size: clamp(14px, calc(14px + (100vw - 1024px) * 0.0048), 16px);
        font-weight: 400;
        padding: 0;
    }
    .sanad-header .sanad-header__list {
        gap: clamp(6px, calc(6px + (100vw - 1024px) * 0.0625), 32px);
    }
    [dir="ltr"] .sanad-header .sanad-header__list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px 12px;
    }
    [dir="ltr"] .sanad-header .sanad-header__link {
        font-size: 14px;
    }
    .sanad-header .sanad-header__link:hover,
    .sanad-header .sanad-header__link--active {
        background: transparent;
    }
    main > .sanad-hero { margin-block-start: 0; }
}

@media (min-width: 1101px) {
    main:has(> .sanad-privacy-clauses) { padding-block-end: 96px; }
    main:has(> .sanad-terms-clauses) { padding-block-end: 0; }
}

main > :is(.sanad-hero, .sanad-services-hero, .sanad-how-hero,
    .sanad-about-hero, .sanad-blog-hero, .sanad-article-hero,
    .sanad-terms-hero, .sanad-privacy-hero),
main > .ai-page > .ai-hero,
main > .fkr > .fkr__hero {
    box-sizing: border-box;
    inline-size: 100%;
    max-inline-size: none;
    margin-inline: 0;
    border-radius: 0;
}

.sanad-theme-toggle,
html[data-theme="dark"] .sanad-theme-toggle {
    color: var(--sanad-text-primary, #182c43);
}
.fkr-site-header__theme,
html[data-theme="dark"] .fkr-site-header__theme {
    color: inherit;
}
:is(.sanad-theme-toggle, .fkr-site-header__theme) .sanad-mode-icon {
    display: block;
    width: 24px;
    height: 24px;
}
:is(.sanad-theme-toggle, .fkr-site-header__theme) .sanad-mode-icon--moon {
    width: 22px;
    height: 22px;
}
html:not([data-theme="dark"]) .sanad-mode-icon--sun,
html[data-theme="dark"] .sanad-mode-icon--moon {
    display: none;
}
html[data-theme="dark"] .sanad-theme-toggle { color: #dbd9de; }

:is(.sanad-contact, .sanad-consultation) .sanad-input__field:has(> select) {
    position: relative;
}
:is(.sanad-contact, .sanad-consultation) select.sanad-input__control {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    padding-inline-end: 40px;
    cursor: pointer;
}
:is(.sanad-contact, .sanad-consultation) .sanad-input__field:has(> select)::after {
    content: "";
    position: absolute;
    inset-inline-end: 20px;
    top: calc(50% - 5px);
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-block-end: 1.5px solid currentColor;
    transform: rotate(45deg);
    pointer-events: none;
}
:is(.sanad-contact, .sanad-consultation) .sanad-input__field:has(> select) > :is(.sanad-input__toggle, .sanad-contact__placeholder) {
    display: none;
}
.sanad-brand-credit { font-size: 14px; line-height: 1.5; }
.sanad-footer__contact { order: 3; }
.sanad-footer__links { order: 1; }
.sanad-footer__links--important { order: 2; }
.sanad-brand-credit strong { font-weight: 700; }
.sanad-stats[data-stats-static] .sanad-stats__track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    gap: 20px;
}
.sanad-stats:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.fikr-wordmark { display: block; width: 100%; height: 100%; }
.fkr__logo.fikr-original-logo,
.fkr-site-header .fkr-site-header__brand {
    background: #2b2332;
    color: #f6f4dd;
}
html[data-theme="dark"] .fkr__logo.fikr-original-logo,
html[data-theme="dark"] .fkr-site-header .fkr-site-header__brand {
    background: #f6f4dd;
    color: #2b2332;
}
.sanad-home-fkr .sanad-home-fkr__logo {
    display: block;
    width: 96px;
    height: 80px;
    inline-size: 96px;
    block-size: 80px;
    inset-block-start: 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f6f4dd;
}
.fkr-footer > p { margin: 8px 0 0; }

.sanad-testimonials--slider .sanad-testimonials__grid {
    display: flex;
    flex-flow: row nowrap;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    padding-block: 4px 12px;
    width: 100%;
    min-width: 0;
}
.sanad-testimonials--slider .sanad-testimonials__card {
    flex: 0 0 calc((100% - 24px) / 2);
    min-width: 0;
    max-width: none;
    height: auto;
    box-sizing: border-box;
    scroll-snap-align: start;
}
.sanad-testimonials__controls,
.sanad-testimonials__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.sanad-testimonials__controls { direction: ltr; }
.sanad-testimonials__controls .sanad-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.sanad-testimonials__controls[hidden] { display: none; }
.sanad-testimonials__controls button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 12px;
    color: inherit;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 28px;
}
.sanad-testimonials__controls button:disabled { opacity: .4; cursor: default; }
.sanad-testimonials__dots button { border: 0; font-size: 0; }
.sanad-testimonials__dots button::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
    opacity: .45;
}
.sanad-testimonials__dots button[aria-current]::after { width: 22px; opacity: 1; }
.sanad-testimonials--slider :is(button, .sanad-testimonials__grid):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .sanad-testimonials--slider .sanad-testimonials__card { flex-basis: 100%; max-width: 100%; }
    .sanad-footer {
        padding-block-start: clamp(24px, 6vw, 36px);
        gap: clamp(16px, 4vw, 24px);
    }
    .sanad-footer__content {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: "brand brand" "contact contact" "quick important";
        gap: clamp(16px, 4vw, 24px) clamp(12px, 3vw, 20px);
        padding-inline: clamp(20px, 5vw, 32px);
    }
    .sanad-footer__brand { grid-area: brand; gap: clamp(10px, 2.5vw, 14px); }
    .sanad-footer__contact { grid-area: contact; gap: clamp(6px, 1.5vw, 8px); }
    .sanad-footer__links { grid-area: quick; gap: 8px; }
    .sanad-footer__links--important { grid-area: important; }
    .sanad-footer__column { width: auto; inline-size: auto; }
    .sanad-footer__column { order: initial; }
    .sanad-footer__title { font-size: clamp(16px, 4.5vw, 18px); line-height: 1.5; }
    .sanad-footer__contact-list {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        gap: 0 clamp(12px, 3.5vw, 18px);
    }
    .sanad-footer__contact-item { min-width: 0; }
    .sanad-footer__link-list { gap: 0; }
    .sanad-footer__link { font-size: clamp(14px, 3.7vw, 16px); min-block-size: 44px; }
    .sanad-footer__legal { padding: 16px 20px 24px; min-height: 0; }
    .fkr-footer { padding-block: 24px; }
    .fkr-footer nav { flex-wrap: wrap; gap: 8px 20px; }
    .fkr-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
}
