/* ============================================================
   Tuesplan — Digital Business Enablement
   Design system · mobile-first · RTL/LTR via logical properties
   ============================================================ */

:root {
  /* Brand (retained) */
  --navy: #16294A;
  --navy-900: #0E1B33;
  --accent: #7A1F2E;
  --accent-700: #5E1522;
  --accent-50: #F7EDEF;
  --green: #2F8F6B;          /* logo arrow */
  --green-50: #E9F5EF;

  /* Neutrals */
  --ink: #1D2433;
  --muted: #5B6475;
  --subtle: #8A93A3;
  --line: #E4E7EE;
  --line-2: #CFD5DF;
  --bg: #FFFFFF;
  --soft: #F6F7FA;
  --soft-2: #EEF1F6;

  /* Status (mockups + form) */
  --blue: #2C5FB3;  --blue-50: #EAF0FA;
  --amber: #A86A12; --amber-50: #FBF3E2;
  --violet: #6247B3; --violet-50: #F0ECFA;
  --error: #B42318; --error-50: #FEF1F0;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 27, 51, .06);
  --shadow: 0 1px 2px rgba(16, 27, 51, .05), 0 12px 32px -14px rgba(16, 27, 51, .18);
  --shadow-lg: 0 2px 6px rgba(16, 27, 51, .05), 0 30px 60px -24px rgba(16, 27, 51, .32);

  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Arabic', sans-serif;
  --container: 1200px;
  --header-h: 68px;
  --focus: 0 0 0 3px rgba(44, 95, 179, .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--navy); margin: 0; font-weight: 700; line-height: 1.3; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -0.015em; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .icon-dir { transform: scaleX(-1); }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -48px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; box-shadow: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 860px; }
.container--form { max-width: 880px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.section { padding-block: 64px; }
.section--soft { background: var(--soft); }
.section--tight { padding-block: 40px 64px; }
@media (min-width: 1024px) { .section { padding-block: 96px; } .section--tight { padding-block: 48px 88px; } }

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.3rem); }
.section-head .lead { margin-top: 14px; }
.h-small { font-size: 1.15rem; margin-bottom: 18px; color: var(--muted); font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 600; color: var(--accent);
  margin-bottom: 16px; line-height: 1.4;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: 1.075rem; color: var(--muted); line-height: 1.85; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 11px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; line-height: 1.3; text-decoration: none; text-align: center;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s, transform .18s;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-lg { min-height: 54px; padding: 13px 26px; font-size: 1.05rem; }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: .95rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px rgba(122, 31, 46, .6); }
.btn-primary:hover { background: var(--accent-700); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #F1F3F8; }
.btn[disabled] { opacity: .7; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { flex: none; display: inline-flex; }
.brand img { height: 36px; width: auto; }
.site-nav { display: none; }
.header-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px;
  border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .92rem; color: var(--navy); background: #fff;
}
.lang-link:hover { border-color: var(--navy); }
.menu-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; color: var(--navy); cursor: pointer;
}
.menu-btn .icon { width: 22px; height: 22px; }
.menu-btn .icon-close, .menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1079.98px) {
  .site-nav.is-open {
    display: block; position: absolute; inset-inline: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 20px 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-nav .nav-list { list-style: none; }
  .site-nav .nav-list a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: 1.05rem; }
  .site-nav .nav-list a[aria-current="page"] { color: var(--accent); }
  .site-nav .nav-cta { width: 100%; margin-top: 16px; min-height: 50px; }
}
@media (min-width: 1080px) {
  .brand img { height: 40px; }
  .site-nav { display: flex; align-items: center; gap: 22px; margin-inline-start: auto; }
  .nav-list { display: flex; gap: 4px; list-style: none; }
  .nav-list a { display: block; padding: 8px 10px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink); }
  .nav-list a:hover { background: var(--soft); color: var(--navy); }
  .nav-list a[aria-current="page"] { color: var(--accent); }
  .header-tools { margin-inline-start: 0; }
  .menu-btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: 44px 64px;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(22, 41, 74, .06), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(122, 31, 46, .05), transparent 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(22, 41, 74, .12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}
.hero-grid { position: relative; display: grid; gap: 44px; align-items: center; }
.hero-copy h1 { font-size: clamp(1.95rem, 1.2rem + 3.1vw, 3.2rem); line-height: 1.28; }
html[lang="en"] .hero-copy h1 { line-height: 1.15; }
.hero-copy .lead { margin-top: 20px; max-width: 38rem; }
.h1-line { display: block; }
.hero-copy .actions { margin-top: 30px; }
.hero-support { margin-top: 22px; font-size: .95rem; font-weight: 600; color: var(--navy); opacity: .8; }
@media (max-width: 520px) { .hero-copy .actions .btn { flex: 1 1 100%; } }
@media (min-width: 1024px) {
  .hero { padding-block: 72px 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; }
}

