/* ==========================================================================
   Khabeerha landing pages (/, /design, /faq)
   Loaded only by resources/views/landing/layouts/master.blade.php.
   Every class is prefixed with "kh-" so nothing leaks into other pages.
   ========================================================================== */

:root {
    --kh-teal: #054454;
    --kh-teal-2: #0b5867;
    --kh-coral: #ff8276;
    --kh-coral-soft: #ffe9e6;
    --kh-bg: #fbf7f4;
    --kh-sand: #f5f1ec;
    --kh-muted: #4f6c73;
    --kh-muted-2: #3d6670;
    --kh-muted-3: #2f5761;
    --kh-ink: #03303b;
    --kh-line: #ebe4de;
    --kh-line-2: #e2dad3;
    --kh-on-dark: #e3ecee;
    --kh-on-dark-2: #cfdfe2;
    --kh-white: #ffffff;
    --kh-font-display: 'El Messiri', sans-serif;
    --kh-font-body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
    --kh-gutter: clamp(16px, 4vw, 40px);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

/* ---------- Base ---------- */
.kh-page {
    margin: 0;
    background: var(--kh-bg);
    color: var(--kh-teal);
    font-family: var(--kh-font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
}
.kh-page *,
.kh-page *::before,
.kh-page *::after { box-sizing: border-box; }
:where(.kh-page) a { color: inherit; text-decoration: none; }
:where(.kh-page) img { max-width: 100%; }
:where(.kh-page) button { font-family: inherit; }
.kh-page [hidden] { display: none !important; }
.kh-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Clip horizontal overflow without breaking the sticky header (it lives outside this wrapper) */
.kh-wrap { overflow-x: hidden; }

/* ---------- Keyframes ---------- */
@keyframes khFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes khFloatSm { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes khPop { 0% { opacity: 0; transform: translateY(12px) scale(.94); } 100% { opacity: 1; transform: none; } }
@keyframes khPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 130, 118, .6); } 70% { box-shadow: 0 0 0 10px rgba(255, 130, 118, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 130, 118, 0); } }
@keyframes khMarquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes khMarqueeLtr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes khRise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes khDrift { 0%, 100% { transform: rotate(0deg) translateY(0); } 50% { transform: rotate(5deg) translateY(18px); } }

.kh-float { animation: khFloat 6s ease-in-out infinite; }
.kh-float--slow { animation-duration: 7s; }

/* Scroll-driven reveal: progressive enhancement only. Without support, content is simply visible. */
@supports (animation-timeline: view()) {
    .kh-rise {
        animation: khRise linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 90%;
    }
}

/* ---------- Shared building blocks ---------- */
.kh-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: var(--kh-gutter);
}

.kh-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.kh-head--tight { gap: 8px; }

.kh-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--kh-muted);
}
.kh-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--kh-coral);
}
.kh-eyebrow--on-dark { color: var(--kh-on-dark-2); }
.kh-eyebrow--teal { color: var(--kh-teal); }
.kh-eyebrow--teal::before { background: var(--kh-teal); }

.kh-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--kh-coral); }

.kh-h2 {
    margin: 0;
    font-family: var(--kh-font-display);
    font-weight: 700;
    font-size: clamp(32px, 3.8vw, 52px);
    line-height: 1.2;
}
.kh-h2--sm { font-size: clamp(26px, 3vw, 38px); line-height: 1.25; }

.kh-lift { transition: transform .25s ease, box-shadow .25s ease; }
.kh-lift:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(5, 68, 84, .14); }

.kh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}
.kh-btn--dark { background: var(--kh-teal); color: var(--kh-white); }
.kh-btn--outline { border: 1px solid var(--kh-teal); color: var(--kh-teal); }
.kh-btn--lg { min-height: 50px; padding: 0 26px; font-size: 16px; }
.kh-btn--outline.kh-btn--lg { padding: 0 22px; }
.kh-btn--md { min-height: 48px; padding: 0 22px; font-size: 16px; }

