/* KEEP — host-owned Kidora public website (feature 15). Loaded only by Views/Shared/_Layout.Public.cshtml.
   Logical properties throughout (inline-start / inline-end), so the Arabic page mirrors itself; the logo is never mirrored. */

/* ======================= Page frame ======================= */
body:has(.kd-public) { background: var(--kd-canvas-bg); color: var(--kd-text); font-family: var(--kd-font); font-size: var(--kd-fs-body); line-height: var(--kd-lh-body); }
body:has(.kd-public) #bodyContent { margin: 0; }
body:has(.kd-public) #mainContent { padding: 0; }
.kd-public { font-family: var(--kd-font); overflow-x: clip; padding-top: 88px; }
.kd-public h1, .kd-public h2, .kd-public h3, .kd-site-header, .kd-site-footer { font-family: var(--kd-font); }
.kd-public p { margin-block: 0 .75rem; }
.kd-public a:not(.kd-btn) { color: var(--kd-primary); }
.kd-container { width: 100%; max-width: var(--kd-container); margin-inline: auto; padding-inline: var(--kd-gutter); }
.kd-logo-dark { display: none; }
:root[data-theme="dark"] .kd-logo-light { display: none; }
:root[data-theme="dark"] .kd-logo-dark { display: block; }
.kd-c-orange { color: var(--kd-accent); } .kd-c-green { color: var(--kd-success); } .kd-c-blue { color: var(--kd-primary); } .kd-c-teal { color: var(--kd-secondary); }
.kd-bg-teal { background: var(--kd-secondary); } .kd-bg-blue { background: var(--kd-primary); } .kd-bg-orange { background: var(--kd-accent); } .kd-bg-violet { background: #7357D9; }
.kd-page-alert { margin-top: 1rem; }

/* ======================= Header ======================= */
.kd-site-header { position: fixed; inset-inline: 0; top: 0; z-index: 1030; padding: 12px var(--kd-gutter) 0; pointer-events: none; }
.kd-site-header__bar {
    pointer-events: auto; position: relative;
    max-width: calc(var(--kd-container) - 2 * var(--kd-gutter) + 40px); margin-inline: auto; min-height: 64px;
    display: flex; align-items: center; gap: 1rem; padding: 8px 10px 8px 18px; padding-inline: 18px 10px;
    background: color-mix(in srgb, var(--kd-surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px);
    border: 1px solid var(--kd-border); border-radius: 20px; box-shadow: var(--kd-shadow);
    transition: box-shadow var(--kd-dur) var(--kd-ease), border-color var(--kd-dur) var(--kd-ease);
}
.kd-site-header.is-scrolled .kd-site-header__bar { box-shadow: var(--kd-shadow-lg); }
.kd-site-header__brand { display: inline-flex; flex: none; align-items: center; }
.kd-site-header__brand img { height: 42px; width: auto; }
.kd-site-nav { flex: 1; display: flex; justify-content: center; }
.kd-site-nav__links { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.kd-site-nav__link {
    position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: .4rem .8rem;
    font-size: .92rem; font-weight: 500; color: var(--kd-text-secondary) !important; text-decoration: none; border-radius: 10px;
    transition: color var(--kd-dur-micro) var(--kd-ease), background-color var(--kd-dur-micro) var(--kd-ease);
}
.kd-site-nav__link::after { content: ""; position: absolute; inset-inline: .8rem; bottom: 4px; height: 2px; border-radius: 2px; background: var(--kd-primary); transform: scaleX(0); transition: transform var(--kd-dur) var(--kd-ease); }
.kd-site-nav__link:hover { color: var(--kd-text-heading) !important; background: var(--kd-hover); text-decoration: none; }
.kd-site-nav__link.is-active { color: var(--kd-primary) !important; font-weight: 600; }
.kd-site-nav__link.is-active::after { transform: scaleX(1); }
.kd-site-nav__link:focus-visible { outline: none; box-shadow: var(--kd-ring); }
.kd-site-nav__mobile-cta { display: none; }
.kd-site-header__actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.kd-lang-form { margin: 0; }
.kd-chip-btn {
    display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .35rem .8rem;
    font: 600 .88rem var(--kd-font); color: var(--kd-text-heading); background: var(--kd-surface); border: 1px solid var(--kd-border); border-radius: 12px; cursor: pointer;
    transition: border-color var(--kd-dur-micro) var(--kd-ease), background-color var(--kd-dur-micro) var(--kd-ease);
}
.kd-chip-btn:hover { border-color: var(--kd-primary); background: var(--kd-hover); }
.kd-chip-btn:focus-visible { outline: none; box-shadow: var(--kd-ring); }
.kd-chip-btn i { color: var(--kd-primary); }
/* The shared colour-mode switch and profile menu, restyled to the header (their markup and behaviour are unchanged). */
.kd-site-header .btn-icon-box { margin: 0; }
.kd-site-header .btn-icon-box .box-icon {
    width: 40px; height: 40px; min-width: 40px; display: inline-grid; place-items: center; padding: 0;
    color: var(--kd-text-heading); background: var(--kd-surface); border: 1px solid var(--kd-border); border-radius: 12px; box-shadow: none;
}
.kd-site-header .btn-icon-box .box-icon:hover { border-color: var(--kd-primary); background: var(--kd-hover); }
/* Profile pill: avatar + name + caret, same height/border as the other header controls (overrides the square .box-icon). */
.kd-site-header__profile .profile-dropdown .dropdown-toggle.box-icon {
    width: auto; min-width: var(--kd-hdr-ctl, 40px); gap: .5rem; padding: 0 .55rem 0 .3rem; display: inline-flex; align-items: center;
    color: var(--kd-text-heading); font-weight: 600; font-size: .88rem; white-space: nowrap;
}
.kd-site-header__profile .profile-dropdown .dropdown-toggle i { width: auto; height: auto; }
.kd-site-header__profile .dropdown-toggle::after { margin: 0; border-top-color: var(--kd-text-muted); }
.kd-profile-name { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 991.98px) { .kd-site-header__profile .profile-dropdown .dropdown-toggle.box-icon { width: var(--kd-hdr-ctl, 40px); padding: 0; justify-content: center; } .kd-site-header__profile .dropdown-toggle::after { display: none; } }
.kd-site-header .profile-dropdown .dropdown-menu { min-width: 220px; padding: .4rem; margin-top: .6rem; background: var(--kd-surface); border: 1px solid var(--kd-border); }
.kd-site-header .profile-dropdown .dropdown-item { color: var(--kd-text); border-radius: 10px; padding: .55rem .75rem; }
.kd-site-header .profile-dropdown .dropdown-item i { color: var(--kd-primary); }
.kd-site-header .profile-dropdown .dropdown-item:hover, .kd-site-header .profile-dropdown .dropdown-item:focus { background: var(--kd-hover); color: var(--kd-text-heading); }
.kd-site-header .profile-dropdown .dropdown-divider { border-color: var(--kd-border); margin: .35rem 0; }
.kd-site-header .profile-dropdown .dropdown-item .text-fast-Red { color: var(--kd-danger, #c0392b); }
.kd-site-header .profile-dropdown .dropdown-item i.icon-red { color: var(--kd-danger, #c0392b); }
.kd-site-header .dropdown-menu { border-radius: 14px; border: 1px solid var(--kd-border); background: var(--kd-surface); box-shadow: var(--kd-shadow-lg); animation: kd-pop var(--kd-dur) var(--kd-ease-out); }
.kd-site-header .dropdown-item { color: var(--kd-text); }
.kd-site-header .dropdown-item:hover { background: var(--kd-hover); color: var(--kd-text-heading); }

.kd-nav-toggle { display: none; width: 44px; height: 44px; place-items: center; padding: 0; color: var(--kd-text-heading); background: var(--kd-surface); border: 1px solid var(--kd-border); border-radius: 12px; cursor: pointer; }
.kd-nav-toggle:focus-visible { outline: none; box-shadow: var(--kd-ring); }
.kd-nav-toggle__bars { position: relative; width: 18px; height: 14px; display: block; }
.kd-nav-toggle__bars span { position: absolute; inset-inline: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--kd-dur) var(--kd-ease), opacity var(--kd-dur-micro) var(--kd-ease), top var(--kd-dur) var(--kd-ease); }
.kd-nav-toggle__bars span:nth-child(1) { top: 0; } .kd-nav-toggle__bars span:nth-child(2) { top: 6px; } .kd-nav-toggle__bars span:nth-child(3) { top: 12px; }
.kd-nav-toggle[aria-expanded="true"] .kd-nav-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.kd-nav-toggle[aria-expanded="true"] .kd-nav-toggle__bars span:nth-child(2) { opacity: 0; }
.kd-nav-toggle[aria-expanded="true"] .kd-nav-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 1199.98px) {
    .kd-nav-toggle { display: inline-grid; }
    .kd-site-nav {
        position: absolute; inset-inline: 0; top: calc(100% + 8px); flex-direction: column; gap: .75rem; padding: .75rem;
        background: var(--kd-surface); border: 1px solid var(--kd-border); border-radius: 18px; box-shadow: var(--kd-shadow-lg);
        opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top center;
        transition: opacity var(--kd-dur) var(--kd-ease), transform var(--kd-dur) var(--kd-ease-out), visibility 0s linear var(--kd-dur);
        max-height: calc(100vh - 100px); overflow-y: auto;
    }
    .kd-site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .kd-site-nav__links { flex-direction: column; align-items: stretch; gap: .15rem; }
    .kd-site-nav__link { width: 100%; min-height: 46px; padding-inline: 1rem; font-size: 1rem; }
    .kd-site-nav__link::after { display: none; }
    .kd-site-nav__link.is-active { background: var(--kd-primary-soft); }
    .kd-site-nav__mobile-cta { display: grid; gap: .5rem; padding-top: .5rem; border-top: 1px solid var(--kd-border); }
    .kd-site-header__bar { justify-content: space-between; }
}
@media (max-width: 575.98px) {
    .kd-site-header { padding-top: 8px; }
    .kd-site-header__bar { min-height: 58px; padding-inline: 12px 8px; gap: .4rem; border-radius: 16px; }
    .kd-site-header__brand img { height: 34px; }
    .kd-site-header__login span, .kd-chip-btn span { display: none; }
    .kd-site-header__login { width: 40px; padding: 0; min-height: 40px; }
    .kd-chip-btn { width: 40px; padding: 0; justify-content: center; }
    .kd-site-header__actions { gap: .35rem; }
}
@media (max-width: 359.98px) {
    .kd-site-header__brand img { height: 28px; }
    .kd-site-header__theme { display: none; }
}

/* ======================= Hero ======================= */
.kd-hero { position: relative; isolation: isolate; padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0 clamp(3rem, 2rem + 4vw, 5.5rem); margin-top: -88px; padding-top: calc(88px + clamp(2rem, 1rem + 4vw, 4.5rem));
    background: radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, var(--kd-secondary) 14%, transparent), transparent 60%),
                radial-gradient(900px 500px at 0% 20%, color-mix(in srgb, var(--kd-primary) 9%, transparent), transparent 60%),
                linear-gradient(180deg, color-mix(in srgb, var(--kd-primary) 5%, var(--kd-canvas-bg)), var(--kd-canvas-bg)); }
.kd-hero__blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); opacity: .5; pointer-events: none; }
.kd-hero__blob--a { width: 260px; height: 260px; inset-inline-end: -80px; bottom: 6%; background: color-mix(in srgb, var(--kd-accent) 18%, transparent); }
.kd-hero__blob--b { width: 180px; height: 180px; inset-inline-start: 38%; top: 14%; background: color-mix(in srgb, var(--kd-secondary) 12%, transparent); }
.kd-hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 1rem + 3vw, 4rem); }
.kd-hero__copy { display: grid; gap: 1.1rem; justify-items: start; }
.kd-hero__title { margin: 0; font-size: var(--kd-fs-display); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: var(--kd-text-heading); }
html[lang="en"] .kd-hero__title { font-weight: 700; letter-spacing: -.02em; }
.kd-hero__title-accent { display: block; color: var(--kd-secondary-strong); }
.kd-hero__copy .kd-lead { max-width: 56ch; margin: 0; }
.kd-hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.kd-hero__trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; margin: .25rem 0 0; padding: 0; font-size: var(--kd-fs-sm); color: var(--kd-text-secondary); }
.kd-hero__trust li { display: inline-flex; align-items: center; gap: .45rem; }
.kd-hero__trust i { color: var(--kd-success); }