/* Hero composition: everything scales with the container width */
.hv { position: relative; container-type: inline-size; }
.hv-canvas { position: relative; aspect-ratio: 1.2 / 1; font-size: 1.5cqw; }
.hv-laptop { position: absolute; inset-inline-start: 0; top: 7%; width: 79%; z-index: 1; }
.hv-doc { position: absolute; inset-inline-end: 0; top: 0; width: 25%; z-index: 2; font-size: .82em; transform: rotate(2.5deg); }
[dir="rtl"] .hv-doc { transform: rotate(-2.5deg); }
.hv-dash { position: absolute; inset-inline-end: 1%; bottom: 2%; width: 49%; z-index: 3; font-size: .9em; }
.hv-dash .mk-app { box-shadow: var(--shadow-lg); }
.hv-link { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; fill: none; stroke: var(--green); stroke-width: .5; stroke-dasharray: 1.2 1.2; vector-effect: non-scaling-stroke; }
.hv-link path { stroke-width: 2; vector-effect: non-scaling-stroke; }
[dir="rtl"] .hv-link { transform: scaleX(-1); }
.hv-chip {
  position: absolute; z-index: 4; inset-inline-start: 20%; bottom: 7%;
  display: inline-flex; align-items: center; gap: .5em;
  font-size: 1.15em; font-weight: 600; color: var(--green);
  background: #fff; border: 1px solid #CFE7DB; border-radius: 999px; padding: .45em .9em; box-shadow: var(--shadow);
}
.hv-chip i { width: .55em; height: .55em; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 .25em var(--green-50); }
.hv-tag {
  position: absolute; z-index: 5; font-size: clamp(10px, 1.45em, 13px); font-weight: 600; color: var(--navy);
  background: rgba(255, 255, 255, .95); border: 1px solid var(--line); border-radius: 999px; padding: .2em .8em; white-space: nowrap; box-shadow: var(--shadow-sm);
}
.hv-tag--site { top: 1%; inset-inline-start: 4%; }
.hv-tag--doc { top: 37%; inset-inline-end: 0; }
.hv-tag--dash { bottom: -3%; inset-inline-end: 6%; }

.sample-badge {
  position: absolute; z-index: 6; top: 10px; inset-inline-end: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--muted);
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px;
}
.hv > .sample-badge { top: auto; bottom: -34px; inset-inline-end: auto; inset-inline-start: 0; }

/* ---------- Cards / grids ---------- */
.card-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } .card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.problem-card, .why-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px;
}
.problem-card h3, .why-item h3 { font-size: 1.12rem; margin: 18px 0 8px; }
.problem-card p, .why-item p { color: var(--muted); }
.why-item { background: transparent; border: 0; padding: 0; }
.icon-badge {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-50); color: var(--accent);
}
.icon-badge .icon { width: 24px; height: 24px; }
.icon-badge--plain { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.closing-line {
  margin-top: 36px; font-size: 1.12rem; font-weight: 600; color: var(--navy);
  padding-inline-start: 16px; border-inline-start: 3px solid var(--accent);
}

/* Product cards */
.product-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.product-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow); }
.product-card-preview {
  position: relative; container-type: inline-size; height: 230px; overflow: hidden;
  background: linear-gradient(180deg, var(--soft-2), var(--soft)); border-bottom: 1px solid var(--line);
  padding: 22px 22px 0;
}
.product-card-preview::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 60px; background: linear-gradient(to bottom, transparent, var(--soft)); }
.pcp-inner { font-size: 1.45cqw; }
.product-card--workspace .pcp-inner { font-size: 1.9cqw; max-width: 82%; margin-inline: auto; }
.product-card-body { display: flex; flex-direction: column; flex: 1; padding: 26px 24px 28px; }
@media (min-width: 768px) { .product-card-body { padding: 32px 32px 34px; } }
.product-num { font-size: .85rem; font-weight: 700; color: var(--accent); text-transform: none; }
.product-card h3 { font-size: 1.45rem; margin-top: 6px; }
.product-name { margin-top: 4px; font-size: .92rem; font-weight: 600; color: var(--subtle); }
.product-short { margin-top: 14px; color: var(--muted); }
.product-card .check-list { margin-top: 20px; }
.product-cta { margin-top: auto; align-self: flex-start; }
.product-card .product-cta { margin-top: 28px; }

.product-card .icon-badge { margin-bottom: 18px; }
.product-card h3 { margin-top: 0; }
@media (min-width: 900px) {
  .product-card--compact .product-card-body { display: grid; grid-template-columns: auto 1fr auto; column-gap: 24px; align-items: center; }
  .product-card--compact .icon-badge { grid-row: 1 / span 3; margin: 0; }
  .product-card--compact .product-cta { grid-row: 1 / span 3; grid-column: 3; margin: 0 !important; }
}

.check-list, .x-list { list-style: none; display: grid; gap: 10px; }
.check-list li, .x-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--green); margin-top: .25em; width: 1.1em; height: 1.1em; stroke-width: 2.2; }
.x-list .icon { color: var(--subtle); margin-top: .25em; width: 1.05em; height: 1.05em; stroke-width: 2.2; }
.check-list--lg { gap: 14px; font-size: 1.05rem; }