.kh-icon-tile {
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 16px;
    background: var(--kh-teal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kh-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.kh-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; line-height: 1.6; }
.kh-list svg { flex: none; margin-top: 1px; }
.kh-list--tight { gap: 10px; }
.kh-list--tight li { gap: 10px; }
.kh-list--tight svg { margin-top: 2px; }

.kh-chips,
.kh-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.kh-chips span {
    background: var(--kh-white);
    border: 1px solid var(--kh-line);
    color: var(--kh-teal);
    font-size: 14px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 999px;
}
.kh-tags { padding-top: 4px; }
.kh-tags span {
    background: var(--kh-sand);
    color: var(--kh-teal);
    font-size: 14px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 999px;
}

/* Store buttons */
.kh-store { display: flex; align-items: center; color: var(--kh-teal); }
.kh-store svg { fill: currentColor; flex: none; }
.kh-store--lg { gap: 12px; min-height: 58px; padding: 8px 22px; border-radius: 16px; }
.kh-store--sm { gap: 10px; min-height: 48px; padding: 6px 18px; border-radius: 14px; }
.kh-store__text { display: flex; flex-direction: column; line-height: 1.2; text-align: start; }
.kh-store__pre { font-size: 12px; }
.kh-store--lg .kh-store__name { font-size: 18px; font-weight: 700; }
.kh-store--sm .kh-store__name { font-size: 16px; font-weight: 700; }
.kh-store--light { background: var(--kh-bg); color: var(--kh-teal); }
.kh-store--light .kh-store__pre { color: var(--kh-muted); }
.kh-store--coral { background: var(--kh-coral); color: var(--kh-ink); }
.kh-store--teal { background: var(--kh-teal); color: var(--kh-white); }

/* ---------- Header ---------- */
.kh-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(251, 247, 244, .92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--kh-line);
}
.kh-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px var(--kh-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.kh-brand { display: flex; color: var(--kh-teal); flex: none; }

/* Wordmark (partials/logo): Arabic name on top, "khabeerha" centred under it, never wider than the Arabic */
.kh-logo { --kh-logo-ar: 26px; --kh-logo-en: 17px; display: flex; align-items: center; gap: 10px; }
.kh-logo svg { flex: none; }
.kh-logo__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--kh-logo-ar) * .12);
    font-family: var(--kh-font-display);
}
.kh-logo__ar { font-weight: 700; font-size: var(--kh-logo-ar); line-height: 1; }
.kh-logo__en {
    font-weight: 600;
    font-size: var(--kh-logo-en);
    line-height: 1;
    letter-spacing: 0;
    text-transform: lowercase;
    color: var(--kh-muted);
}
.kh-logo--footer { --kh-logo-ar: 24px; --kh-logo-en: 13px; }
.kh-logo--cta { --kh-logo-ar: 44px; --kh-logo-en: 29px; gap: 14px; }
.kh-logo--cta .kh-logo__ar { color: var(--kh-bg); }
.kh-logo--cta .kh-logo__en { color: var(--kh-on-dark-2); }
.kh-nav__links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.kh-nav__links a { color: var(--kh-teal); white-space: nowrap; }
.kh-nav__actions { display: flex; align-items: center; gap: 18px; }
.kh-nav__lang { color: var(--kh-muted); font-size: 14px; font-weight: 600; }
.kh-nav__toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--kh-line-2);
    background: var(--kh-white);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.kh-mmenu {
    border-top: 1px solid var(--kh-line);
    background: var(--kh-bg);
    padding: 8px var(--kh-gutter) 18px;
    display: flex;
    flex-direction: column;
}
.kh-mmenu a { padding: 14px 4px; border-bottom: 1px solid var(--kh-line); color: var(--kh-teal); font-weight: 600; }
.kh-mmenu a:last-child { border-bottom: 0; }

@media (max-width: 1080px) {
    .kh-nav__links,
    .kh-nav__lang { display: none; }
    .kh-nav__toggle { display: flex; }
}
@media (min-width: 1081px) {
    .kh-mmenu { display: none !important; }
}