/* Product preview (decorative) */
.kd-hero__visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.kd-hero__sun { position: absolute; inset-inline-start: 2%; top: -6%; width: 64px; height: 64px; fill: none; stroke: var(--kd-accent); stroke-width: 3.5; stroke-linecap: round; animation: kd-spin-slow 28s linear infinite; }
.kd-hero__sun circle { fill: none; }
.kd-preview {
    position: relative; width: min(100%, 560px); aspect-ratio: 16 / 10.5; display: grid; grid-template-columns: 64px 1fr; overflow: hidden;
    background: var(--kd-surface); border: 1px solid var(--kd-border); border-radius: 20px; box-shadow: 0 30px 60px rgba(var(--kd-shadow-color), .16), 0 8px 18px rgba(var(--kd-shadow-color), .06);
    animation: kd-fade-up 700ms var(--kd-ease-out) 200ms both;
    direction: ltr; /* an app window keeps one layout; the page around it mirrors */
}
[dir="rtl"] .kd-preview { direction: rtl; }
.kd-preview__side { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0; background: var(--kd-navy-900); }
.kd-preview__side img { width: 34px; height: auto; margin-bottom: 6px; }
.kd-preview__side span { width: 38px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #8FA6C2; font-size: .85rem; }
.kd-preview__side span.is-on { background: var(--kd-blue-600); color: #fff; }
.kd-preview__main { display: grid; grid-template-rows: auto auto 1fr; gap: 12px; padding: 14px; background: var(--kd-canvas-bg); min-width: 0; }
.kd-preview__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kd-preview__search { flex: 1; max-width: 55%; height: 22px; border-radius: 8px; background: var(--kd-surface); border: 1px solid var(--kd-border); }
.kd-preview__avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--kd-accent), #FFC46B); }
.kd-preview__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kd-preview__kpis div { display: grid; gap: 6px; padding: 10px; border-radius: 12px; background: var(--kd-surface); border: 1px solid var(--kd-border); }
.kd-preview__kpis i { font-size: .8rem; }
.kd-preview__kpis b { display: block; height: 10px; width: 60%; border-radius: 4px; background: var(--kd-text-heading); opacity: .85; }
.kd-preview__kpis s { display: block; height: 6px; width: 85%; border-radius: 4px; background: var(--kd-border-strong); text-decoration: none; }
.kd-preview__panels { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; min-height: 0; }
.kd-preview__chart, .kd-preview__list { border-radius: 12px; background: var(--kd-surface); border: 1px solid var(--kd-border); padding: 10px; }
.kd-preview__chart svg { width: 100%; height: 100%; display: block; }
.kd-preview__line { fill: none; stroke: var(--kd-secondary); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: kd-draw 1.6s var(--kd-ease-out) .7s forwards; }
@keyframes kd-draw { to { stroke-dashoffset: 0; } }
.kd-preview__list { list-style: none; margin: 0; display: grid; align-content: start; gap: 10px; }
.kd-preview__list li { display: flex; align-items: center; gap: 8px; }
.kd-preview__list span { width: 22px; height: 22px; flex: none; border-radius: 8px; background: var(--kd-primary-soft); }
.kd-preview__list li:nth-child(2) span { background: var(--kd-secondary-soft); }
.kd-preview__list li:nth-child(3) span { background: var(--kd-accent-soft); }
.kd-preview__list b { flex: 1; height: 8px; border-radius: 4px; background: var(--kd-border-strong); }
.kd-phone {
    position: absolute; inset-inline-end: -2%; bottom: -4%; width: 150px; padding: 16px 12px 14px; display: grid; justify-items: center; gap: 10px;
    background: var(--kd-surface); border: 6px solid var(--kd-navy-900); border-radius: 28px; box-shadow: var(--kd-shadow-lg);
    animation: kd-fade-up 700ms var(--kd-ease-out) 450ms both, kd-float 7s ease-in-out 1.4s infinite;
}
.kd-phone__notch { width: 46px; height: 6px; border-radius: 6px; background: var(--kd-navy-900); margin-top: -6px; }
.kd-phone img { width: 38px; height: auto; }
.kd-phone__avatar { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 1.3rem; background: linear-gradient(135deg, var(--kd-secondary), var(--kd-primary)); }
.kd-phone__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.kd-phone__tiles span { height: 40px; display: grid; place-items: center; border-radius: 12px; color: #fff; font-size: .85rem; }
.kd-toast-card {
    position: absolute; inset-inline-start: 2%; bottom: 0; max-width: 270px; display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem;
    background: var(--kd-surface); border: 1px solid var(--kd-border); border-radius: 16px; box-shadow: var(--kd-shadow-lg);
    animation: kd-fade-up 600ms var(--kd-ease-out) 900ms both, kd-float 8s ease-in-out 2s infinite;
}
.kd-toast-card .kd-icon-tile { width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; }
.kd-toast-card b { display: block; font-size: .85rem; color: var(--kd-text-heading); line-height: 1.35; }
.kd-toast-card small { display: block; font-size: .76rem; color: var(--kd-text-muted); }

@media (max-width: 991.98px) {
    .kd-hero__grid { grid-template-columns: 1fr; }
    .kd-hero__copy { justify-items: center; text-align: center; }
    .kd-hero__ctas, .kd-hero__trust { justify-content: center; }
    .kd-hero__visual { min-height: 0; padding: 1rem 0 2.5rem; }
}
@media (max-width: 575.98px) {
    .kd-hero__ctas { display: grid; width: 100%; }
    .kd-hero__ctas .kd-btn { width: 100%; }
    .kd-hero__trust { display: grid; justify-items: center; gap: .4rem; }
    .kd-preview { grid-template-columns: 44px 1fr; border-radius: 14px; }
    .kd-preview__side span { width: 30px; height: 28px; }
    .kd-preview__side span:nth-of-type(n+4) { display: none; }
    .kd-preview__main { padding: 10px; gap: 8px; }
    .kd-preview__kpis { grid-template-columns: repeat(2, 1fr); }
    .kd-preview__kpis div:nth-child(n+3) { display: none; }
    .kd-phone { width: 104px; padding: 12px 8px; border-width: 5px; border-radius: 22px; inset-inline-end: -1%; bottom: -2%; }
    .kd-phone__avatar { width: 38px; height: 38px; font-size: 1rem; }
    .kd-phone__tiles span { height: 28px; }
    .kd-toast-card { max-width: 210px; padding: .55rem .7rem; bottom: -6%; }
    .kd-toast-card small { display: none; }
    .kd-hero__sun { width: 44px; height: 44px; top: -10%; }
}

/* ======================= Sections ======================= */
.kd-section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.kd-section--tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.kd-section--tint { background: var(--kd-surface); border-block: 1px solid var(--kd-border); }
.kd-section--warm { background: linear-gradient(180deg, var(--kd-warm-bg), color-mix(in srgb, var(--kd-warm-bg) 60%, var(--kd-canvas-bg))); }
.kd-center-link { display: flex; justify-content: center; margin-top: var(--kd-space-6); }
.kd-page-hero { padding: calc(88px + clamp(1.5rem, 1rem + 2vw, 3rem)) 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); margin-top: -88px;
    background: radial-gradient(900px 400px at 90% -20%, color-mix(in srgb, var(--kd-secondary) 14%, transparent), transparent 60%), linear-gradient(180deg, color-mix(in srgb, var(--kd-primary) 6%, var(--kd-canvas-bg)), var(--kd-canvas-bg)); }
.kd-page-hero .kd-section-head { margin-bottom: 0; }
.kd-page-hero .kd-h1 { font-size: var(--kd-fs-h1); }

/* Feature cards */
.kd-feature-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.kd-feature-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.35rem; height: 100%; }
.kd-feature-card p { margin: .35rem 0 0; font-size: var(--kd-fs-sm); color: var(--kd-text-secondary); line-height: 1.6; }
.kd-feature-card:hover .kd-icon-tile { transform: scale(1.06) rotate(-3deg); }
.kd-feature-card .kd-icon-tile { transition: transform var(--kd-dur) var(--kd-ease); }