/* Steps */
.steps { list-style: none; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; }
.step-n { display: block; font-size: .95rem; font-weight: 700; color: var(--accent); margin-bottom: 18px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

.section--compact { padding-block: 56px; }
@media (min-width: 1024px) { .section--compact { padding-block: 72px; } }
.steps--3 { counter-reset: none; }
@media (min-width: 720px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }
.steps--3 .step { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.steps--3 .step-n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin: 0; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1rem; }
.steps--3 .step h3 { font-size: 1.08rem; margin: 6px 0 2px; }

/* Showcase */
.showcase-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .showcase-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.showcase-card h3 { font-size: 1.15rem; margin-top: 18px; }
.showcase-card h3 a { text-decoration: none; }
.showcase-card h3 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.showcase-card p { color: var(--muted); margin-top: 6px; }
.showcase-visual {
  position: relative; container-type: inline-size; aspect-ratio: 16 / 11; overflow: hidden;
  border-radius: var(--radius-xl); border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--soft-2) 0%, #fff 100%);
}
.sv-laptop { position: absolute; inset-inline-start: 6%; top: 12%; width: 74%; font-size: 1.12cqw; }
.sv-phone { position: absolute; inset-inline-end: 6%; bottom: -4%; width: 24%; font-size: 1.05cqw; }
.sv-phone .mk-phone { width: 100%; }
.sv-dash { position: absolute; inset: 8% 5% auto 5%; font-size: 1.62cqw; }
.showcase-foot { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.disclosure { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); max-width: 640px; }
.disclosure .icon { margin-top: .25em; color: var(--subtle); }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 2px; font-weight: 600; font-size: 1.05rem; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { width: 20px; height: 20px; color: var(--muted); transition: transform .2s; }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-a { padding: 0 2px 22px; color: var(--muted); max-width: 70ch; }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.cta-band-inner { position: relative; display: grid; gap: 26px; padding-block: 56px; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.1rem); }
.cta-band p { color: rgba(255, 255, 255, .78); margin-top: 12px; max-width: 46rem; }
@media (min-width: 900px) { .cta-band-inner { grid-template-columns: 1fr auto; padding-block: 72px; gap: 48px; } }

/* ---------- Inner pages ---------- */
.page-hero { padding-block: 28px 44px; background: linear-gradient(180deg, var(--soft) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.85rem, 1.25rem + 2.4vw, 2.85rem); line-height: 1.3; margin-top: 18px; }
html[lang="en"] .page-hero h1 { line-height: 1.18; }
.page-hero .eyebrow + h1 { margin-top: 0; }
.page-hero .lead { margin-top: 16px; max-width: 46rem; }
.page-hero .actions { margin-top: 28px; }
.page-hero .disclosure { margin-top: 20px; }
.page-hero--product { padding-bottom: 56px; }
.page-hero--product .page-hero-copy { padding-top: 18px; }
.page-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } .page-hero { padding-block: 32px 64px; } }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line-2); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); text-decoration: underline; }

/* Product page visuals */
.pv { position: relative; container-type: inline-size; aspect-ratio: 1.25 / 1; }
.pv--launch .pv-laptop { position: absolute; inset-inline-start: 0; top: 4%; width: 80%; font-size: 1.2cqw; }
.pv--launch .pv-phone { position: absolute; inset-inline-end: 3%; bottom: 0; width: 22%; font-size: 1.05cqw; z-index: 2; }
.pv--launch .pv-phone .mk-phone { width: 100%; }
.pv--launch .pv-doc { position: absolute; inset-inline-start: 4%; bottom: 0; width: 20%; font-size: .9cqw; z-index: 3; }
.pv--workspace { aspect-ratio: auto; }
.pv--workspace .pv-dash { position: relative; font-size: 1.62cqw; }
.pv > .sample-badge { top: auto; bottom: -32px; inset-inline-end: auto; inset-inline-start: 0; }
.pv--workspace > .sample-badge { bottom: auto; top: -30px; }

.deliverables { list-style: none; display: grid; gap: 16px; }
@media (min-width: 720px) { .deliverables { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .deliverables { grid-template-columns: repeat(3, 1fr); } }
.deliverable { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; }
.deliverable-n { display: inline-grid; place-items: center; min-width: 40px; height: 32px; padding: 0 8px; border-radius: 8px; background: var(--accent-50); color: var(--accent); font-weight: 700; font-size: .9rem; }
.deliverable h3 { font-size: 1.12rem; margin: 16px 0 8px; }
.deliverable p { color: var(--muted); }

.split { display: grid; gap: 48px; }
.split h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin-bottom: 24px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split--top { align-items: start; }

.process { list-style: none; display: grid; gap: 0; }
.process li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding-bottom: 24px; }
.process li:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 19px; top: 40px; bottom: 4px; width: 2px; background: var(--line-2); }
.process-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; }
.process h3 { font-size: 1.05rem; margin-top: 7px; }
.process p { color: var(--muted); margin-top: 2px; }

.scope-note {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 22px;
  color: var(--ink); font-weight: 500;
}
.scope-note .icon { color: var(--navy); width: 22px; height: 22px; margin-top: .2em; }

