/* =========================================================
   Website of the software (home, features, pricing, blog …)
   Own small stylesheet: no Bootstrap, so pages load fast.
   Look: tailoring teal cloth + chalk-yellow measuring tape (same as the app).
   ========================================================= */
:root {
    --cloth: #0f5f5a; --cloth-dark: #0a4743; --cloth-soft: #e3efed;
    --chalk: #f2c14e; --chalk-dark: #d9a52c;
    --paper: #f6f7f5; --surface: #fff; --ink: #1d2a2a; --ink-2: #4c5b5a; --ink-3: #7d8b8a; --line: #e2e7e6;
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --display: var(--font);
    --r: 16px; --wrap: 1120px;
}
[dir="rtl"] { --font: "Noto Naskh Arabic", "Manrope", system-ui, sans-serif; --display: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body.mk { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; }
[dir="rtl"] body.mk { line-height: 1.9; }
.mk img { max-width: 100%; height: auto; display: block; }
.mk a { color: var(--cloth); }
.mk :focus-visible { outline: 3px solid var(--chalk); outline-offset: 2px; border-radius: 4px; }
.mk-sprite { position: absolute; }
.mk-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.mk-skip { position: absolute; top: 8px; inset-inline-start: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99;
           width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mk-skip:focus { width: auto; height: auto; clip-path: none; }
.mk h1, .mk h2, .mk h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
[dir="rtl"] .mk h1, [dir="rtl"] .mk h2 { font-family: var(--display); letter-spacing: 0; line-height: 1.75; font-weight: 700; }
[dir="rtl"] .mk h3 { letter-spacing: 0; line-height: 1.6; }
.mk p { margin: 0 0 1em; }

/* Buttons */
.mk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px;
    border-radius: 12px; background: var(--cloth); color: #fff !important; font-weight: 800; font-size: 1rem; text-decoration: none;
    border: 2px solid var(--cloth); transition: background .15s, transform .15s; white-space: nowrap;
}
.mk-btn:hover { background: var(--cloth-dark); border-color: var(--cloth-dark); }
.mk-btn:active { transform: translateY(1px); }
.mk-btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.mk-btn-ghost { background: transparent; color: var(--cloth) !important; }
.mk-btn-ghost:hover { background: var(--cloth-soft); }
.mk-btn-light { background: var(--chalk); border-color: var(--chalk); color: var(--ink) !important; }
.mk-btn-light:hover { background: #f7d06f; border-color: #f7d06f; }
.mk-btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .5); }
.mk-btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.mk-btn-block { width: 100%; }

/* Header with the measuring tape underneath */
.mk-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); }
.mk-head::after {
    content: ""; display: block; height: 6px;
    background: repeating-linear-gradient(90deg, rgba(29, 42, 42, .55) 0 1px, transparent 1px 8px) bottom / 100% 3px no-repeat,
                repeating-linear-gradient(90deg, rgba(29, 42, 42, .7) 0 1px, transparent 1px 40px) bottom / 100% 6px no-repeat, var(--chalk);
}
.mk-head-in { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.mk-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--ink) !important; text-decoration: none; }
.mk-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--cloth); color: var(--chalk); display: inline-flex; align-items: center; justify-content: center; }
.mk-menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.mk-burger { margin-inline-start: auto; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 11px; cursor: pointer; border-radius: 10px; }
.mk-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.mk-menu-toggle:focus-visible + .mk-burger { outline: 3px solid var(--chalk); }
.mk-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; flex-direction: column; gap: 2px; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .25); }
.mk-menu-toggle:checked ~ .mk-nav { display: flex; }
.mk-nav > a { padding: 12px 4px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mk-nav > a.is-active { color: var(--cloth); }
.mk-nav-end { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 14px; }
.mk-lang { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--ink) !important; font-weight: 700; font-size: .9rem; }
.mk-login { font-weight: 700; text-decoration: none; padding: 8px 6px; }
@media (min-width: 960px) {
    .mk-burger { display: none; }
    .mk-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 4px; padding: 0; border: 0; box-shadow: none; background: transparent; margin-inline-start: 24px; flex: 1; }
    .mk-nav > a { border: 0; padding: 8px 12px; border-radius: 8px; font-size: .95rem; color: var(--ink-2); }
    .mk-nav > a:hover { color: var(--ink); background: var(--paper); }
    .mk-nav-end { margin-inline-start: auto; padding: 0; }
}