/* ---------- Hero ---------- */
.kh-hero { padding: clamp(16px, 2vw, 24px) clamp(12px, 2vw, 24px) 0; }
.kh-hero__box {
    max-width: 1392px;
    margin: 0 auto;
    background: radial-gradient(60% 80% at 22% 45%, var(--kh-teal-2) 0%, var(--kh-teal) 62%);
    color: var(--kh-bg);
    border-radius: clamp(24px, 3vw, 40px);
    overflow: hidden;
    position: relative;
}
.kh-hero__bolt {
    position: absolute;
    right: -160px;
    top: -220px;
    opacity: .07;
    animation: khDrift 14s ease-in-out infinite;
}
.kh-hero--design .kh-hero__bolt { opacity: .06; animation: none; }
.kh-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(36px, 4.5vw, 56px) clamp(20px, 4vw, 40px) clamp(40px, 4.5vw, 56px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(48px, 5vw, 80px);
    position: relative;
}
.kh-hero--design .kh-hero__inner { gap: clamp(40px, 5vw, 80px); }
.kh-hero__copy {
    flex: 1 1 460px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
}
.kh-hero--home .kh-hero__copy { animation: khPop .7s ease-out both; }
.kh-hero--design .kh-hero__copy { gap: 24px; }
.kh-hero__badge-row { display: flex; }
.kh-hero__badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(251, 247, 244, .08);
    border: 1px solid rgba(251, 247, 244, .18);
    color: var(--kh-bg);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
}
.kh-hero__title {
    margin: 0;
    font-family: var(--kh-font-display);
    font-weight: 700;
    font-size: clamp(38px, 4.8vw, 64px);
    line-height: 1.12;
}
.kh-hero--design .kh-hero__title { line-height: 1.14; }
.kh-hero__title span { display: block; color: var(--kh-coral); }
.kh-hero__text {
    margin: 0;
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.85;
    color: var(--kh-on-dark);
    max-width: 520px;
    text-wrap: pretty;
}
.kh-hero--design .kh-hero__text { max-width: 540px; }
.kh-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kh-hero__chips span {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(251, 247, 244, .28);
    color: var(--kh-bg);
    font-size: 14px;
    font-weight: 500;
}
.kh-hero__stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 6px; }
/* QR card: desktop only, a phone can't scan its own screen */
.kh-qr {
    display: none;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 6px;
    padding-inline: 16px 8px;
    border: 1px solid rgba(251, 247, 244, .28);
    border-radius: 16px;
    color: var(--kh-on-dark);
}
.kh-qr img { display: block; width: 46px; height: 46px; border-radius: 8px; background: var(--kh-white); }
.kh-qr span { font-size: 13px; line-height: 1.5; max-width: 110px; }
@media (min-width: 1024px) and (hover: hover) {
    .kh-qr { display: flex; }
}
.kh-hero__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    font-size: 15px;
    color: var(--kh-on-dark);
    border-top: 1px solid rgba(251, 247, 244, .14);
    padding-top: 22px;
    margin-top: 6px;
}
.kh-hero__checks > div { display: flex; align-items: center; gap: 8px; }
.kh-hero__visual {
    flex: 1 1 340px;
    min-width: 0;
    display: flex;
    justify-content: center;
    position: relative;
    padding: 24px 0 56px;
}
.kh-hero__glow {
    position: absolute;
    width: 400px;
    height: 400px;
    max-width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(28, 140, 160, .6), rgba(28, 140, 160, 0));
    border-radius: 50%;
}
.kh-hero__circle {
    position: absolute;
    width: min(360px, 90%);
    aspect-ratio: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    background: var(--kh-coral);
    border-radius: 50%;
    opacity: .95;
}
.kh-hero__phone { position: relative; transform: rotate(-6deg); }
.kh-hero__phone img {
    display: block;
    width: 290px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 36px 48px rgba(0, 18, 24, .45));
}
.kh-hero__offer {
    position: absolute;
    top: 10%;
    right: max(0px, calc(50% - 250px));
    background: var(--kh-white);
    color: var(--kh-teal);
    border-radius: 16px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 16px 36px rgba(0, 18, 24, .3);
    font-size: 13px;
    font-weight: 700;
    animation: khPop .6s .6s ease-out both;
}
.kh-hero__pulse {
    width: 10px;
    height: 10px;
    flex: none;
    border-radius: 50%;
    background: var(--kh-coral);
    animation: khPulse 1.8s 1.2s ease-out infinite;
}

/* ---------- Ticker ---------- */
.kh-ticker { overflow: hidden; padding: 26px 0; border-bottom: 1px solid var(--kh-line); }
.kh-ticker__track { display: flex; width: max-content; animation: khMarquee 38s linear infinite; }
.kh-ticker__item {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-inline-end: 22px;
    font-family: var(--kh-font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--kh-teal);
    white-space: nowrap;
}

/* ---------- Why ---------- */
.kh-why { padding: clamp(56px, 6vw, 88px) 0; }
.kh-why__inner { display: flex; flex-direction: column; gap: 48px; }
.kh-why__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 48px;
}
.kh-why__heading { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.kh-why__text { flex: 1 1 320px; margin: 0; font-size: 18px; line-height: 1.85; color: var(--kh-muted); max-width: 440px; }
.kh-why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 16px; }
.kh-why__old,
.kh-why__new { border-radius: 28px; padding: 32px 30px; display: flex; flex-direction: column; gap: 20px; }
.kh-why__old { background: var(--kh-sand); }
.kh-why__new { background: var(--kh-teal); color: var(--kh-bg); box-shadow: 0 24px 48px rgba(5, 68, 84, .22); }
.kh-why__card-title { font-family: var(--kh-font-display); font-weight: 700; font-size: 22px; color: var(--kh-muted); }
.kh-why__card-title span { display: block; font-weight: 500; font-size: 15px; margin-top: 4px; }
.kh-why__new .kh-why__card-title { color: var(--kh-coral); }
.kh-why__new .kh-why__card-title span { color: var(--kh-on-dark-2); }