/* Demos page */
.demo-head { max-width: 760px; margin-bottom: 32px; }
.demo-head h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.1rem); margin-top: 4px; }
.demo-head .lead { margin-top: 10px; }
.demo-fig { margin: 0 0 28px; }
.demo-fig figcaption { margin-top: 12px; font-weight: 600; color: var(--navy); font-size: .98rem; }
.demo-frame {
  position: relative; container: demo / inline-size; font-size: 13px;
  border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 28px 22px 22px;
  background: linear-gradient(160deg, var(--soft-2), #fff);
}
@media (min-width: 768px) { .demo-frame { padding: 40px 36px 32px; } }
.section--soft .demo-frame { background: #fff; }
.demo-grid { display: grid; gap: 0 24px; }
@media (min-width: 900px) {
  .demo-grid--site { grid-template-columns: minmax(0, 3fr) minmax(0, 1.1fr); align-items: end; }
}
.demo-fig--phone .demo-frame { display: grid; place-items: center; }
.demo-fig--phone .mk-phone { width: min(240px, 100%); }
.demo-cta { margin-top: 8px; }

/* Contact */
.contact-cards { list-style: none; display: grid; gap: 16px; }
@media (min-width: 720px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.contact-card { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.contact-card .icon { width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.contact-card div { display: grid; gap: 2px; }
.contact-label { font-size: .85rem; color: var(--muted); }
.contact-card a { font-weight: 600; color: var(--navy); }

/* Legal prose */
.prose { color: var(--ink); }
.prose h2 { font-size: 1.2rem; margin: 36px 0 10px; }
.prose p { margin-bottom: 12px; }
.prose ul { padding-inline-start: 22px; margin-bottom: 12px; display: grid; gap: 6px; }
.prose a { color: var(--accent); }

/* 404 */
.nf-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .nf-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.nf-code { font-size: 3.5rem; font-weight: 700; color: var(--line-2); line-height: 1; margin-bottom: 18px; }
.nf h1, .nf h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
.nf .lead { margin-top: 14px; }
.nf .actions { margin-top: 26px; }
.nf-block[dir="ltr"] { text-align: left; }

/* ---------- Footer ---------- */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding-top: 56px; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 56px; } }
.footer-brand img { height: 38px; width: auto; }
.footer-brand p { margin-top: 16px; color: var(--muted); max-width: 30rem; }
.footer-contact { list-style: none; margin-top: 18px; display: grid; gap: 8px; font-size: .95rem; color: var(--muted); }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--navy); }
.footer-contact a { color: var(--navy); font-weight: 600; text-decoration: none; }
.footer-h { font-size: .95rem; color: var(--navy); margin-bottom: 14px; }
.site-footer nav ul { list-style: none; display: grid; gap: 8px; }
.site-footer nav a { text-decoration: none; color: var(--muted); }
.site-footer nav a:hover, .footer-bottom a:hover { color: var(--navy); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; border-top: 1px solid var(--line); padding-block: 22px 28px; font-size: .9rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); text-decoration: none; }

/* ============================================================
   Lead form
   ============================================================ */
