/* Chairly — platform marketing site (home, pricing, sign-up). Light & dark, RTL, no framework. */
:root {
    --bg: #fbfaff; --bg-2: #f3f0fd; --card: #ffffff; --ink: #150f2b; --text: #3d3656; --muted: #736c8d; --line: #e8e4f4;
    --p: #7c5cff; --p2: #6a48f5; --a: #ff7a59; --t: #18b4a5; --p-soft: #efeaff; --a-soft: #ffeee8;
    --shadow: 0 30px 60px -30px rgba(40, 20, 100, .35); --shadow-sm: 0 8px 24px -14px rgba(40, 20, 100, .3);
    --r: 22px; --wrap: 1200px; --g: clamp(16px, 3vw, 32px);
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color-scheme: light;
}
:root[data-theme="dark"] { --bg: #0c0919; --bg-2: #130f25; --card: #17122b; --ink: #f4f1ff; --text: #cfc8e8; --muted: #9b93b9; --line: #29223f; --p-soft: #241b48; --a-soft: #3a2119; --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); --shadow-sm: 0 8px 24px -14px rgba(0, 0, 0, .6); color-scheme: dark; }
@media (prefers-color-scheme: dark) {
    :root[data-auto] { --bg: #0c0919; --bg-2: #130f25; --card: #17122b; --ink: #f4f1ff; --text: #cfc8e8; --muted: #9b93b9; --line: #29223f; --p-soft: #241b48; --a-soft: #3a2119; --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); --shadow-sm: 0 8px 24px -14px rgba(0, 0, 0, .6); color-scheme: dark; }
}
[dir="rtl"] { --font: 'Cairo', 'Plus Jakarta Sans', system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--p); }
/* Links that are components (rows, chips, cards, bars, pictures) never underline: only links inside text do */
a:is(.row, .rowlink, .chip, .tag, .hbar, .stat, .panel, .card, .badge, .pill, .avatar, .brand, .wa-float, .skip, .proof__img, .page-card__thumb, .portal-kid), a:is(.row, .rowlink, .chip, .tag, .hbar, .stat, .panel, .card, .badge, .pill, .avatar, .brand, .wa-float, .skip, .proof__img, .page-card__thumb, .portal-kid):hover,
a:has(div, p, h2, h3, h4, img, table, .avatar, .avatar-lg), a:has(div, p, h2, h3, h4, img, table, .avatar, .avatar-lg):hover,
.portal-bar__kids a, .portal-bar__kids a:hover { text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.08; letter-spacing: -.03em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--p) 50%, transparent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.i { flex: none; }
/* Icons inside text (headings, labels, cells, links…) stay on the line of their text; in flex rows they are flex items anyway */
:where(h1, h2, h3, h4, h5, p, label, legend, dt, dd, th, td, li, small, strong, b, em, span, a, summary) > .i { display: inline-block; vertical-align: -.2em; }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: var(--bg); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip:focus { clip-path: none; width: auto; height: auto; }
.mk-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--g); }
.mk-muted { color: var(--muted); }
.mk-center { text-align: center; }
.mk-hp { position: absolute; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; }

