/* SmartClinic website — design tokens + components. Logical properties throughout so RTL (ar, fa, ckb) mirrors correctly. */
:root {
  --navy-950: #07141f; --navy-900: #0a1b2a; --navy-800: #10293b; --ink: #14222e; --brand-slate: #253a4b;
  --teal-700: #0b6b75; --teal-600: #0b7d88; --teal-500: #0e9aa7; --teal-300: #5fd3dc;
  --emerald-700: #0a7f59; --emerald-500: #18b57b; --emerald-300: #6fe3b0;
  --gray-50: #f3f6f8; --gray-100: #e8eef1; --gray-300: #c9d4da; --gray-600: #566873;
  --line: #dbe4e9; --white: #fff; --danger: #b3261e;
  --r: 6px; --r-lg: 10px;
  --header-h: 68px;
  --font-latin: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "Segoe UI", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, "Geeza Pro", "Arabic Typesetting", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-latin); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); }
html[lang="ar"] body, html[lang="fa"] body, html[lang="ckb"] body { font-family: var(--font-arabic); font-size: 1.125rem; line-height: 1.9; }
img, svg { max-width: 100%; }
a { color: var(--teal-600); text-underline-offset: .2em; }
a:hover { color: var(--teal-700); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; color: inherit; text-wrap: balance; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="tr"] h1, html[lang="tr"] h2 { letter-spacing: -.02em; } /* never tracking on Arabic scripts: it breaks letter joining */
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3,
html[lang="ckb"] h1, html[lang="ckb"] h2, html[lang="ckb"] h3 { line-height: 1.45; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; border-radius: 3px; }
.dark :focus-visible, .hero :focus-visible, .phero :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible { outline-color: var(--teal-300); }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: .5rem; top: -4rem; background: var(--white); color: var(--ink); padding: .6rem 1rem; z-index: 100; border-radius: var(--r); }
.skip:focus { top: .5rem; }
bdi { unicode-bidi: isolate; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .62rem 1.1rem; border-radius: var(--r); border: 1.5px solid transparent; font: inherit; font-weight: 600; font-size: .97rem; line-height: 1.3; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.btn.lg { padding: .85rem 1.5rem; font-size: 1.02rem; }
.btn.primary { background: var(--emerald-700); color: #fff; }
.btn.primary:hover { background: #086a4a; color: #fff; }
.btn.primary[disabled] { opacity: .6; cursor: not-allowed; }
.btn.ghost { color: var(--ink); border-color: var(--gray-300); background: transparent; }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn.outline { color: var(--teal-700); border-color: var(--teal-600); background: transparent; }
.btn.outline:hover { background: var(--teal-600); color: #fff; }
.hero .btn.primary, .phero .btn.primary, .cta-band .btn.primary { background: var(--emerald-500); color: var(--navy-950); }
.hero .btn.primary:hover, .phero .btn.primary:hover, .cta-band .btn.primary:hover { background: var(--emerald-300); color: var(--navy-950); }
.btn.ghost-light { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.btn.ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.arr, .tick, .ico { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }
[dir="rtl"] .arr { transform: scaleX(-1); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { max-width: 1320px; }
.bar { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--navy-900); font-weight: 800; font-size: 1.2rem; text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--navy-900); }
.mark { width: 32px; height: 32px; }
.nav-panel { display: flex; align-items: center; flex: 1; gap: .75rem; }
.nav { display: flex; align-items: center; gap: .15rem; flex: 1; }
.nav > a, .dd > summary { display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .6rem; color: var(--ink); font-weight: 600; font-size: .93rem; text-decoration: none; border-radius: var(--r); cursor: pointer; list-style: none; white-space: nowrap; }
.dd > summary::-webkit-details-marker { display: none; }
.nav > a:hover, .dd > summary:hover, .dd[open] > summary, .dd.is-active > summary, .nav > a[aria-current] { background: var(--gray-50); color: var(--ink); }
.nav .dd:not(.lang) > summary::after { content: ""; width: .42em; height: .42em; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.dd { position: relative; }
.dd-panel { position: absolute; inset-inline-start: 0; top: calc(100% + .35rem); min-width: 15rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 18px 40px -18px rgba(10,27,42,.35); padding: .4rem; display: flex; flex-direction: column; z-index: 60; }
.dd-panel a { padding: .55rem .75rem; color: var(--ink); text-decoration: none; border-radius: var(--r); font-size: .96rem; font-weight: 500; }
.dd-panel a:hover, .dd-panel a[aria-current] { background: var(--gray-50); }
.actions { display: flex; align-items: center; gap: .45rem; }
.actions .btn { padding-inline: .9rem; font-size: .93rem; }
.lang > summary { color: var(--gray-600); font-weight: 600; }
.lang .dd-panel { inset-inline-start: auto; inset-inline-end: 0; min-width: 11rem; }
.burger { display: none; margin-inline-start: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1240px) {
  .burger { display: flex; }
  .nav-panel { flex-direction: column; align-items: stretch; background: #fff; border-top: 1px solid var(--line); padding: .75rem clamp(1rem, 4vw, 2.5rem) 1.25rem; position: absolute; inset-inline: 0; top: 100%; max-height: calc(100dvh - var(--header-h)); overflow: auto; }
  .js .nav-panel { display: none; }
  .js .nav-open .nav-panel { display: flex; }
  .no-js .site-header { position: static; }
  .no-js .bar { flex-wrap: wrap; }
  .no-js .nav-panel { position: static; flex-basis: 100%; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > a, .dd > summary { display: flex; width: 100%; padding: .8rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; justify-content: space-between; }
  .dd { display: block; }
  .nav > a:hover, .dd > summary:hover, .dd[open] > summary, .dd.is-active > summary, .nav > a[aria-current] { background: transparent; color: var(--teal-700); }
  .dd-panel, .lang .dd-panel { position: static; box-shadow: none; border: 0; padding: 0 0 .5rem; min-width: 0; }
  .dd-panel a { padding-inline: 1rem; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
}

/* ---------- hero (home) ---------- */
.hero, .phero { color: #fff; background: radial-gradient(60% 80% at 88% 8%, rgba(14,154,167,.38), transparent 62%), radial-gradient(45% 60% at 6% 100%, rgba(24,181,123,.2), transparent 62%), linear-gradient(180deg, var(--navy-950), var(--navy-900)); }
.hero a:not(.btn), .phero a:not(.btn) { color: var(--teal-300); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2.5rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 38em; opacity: .92; }
.hero-btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-block: 1.6rem 0; }
.hero-v { min-width: 0; }

.phero[data-tone="teal"]    { background: radial-gradient(60% 90% at 90% 0%, rgba(95,211,220,.28), transparent 62%), linear-gradient(135deg, #07202a, #0b4a55); }
.phero[data-tone="emerald"] { background: radial-gradient(60% 90% at 90% 0%, rgba(111,227,176,.25), transparent 62%), linear-gradient(135deg, #071f1a, #0b4d3b); }
.phero[data-tone="slate"]   { background: radial-gradient(60% 90% at 90% 0%, rgba(95,211,220,.2), transparent 62%), linear-gradient(135deg, #0d1f2d, #2b4a63); }
.phero-in { display: grid; gap: 2rem; padding-block: clamp(2.2rem, 5vw, 4rem); }
.phero-in.has-vis { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
.phero.small .phero-in { padding-block: clamp(1.8rem, 4vw, 3rem); }
.phero-v { min-width: 0; color: var(--teal-300); }
.phero-v .motif { width: min(100%, 300px); height: auto; margin-inline: auto; display: block; }
.fineh { opacity: .8; font-size: .95rem; margin: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .1rem .45rem; list-style: none; padding: 0; margin: 0 0 1.2rem; font-size: .92rem; color: rgba(255,255,255,.72); }
.crumbs li + li::before { content: "/"; margin-inline-end: .45rem; opacity: .5; }
.crumbs a { color: rgba(255,255,255,.85) !important; }

/* ---------- bands & sections ---------- */
.band { padding-block: clamp(2.8rem, 6vw, 5rem); }
.band.tint { background: var(--gray-50); }
.band.dark { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: #fff; }
.sec-head { max-width: 46rem; margin-bottom: 2rem; }
.sec-head p { color: var(--gray-600); font-size: 1.1rem; }
.spec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem clamp(1.5rem, 5vw, 4rem); padding-block: 2rem; border-top: 1px solid var(--line); }
.spec:last-child { border-bottom: 1px solid var(--line); }
.spec h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 0; }
.spec-b p { max-width: 42rem; }
.spec-b p:last-child { margin-bottom: 0; }
ul.plain { margin: 0 0 1em; padding-inline-start: 1.2rem; }
ul.plain li { margin-bottom: .4rem; }
.more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; }
.more.light { color: var(--teal-300); }
.more:hover .arr { transform: translateX(3px); }
[dir="rtl"] .more:hover .arr { transform: scaleX(-1) translateX(3px); }
.arr { transition: transform .15s; }

ul.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr) auto; gap: .5rem clamp(1rem, 4vw, 3rem); align-items: baseline; padding-block: 1.4rem; border-top: 1px solid var(--line); }
.ledger li:last-child { border-bottom: 1px solid var(--line); }
.ledger h3, .ledger h2.lh { margin: 0; font-size: 1.25rem; }
.ledger h3 a, .ledger h2.lh a { color: var(--ink); text-decoration: none; }
.ledger h3 a:hover, .ledger h2.lh a:hover { color: var(--teal-600); }
.ledger p { margin: 0; color: var(--gray-600); max-width: 38rem; }
.ledger.big li { padding-block: 1.8rem; }
.ledger.big h2.lh { font-size: 1.4rem; }

ul.spec-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.spec-tiles li { border-top: 4px solid var(--teal-500); }
.spec-tiles li[data-tone="navy"] { border-color: var(--brand-slate); }
.spec-tiles li[data-tone="emerald"] { border-color: var(--emerald-500); }
.spec-tiles li[data-tone="slate"] { border-color: #5d7f9c; }
.spec-tiles a { display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1.1rem 0 0; color: var(--ink); text-decoration: none; }
.spec-tiles strong { font-size: 1.2rem; }
.spec-tiles span { color: var(--gray-600); font-size: .98rem; flex: 1; }
.spec-tiles a:hover strong { color: var(--teal-600); }

.trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start; }
.trust p { opacity: .88; }
ul.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 3rem; }
ul.checks.wide { grid-template-columns: 1fr; max-width: 52rem; }
.trust ul.checks { grid-template-columns: 1fr; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; }
.checks .tick { color: var(--emerald-700); margin-top: .3em; width: 1.2em; height: 1.2em; }
.on-dark .tick { color: var(--emerald-300); }
.on-dark li { color: rgba(255,255,255,.92); }
.band.dark h2 { margin-bottom: 1rem; }

ul.cols { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem 2rem; }
.cols li { border-inline-start: 3px solid var(--teal-500); padding-inline-start: 1rem; padding-block: .15rem; }
.rail-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem clamp(2rem, 6vw, 5rem); }
ol.rail { list-style: none; counter-reset: step; margin: 0; padding: 0; position: relative; }
.rail li { counter-increment: step; position: relative; padding-inline-start: 3.2rem; padding-bottom: 1.6rem; }
.rail li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--teal-600); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem; line-height: 1; }
.rail li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 1.02rem; top: 2.3rem; bottom: .2rem; width: 2px; background: var(--gray-300); }
.rail li span { display: block; padding-top: .2rem; }

.cta-band { background: linear-gradient(120deg, var(--navy-900), #0b4a55); color: #fff; }
.cta-in { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.cta-in h2 { margin-bottom: .3rem; }
.cta-in p { margin: 0; opacity: .88; max-width: 36rem; }
.cta-btns { display: flex; flex-wrap: wrap; gap: .8rem; }

ul.posts { list-style: none; margin: 0; padding: 0; }
.posts li { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: .5rem 2rem; padding-block: 1.6rem; border-top: 1px solid var(--line); }
.posts li:last-child { border-bottom: 1px solid var(--line); }
.posts time { color: var(--gray-600); font-size: .95rem; }
.posts h2 { font-size: 1.45rem; margin-bottom: .3rem; }
.posts h2 a { color: var(--ink); text-decoration: none; }
.posts h2 a:hover { color: var(--teal-600); }
.posts p { margin: 0; color: var(--gray-600); }
.prose { max-width: 46rem; }
.prose.wide { max-width: 52rem; }
.prose .lead-p { font-size: 1.25rem; line-height: 1.6; }
.legal-s { margin-bottom: 2rem; }
.legal-s h2 { font-size: 1.35rem; }

.faq details { border-top: 1px solid var(--line); padding-block: .2rem; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 700; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--teal-600); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--gray-600); margin: 0 0 1.2rem; max-width: 42rem; }

/* ---------- forms ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start; }
.form-aside { border-inline-start: 3px solid var(--teal-500); padding-inline-start: 1.4rem; }
.form-aside h2 { font-size: 1.3rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field .opt { color: var(--gray-600); font-weight: 400; font-size: .9em; }
.field input, .field select, .field textarea { width: 100%; padding: .7rem .85rem; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--gray-300); border-radius: var(--r); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-500); outline: 3px solid rgba(14,154,167,.25); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field input[type="email"], .field input[type="tel"] { direction: ltr; text-align: start; unicode-bidi: plaintext; }
.err { color: var(--danger); font-size: .93rem; margin: .3rem 0 0; }
.form-summary { border-inline-start: 4px solid var(--danger); background: #fdecea; color: #7a1b15; padding: .8rem 1rem; border-radius: var(--r); }
.form-ok { border-inline-start: 4px solid var(--emerald-700); background: #e7f7ef; padding: 1.5rem; border-radius: var(--r); }
.form-ok h2 { font-size: 1.4rem; }
.fine { color: var(--gray-600); font-size: .93rem; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.78); padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; font-size: .96rem; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; }
.fgrid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 2rem; }
.fcol h2 { font-size: .98rem; color: #fff; margin-bottom: .8rem; letter-spacing: 0; }
.fcol ul, .flegal { list-style: none; margin: 0; padding: 0; }
.fcol li { margin-bottom: .45rem; }
.fbrand p { margin: .8rem 0 0; max-width: 22rem; }
.fnote { font-size: .88rem; opacity: .75; }
.flink { color: var(--teal-300) !important; font-weight: 600; }
.fbottom { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.5rem; padding-top: 1.5rem; }
.fbottom p { margin: 0; }
.flegal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.flangs { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }

.root-choice { display: grid; min-height: 100vh; place-items: center; text-align: center; background: var(--navy-900); color: #fff; }
.root-langs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; justify-content: center; }
.root-langs a { color: var(--teal-300); font-size: 1.2rem; }

/* ---------- interface previews (illustrative) ---------- */
.pv-fig { margin: 0; }
.pv-cap { margin: .7rem 0 0; font-size: .85rem; opacity: .75; color: inherit; }
.pv { background: #fff; color: var(--ink); border-radius: var(--r-lg); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 28px 60px -24px rgba(0,0,0,.55); overflow: hidden; }
.pv-h { display: flex; justify-content: space-between; align-items: center; padding: .6rem .9rem; font-weight: 700; font-size: .85rem; background: var(--gray-50); border-bottom: 1px solid var(--line); }
.pv-h b { width: 38px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--teal-500), var(--emerald-500)); }
.pv-b { padding: .9rem; }
.pv-row { display: flex; align-items: center; gap: .6rem; padding-block: .3rem; min-width: 0; }
.pv-row > .pv-line { flex: 0 1 var(--w); min-width: 0; }
.pv-row > .pv-chip { flex: none; }
.pv-row > .pv-line + .pv-chip { margin-inline-start: auto; }
.pv-time { font-size: .8rem; color: var(--gray-600); min-width: 2.9rem; direction: ltr; unicode-bidi: isolate; }
.pv-slot { display: flex; align-items: center; height: 28px; width: var(--w); padding-inline: 8px; border-radius: 5px; }
.c-a { background: #d4f0f2; } .c-b { background: #d3f3e4; } .c-c { background: #dde5ec; }
.pv-line { display: block; height: 8px; width: var(--w); border-radius: 4px; background: #cdd9df; margin-block: .4rem; flex: none; }
.pv-slot .pv-line { margin: 0; background: rgba(10,27,42,.28); }
.pv-av { display: inline-block; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--teal-500), var(--emerald-500)); flex: none; }
.pv-av[data-n="2"] { background: linear-gradient(135deg, var(--navy-800), var(--teal-500)); }
.pv-av[data-n="3"] { background: linear-gradient(135deg, var(--emerald-700), var(--teal-300)); }
.pv-av[data-n="4"] { background: linear-gradient(135deg, #5d7f9c, var(--navy-800)); }
.pv-pt { display: flex; align-items: center; gap: .8rem; }
.pv-pt > div { flex: 1; }
.pv-tabs, .pv-legend, .pv-pay { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.pv-chip { display: inline-block; padding: .15rem .6rem; border-radius: 99px; border: 1px solid var(--gray-300); font-size: .78rem; font-weight: 600; color: var(--gray-600); background: #fff; }
.pv-chip.on { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pv-chip.ok { background: #d3f3e4; border-color: #b3e6cc; color: #075c40; }
.pv-chip.wait { background: #fdf1d6; border-color: #f4e0aa; color: #7a5600; }
.pv-notes { margin-top: .8rem; }
.pv-bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; margin-top: .4rem; }
.pv-bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--teal-500), var(--teal-600)); }
.pv-bars.two i:nth-child(even) { background: linear-gradient(180deg, var(--emerald-500), var(--emerald-700)); }
.pv-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; height: 230px; }
.pv-day { position: relative; background: var(--gray-50); border-radius: 6px; }
.pv-day i { position: absolute; inset-inline: 4px; top: var(--t); height: var(--hh); border-radius: 4px; }
.pv-shift { flex: 1; height: 14px; background: var(--gray-100); border-radius: 7px; position: relative; }
.pv-shift i { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--s); width: var(--w); background: var(--teal-500); border-radius: 7px; }
.pv-spark { width: 100%; height: 60px; color: var(--emerald-500); margin-top: .6rem; }
.pv-net { display: block; width: 100%; max-width: 300px; margin-inline: auto; color: var(--teal-600); }
.pv-arc { display: block; width: 70%; margin-inline: auto; color: var(--teal-500); }
.pv-sub { text-align: center; font-size: .82rem; color: var(--gray-600); margin: 0 0 .6rem; }
.pv-joint { display: block; height: 150px; margin-inline: auto; color: var(--teal-600); }
.pv-time-line { position: relative; height: 48px; }
.pv-time-line::before { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 2px; background: var(--gray-300); }
.pv-time-line i { position: absolute; inset-inline-start: var(--l); top: 50%; width: 14px; height: 14px; margin: -7px 0 0 0; margin-inline-start: -7px; border-radius: 50%; background: var(--teal-500); }
.pv-time-line i.now { background: var(--emerald-500); box-shadow: 0 0 0 5px rgba(24,181,123,.25); }
.pv-stack { position: relative; min-height: 470px; }
.pv-stack .pv { position: absolute; }
.pv-main { inset-inline-start: 0; top: 44px; width: 74%; }
.pv-side { inset-inline-end: 0; bottom: 0; width: 56%; }
.pv-top { inset-inline-end: 3%; top: 0; width: 46%; }

@media (max-width: 960px) {
  .hero-in, .phero-in.has-vis, .trust, .rail-wrap, .form-wrap { grid-template-columns: 1fr; }
  ul.spec-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fbrand { grid-column: 1 / -1; }
  .spec, .ledger li { grid-template-columns: 1fr; }
  .posts li { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  ul.checks, .grid2 { grid-template-columns: 1fr; }
  ul.spec-tiles { grid-template-columns: 1fr; }
  .pv-stack { min-height: 0; display: grid; gap: 1rem; }
  .pv-stack .pv { position: static; width: auto; }
  .pv-top, .pv-side { display: none; }
}

/* one orchestrated entrance: the hero preview layers settle in once */
@media (prefers-reduced-motion: no-preference) {
  .hero .pv { animation: settle .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero .pv-top { animation-delay: .12s; }
  .hero .pv-side { animation-delay: .24s; }
  @keyframes settle { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Home page (2026-10 redesign): richer hero mockup, live-demo strip,
   alternating feature rows, "why" grid, scroll reveal.
   ===================================================================== */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.1rem; padding: .3rem .8rem; border-radius: 99px; font-size: .85rem; font-weight: 700; color: var(--emerald-300); background: rgba(24,181,123,.12); border: 1px solid rgba(111,227,176,.28); }
.eyebrow.dark { color: var(--teal-700); background: #e3f4f5; border-color: #c5e7ea; margin-bottom: .8rem; font-size: .8rem; padding: .22rem .7rem; }
.home-hero .hero-in { grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); }
.home-hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.4rem); }
.proof { list-style: none; margin: 1.8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem 1.4rem; font-size: .95rem; color: rgba(255,255,255,.85); }
.proof li { display: inline-flex; gap: .45rem; align-items: center; }
.proof .tick { color: var(--emerald-300); }

/* ---- mockup window ---- */
.mk-fig { margin: 0; position: relative; }
.mk-win { background: #fff; color: var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); font-size: .82rem; line-height: 1.4; text-align: start; }
.mk-win.sm { box-shadow: 0 30px 60px -30px rgba(10,27,42,.45), 0 0 0 1px var(--line); }
.mk-chrome { display: flex; align-items: center; gap: 6px; padding: .55rem .8rem; background: #eef2f5; border-bottom: 1px solid var(--line); }
.mk-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #d3dbe1; }
.mk-chrome i:nth-child(1) { background: #f2766b; } .mk-chrome i:nth-child(2) { background: #f5c04e; } .mk-chrome i:nth-child(3) { background: #5ccf73; }
.mk-url { margin-inline-start: .8rem; flex: 1; max-width: 16rem; padding: .15rem .7rem; border-radius: 6px; background: #fff; color: var(--gray-600); font-size: .72rem; }
.mk-app { display: grid; grid-template-columns: 9.2rem minmax(0, 1fr); min-height: 360px; }
.mk-side { background: linear-gradient(180deg, #0b2233, #0b3340); color: rgba(255,255,255,.75); padding: .9rem .6rem; display: flex; flex-direction: column; gap: .2rem; }
.mk-logo { display: flex; align-items: center; gap: .5rem; color: #fff; font-weight: 800; font-size: .86rem; margin: 0 .3rem .8rem; }
.mk-logo span { width: 18px; height: 18px; border-radius: 6px; background: linear-gradient(135deg, var(--teal-300), var(--emerald-500)); }
.mk-nav { display: flex; align-items: center; gap: .55rem; padding: .42rem .55rem; border-radius: 7px; font-size: .78rem; white-space: nowrap; overflow: hidden; }
.mk-nav.on { background: rgba(95,211,220,.16); color: #fff; }
.mk-ic { width: 15px; height: 15px; flex: none; }
.mk-main { padding: .9rem 1rem 1rem; background: #f6f9fa; display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.mk-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.mk-top b { display: block; font-size: .95rem; }
.mk-top span { color: var(--gray-600); font-size: .75rem; }
.mk-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.mk-kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .65rem; position: relative; min-width: 0; }
.mk-kpi > span { display: block; color: var(--gray-600); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-kpi b { display: block; font-size: 1.15rem; margin-top: .15rem; white-space: nowrap; }
.mk-kpi b small, .mk-float small, .mk-tbl small { font-size: .65em; color: var(--gray-600); font-weight: 600; }
.mk-delta { position: absolute; inset-inline-end: .55rem; bottom: .55rem; font-style: normal; font-size: .68rem; font-weight: 700; color: var(--emerald-700); }
.mk-spark { display: block; width: 100%; height: 22px; margin-top: .2rem; }
[dir="rtl"] .mk-spark { transform: scaleX(-1); } /* time runs right-to-left */
.mk-spark.up { color: var(--emerald-500); } .mk-spark.down { color: var(--teal-500); }
.mk-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem .4rem; }
.mk-card-h { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.mk-card-h b { font-size: .86rem; }
.mk-card-h > span { color: var(--teal-600); font-size: .72rem; font-weight: 600; }
.mk-list { list-style: none; margin: 0; padding: 0; }
.mk-list li { display: flex; align-items: center; gap: .6rem; padding-block: .42rem; border-top: 1px solid #edf1f3; }
.mk-list li:first-child { border-top: 0; }
.mk-list time { width: 2.6rem; flex: none; color: var(--gray-600); font-size: .74rem; font-variant-numeric: tabular-nums; }
.mk-av { color: #fff !important; width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-size: .66rem; font-weight: 700; background: linear-gradient(135deg, var(--teal-500), var(--emerald-500)); }
.mk-av[data-i="1"] { background: linear-gradient(135deg, #3c6e91, var(--teal-500)); }
.mk-av[data-i="2"] { background: linear-gradient(135deg, #c27a3a, #e0a458); }
.mk-av[data-i="3"] { background: linear-gradient(135deg, #7a5ca8, #a183cf); }
.mk-who { flex: 1; min-width: 0; }
.mk-who b, .mk-who span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-who b { font-size: .8rem; } .mk-who span { color: var(--gray-600); font-size: .7rem; }
.mk-chip { display: inline-block; flex: none; padding: .12rem .5rem; border-radius: 99px; font-size: .68rem; font-weight: 700; background: #eef2f5; color: var(--gray-600); white-space: nowrap; }
.mk-chip.ok { background: #d8f4e6; color: #07603f; } .mk-chip.info { background: #dcecfb; color: #144e86; }
.mk-chip.wait { background: #fdf0d3; color: #7a5600; } .mk-chip.soft { background: #e8f3f4; color: var(--teal-700); }
/* floating cards */
.mk-float { position: absolute; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 24px 48px -18px rgba(0,0,0,.5); padding: .7rem .85rem; font-size: .78rem; line-height: 1.35; }
.mk-float.fa { top: -2.2rem; inset-inline-end: 1.5rem; width: 14rem; }
.mk-fh { display: flex; align-items: center; gap: .4rem; color: var(--teal-700); }
.mk-fh .mk-ic { width: 16px; height: 16px; }
.mk-float p { margin: .3rem 0 .45rem; color: var(--gray-600); }
.mk-frow { display: flex; align-items: center; justify-content: space-between; gap: .4rem; font-weight: 600; }
.mk-btn { background: var(--emerald-700); color: #fff; border-radius: 6px; padding: .2rem .55rem; font-size: .72rem; }
.mk-float.fb { bottom: 2.6rem; inset-inline-start: -1.4rem; display: flex; align-items: center; gap: .6rem; }
.mk-float.fb span { display: block; color: var(--gray-600); font-size: .72rem; }
.mk-float.fb b { font-size: .85rem; }
.mk-okdot { width: 30px; height: 30px; border-radius: 50%; display: grid !important; place-items: center; background: #d8f4e6; color: var(--emerald-700) !important; }
.mk-okdot .mk-ic { width: 16px; height: 16px; }
.mk-hero .pv-cap { color: rgba(255,255,255,.65); }

/* ---- feature-row panels ---- */
.mk-panel { padding: 1rem 1.1rem 1.1rem; background: #fbfcfd; display: flex; flex-direction: column; gap: .8rem; }
.mk-ph { display: flex; align-items: center; gap: .7rem; }
.mk-ph .mk-av { width: 42px; height: 42px; font-size: .85rem; }
.mk-ph b { display: block; font-size: 1rem; } .mk-ph span { color: var(--gray-600); font-size: .75rem; }
.mk-tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); }
.mk-tabs span { padding: .35rem .6rem; font-size: .75rem; font-weight: 600; color: var(--gray-600); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.mk-tabs span.on { color: var(--teal-700); border-color: var(--teal-500); }
.mk-tl { list-style: none; margin: 0; padding: 0; position: relative; }
.mk-tl li { display: grid; grid-template-columns: 3.4rem 14px minmax(0, 1fr); gap: .6rem; align-items: start; padding-bottom: .7rem; position: relative; }
.mk-tl li::before { content: ""; grid-column: 2; grid-row: 1; width: 10px; height: 10px; margin-top: .25rem; border-radius: 50%; background: #fff; border: 2px solid var(--gray-300); }
.mk-tl li.now::before { border-color: var(--emerald-500); background: var(--emerald-500); box-shadow: 0 0 0 4px rgba(24,181,123,.18); }
.mk-tl li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: calc(3.4rem + .6rem + 6px); top: 1.2rem; bottom: 0; width: 2px; background: #e3e9ed; }
.mk-tl time { grid-column: 1; grid-row: 1; color: var(--gray-600); font-size: .74rem; padding-top: .1rem; }
.mk-tl div { grid-column: 3; grid-row: 1; }
.mk-tl b { display: block; font-size: .82rem; } .mk-tl div span { color: var(--gray-600); font-size: .72rem; }
.mk-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.mk-seg { display: inline-flex; background: #eef2f5; border-radius: 7px; padding: 2px; }
.mk-seg span { padding: .15rem .6rem; border-radius: 5px; font-size: .7rem; color: var(--gray-600) !important; font-weight: 600; }
.mk-seg span.on { background: #fff; color: var(--ink) !important; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.mk-day { display: grid; grid-template-columns: 2.8rem repeat(var(--cols), minmax(0, 1fr)); gap: .4rem; }
.mk-hours { display: flex; flex-direction: column; padding-top: 1.6rem; }
.mk-hours span { height: 44px; font-size: .68rem; color: var(--gray-600); }
.mk-colh { display: block; font-size: .74rem; text-align: center; padding-bottom: .4rem; height: 1.6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-colb { position: relative; height: calc(44px * 5); border-radius: 8px; background: repeating-linear-gradient(180deg, #f2f5f7 0 1px, transparent 1px 44px), #fafcfd; border: 1px solid #edf1f3; }
.mk-blk { position: absolute; inset-inline: 4px; top: calc(var(--t) * 44px + 3px); height: calc(var(--h) * 44px - 6px); border-radius: 6px; padding: .25rem .4rem; overflow: hidden; border-inline-start: 3px solid; }
.mk-blk b { display: block; font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-blk span { font-size: .64rem; opacity: .8; }
.mk-blk.k1 { background: #dff4f5; border-color: var(--teal-500); color: #0b4f57; }
.mk-blk.k2 { background: #dcf5e8; border-color: var(--emerald-500); color: #08573b; }
.mk-blk.k3 { background: #ece6f7; border-color: #8a6cc0; color: #4a3474; }
.mk-note { display: flex; align-items: center; gap: .45rem; padding: .5rem .65rem; border-radius: 8px; background: #fff; border: 1px dashed #b9dfe2; font-size: .75rem; color: var(--teal-700); }
.mk-note > span:first-of-type { flex: 1; }
.mk-prog { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; }
.mk-progt { display: flex; justify-content: space-between; font-size: .75rem; color: var(--gray-600); margin-bottom: .4rem; }
.mk-progt b { color: var(--ink); }
.mk-bar { height: 8px; border-radius: 4px; background: #e6ecef; overflow: hidden; }
.mk-bar i { display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, var(--teal-500), var(--emerald-500)); border-radius: 4px; }
.mk-pain { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; }
.mk-pain span { display: block; font-size: .72rem; color: var(--gray-600); } .mk-pain b { font-size: 1.05rem; white-space: nowrap; }
.mk-pain .mk-spark { height: 34px; }
.mk-ex { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.mk-ex li { display: flex; align-items: center; gap: .55rem; padding: .45rem .6rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.mk-ex li b { flex: 1; font-size: .8rem; } .mk-ex li > span:last-child { color: var(--gray-600); font-size: .74rem; }
.mk-ex li.done b { color: var(--gray-600); text-decoration: line-through; text-decoration-color: rgba(86,104,115,.45); }
.mk-cb { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--gray-300); display: grid; place-items: center; flex: none; }
.done .mk-cb { background: var(--emerald-500); border-color: var(--emerald-500); color: #fff; }
.mk-cb .mk-ic { width: 12px; height: 12px; stroke-width: 3; }
.mk-foot { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .74rem; color: var(--teal-700); }
.mk-tbl { width: 100%; border-collapse: collapse; font-size: .8rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mk-tbl td { padding: .45rem .7rem; border-top: 1px solid #edf1f3; }
.mk-tbl tr:first-child td { border-top: 0; }
.mk-tbl td:last-child { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-tbl tr.neg td { color: var(--emerald-700); }
.mk-tbl tfoot td { font-weight: 800; background: #f6f9fa; border-top: 1px solid var(--line); }
.mk-split { display: grid; grid-template-columns: 3fr 2fr; gap: .4rem; }
.mk-split > div { border-radius: 8px; padding: .45rem .65rem; background: #e8f3f4; }
.mk-split > div + div { background: #eef2f5; }
.mk-split span { display: block; font-size: .7rem; color: var(--gray-600); } .mk-split b { font-size: .9rem; }
.mk-steps { list-style: none; margin: 0; padding: 0; display: flex; }
.mk-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; font-size: .72rem; color: var(--gray-600); position: relative; }
.mk-steps li:not(:last-child)::after { content: ""; position: absolute; top: 6px; inset-inline-start: calc(50% + 10px); width: calc(100% - 20px); height: 2px; background: #e3e9ed; }
.mk-steps li.done:not(.cur)::after { background: var(--emerald-500); }
.mk-steps i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gray-300); background: #fff; }
.mk-steps li.done i { background: var(--emerald-500); border-color: var(--emerald-500); }
.mk-steps li.cur { color: var(--ink); font-weight: 700; }
.mk-steps li.cur i { box-shadow: 0 0 0 4px rgba(24,181,123,.2); }

/* ---- live demo strip ---- */
.demo-strip { position: relative; z-index: 2; margin-top: clamp(-3rem, -4vw, -1.5rem); }
.demo-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem 2.5rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.3rem, 3vw, 2rem) clamp(1.3rem, 3.5vw, 2.5rem); box-shadow: 0 30px 60px -36px rgba(10,27,42,.45); }
.demo-card h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: .35rem; }
.demo-card p { color: var(--gray-600); margin-bottom: .8rem; max-width: 40rem; }
.demo-pts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .95rem; font-weight: 600; }
.demo-pts li { display: inline-flex; gap: .45rem; align-items: center; }
.demo-pts .tick { color: var(--emerald-700); }

/* ---- alternating feature rows ---- */
.rows-band { padding-top: clamp(3.5rem, 7vw, 6rem); }
.frow { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(1.8rem, 4vw, 3.2rem); }
.frow.flip .frow-t { order: 2; }
.frow-t h3 { font-size: clamp(1.45rem, 2.6vw, 2rem); margin-bottom: .7rem; }
.frow-t > p { color: var(--gray-600); font-size: 1.08rem; }
ul.checks.one { grid-template-columns: 1fr; gap: .65rem; margin: 1.2rem 0 1.4rem; }
.frow-v .pv-cap { color: var(--gray-600); }
.more-h { margin-top: clamp(1.5rem, 4vw, 3rem); font-size: 1.35rem; }
ul.mini-cards { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.mini-cards a { display: flex; flex-direction: column; gap: .45rem; height: 100%; padding: 1.3rem 1.3rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.mini-cards a:hover { border-color: #b9dfe2; box-shadow: 0 18px 40px -26px rgba(10,27,42,.4); transform: translateY(-2px); color: var(--ink); }
.mini-cards strong { font-size: 1.12rem; } .mini-cards span { color: var(--gray-600); font-size: .97rem; flex: 1; }
.mini-cards .arr { color: var(--teal-600); }
.mc-ic, .why-ic { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: #e3f4f5; color: var(--teal-700); }

/* ---- why grid ---- */
ul.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.why li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem 1.3rem; }
.why h3 { font-size: 1.1rem; margin: .9rem 0 .4rem; }
.why p { margin: 0; color: var(--gray-600); font-size: .98rem; }
.cta-band.final { background: radial-gradient(60% 120% at 85% 0%, rgba(24,181,123,.28), transparent 60%), linear-gradient(120deg, var(--navy-900), #0b4a55); padding-block: clamp(3rem, 6vw, 4.5rem); }

@media (max-width: 1100px) {
  .mk-float.fb { inset-inline-start: -.4rem; }
}
@media (max-width: 960px) {
  .home-hero .hero-in, .frow, .demo-card { grid-template-columns: 1fr; }
  .frow.flip .frow-t { order: 0; }
  ul.why, ul.mini-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-strip { margin-top: 0; padding-top: 1.5rem; }
}
@media (max-width: 620px) {
  ul.why, ul.mini-cards { grid-template-columns: 1fr; }
  .mk-app { grid-template-columns: 1fr; }
  .mk-side { display: none; }
  .mk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-kpi:nth-child(3) { grid-column: 1 / -1; }
  .mk-float { position: static; width: auto !important; margin-top: .8rem; }
  .mk-day { grid-template-columns: 2.4rem repeat(var(--cols), minmax(0, 1fr)); }
}

/* ---- motion: gentle reveal on scroll (only with JS and when motion is welcome) ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; translate: 0 22px; transition: opacity .6s ease, translate .6s cubic-bezier(.2,.7,.2,1); }
  .js .rv.in { opacity: 1; translate: 0 0; }
  .home-hero .hero-t > * { animation: settle .7s cubic-bezier(.2,.7,.2,1) both; }
  .home-hero .hero-t > :nth-child(2) { animation-delay: .06s; } .home-hero .hero-t > :nth-child(3) { animation-delay: .12s; }
  .home-hero .hero-t > :nth-child(4) { animation-delay: .18s; } .home-hero .hero-t > :nth-child(5) { animation-delay: .24s; }
  .mk-hero .mk-win { animation: settle .8s .1s cubic-bezier(.2,.7,.2,1) both; }
  .mk-float.fa { animation: settle .7s .55s cubic-bezier(.2,.7,.2,1) both, bob 6s 1.4s ease-in-out infinite; }
  .mk-float.fb { animation: settle .7s .75s cubic-bezier(.2,.7,.2,1) both, bob 7s 1.8s ease-in-out infinite reverse; }
  @keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
}