.mode-switch { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.mode-legend { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; padding: 0; }
.mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-option { position: relative; display: block; cursor: pointer; }
.mode-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mode-option-body {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  min-height: 116px; height: 100%; padding: 18px 12px; border: 1.5px solid var(--line-2); border-radius: var(--radius-lg); background: #fff;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.mode-option-body strong { color: var(--navy); font-size: 1.02rem; line-height: 1.4; }
.mode-option-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--soft-2); color: var(--navy); }
.mode-option-ico .icon { width: 24px; height: 24px; }
.mode-option:hover .mode-option-body { border-color: #AEB7C6; }
.mode-option input:checked + .mode-option-body { border-color: var(--accent); background: var(--accent-50); box-shadow: 0 0 0 1px var(--accent) inset; }
.mode-option input:checked + .mode-option-body .mode-option-ico { background: var(--accent); color: #fff; }
.mode-option input:focus-visible + .mode-option-body { box-shadow: var(--focus); }
@media (min-width: 640px) { .mode-option-body { flex-direction: row; min-height: 84px; gap: 14px; } }
.mode-head { margin: 26px 0 4px; padding-top: 24px; border-top: 1px solid var(--line); }
.mode-head h2 { font-size: 1.35rem; }
.mode-head p { color: var(--muted); margin-top: 4px; }
.mode-body .form-note { margin-top: 14px; }
.form-section--contact { border-top: 0; padding-top: 16px; }
.form-notice { font-size: .9rem; color: var(--muted); margin: -6px 0 18px; }
.form-notice a { color: var(--accent); font-weight: 600; }
.form-success h2 { font-size: 1.3rem; line-height: 1.6; max-width: 34rem; margin-inline: auto; }
.section--form { padding-top: 32px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 24px 18px; }
@media (min-width: 768px) { .form-card { padding: 40px 44px; } }
.form-note { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.form-summary {
  display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 8px; padding: 14px 16px;
  border: 1px solid #F3C5C0; background: var(--error-50); color: var(--error); border-radius: var(--radius); font-weight: 600;
}
.form-section { border: 0; margin: 0; padding: 28px 0 8px; border-top: 1px solid var(--line); min-width: 0; }
.form-section:first-of-type { border-top: 0; }
.form-section-title { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; font-weight: 700; color: var(--navy); padding: 0; margin-bottom: 20px; }
.form-step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .9rem; }
.grid-2 { display: grid; gap: 0 20px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 8px; margin: 0 0 22px; min-width: 0; }
.field-group { border: 0; padding: 0; }
.field > label, .field-group > legend { font-weight: 600; color: var(--navy); font-size: .98rem; padding: 0; line-height: 1.5; }
.field-group > legend { margin-bottom: 10px; }
.req { color: var(--accent); margin-inline-start: 2px; }
.opt { font-weight: 500; font-size: .82rem; color: var(--subtle); margin-inline-start: 6px; }
.control {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line-2); border-radius: var(--radius); background: #fff;
  font-size: 1rem; /* ≥16px: no iOS zoom */
  transition: border-color .15s, box-shadow .15s;
}
.control::placeholder { color: #9AA2B1; }
.control:hover { border-color: #B7BFCC; }
.control:focus { outline: none; border-color: var(--navy); box-shadow: var(--focus); }
textarea.control { min-height: 120px; resize: vertical; line-height: 1.7; }
select.control {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%235B6475' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 14px 9px; background-position: right 14px center;
}
[dir="rtl"] select.control { background-position: left 14px center; }
.phone-group[dir="ltr"] select.control { background-position: right 12px center; }
.phone-group { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 8px; }
@media (min-width: 900px) { .phone-group { grid-template-columns: minmax(0, 11.5rem) minmax(0, 1fr); } }
.phone-cc { padding-inline: 10px 30px; font-size: .95rem; }
.field-hint { font-size: .86rem; color: var(--muted); }
.field-error { display: flex; gap: 6px; align-items: center; font-size: .88rem; font-weight: 600; color: var(--error); }
.field.has-error .control, .control[aria-invalid="true"] { border-color: var(--error); }
.field.has-error .control:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .18); }
.field.has-error .choice { border-color: #EAB4AE; }

.choices { display: grid; gap: 10px; }
@media (min-width: 600px) { .choices--2 { grid-template-columns: 1fr 1fr; } .choices--inline { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.choice {
  position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer;
  min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius); background: #fff;
  font-weight: 500; line-height: 1.45; transition: border-color .15s, background-color .15s;
}
.choice:hover { border-color: #AEB7C6; }
.choice input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-50); }
.choice:has(input:focus-visible) { box-shadow: var(--focus); }
.choice--consent { align-items: flex-start; border: 0; padding: 4px 0; min-height: 0; background: transparent !important; font-weight: 400; }
.choice--consent input { margin-top: 3px; }
.choice--consent a { color: var(--accent); font-weight: 600; }

.solution-choices { display: grid; gap: 14px; }
@media (min-width: 640px) { .solution-choices { grid-template-columns: 1fr 1fr; } }
.solution-choice { position: relative; display: block; cursor: pointer; }
.solution-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.solution-choice-body {
  display: grid; gap: 6px; height: 100%; padding: 20px 20px 22px; padding-inline-start: 54px; position: relative;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-lg); background: #fff; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.solution-choice-body strong { color: var(--navy); font-size: 1.08rem; }
.solution-choice-body > span:not(.solution-choice-mark) { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.solution-choice-mark { position: absolute; inset-inline-start: 20px; top: 23px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; }
.solution-choice:hover .solution-choice-body { border-color: #AEB7C6; }
.solution-choice input:checked + .solution-choice-body { border-color: var(--accent); background: var(--accent-50); box-shadow: 0 0 0 1px var(--accent) inset; }
.solution-choice input:checked + .solution-choice-body .solution-choice-mark { border-color: var(--accent); box-shadow: inset 0 0 0 4px #fff; background: var(--accent); }
.solution-choice input:focus-visible + .solution-choice-body { box-shadow: var(--focus); }

.conditional { margin-top: 6px; padding: 22px 18px 4px; border-radius: var(--radius-lg); background: var(--soft); border: 1px solid var(--line); animation: reveal .25s ease; }
@media (min-width: 768px) { .conditional { padding: 26px 24px 6px; } }
.conditional .choice { background: #fff; }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.consent { margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form-actions { margin-top: 8px; }
.form-actions .btn { width: 100%; }
@media (min-width: 600px) { .form-actions .btn { width: auto; min-width: 260px; } }

.form-success { text-align: center; padding: 28px 8px; }
.form-success:focus { outline: none; box-shadow: none; }
.success-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green-50); color: var(--green); margin-bottom: 18px; }
.success-icon .icon { width: 32px; height: 32px; stroke-width: 2.4; }
.form-success p { color: var(--muted); max-width: 34rem; margin: 12px auto 0; }
.success-ref { font-size: .95rem; }
.success-ref strong { color: var(--navy); }
.form-success .btn { margin-top: 26px; }

/* ============================================================
   Mockups (em-based; size set by the surrounding context)
   Fictional brand palette: teal #0F5C5C · sand #D9B88F
   ============================================================ */
.mk-ico { width: 1.4em; height: 1.4em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mk-logo { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; color: #123; font-size: 1em; white-space: nowrap; }
.mk-logo b { display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: .5em; background: #0F5C5C; color: #F4F1EA; font-size: .9em; }
.mk-logo--light { color: #fff; }
.mk-logo--light b { background: #D9B88F; color: #0F3D3D; }
.mk-btn { display: inline-block; font-style: normal; font-weight: 600; background: #0F5C5C; color: #fff; border-radius: .45em; padding: .5em 1em; font-size: .9em; }

/* Browser + website */
.mk-browser { background: #fff; border: 1px solid var(--line); border-radius: .9em; overflow: hidden; box-shadow: var(--shadow); }
.mk-browser-bar { display: flex; align-items: center; gap: .9em; padding: .65em .9em; background: #F2F4F7; border-bottom: 1px solid var(--line); }
.mk-dots { display: inline-flex; gap: .35em; }
.mk-dots i { width: .6em; height: .6em; border-radius: 50%; background: #D3D8E0; }
.mk-url { flex: 1; font-size: .8em; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: .5em; padding: .2em .8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
.mk-site { padding: 1.2em 1.5em 1.5em; color: #1C2430; line-height: 1.5; background: #fff; }
.mk-site-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding-bottom: 1em; border-bottom: 1px solid #EEF0F3; }
.mk-site-nav { display: flex; gap: 1.4em; font-size: .85em; color: #5B6475; }
.mk-burger { display: grid; gap: .25em; }
.mk-burger i { width: 1.2em; height: .14em; background: #1C2430; border-radius: 1em; }
.mk-site-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.4em; align-items: center; padding: 1.6em 0; }
.mk-site-hero-copy { display: grid; gap: .6em; justify-items: start; }
.mk-site-hero-copy strong { font-size: 1.6em; line-height: 1.3; color: #0F3D3D; }
.mk-site-hero-copy span { color: #5B6475; font-size: .92em; }
.mk-site-art { position: relative; aspect-ratio: 4 / 3; border-radius: .9em; background: linear-gradient(140deg, #0F5C5C, #1E7A72 55%, #D9B88F); overflow: hidden; }
.mk-site-art i { position: absolute; display: block; background: rgba(255, 255, 255, .16); border-radius: .5em; }
.mk-site-art i:nth-child(1) { width: 55%; height: 40%; top: 14%; inset-inline-start: 12%; }
.mk-site-art i:nth-child(2) { width: 30%; height: 50%; bottom: 10%; inset-inline-end: 10%; background: rgba(244, 241, 234, .55); }
.mk-site-art i:nth-child(3) { width: 40%; height: 12%; bottom: 14%; inset-inline-start: 12%; background: rgba(217, 184, 143, .7); }
.mk-site-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; }
.mk-site-services div { border: 1px solid #E7EAEE; border-radius: .7em; padding: .8em; display: grid; gap: .5em; font-size: .88em; font-weight: 600; }
.mk-site-services i { width: 1.8em; height: 1.8em; border-radius: .5em; background: #E5F0EF; }
.mk-site-form { margin-top: 1em; display: grid; grid-template-columns: 1fr 1fr; gap: .6em; border: 1px solid #E7EAEE; border-radius: .7em; padding: .9em; }
.mk-site-form strong { grid-column: 1 / -1; font-size: .95em; }
.mk-input { display: block; font-size: .8em; color: #8A93A3; border: 1px solid #DDE1E7; border-radius: .45em; padding: .55em .7em; background: #FAFBFC; }
.mk-input--area { grid-column: 1 / -1; min-height: 3.6em; }
.mk-site-form .mk-btn { justify-self: start; }
.mk-site--mobile { padding: 1em 1em 1.2em; }
.mk-site--mobile .mk-site-hero { grid-template-columns: 1fr; padding: 1.4em 0 1.2em; }
.mk-site--mobile .mk-site-hero-copy strong { font-size: 1.35em; }
.mk-site--mobile .mk-site-services { grid-template-columns: 1fr; gap: .5em; }
.mk-site--mobile .mk-site-services div { display: flex; align-items: center; }
.mk-site--mobile .mk-site-form { grid-template-columns: 1fr; }

/* Devices */
.mk-laptop-screen { border: .6em solid #1A2130; border-bottom-width: .9em; border-radius: 1.1em 1.1em .3em .3em; background: #1A2130; box-shadow: var(--shadow-lg); }
.mk-laptop-screen .mk-browser { border: 0; border-radius: .35em; box-shadow: none; }
.mk-laptop-base { height: 1.1em; width: 112%; margin-inline: -6%; background: linear-gradient(#E3E7ED, #C3C9D3); border-radius: 0 0 1.4em 1.4em; position: relative; }
.mk-laptop-base::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 16%; height: .4em; background: #AEB5C1; border-radius: 0 0 .6em .6em; }
.mk-phone { position: relative; width: 16em; border: .55em solid #1A2130; border-radius: 2.2em; background: #1A2130; overflow: hidden; box-shadow: var(--shadow-lg); }
.mk-phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 36%; height: 1.2em; background: #1A2130; border-radius: 0 0 .8em .8em; z-index: 2; }
.mk-phone-screen { border-radius: 1.65em; overflow: hidden; background: #fff; padding-top: .9em; }

/* Company profile */
.mk-docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2em; }
.mk-doc {
  position: relative; aspect-ratio: 1 / 1.414; background: #fff; border: 1px solid var(--line); border-radius: .5em;
  padding: 1.4em 1.3em; display: flex; flex-direction: column; gap: .7em; box-shadow: var(--shadow); overflow: hidden; line-height: 1.5;
}
.mk-doc p { font-size: .82em; color: #5B6475; }
.mk-doc--cover { background: linear-gradient(165deg, #0F5C5C 0%, #0B4646 70%); color: #fff; justify-content: space-between; }
.mk-doc--cover::after { content: ""; position: absolute; inset-inline-end: -20%; bottom: 18%; width: 70%; aspect-ratio: 1; border-radius: 50%; border: .5em solid rgba(217, 184, 143, .45); }
.mk-doc-cover-title { display: grid; gap: .2em; position: relative; z-index: 1; }
.mk-doc-cover-title strong { font-size: 1.7em; line-height: 1.2; }
.mk-doc-cover-title span { color: #D9B88F; font-weight: 600; }
.mk-doc-domain { font-size: .78em; opacity: .75; }
.mk-doc-kicker { font-size: .78em; font-weight: 700; color: #B08950; }
.mk-doc-h { font-size: 1.15em; color: #0F3D3D; }
.mk-doc-img { flex: 1; min-height: 3em; border-radius: .5em; background: linear-gradient(140deg, #E5F0EF, #F4F1EA); }
.mk-doc-row { display: flex; align-items: center; gap: .6em; font-size: .85em; padding: .45em 0; border-bottom: 1px solid #EEF0F3; }
.mk-doc-row i { width: .7em; height: .7em; border-radius: .2em; background: #0F5C5C; flex: none; }
.mk-doc-map { margin-top: auto; height: 30%; border-radius: .5em; background: repeating-linear-gradient(45deg, #EEF2F2 0 .6em, #F7F8F8 .6em 1.2em); }
.mk-line { display: block; height: .45em; border-radius: 1em; background: #EEF0F3; }
.mk-line--s { width: 60%; }

/* Identity */
.mk-identity { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2em; }
.mk-id-tile { background: #fff; border: 1px solid var(--line); border-radius: .9em; padding: 1.2em; display: grid; gap: .8em; align-content: start; min-height: 11em; box-shadow: var(--shadow-sm); }
.mk-id-label { font-size: .78em; font-weight: 600; color: var(--subtle); }
.mk-id-logo { background: #F4F1EA; justify-items: start; }
.mk-id-mark b { display: inline-grid; place-items: center; width: 3.2em; height: 3.2em; border-radius: .8em; background: #0F5C5C; color: #F4F1EA; font-size: 1.3em; }
.mk-id-word { font-weight: 700; color: #0F3D3D; }
.mk-swatches { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; }
.mk-swatches span { display: grid; gap: .25em; }
.mk-swatches i { height: 2.2em; border-radius: .45em; border: 1px solid rgba(0, 0, 0, .06); }
.mk-swatches em { font-style: normal; font-size: .72em; color: var(--muted); }
.mk-id-type { font-size: 2.6em; font-weight: 700; color: #0F3D3D; line-height: 1.1; }
.mk-id-typename { font-size: .78em; color: var(--muted); }
.mk-id-card { background: var(--soft-2); place-content: center; }
.mk-bcard { aspect-ratio: 1.7 / 1; width: 100%; border-radius: .6em; background: #0F5C5C; color: #fff; padding: 1em; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); font-size: .9em; line-height: 1.45; }
.mk-bcard div { display: grid; }
.mk-bcard strong { font-size: 1.05em; }
.mk-bcard span { font-size: .78em; opacity: .85; }

/* App / dashboard */
.mk-app { display: grid; grid-template-columns: 11em minmax(0, 1fr); background: #F5F7FA; border: 1px solid var(--line); border-radius: .9em; overflow: hidden; box-shadow: var(--shadow); color: #1D2433; line-height: 1.45; }
.mk-app-side { background: var(--navy-900); color: #C9D1DE; padding: 1.1em .8em; display: grid; align-content: start; gap: 1.2em; }
.mk-logo--mark { color: #fff; font-size: .9em; max-width: 100%; overflow: hidden; }
.mk-app-side ul { list-style: none; display: grid; gap: .25em; }
.mk-app-side li { display: flex; align-items: center; gap: .6em; padding: .55em .6em; border-radius: .5em; font-size: .88em; }
.mk-app-side li i { width: .9em; height: .9em; border-radius: .25em; border: .14em solid currentColor; opacity: .7; }
.mk-app-side li.is-active { background: rgba(255, 255, 255, .1); color: #fff; }
.mk-app-main { padding: 1.2em; display: grid; gap: 1em; min-width: 0; }
.mk-app-top { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.mk-app-top div { display: grid; }
.mk-app-top strong { font-size: 1.2em; color: var(--navy); }
.mk-app-top span { font-size: .82em; color: var(--muted); }
.mk-avatar { display: inline-grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: #DCE5F4; color: var(--navy); font-weight: 700; font-style: normal; font-size: .9em; flex: none; }
.mk-avatar--s { width: 1.7em; height: 1.7em; font-size: .75em; }
.mk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7em; }
.mk-stats div { background: #fff; border: 1px solid var(--line); border-radius: .7em; padding: .75em .85em; display: grid; gap: .15em; }
.mk-stats span { font-size: .78em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-stats strong { font-size: 1.55em; color: var(--navy); line-height: 1.1; }
.mk-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8em; }
.mk-panel { background: #fff; border: 1px solid var(--line); border-radius: .7em; padding: .85em .95em; min-width: 0; }
.mk-panel-h { display: block; font-size: .85em; font-weight: 700; color: var(--navy); margin-bottom: .55em; }
.mk-panel ul { list-style: none; display: grid; gap: .1em; }
.mk-panel li { display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .45em 0; font-size: .84em; border-bottom: 1px solid #F0F2F5; }
.mk-panel li:last-child { border-bottom: 0; }
.mk-panel li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-tasks li { justify-content: flex-start; }
.mk-tasks i { flex: none; width: 1em; height: 1em; border-radius: .3em; border: .14em solid #C3CAD6; }
.mk-tasks .is-done i { background: var(--green); border-color: var(--green); }
.mk-tasks .is-done span { color: var(--subtle); text-decoration: line-through; }
.mk-tasks .is-progress i { border-color: var(--blue); }
.mk-projects li { display: grid; grid-template-columns: minmax(0, 1fr) 5em auto; }
.mk-projects b { height: .45em; border-radius: 1em; background: #EEF1F5; overflow: hidden; }
.mk-projects b i { display: block; height: 100%; background: var(--navy); border-radius: 1em; }
.mk-projects em { font-style: normal; font-size: .9em; color: var(--muted); }
.mk-deadlines time, .mk-kmeta time { font-size: .9em; color: var(--accent); font-weight: 600; white-space: nowrap; }
.mk-pill { flex: none; font-style: normal; font-size: .82em; font-weight: 600; padding: .15em .7em; border-radius: 999px; white-space: nowrap; }
.mk-pill--new { background: var(--blue-50); color: var(--blue); }
.mk-pill--wait { background: var(--amber-50); color: var(--amber); }
.mk-pill--done { background: var(--green-50); color: var(--green); }
.mk-pill--progress { background: var(--violet-50); color: var(--violet); }
.mk-app--compact { grid-template-columns: 1fr; padding: 1em; gap: .8em; display: grid; }
.mk-app--compact .mk-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mk-chip { font-size: .78em; font-weight: 700; color: var(--muted); background: var(--soft-2); border-radius: 999px; padding: .1em .7em; }

/* Customer table */
.mk-table { background: #fff; border: 1px solid var(--line); border-radius: .9em; overflow: hidden; box-shadow: var(--shadow-sm); line-height: 1.45; }
.mk-table-title { display: flex; align-items: center; gap: .6em; padding: 1em 1.1em; border-bottom: 1px solid var(--line); }
.mk-table-title strong { color: var(--navy); }
.mk-tr { display: grid; grid-template-columns: 1.3fr 1fr 1.05fr 1fr 1.15fr; gap: .8em; align-items: center; padding: .8em 1.1em; border-bottom: 1px solid #F0F2F5; font-size: .92em; }
.mk-tr:last-child { border-bottom: 0; }
.mk-tr > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-tr--head { background: #F7F8FA; font-size: .8em; font-weight: 700; color: var(--muted); }
.mk-tr b { color: var(--navy); font-weight: 600; }
.mk-c3 { display: inline-flex; align-items: center; gap: .5em; }

/* Kanban */
.mk-board { background: #F5F7FA; border: 1px solid var(--line); border-radius: .9em; padding: 1em; line-height: 1.45; box-shadow: var(--shadow-sm); }
.mk-board-title { margin-bottom: .8em; }
.mk-board-title strong { color: var(--navy); }
.mk-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7em; }
.mk-col { display: grid; gap: .55em; align-content: start; }
.mk-col-h { display: flex; align-items: center; gap: .45em; font-size: .82em; font-weight: 700; color: var(--muted); padding: .2em .1em; }
.mk-col-h em { font-style: normal; margin-inline-start: auto; color: var(--subtle); }
.mk-dot { width: .6em; height: .6em; border-radius: 50%; flex: none; }
.mk-dot--todo { background: #AEB5C1; } .mk-dot--progress { background: var(--blue); } .mk-dot--review { background: var(--amber); } .mk-dot--done { background: var(--green); }
.mk-kcard { background: #fff; border: 1px solid var(--line); border-radius: .6em; padding: .7em; display: grid; gap: .6em; font-size: .86em; }
.mk-kcard strong { color: var(--ink); font-weight: 600; line-height: 1.4; }
.mk-kmeta { display: flex; align-items: center; justify-content: space-between; gap: .4em; font-size: .9em; color: var(--muted); }
.mk-kmeta span { display: inline-flex; align-items: center; gap: .4em; }

/* Automation flow */
.mk-flow { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.4em; }
.mk-flow-step { position: relative; display: grid; gap: .6em; justify-items: start; background: #fff; border: 1px solid var(--line); border-radius: .9em; padding: 1.1em; box-shadow: var(--shadow-sm); }
.mk-flow-step strong { color: var(--navy); line-height: 1.45; }
.mk-flow-ico { display: inline-grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: .7em; background: var(--green-50); color: var(--green); }
.mk-flow-step:first-child .mk-flow-ico { background: var(--blue-50); color: var(--blue); }
.mk-flow-step:last-child .mk-flow-ico { background: #E7ECF5; color: var(--navy); }
.mk-flow-n { font-size: .78em; font-weight: 700; color: var(--subtle); }
.mk-flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; inset-inline-end: -2.4em; width: 2.4em; height: 2px;
  background: repeating-linear-gradient(90deg, var(--green) 0 .4em, transparent .4em .7em);
}
.mk-flow-step:not(:last-child)::before {
  content: ""; position: absolute; top: calc(50% - .3em); inset-inline-end: -1.65em; width: .6em; height: .6em;
  border-top: 2px solid var(--green); border-inline-end: 2px solid var(--green); transform: rotate(45deg); z-index: 1;
}
[dir="rtl"] .mk-flow-step:not(:last-child)::before { transform: rotate(-45deg); }

/* Demo-frame reflow for narrow screens (only on the demos page frames) */
@container demo (max-width: 700px) {
  .mk-app { grid-template-columns: 1fr; }
  .mk-app-side { display: none; }
  .mk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-panels { grid-template-columns: 1fr; }
  .mk-docs, .mk-identity { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-site-hero { grid-template-columns: 1fr; }
  .mk-site-art { display: none; }
  .mk-site-services { grid-template-columns: 1fr; }
  .mk-site-form { grid-template-columns: 1fr; }
  .mk-tr { grid-template-columns: 1.3fr 1fr 1fr; }
  .mk-c1, .mk-c4 { display: none !important; }
  .mk-cols { grid-template-columns: repeat(4, 13em); overflow-x: auto; padding-bottom: .4em; }
  .mk-flow { grid-template-columns: 1fr; gap: 1.6em; }
  .mk-flow-step:not(:last-child)::after { top: auto; bottom: -1.6em; inset-inline-end: auto; inset-inline-start: 1.9em; width: 2px; height: 1.6em; background: repeating-linear-gradient(180deg, var(--green) 0 .35em, transparent .35em .6em); }
  .mk-flow-step:not(:last-child)::before { top: auto; bottom: -1.35em; inset-inline-end: auto; inset-inline-start: 1.68em; transform: rotate(135deg); }
}
@container demo (max-width: 420px) {
  .mk-docs { grid-template-columns: 1fr 1fr; gap: .8em; }
  .mk-identity { grid-template-columns: 1fr; }
}

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