/* Steps */
.kd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: none; }
.kd-steps li { position: relative; display: grid; gap: .6rem; justify-items: start; }
.kd-steps li p { margin: 0; color: var(--kd-text-secondary); font-size: var(--kd-fs-sm); }
.kd-steps__n { position: absolute; inset-inline-end: 1.25rem; top: 1rem; font-size: 2.6rem; font-weight: 800; line-height: 1; color: color-mix(in srgb, var(--kd-primary) 12%, transparent); }

/* Pricing */
.kd-price-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); align-items: stretch; max-width: 1080px; margin-inline: auto; }
.kd-price-card {
    position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.6rem 1.4rem 1.4rem;
    background: var(--kd-surface); border: 1px solid var(--kd-border); border-radius: var(--kd-radius-lg); box-shadow: var(--kd-shadow-sm);
    transition: transform var(--kd-dur) var(--kd-ease), box-shadow var(--kd-dur) var(--kd-ease), border-color var(--kd-dur) var(--kd-ease);
}
.kd-price-card:hover { transform: translateY(-4px); box-shadow: var(--kd-shadow-lg); }
.kd-price-card.is-featured { border: 2px solid var(--kd-secondary); box-shadow: 0 18px 40px color-mix(in srgb, var(--kd-secondary) 22%, transparent); }
.kd-price-card__ribbon { position: absolute; top: -14px; inset-inline-start: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .9rem; font-size: var(--kd-fs-xs); font-weight: 700; color: #fff; background: var(--kd-teal-600); border-radius: var(--kd-radius-pill); white-space: nowrap; }
[dir="rtl"] .kd-price-card__ribbon { transform: translateX(50%); }
.kd-price-card__head { display: flex; gap: .85rem; align-items: flex-start; }
.kd-price-card__desc { margin: .25rem 0 0 !important; font-size: var(--kd-fs-sm); color: var(--kd-text-muted); }
.kd-price-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; padding-bottom: .9rem; border-bottom: 1px dashed var(--kd-border); }
.kd-price-card__price strong { font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--kd-text-heading); font-variant-numeric: tabular-nums; }
.kd-price-card__cur { font-weight: 700; color: var(--kd-text-heading); }
.kd-price-card__cycle { color: var(--kd-text-muted); font-size: var(--kd-fs-sm); }
.kd-price-card__fee { margin: -.4rem 0 0 !important; font-size: var(--kd-fs-xs); color: var(--kd-text-muted); }
.kd-price-card__features { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: var(--kd-fs-sm); }
.kd-price-card__features li { display: flex; gap: .55rem; align-items: baseline; color: var(--kd-text); }
.kd-price-card__features i { color: var(--kd-success); width: 1rem; }
.kd-price-card__features li.is-off { color: var(--kd-text-muted); }
.kd-price-card__features li.is-off i { color: var(--kd-text-muted); }
.kd-price-card__features li.is-highlight { font-weight: 600; }
.kd-price-card__actions { margin-top: auto; display: grid; gap: .5rem; }
.kd-price-card__alt { font-size: var(--kd-fs-xs); text-align: center; color: var(--kd-primary); display: flex; align-items: center; justify-content: center; min-height: 24px; } /* P6: 24 px target */
.kd-pricing-empty { max-width: 720px; margin-inline: auto; }
.kd-pricing-empty .kd-hero__ctas { justify-content: center; margin-top: .5rem; }