.kh-mess,
.kh-line { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.kh-mess { gap: 14px; }
.kh-line { gap: 24px; position: relative; }
.kh-mess li,
.kh-line li { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; line-height: 1.6; }
.kh-mess svg,
.kh-line svg { flex: none; margin-top: 1px; }
.kh-mess li {
    color: var(--kh-muted);
    background: var(--kh-white);
    border: 1.5px dashed #d6cbc2;
    border-radius: 16px;
    padding: 12px 16px;
    transition: transform .25s ease;
}
.kh-mess li:nth-child(1) { transform: rotate(-1.8deg); margin-inline-end: 34px; }
.kh-mess li:nth-child(2) { transform: rotate(1.4deg); margin-inline-start: 30px; }
.kh-mess li:nth-child(3) { transform: rotate(-1deg); margin-inline-end: 18px; }
.kh-mess li:nth-child(4) { transform: rotate(2deg); margin-inline-start: 40px; }
.kh-mess li:hover { transform: rotate(0); }
.kh-line::before {
    content: "";
    position: absolute;
    inset-inline-start: 11px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: rgba(255, 130, 118, .55);
    border-radius: 2px;
}
.kh-line li { position: relative; }

.kh-why__stats {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid rgba(251, 247, 244, .18);
}
.kh-why__stats > div { flex: 1 1 0; display: flex; flex-direction: column; gap: 2px; }
.kh-why__stat-v { font-family: var(--kh-font-display); font-weight: 700; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; color: var(--kh-coral); }
.kh-why__stat-l { font-size: 15px; color: var(--kh-on-dark-2); }

/* ---------- Steps (dark) + screenshots ---------- */
.kh-steps { background: var(--kh-teal); color: var(--kh-bg); overflow: hidden; }
.kh-steps--how { padding: clamp(64px, 7vw, 96px) 0; }
.kh-steps--design { padding: clamp(80px, 9vw, 128px) 0; }
.kh-steps__inner { display: flex; flex-direction: column; gap: 56px; }
.kh-steps--design .kh-steps__inner { gap: 52px; }
.kh-steps__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 28px 20px;
}
.kh-steps--design .kh-steps__list { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.kh-steps__list li {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 2px solid rgba(251, 247, 244, .2);
}
.kh-steps__n { font-family: var(--kh-font-display); font-weight: 700; font-size: 34px; line-height: 1; color: var(--kh-coral); }
.kh-steps__t { font-family: var(--kh-font-display); font-weight: 700; font-size: 21px; line-height: 1.35; }
.kh-steps__d { font-size: 16px; line-height: 1.75; color: var(--kh-on-dark-2); }

.kh-shots { display: flex; gap: 28px; overflow-x: auto; padding: 16px 4px 12px; }
.kh-shots figure { flex: 0 0 auto; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.kh-shots__frame {
    width: 230px;
    background: #121518;
    border-radius: 40px;
    padding: 9px;
    box-shadow: 0 28px 56px rgba(0, 18, 24, .45);
}
.kh-shots__frame img {
    display: block;
    width: 212px;
    height: 452px;
    object-fit: contain;
    object-position: top;
    border-radius: 32px;
    background: #f6f7f7;
}
.kh-shots figcaption { font-size: 15px; font-weight: 600; color: var(--kh-bg); }

/* Mobile steps slider (one slide per step + its screenshot); shown only at ≤640px */
.kh-mb { display: none; }
.kh-mb__track {
    list-style: none;
    margin: 0 -24px; /* bleed past .kh-container's 24px mobile padding */
    display: flex;
    gap: 16px;
    padding: 4px 24px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.kh-mb__track::-webkit-scrollbar { display: none; }
.kh-mb__slide { flex: 0 0 82%; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
/* flex-grow keeps the phone frames level even when one step's text runs longer than 168px */
.kh-mb__text { align-self: stretch; flex: 1 0 auto; min-height: 168px; display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 2px solid rgba(251, 247, 244, .2); }
.kh-mb__n { font-family: var(--kh-font-display); font-weight: 700; font-size: 30px; line-height: 1; color: var(--kh-coral); }
.kh-mb__t { font-family: var(--kh-font-display); font-weight: 700; font-size: 21px; line-height: 1.35; }
.kh-mb__d { font-size: 16px; line-height: 1.75; color: var(--kh-on-dark-2); }
.kh-mb__dots { display: flex; justify-content: center; gap: 8px; padding-top: 6px; }
.kh-mb__dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(251, 247, 244, .3); transition: background .2s, width .2s; }
.kh-mb__dots span.is-active { width: 20px; border-radius: 4px; background: var(--kh-coral); }

/* ---------- Start strip ---------- */
.kh-start { padding: clamp(40px, 5vw, 64px) var(--kh-gutter) 0; }
.kh-start__box {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--kh-coral-soft);
    border-radius: 28px;
    padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 40px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
}
.kh-start__copy { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.kh-start__title { font-family: var(--kh-font-display); font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.3; }
.kh-start__text { font-size: 16px; color: var(--kh-muted); }
.kh-start__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Fields ---------- */
.kh-fields { padding: clamp(48px, 5vw, 72px) 0 clamp(40px, 4vw, 56px); }
.kh-fields__inner { display: flex; flex-direction: column; gap: 24px; }
.kh-fgrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 20px;
    align-items: center;
    background: var(--kh-coral-soft);
    border-radius: 28px;
    padding: 20px clamp(16px, 3vw, 32px);
}
.kh-flist { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kh-fp { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.kh-fp img { display: block; width: 200px; height: 200px; flex: none; object-fit: contain; }
.kh-fp__body { display: flex; flex-direction: column; gap: 12px; flex: 1 1 180px; min-width: 0; }
.kh-fp__title { font-family: var(--kh-font-display); font-weight: 700; font-size: 28px; line-height: 1.2; }
.kh-fb {
    cursor: pointer;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid var(--kh-line);
    background: var(--kh-white);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    text-align: start;
    color: var(--kh-teal);
    transition: background .2s, color .2s, border-color .2s;
}
.kh-fb:hover { border-color: var(--kh-teal); }
.kh-fb[aria-pressed="true"] { background: var(--kh-teal); color: var(--kh-white); border-color: var(--kh-teal); }
.kh-fb:focus-visible { outline: 2px solid var(--kh-coral); outline-offset: 2px; }
@media (max-width: 720px) {
    .kh-fgrid { grid-template-columns: minmax(0, 1fr); }
    .kh-fp { grid-column: 1; grid-row: 1; }
    .kh-flist { grid-column: 1; grid-row: 2; }
}

.kh-design-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 22px;
    background: var(--kh-coral-soft);
    color: var(--kh-teal);
    border-radius: 16px;
}
.kh-design-link__copy { display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.kh-design-link__title { font-family: var(--kh-font-display); font-weight: 700; font-size: 19px; }

/* ---------- Who / Fit ---------- */
.kh-who { padding: clamp(40px, 4vw, 56px) 0 clamp(56px, 6vw, 88px); }
.kh-who__inner { display: flex; flex-direction: column; gap: 44px; }
.kh-who__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.kh-card {
    background: var(--kh-white);
    border: 1px solid var(--kh-line);
    border-radius: 24px;
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.kh-card__title { font-family: var(--kh-font-display); font-weight: 700; font-size: 24px; }
.kh-card__text { font-size: 16px; line-height: 1.75; color: var(--kh-muted); }

.kh-fit { padding: 0; }
.kh-fit__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 16px; }
.kh-fit__card { border-radius: 24px; padding: 30px 28px; display: flex; flex-direction: column; gap: 18px; }
.kh-fit__card--yes { background: var(--kh-white); border: 1px solid var(--kh-line); }
.kh-fit__card--no { background: var(--kh-sand); }
.kh-fit__card--no li { color: var(--kh-muted-3); }
.kh-fit__title { font-family: var(--kh-font-display); font-weight: 700; font-size: 22px; }

/* ---------- Payment & protection ---------- */
.kh-pay { padding: clamp(48px, 5vw, 72px) clamp(12px, 2vw, 24px) 0; }
.kh-pay__box {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--kh-coral-soft);
    border-radius: 32px;
    padding: clamp(28px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.kh-pay__head { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.kh-pay__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px 12px; align-items: flex-start; }
.kh-pay__step { flex: 1 1 220px; min-width: 0; display: flex; align-items: flex-start; gap: 14px; }
.kh-pay__arrow { flex: none; display: flex; align-items: center; padding-top: 14px; }
.kh-pay__text { display: flex; flex-direction: column; gap: 2px; }
.kh-pay__t { font-family: var(--kh-font-display); font-weight: 700; font-size: 20px; line-height: 1.3; }
.kh-pay__d { font-size: 15px; line-height: 1.7; color: var(--kh-muted-2); }
.kh-pay__methods {
    border-top: 1px solid rgba(5, 68, 84, .14);
    padding-top: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
}
.kh-pay__methods-title { font-size: 16px; font-weight: 600; color: var(--kh-teal); }
.kh-pay__logos { display: flex; flex-wrap: wrap; gap: 10px; }
.kh-pay__logos > div {
    height: 52px;
    min-width: 88px;
    padding: 0 16px;
    background: var(--kh-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kh-pay__logos img { width: auto; display: block; }
.kh-pay__logos > .kh-pay__applepay { padding: 0 18px; }

/* ---------- Experts ---------- */
.kh-experts { padding: clamp(48px, 5vw, 72px) clamp(12px, 2vw, 24px) 0; }
.kh-experts__box {
    --kh-experts-pad: clamp(28px, 4vw, 44px);
    max-width: 1200px;
    margin: 0 auto;
    background: var(--kh-white);
    border: 1px solid var(--kh-line);
    color: var(--kh-teal);
    border-radius: 32px;
    padding: var(--kh-experts-pad);
    display: flex;
    flex-wrap: wrap;
    gap: 32px 48px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.kh-experts__copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: relative; }
.kh-experts__cta { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.kh-experts__cta-label { font-size: 15px; font-weight: 600; color: var(--kh-muted); }
.kh-experts__stores { display: flex; flex-wrap: wrap; gap: 10px; }
.kh-experts__visual {
    flex: 0 1 300px;
    min-width: 0;
    align-self: flex-end;
    margin-bottom: calc(-1 * var(--kh-experts-pad));
    height: 372px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    position: relative;
}
.kh-experts__visual img {
    display: block;
    position: relative;
    width: 290px;
    max-width: 100%;
    height: auto;
    align-self: flex-start;
    margin-top: 24px;
    filter: drop-shadow(0 12px 24px rgba(0, 18, 24, .22));
}

/* ---------- Closing CTA ---------- */
.kh-cta { padding: clamp(48px, 5vw, 72px) 0 0; }
.kh-cta__band {
    background: radial-gradient(60% 90% at 78% 10%, var(--kh-teal-2) 0%, var(--kh-teal) 65%);
    color: var(--kh-bg);
    overflow: hidden;
    position: relative;
}
.kh-cta__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(56px, 7vw, 112px) clamp(20px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
    position: relative;
}
.kh-cta__brand { display: flex; }
.kh-cta__title { margin: 0; font-family: var(--kh-font-display); font-weight: 700; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.2; }
.kh-cta__text { margin: 0; font-size: 19px; line-height: 1.8; color: var(--kh-on-dark); max-width: 520px; }
.kh-cta__stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 8px; }
.kh-cta .kh-store--lg { padding: 8px 24px; }

/* ---------- FAQ (details) ---------- */
.kh-faq { border-top: 1px solid var(--kh-line-2); padding: 20px 0; }
.kh-faq summary {
    cursor: pointer;
    font-family: var(--kh-font-display);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.5;
}
.kh-faq summary:focus-visible { outline: 2px solid var(--kh-coral); outline-offset: 4px; }
.kh-faq p { margin: 10px 0 0; font-size: 16px; line-height: 1.85; color: var(--kh-muted); }

.kh-dfaq { padding: clamp(40px, 5vw, 64px) 0 clamp(80px, 9vw, 128px); }
.kh-dfaq__inner { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); }
.kh-dfaq__head { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.kh-dfaq__list { flex: 2 1 540px; min-width: 0; display: flex; flex-direction: column; }

.kh-faqpage { padding: clamp(40px, 5vw, 72px) var(--kh-gutter) clamp(64px, 7vw, 104px); }
.kh-faqpage__inner { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.kh-faqpage__head { display: flex; flex-direction: column; gap: 10px; }
.kh-faqpage__title { margin: 0; font-family: var(--kh-font-display); font-weight: 700; font-size: clamp(32px, 4vw, 48px); line-height: 1.2; }
.kh-faqpage__text { margin: 0; font-size: 17px; line-height: 1.8; color: var(--kh-muted); }
.kh-faqpage__group { display: flex; flex-direction: column; }
.kh-faqpage__group h2 { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--kh-muted); }
.kh-faqpage__actions { display: flex; }
.kh-faqpage__actions .kh-btn { font-size: 15px; gap: 10px; }

/* Privacy page: same frame as the FAQ page */
.kh-privacy__inner { gap: 32px; }
.kh-privacy__updated { margin: 0; font-size: 15px; line-height: 1.8; color: var(--kh-muted); }
.kh-privacy__intro { line-height: 1.85; }
.kh-privacy__sections { display: flex; flex-direction: column; }
.kh-privacy__section { border-top: 1px solid var(--kh-line-2); padding: 24px 0; display: flex; flex-direction: column; gap: 10px; }
.kh-privacy__section h2 { margin: 0; font-family: var(--kh-font-display); font-weight: 700; font-size: 22px; line-height: 1.4; }
.kh-privacy__section p { margin: 0; font-size: 16px; line-height: 1.9; color: var(--kh-muted); white-space: pre-line; }

/* ---------- Footer ---------- */
.kh-footer { padding: clamp(48px, 5vw, 72px) 0 28px; }
.kh-page--faq .kh-footer,
.kh-page--privacy .kh-footer { padding-top: 56px; }
.kh-footer__inner { display: flex; flex-direction: column; gap: 40px; }
.kh-footer__cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.kh-footer__about { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.kh-footer__about p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--kh-muted); }
.kh-footer__brand { display: flex; }
.kh-footer__col { flex: 0 1 150px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.kh-footer__col a { color: var(--kh-muted); }
.kh-footer__contact { flex: 0 1 220px; color: var(--kh-muted); }
.kh-footer__title { font-weight: 700; font-size: 15px; color: var(--kh-teal); }
.kh-tel { text-align: right; }
.kh-socials { display: flex; gap: 8px; padding-top: 4px; }
.kh-social {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--kh-line-2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.kh-footer__copy { border-top: 1px solid var(--kh-line-2); padding-top: 20px; font-size: 13px; color: var(--kh-muted); }

/* ---------- Floating WhatsApp button ---------- */
.kh-fab {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 40;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 18, 24, .28);
}
.kh-fab:focus-visible { outline: 2px solid var(--kh-teal); outline-offset: 3px; }

/* ---------- LTR (English) ---------- */
[dir="ltr"] .kh-ticker__track { animation-name: khMarqueeLtr; }
[dir="ltr"] .kh-flip { transform: scaleX(-1); }
[dir="ltr"] .kh-tel { text-align: left; }
[dir="ltr"] .kh-hero__box { background: radial-gradient(60% 80% at 78% 45%, var(--kh-teal-2) 0%, var(--kh-teal) 62%); }
[dir="ltr"] .kh-hero__bolt { right: auto; left: -160px; }
[dir="ltr"] .kh-hero__offer { right: auto; left: max(0px, calc(50% - 250px)); }
[dir="ltr"] .kh-cta__band { background: radial-gradient(60% 90% at 22% 10%, var(--kh-teal-2) 0%, var(--kh-teal) 65%); }
[dir="ltr"] .kh-fab { left: auto; right: 18px; }
/* English header labels are wider than the Arabic ones; tighten so 390px phones don't scroll sideways */
@media (max-width: 440px) {
    [dir="ltr"] .kh-nav { gap: 10px; padding-left: 16px; padding-right: 16px; }
    [dir="ltr"] .kh-nav__actions { gap: 10px; }
    [dir="ltr"] .kh-nav .kh-btn { padding: 0 14px; font-size: 14px; }
}

/* ---------- Mobile (the design's .kh-m variant) ---------- */
@media (max-width: 640px) {
    .kh-wrap section + section { margin-top: 20px; }
    .kh-nav,
    .kh-container,
    .kh-hero__inner,
    .kh-start__box,
    .kh-pay__box,
    .kh-experts__box,
    .kh-cta__inner { padding-left: 24px; padding-right: 24px; }
    .kh-hero,
    .kh-pay,
    .kh-experts { padding-left: 16px; padding-right: 16px; }
    .kh-pt22 { margin-top: 22px; }
    .kh-mess li:nth-child(odd) { transform: rotate(-.8deg); margin-inline: 0; }
    .kh-mess li:nth-child(even) { transform: rotate(.8deg); margin-inline: 0; }

    /* Type scale (desktop → mobile). Hero and logo have their own values below. */
    .kh-h2,
    .kh-cta__title { font-size: 24px; line-height: 1.35; }
    .kh-h2--sm { font-size: 22px; }
    .kh-faqpage__title { font-size: 26px; line-height: 1.25; }
    .kh-page p { font-size: 15px; line-height: 1.85; }
    .kh-why__stat-v { font-size: 24px; }
    .kh-fp__title { font-size: 24px; }
    .kh-start__title { font-size: 21px; }
    .kh-card__title { font-size: 20px; }
    .kh-why__card-title,
    .kh-fit__title,
    .kh-privacy__section h2,
    .kh-steps__t { font-size: 18px; }
    .kh-wrap .kh-privacy__section { margin-top: 0; }
    .kh-pay__t,
    .kh-faq summary,
    .kh-design-link__title { font-size: 17px; }
    .kh-store--lg .kh-store__name { font-size: 16px; }
    .kh-list li,
    .kh-mess li,
    .kh-line li,
    .kh-steps__d,
    .kh-start__text,
    .kh-card__text,
    .kh-design-link__copy,
    .kh-pay__methods-title,
    .kh-btn.kh-btn--lg,
    .kh-btn.kh-btn--md,
    .kh-store--sm .kh-store__name,
    .kh-mmenu a { font-size: 15px; }
    .kh-btn,
    .kh-why__card-title span,
    .kh-why__stat-l,
    .kh-shots figcaption,
    .kh-pay__d,
    .kh-experts__cta-label,
    .kh-footer__col,
    .kh-footer__title,
    .kh-faqpage__group h2,
    .kh-faqpage__actions .kh-btn { font-size: 14px; }
    .kh-fb { font-size: 14px; }
    .kh-eyebrow,
    .kh-chips span,
    .kh-tags span { font-size: 13px; }
    .kh-footer__copy { font-size: 12px; }
    .kh-steps__n { font-size: 28px; }

    /* Header */
    .kh-nav { padding-top: 10px; padding-bottom: 10px; }
    .kh-nav__actions { gap: 10px; }
    .kh-brand { min-height: 44px; align-items: center; }
    /* 44px tap area without changing the question spacing */
    .kh-faq summary { padding-block: 9px; margin-block: -9px; }
    .kh-logo--header { --kh-logo-ar: 21px; --kh-logo-en: 14px; }
    .kh-logo--header svg { width: 18px; height: 27px; }

    /* Hero: header + hero fit one phone screen (~590px) */
    .kh-hero__inner { padding-top: 16px; padding-bottom: 0; gap: 4px; }
    .kh-hero--design .kh-hero__inner { gap: 4px; }
    .kh-hero__copy,
    .kh-hero--design .kh-hero__copy { gap: 12px; }
    .kh-hero__badge-row,
    .kh-hero__checks { display: none; }
    .kh-hero__title,
    .kh-hero--design .kh-hero__title { font-size: 26px; line-height: 1.25; }
    .kh-page .kh-hero__text { font-size: 14px; line-height: 1.7; }
    .kh-hero__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .kh-hero__chips::-webkit-scrollbar { display: none; }
    .kh-hero__chips span { flex: none; font-size: 12px; white-space: nowrap; }
    .kh-hero__stores { flex-wrap: nowrap; gap: 6px; padding-top: 0; }
    .kh-hero__stores .kh-store {
        flex: 1;
        min-width: 0;
        height: 38px;
        min-height: 38px;
        border-radius: 12px;
        padding: 4px 8px;
        gap: 6px;
        justify-content: center;
    }
    .kh-hero__stores .kh-store svg { width: 16px; height: 16px; }
    .kh-hero__stores .kh-store__pre { font-size: 8.5px; }
    .kh-hero__stores .kh-store__name { font-size: 12px; }
    .kh-hero__visual {
        height: 256px;
        padding: 10px 0;
        overflow: hidden;
        align-items: center;
    }
    .kh-hero__phone img { width: 112px; }
    /* smaller float so the phone never leaves the short image column */
    .kh-hero__phone .kh-float { animation-name: khFloatSm; }
    .kh-hero__circle { width: 172px; }
    .kh-hero__glow { width: 210px; height: 210px; }
    .kh-hero__offer,
    [dir="ltr"] .kh-hero__offer {
        top: auto;
        right: auto;
        bottom: 22px;
        left: 14px;
        scale: .66;
        transform-origin: bottom left;
    }
    .kh-hero--design .kh-hero__visual { height: 196px; }
    .kh-hero--design .kh-hero__phone img { width: 88px; }
    .kh-hero--design .kh-hero__circle { width: 132px; }
    .kh-hero--design .kh-hero__glow { width: 170px; height: 170px; }

    /* Ticker */
    .kh-ticker { padding: 14px 0; }
    .kh-ticker__item { font-size: 14px; gap: 12px; padding-inline-end: 12px; }
    .kh-ticker__item svg { width: 10px; height: 15px; }

    /* Steps become one swipeable slide per step */
    .kh-steps__list,
    .kh-shots { display: none; }
    .kh-mb { display: block; }

    /* WhatsApp button; footer leaves room so it never covers the last line */
    .kh-fab { width: 46px; height: 46px; left: 12px; bottom: 12px; }
    [dir="ltr"] .kh-fab { left: auto; right: 12px; }
    .kh-fab svg { width: 26px; height: 26px; }
    .kh-footer { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .kh-page *,
    .kh-page *::before,
    .kh-page *::after { animation: none !important; transition: none !important; }
}