/* Buttons */
.mk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s; }
.mk-btn:active { transform: translateY(1px); }
.mk-btn--primary { background: linear-gradient(135deg, var(--p), var(--p2)); color: #fff; box-shadow: 0 14px 30px -14px var(--p); }
.mk-btn--primary:hover { box-shadow: 0 20px 40px -14px var(--p); transform: translateY(-1px); }
.mk-btn--ghost { background: color-mix(in srgb, var(--card) 70%, transparent); border-color: var(--line); color: var(--ink); backdrop-filter: blur(8px); }
.mk-btn--ghost:hover { border-color: color-mix(in srgb, var(--p) 50%, var(--line)); }
.mk-btn--soft { background: var(--p-soft); color: var(--p); }
.mk-btn--soft:hover { background: color-mix(in srgb, var(--p) 20%, var(--card)); }
.mk-btn--white { background: #fff; color: #150f2b; }
.mk-btn--outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.mk-btn--outline-light:hover { background: rgba(255,255,255,.12); }
.mk-btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.mk-btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.mk-btn--block { width: 100%; }
.mk-icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.mk-icon-btn:hover { border-color: var(--p); color: var(--p); }

/* Header */
.mk-hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(170%) blur(18px); -webkit-backdrop-filter: saturate(170%) blur(18px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.mk-hdr.is-scrolled { border-color: var(--line); }
.mk-hdr__in { display: flex; align-items: center; gap: 18px; min-height: 74px; }
.mk-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 21px; letter-spacing: -.03em; text-decoration: none; flex: none; }
.mk-brand__img { max-height: 38px; width: auto; }
.mk-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.mk-nav a { padding: 8px 13px; border-radius: 999px; color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; }
.mk-nav a:not(.mk-btn):hover { color: var(--ink); background: var(--p-soft); }
.mk-nav__login, .mk-nav__cta { display: none !important; }
.mk-hdr__tools { display: flex; align-items: center; gap: 8px; }
.mk-langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg-2); }
.mk-langs a { padding: 4px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: var(--muted); text-decoration: none; }
.mk-langs a.is-active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.mk-burger { display: none; width: 44px; height: 44px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.mk-burger span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.mk-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mk-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mk-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.mk-hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 40px; overflow: hidden; }
.mk-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob--a { width: 520px; height: 520px; background: color-mix(in srgb, var(--p) 55%, transparent); top: -180px; inset-inline-end: -120px; }
.blob--b { width: 460px; height: 460px; background: color-mix(in srgb, var(--a) 45%, transparent); bottom: -220px; inset-inline-start: -160px; }
.mk-grid-lines { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 70%); opacity: .55; }
.mk-hero__in { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(30px, 4vw, 60px); align-items: center; }
.mk-hero__in > * { min-width: 0; }
.mk-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-size: 13.5px; font-weight: 600; text-decoration: none; box-shadow: var(--shadow-sm); }
.mk-pill__new { padding: 3px 9px; border-radius: 999px; background: linear-gradient(135deg, var(--p), var(--a)); color: #fff; font-size: 12px; font-weight: 800; }
.mk-hero h1 { margin-top: 22px; font-size: clamp(42px, 6.2vw, 80px); font-weight: 800; letter-spacing: -.045em; line-height: .98; }
.mk-grad { background: linear-gradient(100deg, var(--p) 10%, var(--a) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: 'Fraunces', serif; font-style: italic; font-weight: 600; letter-spacing: -.02em; padding-inline-end: .02em; }
[dir="rtl"] .mk-grad { font-family: inherit; font-style: normal; font-weight: 800; }
[lang="ar"] .mk-grad { background: none; color: var(--p); -webkit-text-fill-color: currentColor; } /* gradient-clipped text drops Arabic dots in Chrome: solid colour in Arabic */
.mk-hero__sub { margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 560px; }
.mk-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.mk-hero__trust { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.mk-types { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: clamp(40px, 6vw, 70px) 0 0; padding: 0; list-style: none; }
.mk-types li { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow-sm); }
.mk-types .i { color: var(--p); }

/* Hero mockup */
.mk-mock { position: relative; padding: 30px 10px 40px; }
.mk-app { border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transform: perspective(1600px) rotateY(-6deg) rotateX(3deg); transform-origin: left center; }
[dir="rtl"] .mk-app { transform: perspective(1600px) rotateY(6deg) rotateX(3deg); transform-origin: right center; }
.mk-app__bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); }
.mk-app__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff6159; }
.mk-app__bar i:nth-child(2) { background: #ffbd2e; } .mk-app__bar i:nth-child(3) { background: #28c941; }
.mk-app__bar span { margin-inline-start: 10px; }
.mk-app__body { display: grid; grid-template-columns: 48px 1fr; min-height: 340px; }
.mk-app__side { background: #17112b; display: grid; align-content: start; justify-items: center; gap: 12px; padding: 14px 0; }
.mk-app__side b { width: 24px; height: 24px; border-radius: 8px; background: linear-gradient(135deg, var(--p), var(--a)); margin-bottom: 6px; }
.mk-app__side span { width: 22px; height: 6px; border-radius: 3px; background: #3a2f5c; }
.mk-app__side span.on { background: #9479ff; }
.mk-cal { display: grid; grid-template-rows: auto 1fr; }
.mk-cal__head { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.mk-cal__head span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 700; font-size: 13px; color: var(--ink); border-inline-end: 1px solid var(--line); }
.mk-cal__head em { width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: #fff; font-style: normal; font-size: 11px; display: grid; place-items: center; }
.mk-cal__grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 12.5%; }
.mk-cal__col { position: relative; border-inline-end: 1px solid var(--line); min-height: 300px; }
.mk-ev { position: absolute; inset-inline: 5px; top: var(--t); height: var(--h); border-radius: 9px; padding: 6px 8px; background: color-mix(in srgb, var(--c) 16%, var(--card)); border-inline-start: 3px solid var(--c); font-size: 11px; line-height: 1.3; overflow: hidden; }
.mk-ev b { display: block; color: var(--ink); font-size: 11.5px; }
.mk-ev span { color: var(--muted); }
.mk-ev--done { opacity: .6; }
.mk-ev--new { box-shadow: 0 0 0 2px var(--c), 0 10px 20px -10px var(--c); animation: evpop 3.2s ease-in-out infinite; }
@keyframes evpop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.mk-off { position: absolute; inset-inline: 5px; top: var(--t); height: var(--h); border-radius: 9px; background: repeating-linear-gradient(135deg, var(--bg-2) 0 6px, transparent 6px 12px); border: 1px dashed var(--line); }
.mk-now { position: absolute; inset-inline: 0; top: var(--t); height: 2px; background: #e0364f; }
.mk-now::before { content: ""; position: absolute; inset-inline-start: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #e0364f; }
.mk-phone { position: absolute; width: 200px; inset-inline-end: -6px; bottom: -10px; border-radius: 34px; padding: 10px; background: #17112b; box-shadow: 0 40px 70px -30px rgba(23, 17, 43, .7); }
.mk-phone__notch { width: 70px; height: 18px; border-radius: 0 0 12px 12px; background: #17112b; margin: -10px auto 0; position: relative; z-index: 2; }
.mk-phone__screen { border-radius: 26px; overflow: hidden; background: #fff; margin-top: -8px; color: #150f2b; }
.mk-phone__hero { padding: 26px 14px 14px; background: linear-gradient(135deg, var(--p), var(--a)); color: #fff; }
.mk-phone__hero b { display: block; font-size: 15px; }
.mk-phone__hero span { font-size: 11px; opacity: .9; }
.mk-phone__step { padding: 12px 14px 4px; font-weight: 800; font-size: 13px; }
.mk-phone__days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 6px 12px; }
.mk-phone__days span { display: grid; justify-items: center; padding: 6px 0; border-radius: 10px; border: 1px solid #eee; font-size: 9px; color: #888; }
.mk-phone__days b { font-size: 14px; color: #150f2b; }
.mk-phone__days .on { background: var(--p); border-color: var(--p); color: #fff; }
.mk-phone__days .on b { color: #fff; }
.mk-phone__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 8px 12px; }
.mk-phone__slots span { text-align: center; padding: 6px 0; border-radius: 9px; border: 1px solid #eee; font-size: 11px; font-weight: 700; }
.mk-phone__slots .on { background: #150f2b; color: #fff; border-color: #150f2b; }
.mk-phone__btn { margin: 8px 12px 14px; padding: 9px; border-radius: 999px; background: var(--p); color: #fff; text-align: center; font-weight: 800; font-size: 12px; }
.mk-toast { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12.5px; line-height: 1.3; z-index: 3; }
.mk-toast b { display: block; color: var(--ink); }
.mk-toast small { color: var(--muted); }
.mk-toast__ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #e5f7ec; color: #12a150; font-weight: 800; }
.mk-toast__ico--wa { background: #dcf8e7; color: #25d366; }
.mk-toast__ico--pay { background: var(--p-soft); color: var(--p); }
.mk-toast--a { top: 0; inset-inline-start: -10px; }
.mk-toast--b { top: 46%; inset-inline-start: -36px; }
.mk-toast--c { bottom: 6px; inset-inline-start: 22%; }
@media (prefers-reduced-motion: no-preference) {
    .mk-toast { animation: toastfloat 6s ease-in-out infinite; }
    .mk-toast--b { animation-delay: -2s; } .mk-toast--c { animation-delay: -4s; }
    .mk-phone { animation: phonefloat 7s ease-in-out infinite; }
    @keyframes toastfloat { 50% { transform: translateY(-8px); } }
    @keyframes phonefloat { 50% { transform: translateY(-10px) rotate(-1deg); } }
    .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
    .reveal.is-in { opacity: 1; transform: none; }
}

/* Stats band */
.mk-band { padding: 30px 0; border-block: 1px solid var(--line); background: var(--card); }
.mk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.mk-stats b { display: block; font-size: clamp(32px, 4vw, 46px); font-weight: 800; letter-spacing: -.04em; background: linear-gradient(135deg, var(--p), var(--a)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mk-stats span { color: var(--muted); font-size: 14.5px; font-weight: 600; }

/* Sections */
.mk-sec { padding: clamp(70px, 9vw, 120px) 0; position: relative; }
.mk-sec--first { padding-top: clamp(50px, 7vw, 90px); }
.mk-sec--tint { background: var(--bg-2); }
.mk-sec--dark { background: #150f2b; color: #cfc8e8; }
.mk-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.mk-head--start { text-align: start; margin-inline: 0; }
.mk-head h2, .mk-h1 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.04em; }
.mk-head p { margin-top: 16px; font-size: 18px; color: var(--muted); }
.mk-head--light h2 { color: #fff; }
.mk-eyebrow { display: inline-block; margin-bottom: 14px; padding: 5px 13px; border-radius: 999px; background: var(--p-soft); color: var(--p); font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.mk-sec--dark .mk-eyebrow { background: rgba(255,255,255,.08); color: #c9bcff; }

/* Features */
.mk-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mk-feat { padding: 28px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden; }
.mk-feat::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--p) 16%, transparent), transparent 70%); opacity: 0; transition: opacity .3s; }
.mk-feat:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.mk-feat:hover::after { opacity: 1; }
.mk-feat__ico { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--p), color-mix(in srgb, var(--p) 40%, var(--a))); box-shadow: 0 14px 26px -14px var(--p); margin-bottom: 20px; }
.mk-feat:nth-child(3n+2) .mk-feat__ico { background: linear-gradient(135deg, var(--a), color-mix(in srgb, var(--a) 50%, var(--p))); box-shadow: 0 14px 26px -14px var(--a); }
.mk-feat:nth-child(3n) .mk-feat__ico { background: linear-gradient(135deg, var(--t), color-mix(in srgb, var(--t) 50%, var(--p))); box-shadow: 0 14px 26px -14px var(--t); }
.mk-feat h3 { font-size: 20px; letter-spacing: -.02em; }
.mk-feat p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* Spotlights */
.mk-spot { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.mk-spot > * { min-width: 0; }
.mk-spot--rev .mk-spot__media { order: -1; }
.mk-spot h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.04em; }
.mk-spot p { margin-top: 18px; font-size: 18px; color: var(--muted); }
.mk-checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.mk-checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.mk-checks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--p-soft); color: var(--p); font-size: 13px; font-weight: 900; margin-top: 1px; }
.mk-spot__media { position: relative; display: grid; place-items: center; padding: 30px; border-radius: 32px; background: radial-gradient(80% 80% at 70% 20%, color-mix(in srgb, var(--a) 20%, transparent), transparent), radial-gradient(70% 70% at 20% 80%, color-mix(in srgb, var(--p) 22%, transparent), transparent), var(--card); border: 1px solid var(--line); min-height: 380px; }
.mk-book, .mk-pos, .mk-site { width: min(100%, 420px); border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 12px; }
.mk-book__steps { display: flex; gap: 8px; }
.mk-book__steps span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font-weight: 800; font-size: 12px; color: var(--muted); }
.mk-book__steps .done { background: var(--p-soft); color: var(--p); }
.mk-book__steps .on { background: var(--p); color: #fff; }
.mk-book__title { font-size: 18px; color: var(--ink); }
.mk-book__staff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk-book__staff span { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: 16px; border: 1.5px solid var(--line); font-weight: 700; font-size: 13px; color: var(--ink); }
.mk-book__staff span.on { border-color: var(--p); background: color-mix(in srgb, var(--p) 6%, var(--card)); }
.mk-book__staff i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: #fff; background: linear-gradient(135deg, var(--c), var(--a)); font-weight: 800; }
.mk-book__staff small { color: var(--muted); font-weight: 600; }
.mk-book__sum, .mk-pos__line { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); font-size: 14px; color: var(--text); }
.mk-book__sum b, .mk-pos__line b { color: var(--ink); }
.mk-book__total, .mk-pos__total { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px dashed var(--line); font-weight: 800; font-size: 18px; color: var(--ink); }
.mk-pos__line small { color: var(--muted); margin-inline-start: 6px; }
.mk-pos__line--green { background: #e5f7ec; color: #0b6b35; }
:root[data-theme="dark"] .mk-pos__line--green { background: #12301f; color: #6fdc9b; }
.mk-pos__tips { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.mk-pos__tips span { margin-inline-end: auto; }
.mk-pos__tips i { font-style: normal; padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--line); }
.mk-pos__tips i.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.mk-pos__pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk-pos__pay span { text-align: center; padding: 12px 6px; border-radius: 14px; background: linear-gradient(135deg, var(--p), var(--p2)); color: #fff; font-weight: 700; font-size: 13px; }
.mk-pos__pay span + span { background: var(--bg-2); color: var(--ink); }
.mk-site { grid-template-columns: 120px 1fr; padding: 12px; }
.mk-site__side { display: grid; align-content: start; gap: 6px; padding-inline-end: 10px; border-inline-end: 1px solid var(--line); }
.mk-site__side span { padding: 8px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--bg-2); }
.mk-site__side span.on { background: var(--p); color: #fff; }
.mk-site__page { display: grid; gap: 10px; align-content: start; }
.mk-site__hero { padding: 22px 16px; border-radius: 14px; background: radial-gradient(80% 90% at 100% 0%, color-mix(in srgb, var(--a) 40%, transparent), transparent), var(--bg-2); outline: 2px solid var(--p); outline-offset: 2px; }
.mk-site__hero b { display: block; font-size: 16px; color: var(--ink); line-height: 1.15; }
.mk-site__hero i { display: inline-block; margin-top: 10px; padding: 6px 12px; border-radius: 999px; background: var(--p); color: #fff; font-style: normal; font-weight: 700; font-size: 11.5px; }
.mk-site__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk-site__row span { height: 60px; border-radius: 12px; background: var(--bg-2); border-top: 3px solid var(--a); }
.mk-site__row--b { grid-template-columns: 1fr 1fr; }
.mk-site__row--b span { border-top-color: var(--t); height: 46px; }

/* Steps */
.mk-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.mk-steps li { counter-increment: s; padding: 30px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: grid; gap: 8px; position: relative; }
.mk-steps li::before { content: counter(s); width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--p), var(--a)); margin-bottom: 12px; }
.mk-steps b { font-size: 20px; color: var(--ink); }
.mk-steps span { color: var(--muted); }

/* Testimonials */
.mk-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mk-quote { margin: 0; padding: 30px; border-radius: var(--r); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); display: grid; gap: 16px; align-content: start; }
.mk-stars { color: #f5a524; letter-spacing: 3px; }
.mk-quote blockquote { margin: 0; color: #fff; font-size: 18px; line-height: 1.55; font-weight: 600; }
.mk-quote figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.mk-quote figcaption span { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--p), var(--a)); color: #fff; font-weight: 800; }
.mk-quote figcaption b { color: #fff; }
.mk-quote figcaption small { color: #9b93b9; }

/* Plans */
.mk-plans-wrap { display: grid; justify-items: center; gap: 30px; }
.mk-cycle { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.mk-cycle button { padding: 9px 20px; border-radius: 999px; border: 0; background: none; font-weight: 700; cursor: pointer; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.mk-cycle button.is-active { background: var(--ink); color: var(--bg); }
.mk-cycle button span { padding: 2px 8px; border-radius: 999px; background: #12a150; color: #fff; font-size: 11.5px; }
.mk-plans { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: stretch; }
.mk-plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); }
.mk-plan.is-featured { border: 2px solid var(--p); box-shadow: 0 40px 70px -40px var(--p); transform: translateY(-8px); background: linear-gradient(180deg, color-mix(in srgb, var(--p) 6%, var(--card)), var(--card) 40%); }
.mk-plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; background: linear-gradient(90deg, var(--p), var(--a)); color: #fff; font-weight: 800; font-size: 12.5px; white-space: nowrap; }
.mk-plan h3 { font-size: 22px; }
.mk-plan__desc { color: var(--muted); font-size: 15px; min-height: 2.6em; }
.mk-plan__price { display: flex; align-items: baseline; gap: 6px; }
.mk-plan__price b { font-size: 46px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.mk-plan__price span { color: var(--muted); font-weight: 600; }
.mk-plan__save { color: #12a150; font-weight: 700; font-size: 14px; margin-top: -8px; }
.mk-plan ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.mk-plan li { display: flex; gap: 10px; }
.mk-plan li::before { content: "✓"; color: var(--p); font-weight: 900; }
.mk-compare-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.mk-compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.mk-compare th, .mk-compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.mk-compare th:first-child, .mk-compare td:first-child { text-align: start; color: var(--ink); font-weight: 600; }
.mk-compare thead th { font-size: 17px; color: var(--ink); }
.mk-compare thead th small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.mk-compare th.is-featured { color: var(--p); }
.mk-compare .yes { color: #12a150; font-weight: 900; }
.mk-compare .no { color: var(--muted); }

/* FAQ */
.mk-faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.mk-faq { display: grid; gap: 10px; }
.mk-faq details { border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.mk-faq summary { display: flex; justify-content: space-between; gap: 14px; padding: 20px 22px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; font-size: 16.5px; }
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--p-soft); color: var(--p); font-size: 18px; transition: transform .2s; }
.mk-faq details[open] summary span { transform: rotate(45deg); }
.mk-faq p { padding: 0 22px 22px; color: var(--muted); }

/* Final CTA */
.mk-final { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: clamp(36px, 5vw, 64px); border-radius: 34px; color: #fff; background: radial-gradient(70% 120% at 100% 0%, rgba(255, 122, 89, .65), transparent 60%), radial-gradient(60% 120% at 0% 100%, rgba(24, 180, 165, .35), transparent 60%), linear-gradient(135deg, #2a1d5c, #6a48f5); box-shadow: 0 40px 80px -40px #6a48f5; position: relative; overflow: hidden; }
.mk-final h2 { color: #fff; font-size: clamp(30px, 4vw, 50px); font-weight: 800; letter-spacing: -.04em; }
.mk-final p { margin-top: 10px; font-size: 18px; opacity: .85; }
.mk-final__cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* Footer */
.mk-ftr { padding: 64px 0 28px; border-top: 1px solid var(--line); background: var(--card); }
.mk-ftr__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.mk-ftr__brand p { margin-top: 14px; color: var(--muted); max-width: 320px; }
.mk-ftr h4 { font-size: 14px; letter-spacing: .02em; margin-bottom: 14px; }
.mk-ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.mk-ftr a { color: var(--text); text-decoration: none; }
.mk-ftr a:hover { color: var(--p); }
.mk-ftr__bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* Forms: sign-up, search */
.mk-card { border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 34px); }
.mk-signup { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.mk-signup__pitch { position: sticky; top: 110px; }
.mk-signup__pitch p { margin-top: 16px; font-size: 18px; color: var(--muted); }
.mk-form { display: grid; gap: 20px; }
.mk-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.mk-form legend { font-weight: 800; color: var(--ink); font-size: 17px; margin-bottom: 4px; padding: 0; }
.mk-field { display: grid; gap: 6px; }
.mk-field span { font-weight: 700; font-size: 14px; color: var(--ink); }
.mk-field small { color: var(--muted); font-size: 13px; }
.mk-field input, .mk-field select, .mk-search input { width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font-size: 16px; }
.mk-field input:focus, .mk-field select:focus, .mk-search input:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p) 16%, transparent); }
.mk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mk-slug { font-size: 13.5px; color: var(--muted); margin-top: -6px; }
.mk-slug b { color: var(--p); }
.mk-types-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mk-types-pick label, .mk-plan-pick label { cursor: pointer; }
.mk-types-pick input, .mk-plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.mk-types-pick span { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 16px; border: 1.5px solid var(--line); font-weight: 700; font-size: 12.5px; text-align: center; color: var(--text); background: var(--bg); transition: all .15s; }
.mk-types-pick input:checked + span, .mk-plan-pick input:checked + span { border-color: var(--p); background: color-mix(in srgb, var(--p) 8%, var(--card)); color: var(--p); box-shadow: 0 0 0 1px var(--p); }
.mk-types-pick input:focus-visible + span, .mk-plan-pick input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--p) 45%, transparent); }
.mk-plan-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.mk-plan-pick span { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg); }
.mk-plan-pick b { color: var(--ink); }
.mk-plan-pick small { color: var(--muted); }
.mk-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.mk-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--p); flex: none; }
.mk-alert { padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, #e0364f 12%, var(--card)); color: #c0263b; font-weight: 600; font-size: 14.5px; display: grid; gap: 4px; }
.mk-search { display: flex; gap: 10px; max-width: 620px; margin: 0 auto 30px; }
.mk-dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.mk-dir__card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s; }
.mk-dir__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mk-dir__logo { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--p), var(--a)); color: #fff; font-weight: 800; overflow: hidden; flex: none; }
.mk-dir__logo img { width: 100%; height: 100%; object-fit: cover; }
.mk-dir__body { flex: 1; display: grid; min-width: 0; }
.mk-dir__body b { color: var(--ink); }
.mk-dir__body small { color: var(--muted); }
.mk-legal { max-width: 820px; }
.mk-prose { margin-top: 26px; font-size: 16.5px; }
.mk-pager nav { margin-top: 24px; }

/* Responsive */
@media (max-width: 1100px) {
    .mk-hero__in { grid-template-columns: 1fr; }
    .mk-hero__text { text-align: center; max-width: 760px; margin-inline: auto; }
    .mk-hero__sub { margin-inline: auto; }
    .mk-hero__cta, .mk-hero__trust { justify-content: center; }
    .mk-mock { max-width: 760px; margin-inline: auto; width: 100%; }
    .mk-feats { grid-template-columns: repeat(2, 1fr); }
    .mk-quotes { grid-template-columns: 1fr 1fr; }
    .mk-signup { grid-template-columns: 1fr; }
    .mk-signup__pitch { position: static; }
}
@media (max-width: 900px) {
    .mk-nav { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 14px var(--g) 22px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .28s ease; max-height: calc(100vh - 74px); overflow-y: auto; margin: 0; }
    .mk-nav.is-open { transform: none; }
    .mk-nav a { padding: 13px 10px; font-size: 17px; border-radius: 12px; }
    .mk-nav__login { display: block !important; }
    .mk-nav__cta { display: flex !important; margin-top: 10px; }
    .mk-burger { display: flex; }
    .mk-hdr__login, .mk-hdr__cta { display: none; }
    .mk-spot, .mk-faq-wrap { grid-template-columns: 1fr; }
    .mk-spot--rev .mk-spot__media { order: 0; }
    .mk-steps { grid-template-columns: 1fr; }
    .mk-stats { grid-template-columns: 1fr 1fr; }
    .mk-ftr__top { grid-template-columns: 1fr 1fr; }
    .mk-ftr__brand { grid-column: 1 / -1; }
    .mk-plan.is-featured { transform: none; }
}
@media (max-width: 640px) {
    .mk-feats, .mk-quotes { grid-template-columns: 1fr; }
    .mk-hero h1 { font-size: clamp(38px, 11vw, 52px); }
    .mk-hero__cta .mk-btn { width: 100%; }
    .mk-app { transform: none; }
    .mk-app__body { grid-template-columns: 1fr; min-height: 260px; }
    .mk-app__side { display: none; }
    .mk-cal__col { min-height: 240px; }
    .mk-ev span { display: none; }
    .mk-phone { width: 150px; inset-inline-end: -4px; bottom: -24px; border-radius: 28px; }
    .mk-phone__slots span:nth-child(n+4) { display: none; }
    .mk-toast--b { display: none; }
    .mk-toast--a { inset-inline-start: 0; top: -6px; }
    .mk-toast--c { inset-inline-start: 0; bottom: -10px; }
    .mk-langs { display: none; }
    .mk-types-pick { grid-template-columns: repeat(3, 1fr); }
    .mk-row { grid-template-columns: 1fr; }
    .mk-ftr__top { grid-template-columns: 1fr; }
    .mk-final { text-align: center; justify-content: center; }
    .mk-final__cta { justify-content: center; width: 100%; }
    .mk-final__cta .mk-btn { width: 100%; }
    .mk-site { grid-template-columns: 1fr; }
    .mk-site__side { display: none; }
    .mk-search { flex-direction: column; }
}

/* Live demo bar (CHAIRLY_DEMO=true only): above the sticky header, never under it */
.demobar { position: relative; z-index: 51; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; padding: 8px 16px; background: #17112b; color: #ece9f6; font: 500 14px/1.6 system-ui, sans-serif; text-align: center; }
[lang="ar"] .demobar { font-family: inherit; line-height: 1.8; }
.demobar a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 13px; border-radius: 999px; background: #7c5cff; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.demobar a:hover { background: #6a48f5; }
.demobar a.demobar__alt { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.demobar a.demobar__alt:hover { background: rgba(255,255,255,.1); }

/* Drop-down lists: our own chevron instead of the browser's arrow (Chrome on Windows draws a grey box on hover) */
select:not([multiple]):not([size]) {
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364708a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 16px 16px;
    padding-inline-end: 38px; cursor: pointer;
}
[dir="rtl"] select:not([multiple]):not([size]) { background-position: left 12px center; }
select:not([multiple]):not([size]):hover:not(:disabled):not(:focus) { border-color: color-mix(in srgb, currentColor 35%, transparent); }
select::-ms-expand { display: none; }

/* Arabic headings: taller lines, so the dots below the line (ي ب ج…) are not covered by the next block */
[dir="rtl"] :is(h1, h2, h3, h4) { line-height: 1.4; }