/* Hero */
.mk-hero { padding: 48px 0 56px; overflow: hidden; }
.mk-hero-grid { display: grid; gap: 40px; align-items: center; }
.mk-hero h1 { font-size: clamp(2.2rem, 6.4vw, 3.9rem); font-weight: 800; max-width: 14ch; }
[dir="rtl"] .mk-hero h1 { font-size: clamp(2rem, 5.6vw, 3.2rem); max-width: 16ch; }
.mk-lead { font-size: 1.18rem; color: var(--ink-2); max-width: 48ch; }
.mk-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.mk-trust { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0; list-style: none; color: var(--ink-2); font-size: .93rem; font-weight: 600; }
.mk-trust li { display: inline-flex; align-items: center; gap: 6px; }
.mk-trust svg { color: var(--cloth); flex: none; }

/* The phone in the hero: a drawn sample of the app, not a screenshot */
.mk-phone { justify-self: center; width: min(320px, 86vw); aspect-ratio: 9 / 18.5; background: #0f1716; border-radius: 42px; padding: 12px; box-shadow: 0 40px 80px -40px rgba(10, 71, 67, .55), 0 0 0 1px rgba(0, 0, 0, .06); position: relative; }
.mk-phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 80px; height: 20px; margin-left: -40px; background: #0f1716; border-radius: 12px; z-index: 2; }
.mk-screen { height: 100%; border-radius: 32px; background: var(--paper); overflow: hidden; display: flex; flex-direction: column; font-size: 12px; line-height: 1.35; }
.mk-sc-bar { background: #fff; padding: 40px 16px 10px; font-weight: 800; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.mk-sc-bar::after { content: ""; position: absolute; }
.mk-sc-tape { height: 5px; background: repeating-linear-gradient(90deg, rgba(29, 42, 42, .6) 0 1px, transparent 1px 7px), var(--chalk); }
.mk-sc-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.mk-sc-card { background: #fff; border-radius: 14px; padding: 11px 12px; border: 1px solid var(--line); }
.mk-sc-flow { display: flex; justify-content: space-between; text-align: center; }
.mk-sc-flow b { display: block; font-size: 20px; }
.mk-sc-flow span { color: var(--ink-2); font-weight: 600; font-size: 10.5px; }
.mk-sc-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mk-sc-no { background: var(--cloth-soft); color: var(--cloth); font-weight: 800; border-radius: 8px; padding: 2px 7px; }
.mk-sc-chip { border-radius: 999px; padding: 2px 8px; font-weight: 700; font-size: 10px; background: #fdf3dc; color: #8a5d00; }
.mk-sc-chip.is-ready { background: #e6f4ec; color: #1e8449; }
.mk-sc-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.mk-sc-sizes div { background: var(--paper); border-radius: 8px; padding: 4px 6px; border-bottom: 2px solid var(--chalk); }
.mk-sc-sizes span { display: block; font-size: 9.5px; color: var(--ink-2); }
.mk-sc-sizes b { font-size: 13px; }
.mk-sc-styles { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.mk-sc-styles span { border: 1px solid var(--cloth); color: var(--cloth); border-radius: 999px; padding: 1px 7px; font-size: 10px; font-weight: 700; }
.mk-sample { text-align: center; color: var(--ink-3); font-size: .8rem; margin-top: 10px; }
@media (min-width: 900px) {
    .mk-hero { padding: 72px 0 88px; }
    .mk-hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}

/* Sections */
.mk-sec { padding: 64px 0; }
.mk-sec-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mk-sec-head { max-width: 680px; margin-bottom: 36px; }
.mk-sec-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
.mk-sec-head p { color: var(--ink-2); font-size: 1.08rem; margin: 0; }
.mk-sec-head.is-center { margin-inline: auto; text-align: center; }
@media (min-width: 900px) { .mk-sec { padding: 88px 0; } }

/* Features: a plain list with a thin rule, grouped */
.mk-feats { display: grid; gap: 0 40px; }
.mk-feat { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.mk-feat-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--cloth-soft); color: var(--cloth); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem; }
.mk-feat h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 4px; }
.mk-feat p { margin: 0; color: var(--ink-2); font-size: .98rem; }
@media (min-width: 760px) { .mk-feats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .mk-feats { grid-template-columns: 1fr 1fr 1fr; } }

/* Steps: a real sequence, so numbered */
.mk-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: step; }
.mk-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; counter-increment: step; position: relative; }
.mk-steps li::before { content: counter(step); display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--chalk); color: var(--ink); font-weight: 800; align-items: center; justify-content: center; margin-bottom: 12px; }
.mk-steps h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.mk-steps p { color: var(--ink-2); margin: 0; font-size: .98rem; }
@media (min-width: 860px) { .mk-steps { grid-template-columns: repeat(4, 1fr); } }

/* Diary vs app */
.mk-compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); font-size: .98rem; }
.mk-compare th, .mk-compare td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.mk-compare thead th { background: var(--paper); font-size: .86rem; color: var(--ink-2); }
.mk-compare td:first-child { font-weight: 700; }
.mk-compare .is-old { color: var(--ink-3); }
.mk-compare .is-new { color: var(--cloth-dark); font-weight: 600; }
.mk-compare svg { vertical-align: -3px; margin-inline-end: 4px; }
.mk-compare .is-old svg { color: #c0392b; }
.mk-compare .is-new svg { color: var(--cloth); }
.mk-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Plans */
.mk-plans { display: grid; gap: 18px; }
.mk-plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; position: relative; }
.mk-plan.is-popular { border: 2px solid var(--cloth); box-shadow: 0 24px 48px -32px rgba(10, 71, 67, .5); }
.mk-plan-tag { position: absolute; top: -13px; inset-inline-start: 22px; background: var(--chalk); color: var(--ink); font-weight: 800; font-size: .78rem; padding: 4px 12px; border-radius: 999px; }
.mk-plan h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 2px; }
.mk-plan-line { color: var(--ink-2); font-size: .95rem; min-height: 1.6em; }
.mk-price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 16px; font-variant-numeric: tabular-nums; }
.mk-price small { font-size: .95rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.mk-plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; flex: 1; }
.mk-plan li { display: flex; gap: 8px; align-items: flex-start; font-size: .97rem; }
.mk-plan li svg { color: var(--cloth); flex: none; margin-top: 4px; }
@media (min-width: 860px) { .mk-plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.mk-period { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 28px; }
.mk-period a { padding: 8px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.mk-period a.is-on { background: var(--cloth); color: #fff; }

/* Shop list */
.mk-shops { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mk-shops a { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 700; }
.mk-shops a:hover { border-color: var(--cloth); }
.mk-shops span { color: var(--ink-3); font-weight: 500; }
@media (min-width: 760px) { .mk-shops { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.mk-faq { display: grid; gap: 10px; max-width: 820px; }
.mk-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.mk-faq summary { padding: 18px 0; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--cloth); }
.mk-faq details[open] summary::after { content: "−"; }
.mk-faq details p { color: var(--ink-2); padding-bottom: 18px; margin: 0; }

/* Call to action band */
.mk-cta { background: var(--cloth); color: #fff; padding: 56px 0; position: relative; }
.mk-cta::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: repeating-linear-gradient(90deg, rgba(29, 42, 42, .6) 0 1px, transparent 1px 10px), var(--chalk); }
.mk-cta-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.mk-cta h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; margin-bottom: 6px; }
.mk-cta p { opacity: .88; margin: 0; max-width: 52ch; }
.mk-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Inner pages */
.mk-page-head { padding: 52px 0 36px; }
.mk-page-head h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; max-width: 22ch; }
.mk-page-head p { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; margin: 0; }
.mk-crumbs { font-size: .88rem; color: var(--ink-3); margin-bottom: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.mk-crumbs a { color: var(--ink-2); text-decoration: none; }
.mk-prose { max-width: 720px; }
.mk-prose h2 { font-size: 1.55rem; font-weight: 800; margin-top: 1.8em; }
.mk-prose h3 { font-size: 1.2rem; font-weight: 800; margin-top: 1.5em; }
.mk-prose ul, .mk-prose ol { padding-inline-start: 1.3em; }
.mk-prose li { margin-bottom: .4em; }
.mk-prose img { border-radius: 14px; margin: 1.4em 0; }
.mk-prose blockquote { margin: 1.4em 0; padding: 4px 18px; border-inline-start: 4px solid var(--chalk); color: var(--ink-2); }
.mk-group { margin-bottom: 44px; }
.mk-group h2 { font-size: 1.45rem; font-weight: 800; padding-bottom: 10px; border-bottom: 2px solid var(--ink); display: inline-block; }
.mk-bullets { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.mk-bullets li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.mk-bullets svg { color: var(--cloth); margin-top: 5px; }
@media (min-width: 860px) { .mk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; } }

/* Forms (contact, sign-up) */
.mk-form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: grid; gap: 16px; }
.mk-form label { font-weight: 700; font-size: .95rem; display: block; margin-bottom: 6px; }
.mk-form .opt { color: var(--ink-3); font-weight: 500; }
.mk-input { width: 100%; min-height: 50px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; font: inherit; color: var(--ink); background: #fff; }
textarea.mk-input { min-height: 130px; resize: vertical; }
.mk-input:focus { outline: none; border-color: var(--cloth); box-shadow: 0 0 0 4px var(--cloth-soft); }
.mk-input.is-bad { border-color: #c0392b; }
.mk-err { color: #c0392b; font-size: .88rem; margin-top: 4px; }
.mk-row2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .mk-row2 { grid-template-columns: 1fr 1fr; } }
.mk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-chips input { position: absolute; opacity: 0; }
.mk-chips label { margin: 0; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 700; }
.mk-chips input:checked + label { border-color: var(--cloth); background: var(--cloth-soft); color: var(--cloth-dark); }
.mk-chips input:focus-visible + label { outline: 3px solid var(--chalk); }
.mk-alert { border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.mk-alert.ok { background: #e6f4ec; color: #145c32; }
.mk-alert.bad { background: #fdecea; color: #8f2a20; }
.mk-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mk-small { font-size: .88rem; color: var(--ink-3); }

/* Blog */
.mk-posts { display: grid; gap: 22px; }
.mk-post { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink) !important; }
.mk-post:hover { border-color: var(--cloth); }
.mk-post-img { aspect-ratio: 16 / 9; background: var(--cloth-soft); object-fit: cover; width: 100%; }
.mk-post-body { padding: 18px 20px 22px; }
.mk-post h2, .mk-post h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.mk-post p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.mk-meta { color: var(--ink-3); font-size: .86rem; margin-bottom: 8px; display: block; }
@media (min-width: 760px) { .mk-posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .mk-posts { grid-template-columns: repeat(3, 1fr); } }
.mk-article-cover { border-radius: 20px; margin-bottom: 28px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Cities */
.mk-city-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mk-city-grid a { display: block; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-weight: 700; text-decoration: none; color: var(--ink); }
.mk-city-grid a:hover { border-color: var(--cloth); }
@media (min-width: 760px) { .mk-city-grid { grid-template-columns: repeat(4, 1fr); } }

/* Footer */
.mk-foot { background: #142221; color: rgba(255, 255, 255, .75); padding: 56px 0 0; font-size: .95rem; }
.mk-foot .mk-brand { color: #fff !important; }
.mk-foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.mk-foot-brand { grid-column: 1 / -1; }
.mk-foot-brand p { max-width: 42ch; margin-top: 14px; }
.mk-foot nav { display: flex; flex-direction: column; gap: 8px; }
.mk-foot h2 { font-size: .85rem; color: #fff; margin: 0 0 4px; letter-spacing: 0; font-family: var(--font); line-height: 1.4; }
.mk-foot nav a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.mk-foot nav a:hover { color: #fff; }
.mk-foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 18px; padding-bottom: 24px; font-size: .86rem; }
.mk-foot-base a { color: var(--chalk); font-weight: 700; text-decoration: none; }
@media (min-width: 900px) { .mk-foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; } .mk-foot-brand { grid-column: auto; } }
.mk-hero-grid > *, .mk-two > *, .mk-cta-in > * { min-width: 0; }
.mk-hero h1 { overflow-wrap: anywhere; }
.mk-plan ul { align-content: start; }
.mk-compare { min-width: 560px; }