.kd-assurance { list-style: none; margin: var(--kd-space-6) auto 0; padding: 1.25rem; max-width: 1080px; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    background: color-mix(in srgb, var(--kd-secondary) 7%, var(--kd-surface)); border: 1px solid color-mix(in srgb, var(--kd-secondary) 20%, var(--kd-border)); border-radius: var(--kd-radius-lg); }
.kd-assurance li { display: flex; gap: .85rem; align-items: center; }
.kd-assurance b { display: block; color: var(--kd-text-heading); }
.kd-assurance small { display: block; color: var(--kd-text-secondary); font-size: var(--kd-fs-xs); line-height: 1.5; }

/* CTA band */
.kd-cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    color: #DCE7F3; background: radial-gradient(500px 240px at 100% 0%, rgba(31, 160, 163, .35), transparent 70%), linear-gradient(120deg, var(--kd-navy-900), var(--kd-navy-700)); border-radius: var(--kd-radius-xl); box-shadow: var(--kd-shadow-lg); }
.kd-cta-band .kd-h2 { color: #fff; }
.kd-cta-band p { margin: .4rem 0 0; color: #C2D3E6; }
.kd-cta-band__mark { width: 96px; height: auto; }
.kd-cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.kd-btn--on-dark { --_bg: rgba(255,255,255,.08); --_fg: #fff; --_bd: rgba(255,255,255,.35); }
.kd-btn--on-dark:hover { --_bg: rgba(255,255,255,.16); --_fg: #fff; }
@media (max-width: 991.98px) {
    .kd-cta-band { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .kd-cta-band__mark { width: 72px; }
    .kd-cta-band__actions { justify-content: center; }
}
@media (max-width: 575.98px) { .kd-cta-band__actions { display: grid; width: 100%; } }

/* ======================= Footer ======================= */
.kd-site-footer { margin-top: 0; padding: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 1.25rem; background: var(--kd-surface); border-top: 1px solid var(--kd-border); color: var(--kd-text-secondary); font-family: var(--kd-font); font-size: var(--kd-fs-sm); }
.kd-site-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.kd-site-footer__brand img { height: 44px; width: auto; margin-bottom: .9rem; }
.kd-site-footer__brand p { max-width: 34ch; margin: 0; }
.kd-site-footer__title { font-size: .95rem; font-weight: 700; color: var(--kd-text-heading); margin: 0 0 .85rem; }
.kd-site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.kd-site-footer a:not(.kd-btn) { color: var(--kd-text-secondary); text-decoration: none; transition: color var(--kd-dur-micro) var(--kd-ease); }
.kd-site-footer a:not(.kd-btn):hover { color: var(--kd-primary); }
.kd-site-footer__cta p { margin: 0 0 .9rem; }
.kd-site-footer__legal { margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--kd-border); font-size: var(--kd-fs-xs); color: var(--kd-text-muted); }
@media (max-width: 991.98px) { .kd-site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .kd-site-footer__grid { grid-template-columns: 1fr; } }

/* ======================= Public forms ======================= */
.kd-form-layout { display: grid; gap: clamp(1.25rem, 1rem + 2vw, 2.5rem); grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.kd-form-card { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.kd-aside { display: grid; gap: 1rem; position: sticky; top: 96px; }
.kd-aside .kd-card { padding: 1.25rem; }
.kd-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.kd-aside li { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--kd-fs-sm); color: var(--kd-text-secondary); }
.kd-aside li i { color: var(--kd-secondary-strong); margin-top: .25rem; }
.kd-aside b { color: var(--kd-text-heading); }
@media (max-width: 991.98px) { .kd-form-layout { grid-template-columns: 1fr; } .kd-aside { position: static; } }

/* Book a demo: day chips, time options, steps (feature 29). Works without script: every day's times are listed. */
.kd-step__n { display: inline-grid; place-items: center; inline-size: 1.75rem; block-size: 1.75rem; border-radius: 50%; background: var(--kd-primary); color: #fff; font-size: .9rem; font-weight: 700; flex: none; }
.kd-form [hidden], .kd-day-chips[hidden], .kd-slot-pick[hidden], .kd-fieldset[hidden] { display: none !important; }
.kd-slot-zone { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin: 0; }
.kd-day-chips { display: flex; gap: .5rem; overflow-x: auto; padding-block: .25rem .5rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.kd-day-chip { flex: none; min-height: 44px; padding: .4rem 1.1rem; border-radius: var(--kd-radius-pill); border: 1px solid var(--kd-border); background: var(--kd-surface); color: var(--kd-text); font-weight: 600; cursor: pointer; scroll-snap-align: start;
    transition: background var(--kd-dur-micro) var(--kd-ease), border-color var(--kd-dur-micro) var(--kd-ease); }
.kd-day-chip:hover { background: var(--kd-hover); }
.kd-day-chip.is-active { background: var(--kd-primary); border-color: var(--kd-primary); color: #fff; }
.kd-day-chip:focus-visible { outline: 3px solid var(--kd-focus); outline-offset: 2px; }
.kd-slot-pick { border: 0; margin: 0 0 1rem; padding: 0; min-inline-size: 0; }
.kd-slot-pick__day { float: none; width: auto; margin: 0 0 .65rem; padding: 0; font-size: 1rem; font-weight: 700; color: var(--kd-text-heading); }
.kd-slot-grid { display: grid; gap: .65rem; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.kd-slot-opt { position: relative; }
.kd-slot-opt__input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.kd-slot-opt__label { display: grid; gap: .15rem; align-content: center; min-height: 44px; padding: .7rem 1rem; color: var(--kd-text-heading); background: var(--kd-surface); border: 1px solid var(--kd-border); border-radius: var(--kd-radius); cursor: pointer;
    transition: border-color var(--kd-dur-micro) var(--kd-ease), background var(--kd-dur-micro) var(--kd-ease), box-shadow var(--kd-dur) var(--kd-ease); }
.kd-slot-opt__label b { font-size: 1.05rem; }
.kd-slot-opt__label small { color: var(--kd-text-muted); font-size: var(--kd-fs-xs); }
.kd-slot-opt:hover .kd-slot-opt__label { border-color: var(--kd-primary); }
.kd-slot-opt__input:checked + .kd-slot-opt__label { border-color: var(--kd-primary); background: var(--kd-primary-soft); box-shadow: 0 0 0 1px var(--kd-primary); }
.kd-slot-opt__input:focus-visible + .kd-slot-opt__label { outline: 3px solid var(--kd-focus); outline-offset: 2px; }
.kd-slot-opt--none .kd-slot-opt__label { grid-auto-flow: column; justify-content: start; }

/* Comparison table */
.kd-compare { min-width: 640px; }
.kd-compare th:first-child, .kd-compare td:first-child { position: sticky; inset-inline-start: 0; background: var(--kd-surface); z-index: 1; }
.kd-compare thead th { text-align: center; font-size: var(--kd-fs-sm); color: var(--kd-text-heading); background: var(--kd-surface-sunken); }
.kd-compare thead th:first-child { background: var(--kd-surface-sunken); }
.kd-compare td { text-align: center; }
.kd-compare td:first-child { text-align: start; font-weight: 500; }
.kd-compare .fa-check { color: var(--kd-success); }
.kd-compare .fa-minus { color: var(--kd-text-muted); }
.kd-scroll-hint { display: none; font-size: var(--kd-fs-xs); color: var(--kd-text-muted); margin-bottom: .5rem; }
@media (max-width: 767.98px) { .kd-scroll-hint { display: block; } }

/* Result / done */
.kd-result { max-width: 640px; margin-inline: auto; text-align: center; display: grid; justify-items: center; gap: 1rem; padding: clamp(1.75rem, 1rem + 3vw, 3rem); }
.kd-result__icon { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; font-size: 2.2rem; color: var(--kd-success); background: var(--kd-success-soft); animation: kd-pop 420ms var(--kd-ease-out) both; }
.kd-result__icon.is-warning { color: var(--kd-warning); background: var(--kd-warning-soft); }
.kd-result__ref { padding: .5rem 1rem; font-weight: 600; background: var(--kd-surface-sunken); border-radius: var(--kd-radius); }

@media (prefers-reduced-motion: reduce) {
    .kd-hero__sun, .kd-phone, .kd-toast-card, .kd-preview { animation: none; }
    .kd-preview__line { animation: none; stroke-dashoffset: 0; }
    .kd-price-card:hover { transform: none; }
}
.kd-compare-head { margin-top: var(--kd-space-8); }
.kd-form-layout > .kd-span-all { grid-column: 1 / -1; }
.justify-items-center { justify-items: center; }
.kd-booking-slot { display: flex; gap: 1rem; align-items: flex-start; }
.kd-mini-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.kd-mini-steps li { display: flex; gap: .8rem; align-items: flex-start; }
.kd-mini-steps li > span { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; font-size: .85rem; color: var(--kd-on-primary); background: var(--kd-primary); }
.kd-mini-steps b { display: block; color: var(--kd-text-heading); }
.kd-mini-steps small { display: block; color: var(--kd-text-muted); }

/* ---- Feature 17 (P3): header controls — one size, one radius, one border for Language, Theme, Sign in and the menu button ---- */
.kd-site-header { --kd-hdr-ctl: 40px; }
.kd-site-header .kd-chip-btn, .kd-site-header .btn-icon-box .box-icon, .kd-site-header__login, .kd-nav-toggle {
    height: var(--kd-hdr-ctl); min-height: var(--kd-hdr-ctl); border-radius: 12px;
}
.kd-site-header .btn-icon-box .box-icon, .kd-nav-toggle { width: var(--kd-hdr-ctl); min-width: var(--kd-hdr-ctl); }
.kd-site-header__login { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: 0 .95rem; font-size: .88rem; font-weight: 600; }
.kd-site-header .btn-icon-box .box-icon:focus-visible, .kd-site-header__login:focus-visible { outline: none; box-shadow: var(--kd-ring); }
/* Language and theme are settings, Sign in is the action: a slightly wider gap separates them. */
.kd-site-header__theme + .kd-site-header__login, .kd-site-header__theme + .kd-site-header__profile { margin-inline-start: .35rem; }
@media (max-width: 575.98px) {
    .kd-site-header { --kd-hdr-ctl: 42px; }
    .kd-site-header__login { width: var(--kd-hdr-ctl); padding: 0; }
    .kd-site-header .kd-chip-btn { width: var(--kd-hdr-ctl); }
    .kd-site-header__theme + .kd-site-header__login { margin-inline-start: 0; }
}
@media (max-width: 359.98px) { .kd-site-header { --kd-hdr-ctl: 38px; } }


/* ---- Feature 17 P4: "What you get today", Kuwait / Egypt price choice, published media gallery ------------------------- */
.kd-today-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.kd-today-card { display: flex; gap: 1rem; align-items: flex-start; }
.kd-today-card .kd-h3 { margin: 0 0 .3rem; }
.kd-today-card p { margin: 0; color: var(--kd-text-secondary); }

.kd-currency { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1rem; margin: 0 auto var(--kd-space-6); }
.kd-currency__label { display: inline-flex; align-items: center; gap: .45rem; color: var(--kd-text-secondary); font-weight: 600; font-size: var(--kd-fs-sm); }
.kd-currency__options { display: inline-flex; padding: .3rem; gap: .25rem; border-radius: var(--kd-radius-pill); background: var(--kd-surface); border: 1px solid var(--kd-border); box-shadow: var(--kd-shadow-sm); }
.kd-currency .kd-currency__opt { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem 1.1rem; border-radius: var(--kd-radius-pill); font-weight: 600; color: var(--kd-text); text-decoration: none; transition: background var(--kd-dur-micro) var(--kd-ease), color var(--kd-dur-micro) var(--kd-ease); }
.kd-currency .kd-currency__opt:hover { background: var(--kd-hover); color: var(--kd-text-heading); }
.kd-currency .kd-currency__opt:focus-visible { outline: none; box-shadow: var(--kd-ring); }
/* Scoped under .kd-currency so it outranks ".kd-public a:not(.kd-btn)" (link colour). */
.kd-currency .kd-currency__opt.is-active { background: var(--kd-primary); color: var(--kd-on-primary); }

.kd-media-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.kd-media-card { margin: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--kd-radius-lg); background: var(--kd-surface); border: 1px solid var(--kd-border); box-shadow: var(--kd-shadow-sm); transition: transform var(--kd-dur) var(--kd-ease), box-shadow var(--kd-dur) var(--kd-ease); }
.kd-media-card:hover { transform: translateY(-3px); box-shadow: var(--kd-shadow); }
.kd-media-card__frame { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--kd-surface-sunken); border-bottom: 1px solid var(--kd-border); }
.kd-media-card__frame img, .kd-media-card__frame video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.kd-media-card__frame:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--kd-focus); }
.kd-media-card__frame--link { display: grid; place-items: center; }
.kd-media-card__frame--link img { position: absolute; inset: 0; }
.kd-media-card__play { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--kd-accent); color: var(--kd-on-accent); font-size: 1.6rem; box-shadow: var(--kd-shadow-lg); }
.kd-media-card__body { padding: 1rem 1.15rem 1.2rem; display: grid; gap: .35rem; }
.kd-media-card__body .kd-h3 { margin: .2rem 0 0; }
.kd-media-card__body p { margin: 0; color: var(--kd-text-secondary); }
.kd-media-card__badge { justify-self: start; gap: .35rem; }
@media (max-width: 575.98px) {
  .kd-currency__options { width: 100%; }
  .kd-currency__opt { flex: 1 1 0; justify-content: center; padding-inline: .6rem; }
  .kd-today-card { flex-direction: column; gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .kd-media-card, .kd-media-card:hover { transition: none; transform: none; } }
