/* OptiTide brand theme — Navy + Orange.
   Deep Navy #0D1530 · Navy Surface #1A223F · Action Orange #FF6A00 ·
   Bright Orange #FF8C3A · Warm Cream #F5E6D3 · Off White #F7F7F8.
   Content stays light and legible; navy carries structure, orange carries action. */

:root {
    --navy: #0D1530;           /* Deep Navy — sidebar / dark surfaces / text */
    --navy-2: #1A223F;         /* Navy Surface */
    --brand: #FF6A00;          /* Action Orange — primary accent (fills/icons/large text) */
    --brand-dark: #E85F00;     /* darker orange for hover/active */
    --brand-bright: #FF8C3A;   /* Bright Orange (on dark backgrounds) */
    --brand-ink: #C2410C;      /* AA-contrast orange (~5:1 on white) for small text/links */
    --brand-gradient: linear-gradient(120deg, #FF6A00 0%, #FF8C3A 100%);
    --brand-soft: #FFE7D3;     /* light orange tint */
    --cream: #F5E6D3;

    --ink: #0D1530;
    --muted: #64748b;
    --line: #e5e7eb;
    --surface: #ffffff;
    --canvas: #F7F7F8;
    --sidebar-w: 250px;
}

body {
    background: var(--canvas);
    color: var(--ink);
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--brand-ink); }
a:hover { color: var(--brand); }
/* Skip-to-content link: visually hidden until focused (keyboard users). */
.skip-link { position: absolute; left: 8px; top: -48px; z-index: 2000; background: var(--navy, #0D1530); color: #fff; padding: .55rem 1rem; border-radius: 8px; transition: top .15s; }
.skip-link:focus { top: 8px; color: #fff; }

/* --- Brand mark + wordmark ------------------------------------------------- */
.text-brand { color: var(--brand-ink) !important; }
.bg-brand { background: var(--brand) !important; }
.brand-mark {
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    /* No flex gap — "Opti" and "Tide" sit flush so it reads "OptiTide". */
}
.brand-mark span { color: var(--brand); }   /* "Tide" in Action Orange */
.brand-icon { height: 1.35em; width: auto; display: inline-block; margin-right: .4rem; object-fit: contain; }

/* Real brand images (logo, wave, mascot, service icons): preserve aspect ratio,
   always contain, never cover. */
.brand-img { object-fit: contain; width: auto; height: auto; max-width: 100%; }
.brand-logo { height: 46px; width: auto; max-width: 100%; object-fit: contain; display: block; }
/* White-bg logos framed as a clean chip on dark/navy backgrounds. */
.brand-logo--chip { background: #fff; border-radius: 12px; padding: 8px 14px; }
.sidebar .brand-logo { height: 72px; width: 100%; object-fit: contain; margin: 0 auto .4rem; }
.sidebar a[href] > .brand-logo--chip, .sidebar .brand-logo--chip { display: block; }

.btn-brand,
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
    --bs-btn-disabled-bg: var(--brand);
    --bs-btn-disabled-border-color: var(--brand);
    border: none;
    color: #fff;
}
.btn-brand:hover, .btn-primary:hover { color: #fff; }
.btn-outline-brand {
    --bs-btn-color: var(--brand-dark);
    --bs-btn-border-color: #ffc79e;
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(255, 106, 0, .2);
}
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }

/* --- App shell ------------------------------------------------------------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    background: linear-gradient(180deg, var(--navy-2), var(--navy));
    color: #cbd2e0;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 1.1rem .85rem;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, .06);
}
.sidebar .brand-mark { color: #fff; font-size: 1.35rem; }
.sidebar-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-bottom: .3rem; }
.sidebar-brand-mark { background: #fff; border-radius: 10px; padding: 5px; display: inline-flex; flex: 0 0 auto; }
.sidebar-brand-mark img { height: 34px; width: 34px; object-fit: contain; display: block; }
.sidebar-brand-name { color: #fff; font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1; }
.sidebar .nav-section { color: #6f7690; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; margin: 1.1rem .6rem .35rem; }
.sidebar .nav-link {
    color: #c5cbd8;
    border-radius: 8px;
    padding: .5rem .65rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .92rem;
    margin-bottom: 1px;
}
.sidebar .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar .nav-link.active { background: var(--brand); color: #fff; }
.sidebar .nav-link i { width: 18px; text-align: center; }

.content { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: .7rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky; top: 0; z-index: 20;
}
.main { padding: 1.5rem; flex: 1 1 auto; }
.page-title { font-weight: 700; font-size: 1.4rem; margin: 0; }

/* --- Cards / tables -------------------------------------------------------- */
.card { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(13,21,48,.04); }
.card-header { background: var(--surface); border-bottom: 1px solid var(--line); font-weight: 600; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; }
.stat-card .stat-label { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.stat-card .stat-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-dark); font-size: 1.2rem; }

.table > :not(caption) > * > * { padding: .7rem .75rem; }
.table thead th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); }
.table-hover tbody tr:hover { background: #faf8f6; }

.badge-soft { background: #f1f2f4; color: #475569; font-weight: 600; }

/* --- Auth ------------------------------------------------------------------ */
.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background:
        radial-gradient(900px 500px at 15% 0%, rgba(255, 106, 0, .22), transparent 58%),
        radial-gradient(900px 600px at 100% 100%, rgba(255, 140, 58, .16), transparent 55%),
        linear-gradient(160deg, var(--navy-2), var(--navy));
}
.auth-wrap .brand-mark { color: #fff; }
.auth-card { width: 100%; max-width: 420px; }

/* --- Marketing website ---------------------------------------------------- */
.mk { color: var(--ink); }
.mk-container { max-width: 1140px; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.mk-section { padding: 4.5rem 0; }
.mk-section--alt { background: #f2f0ee; }
.mk-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: .5rem; }
.mk-h2 { font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 .6rem; }
.mk-lead { color: var(--muted); font-size: 1.08rem; line-height: 1.6; max-width: 640px; }
.mk-gradient-text { color: var(--brand); background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Nav */
.mk-nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.mk-nav .mk-container { display: flex; align-items: center; justify-content: space-between; padding-top: .85rem; padding-bottom: .85rem; }
.mk-nav .brand-mark { font-size: 1.35rem; color: var(--ink); }
.mk-nav .brand-logo { height: 84px; }
/* Tagline logo runs bigger so the slogan is legible. */
.mk-nav .brand-logo--tagline { height: 84px; }
@media (max-width: 576px) { .mk-nav .brand-logo, .mk-nav .brand-logo--tagline { height: 52px; } }

/* Top utility bar */
.mk-topbar { background: var(--navy); color: #b9c0d4; font-size: .82rem; }
.mk-topbar .mk-container { display: flex; justify-content: space-between; align-items: center; padding-top: .4rem; padding-bottom: .4rem; }
.mk-topbar a { color: #c7ccdb; text-decoration: none; margin-right: 1.1rem; }
.mk-topbar a:hover { color: #fff; }
.mk-topbar i { color: var(--brand-bright); }
.mk-topbar-tag { color: var(--brand-bright); font-weight: 600; font-style: italic; }
.mk-ccy { display: inline-flex; align-items: center; gap: .25rem; margin-right: 1.1rem; }
.mk-ccy i { color: #c7ccdb; }
.mk-ccy-link { margin: 0 !important; padding: 0 .3rem; color: #9aa2b8 !important; font-weight: 600; }
.mk-ccy-link.is-active { color: var(--brand-bright) !important; text-decoration: underline; }
@media (max-width: 640px) { .mk-topbar-right { display: none; } .mk-topbar a { margin-right: .7rem; } }

/* Moving announcement banner */
/* Static announcement strip (replaces the old scrolling marquee) */
.mk-announce { background: var(--brand); color: #fff; font-size: .88rem; }
.mk-announce .mk-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem 1rem; padding-top: .5rem; padding-bottom: .5rem; text-align: center; }
.mk-announce span { font-weight: 600; }
.mk-announce a { color: #fff; text-decoration: underline; font-weight: 700; }
.mk-announce a:hover { color: #fff; opacity: .85; }
/* Trust strip under the hero */
.mk-trustbar { background: #fff; border-bottom: 1px solid var(--line); }
.mk-trustbar .mk-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1.75rem; padding-top: .9rem; padding-bottom: .9rem; }
.mk-trust-item { color: #475569; font-size: .86rem; font-weight: 600; white-space: nowrap; }
.mk-trust-item i { color: #16a34a; margin-right: .35rem; }
.mk-nav-links { display: flex; align-items: center; gap: 1.4rem; }
.mk-nav-links a { color: #475569; text-decoration: none; font-weight: 600; font-size: .93rem; }
.mk-nav-links a:hover { color: var(--brand); }
.mk-nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--navy); line-height: 1; padding: .1rem .3rem; cursor: pointer; }
@media (max-width: 991.98px) {
    .mk-nav .mk-container { position: relative; }
    .mk-nav-toggle { display: inline-flex; }
    .mk-nav-links { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column;
        align-items: stretch; gap: 0; padding: .5rem 1.25rem 1rem; border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 22px rgba(13,21,48,.08); display: none; }
    .mk-nav-links.open { display: flex; }
    .mk-nav-links .mk-nav-link { display: block; padding: .7rem 0; border-bottom: 1px solid #f1f2f4; }
    .mk-nav-links .btn { margin-top: .75rem; text-align: center; }
}

/* Hero */
.mk-hero { position: relative; color: #eef1f7; overflow: hidden;
    background:
        radial-gradient(900px 500px at 12% 0%, rgba(255,106,0,.22), transparent 55%),
        radial-gradient(900px 600px at 100% 20%, rgba(255,140,58,.14), transparent 55%),
        linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 60%, #080d20 100%); }
.mk-hero .mk-container { padding-top: 5rem; padding-bottom: 5rem; }
.mk-hero h1 { font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(2.4rem, 6vw, 4rem); margin: 1rem 0; }
.mk-hero p { color: #b9c0d4; font-size: 1.15rem; line-height: 1.6; max-width: 620px; }
.mk-hero-mascot { max-width: 100%; height: auto; object-fit: contain; background: #fff; border-radius: 22px; padding: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.mk-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .95rem; border-radius: 999px;
    font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    color: #ffd9bd; background: rgba(255,106,0,.15); border: 1px solid rgba(255,106,0,.4); }
.mk-hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.6rem; }
.mk-hero-cta .btn-ghost { border: 1px solid rgba(255,255,255,.3); color: #eef1f7; }
.mk-hero-cta .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.mk-hero-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; margin-top: 2.6rem; }
.mk-hero-stats .n { font-size: 1.5rem; font-weight: 800; }
.mk-hero-stats .l { color: #9aa2ba; font-size: .82rem; }

/* Service blocks */
.mk-service { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.75rem; height: 100%; transition: box-shadow .18s, transform .18s; }
.mk-service:hover { box-shadow: 0 12px 34px rgba(13,21,48,.12); transform: translateY(-3px); }
.mk-service-icon { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; font-size: 1.4rem; color: var(--brand); background: var(--navy); margin-bottom: 1rem; }
.mk-service-icon-img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 1rem; }
.mk-service h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 .5rem; }
.mk-service p { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.mk-service ul { list-style: none; padding: 0; margin: .75rem 0 0; }
.mk-service li { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; color: #475569; padding: .2rem 0; }
.mk-service li i { color: var(--brand); margin-top: .15rem; }

/* Plan / package cards */
.mk-plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.35rem; height: 100%; text-align: center; transition: box-shadow .18s, transform .18s; }
.mk-plan:hover { box-shadow: 0 10px 28px rgba(13,21,48,.10); transform: translateY(-3px); }
.mk-plan--custom { border-color: #ffc79e; background: #fff8f2; }
.mk-plan-name { font-weight: 700; margin-bottom: .4rem; }
.mk-plan-price { font-size: 1.7rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.mk-plan-per, .mk-plan-from { font-size: .8rem; font-weight: 600; color: var(--muted); }

/* Process steps */
.mk-step { text-align: center; padding: 0 .5rem; }
.mk-step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto .8rem; font-weight: 800; color: #fff; background: var(--brand); }
.mk-step h4 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .35rem; }
.mk-step p { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: 0; }

/* Benefits */
.mk-benefit { display: flex; gap: .85rem; align-items: flex-start; }
.mk-benefit i { font-size: 1.5rem; color: var(--brand); }
.mk-benefit h4 { font-size: 1.02rem; font-weight: 700; margin: 0 0 .2rem; }
.mk-benefit p { color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.5; }

/* CTA band */
.mk-ctaband { color: #fff; text-align: center; border-radius: 22px; padding: 3rem 1.5rem;
    background: linear-gradient(150deg, var(--navy-2), var(--navy)); border: 1px solid rgba(255,106,0,.25); }
.mk-ctaband h2 { font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 .6rem; }
.mk-ctaband p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 1.4rem; }
.mk-ctaband .btn { background: var(--brand); color: #fff; border: none; font-weight: 700; }
.mk-ctaband .btn:hover { background: var(--brand-dark); color: #fff; }

/* Contact */
.mk-contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 2rem; }
.mk-contact-info li { display: flex; gap: .7rem; align-items: flex-start; padding: .5rem 0; color: #334155; }
.mk-contact-info i { color: var(--brand); font-size: 1.15rem; margin-top: .1rem; }

/* Footer */
.mk-footer { background: var(--navy); color: #b9c0d4; padding: 3.5rem 0 1.5rem; }
.mk-footer a { color: #b9c0d4; text-decoration: none; font-size: .9rem; }
.mk-footer a:hover { color: #fff; }
.mk-footer .brand-mark { color: #fff; }
.mk-footer h5 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .9rem; }
.mk-footer .foot-links { list-style: none; padding: 0; margin: 0; }
.mk-footer .foot-links li { padding: .28rem 0; }
.mk-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.25rem; color: #7c839b; font-size: .82rem; }

.money { font-variant-numeric: tabular-nums; }

/* Off-canvas sidebar at the lg boundary (<=991.98px) so the app fits at higher
   browser zoom (≈150% collapses the effective width into this band) — the
   content then gets the full width instead of being squeezed beside a 250px rail. */
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(13,21,48,.55); z-index: 1049; }
.sidebar-close { display: none; }
@media (max-width: 991.98px) {
    .sidebar { position: fixed; top: 0; left: 0; z-index: 1050; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.35); }
    .sidebar.open { transform: none; }
    .sidebar-backdrop.show { display: block; }
    .sidebar-close { display: inline-flex; }
    .content { width: 100%; }
}

/* --- Marketing footer extras (blog/content layout) ---------------------- */
.mk-footer-about { font-size: .9rem; line-height: 1.6; color: #b9c0d4; max-width: 340px; }
.mk-footer-contact { display: flex; flex-direction: column; gap: .35rem; margin-top: .75rem; }
.mk-footer-contact a { display: inline-flex; align-items: center; gap: .45rem; }
.mk-footer h5 + a { display: block; padding: .28rem 0; }
.mk-footer-tagline { color: var(--brand); font-weight: 700; font-style: italic; }

/* --- Blog --------------------------------------------------------------- */
.mk-blog-index { padding-top: 3rem; }
.mk-blog-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #e7eaf3;
    border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.mk-blog-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(13,21,48,.12); }
.mk-blog-card-img { height: 180px; background: linear-gradient(135deg, var(--navy), var(--brand)); background-size: cover;
    background-position: center; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); font-size: 2.2rem; }
.mk-blog-card-img--sm { height: 110px; font-size: 1.5rem; }
.mk-blog-card-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .5rem; }
.mk-blog-card-body h3 { font-size: 1.08rem; font-weight: 700; margin: 0; color: var(--navy); line-height: 1.35; }
.mk-blog-card-body p { font-size: .9rem; color: #5b6479; margin: 0; }
.mk-blog-cat { align-self: flex-start; display: inline-block; background: var(--brand-soft, #fff2e8); color: var(--brand);
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .2rem .6rem; border-radius: 999px; }
.mk-blog-meta { font-size: .82rem; color: #8a91a5; }
.mk-blog-narrow { max-width: 820px; }
.mk-blog-crumb { font-size: .85rem; color: #8a91a5; }
.mk-blog-crumb a { color: var(--brand); text-decoration: none; }
.mk-blog-crumb span { margin: 0 .1rem; }
.mk-blog-title { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; color: var(--navy); line-height: 1.15; margin: .5rem 0; }
.mk-blog-hero-img { width: 100%; border-radius: 16px; object-fit: cover; max-height: 440px; }
.mk-blog-body { font-size: 1.06rem; line-height: 1.8; color: #2c3348; }
.mk-blog-body h2 { font-size: 1.6rem; font-weight: 700; color: var(--navy); margin: 2rem 0 .8rem; }
.mk-blog-body h3 { font-size: 1.28rem; font-weight: 700; color: var(--navy); margin: 1.6rem 0 .6rem; }
.mk-blog-body p { margin: 0 0 1.1rem; }
.mk-blog-body ul, .mk-blog-body ol { margin: 0 0 1.1rem 1.2rem; }
.mk-blog-body li { margin-bottom: .5rem; }
.mk-blog-body a { color: var(--brand); }
.mk-blog-body img { max-width: 100%; border-radius: 12px; margin: 1rem 0; }
.mk-blog-body blockquote { border-left: 4px solid var(--brand); padding: .5rem 0 .5rem 1.2rem; margin: 1.4rem 0; color: #4a5266; font-style: italic; }
.mk-blog-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    background: var(--brand-soft, #fff2e8); border-radius: 16px; padding: 1.5rem 1.75rem; }

/* --- Project boards (kanban) -------------------------------------------- */
.board-tile:hover { box-shadow: 0 10px 26px rgba(13,21,48,.12); transform: translateY(-2px); transition: .15s; }
.kb-board { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; align-items: flex-start; }
.kb-col { flex: 0 0 300px; max-width: 300px; background: #eceff5; border-radius: 14px; padding: .75rem; display: flex; flex-direction: column; }
.kb-col-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; color: var(--navy, #0D1530); padding: .25rem .5rem .6rem; font-size: .92rem; }
.kb-count { background: #fff; color: #6b7280; border-radius: 999px; padding: .05rem .5rem; font-size: .75rem; font-weight: 600; }
.kb-list { min-height: 12px; display: flex; flex-direction: column; gap: .5rem; }
.kb-card { position: relative; background: #fff; border-radius: 10px; padding: .65rem .75rem; box-shadow: 0 1px 3px rgba(13,21,48,.12); cursor: grab; border: 1px solid #e7eaf3; }
.kb-card:active { cursor: grabbing; }
.kb-card.dragging { opacity: .45; }
.kb-card-title { font-size: .88rem; font-weight: 600; color: #1f2637; padding-right: 1.1rem; line-height: 1.35; }
.kb-card-meta { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.kb-card-meta:empty { display: none; }
.kb-tag { font-size: .72rem; background: #eef1f7; color: #5b6479; border-radius: 6px; padding: .1rem .4rem; display: inline-flex; align-items: center; gap: .25rem; }
.kb-tag--due { background: #fff2e8; color: var(--brand, #FF6A00); }
.kb-card-edit { position: absolute; top: .35rem; right: .35rem; border: 0; background: transparent; color: #b3bacb; padding: .1rem .25rem; border-radius: 6px; font-size: .8rem; opacity: 0; transition: .12s; }
.kb-card:hover .kb-card-edit { opacity: 1; }
.kb-card-edit:hover { background: #eef1f7; color: var(--brand, #FF6A00); }
.kb-add { margin-top: .5rem; }
.kb-add input, .kb-add-col input { width: 100%; border: 1px dashed #c4cbdd; background: rgba(255,255,255,.6); border-radius: 8px; padding: .45rem .6rem; font-size: .85rem; color: #1f2637; }
.kb-add input:focus, .kb-add-col input:focus { outline: none; border-color: var(--brand, #FF6A00); background: #fff; }
.kb-col--add { background: transparent; flex: 0 0 260px; }

/* --- Helpdesk ticket thread --------------------------------------------- */
.tk-thread { display: flex; flex-direction: column; gap: .75rem; }
.tk-msg { border: 1px solid #e7eaf3; border-radius: 12px; padding: .8rem 1rem; background: #fff; }
.tk-msg--staff { border-left: 3px solid var(--brand, #FF6A00); }
.tk-msg--client { border-left: 3px solid #94a3b8; background: #f8fafc; }
.tk-msg--internal { border-left: 3px solid #f59e0b; background: #fffbeb; }
.tk-msg-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.tk-msg-body { color: #2c3348; line-height: 1.6; white-space: normal; }

/* --- Auth pages (site header + footer, blended) ------------------------- */
.auth-body { min-height: calc(100vh - 90px); display: grid; place-items: center; padding: 3.5rem 1.25rem;
    background: radial-gradient(820px 420px at 50% -8%, rgba(255,106,0,.10), transparent 60%), #f2f0ee; }
.auth-body .auth-card { width: 100%; max-width: 430px; }
.auth-body .card { border-radius: 16px; box-shadow: 0 18px 40px rgba(13,21,48,.10); }
/* Slim footer used inside the portal/app shell. */
.app-footer { border-top: 1px solid var(--line); padding: 1rem 1.5rem; color: var(--muted); font-size: .82rem;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.app-footer a { color: var(--muted); text-decoration: none; }
.app-footer a:hover { color: var(--brand); }
.app-footer .tag { color: var(--brand); font-weight: 700; font-style: italic; }

/* ============================================================
   Homepage redesign (mockup layout) — hero form, partners,
   results/case study, pricing tiers, testimonials, CTA band.
   ============================================================ */
.mk-orange { color: var(--brand); }

/* Hero: copy + mascot on the left, lead form on the right */
.mk-hero h1 { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.08; }
.mk-hero-inner { display: flex; align-items: center; gap: 1rem; }
.mk-hero-copy { flex: 1 1 auto; min-width: 0; }
.mk-hero-checks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .5rem; }
.mk-hero-checks li { display: flex; align-items: center; gap: .55rem; color: #dfe4f0; font-weight: 600; font-size: .98rem; }
.mk-hero-checks i { color: var(--brand); font-size: 1.05rem; }
.mk-hero-mascot { flex: 0 0 240px; width: 240px; max-width: 100%; height: auto; background: none; border-radius: 0; padding: 0; box-shadow: none;
    filter: drop-shadow(0 24px 40px rgba(0,0,0,.4)); display: none; }
@media (min-width: 1200px) { .mk-hero-mascot { display: block; } }
.mk-hero-cta .btn-ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; }

.mk-hero-form { background: #fff; border-radius: 18px; padding: 1.5rem; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.mk-hero-form h2 { font-size: 1.5rem; font-weight: 800; color: var(--ink); margin: 0 0 .25rem; }
.mk-hero-form-sub { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.mk-hero-form .form-control, .mk-hero-form .form-select { font-size: .92rem; }
.mk-hero-form-note { text-align: center; color: #16a34a; font-size: .82rem; font-weight: 600; margin-top: .7rem; }
.mk-hero-form-note i { margin-right: .25rem; }

/* Partner / trust logos strip */
.mk-partners { background: #fff; border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.mk-partners-title { text-align: center; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.mk-partner-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.25rem 2.5rem; }
.mk-partner { color: #64748b; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; opacity: .75; filter: grayscale(1); }

/* Results / case study (navy band) */
.mk-results { background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: #eef1f7; padding: 4.5rem 0; }
.mk-results-head h2 { font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 .3rem; }
.mk-results-head p { color: #b9c0d4; }
.mk-casestudy { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 1.5rem; margin-top: 1.5rem; }
.mk-casestudy-title { font-size: 1.2rem; font-weight: 700; }
.mk-casestudy-detail { color: #9aa2ba; font-size: .9rem; margin-bottom: 1rem; }
.mk-casestudy-stats { display: flex; flex-wrap: wrap; gap: 2rem; }
.mk-casestudy-stats .n { display: block; color: var(--brand-bright); font-size: 1.8rem; font-weight: 800; line-height: 1; }
.mk-casestudy-stats .l { color: #b9c0d4; font-size: .82rem; }
.mk-casestudy-link { display: inline-block; margin-top: 1.2rem; color: var(--brand-bright); font-weight: 700; text-decoration: none; }
.mk-quote-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 1.75rem; position: relative; box-shadow: 0 24px 50px rgba(0,0,0,.28); }
.mk-quote-mark { color: var(--brand); font-size: 2rem; }
.mk-quote-card p { font-size: 1.05rem; line-height: 1.6; font-weight: 500; margin: .5rem 0 1rem; }
.mk-quote-author { font-weight: 700; }
.mk-quote-author span { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }

/* Service "Learn More" link + tighter check bullets */
.mk-service-more { display: inline-block; margin-top: .9rem; color: var(--brand-ink); font-weight: 700; font-size: .88rem; text-decoration: none; }
.mk-service-more:hover { color: var(--brand); }
.mk-service li i.bi-check2 { color: #16a34a; }

/* Pricing tiers */
.mk-price-toggle { display: inline-flex; background: #e7e3df; border-radius: 999px; padding: 4px; margin-top: 1rem; }
.mk-price-toggle button { border: 0; background: none; padding: .4rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--muted); cursor: pointer; }
.mk-price-toggle button.is-active { background: var(--brand); color: #fff; }
.mk-price-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.75rem 1.5rem; position: relative; }
.mk-price-card--popular { border: 2px solid var(--brand); box-shadow: 0 20px 46px rgba(255,106,0,.18); }
.mk-price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .25rem .9rem; border-radius: 999px; white-space: nowrap; }
.mk-price-name { font-weight: 800; font-size: 1.15rem; text-align: center; }
.mk-price-blurb { color: var(--muted); font-size: .84rem; text-align: center; min-height: 2.4em; margin: .3rem 0 .8rem; }
.mk-price-amount { text-align: center; margin-bottom: 1rem; }
.mk-price-num { font-size: 2.1rem; font-weight: 800; color: var(--ink); }
.mk-price-per { color: var(--muted); font-weight: 600; }
.mk-price-features { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .5rem; }
.mk-price-features li { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; color: #475569; }
.mk-price-features i { color: #16a34a; margin-top: .15rem; }

/* Process band */
.mk-process-section { padding: 4.5rem 0; background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: #fff; }
.mk-process-section .mk-h2 { color: #fff; }
.mk-process-row { position: relative; }
.mk-process-section .mk-step { text-align: center; }
.mk-process-section .mk-step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; margin: 0 auto .8rem; }
.mk-process-section .mk-step h4 { color: #fff; font-size: 1.05rem; font-weight: 700; }
.mk-process-section .mk-step p { color: #9aa2ba; font-size: .88rem; }

/* Testimonials */
.mk-testimonial { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; box-shadow: 0 6px 18px rgba(13,21,48,.05); }
.mk-stars { color: #f59e0b; font-size: .9rem; margin-bottom: .6rem; }
.mk-testimonial p { font-size: .92rem; line-height: 1.55; color: #334155; }
.mk-testimonial-author { font-weight: 700; margin-top: .8rem; font-size: .92rem; }
.mk-testimonial-author span { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }

/* CTA band */
.mk-cta-band { background: linear-gradient(120deg, var(--navy-2), var(--navy)); color: #fff; padding: 3rem 0; }
.mk-cta-band h2 { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .3rem; }
.mk-cta-band p { color: #b9c0d4; margin: 0; max-width: 620px; }

/* Contact "prefer to chat" card */
.mk-chat-card { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; }
.mk-chat-mascot { width: 64px; height: 64px; object-fit: contain; object-position: top; }
.mk-contact-info li { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; color: #334155; }
.mk-contact-info li i { color: var(--brand); }

/* --- Redesigned public nav (top bar + dropdowns + CTA) -------------------- */
.mk-topbar-left, .mk-topbar-right { display: flex; align-items: center; gap: 1.1rem; }
.mk-topbar-left a { margin-right: 0; }
.mk-topbar-hours { color: #b9c0d4; }
.mk-topbar-hours i { color: var(--brand-bright); }
.mk-flag { font-size: 1rem; }
.mk-nav-brand { display: inline-flex; align-items: center; }
.mk-nav-cta { color: #fff !important; padding: .5rem 1.1rem; border-radius: 10px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.mk-nav-cta:hover { color: #fff !important; }
.mk-nav-dd { position: relative; }
.mk-nav-dd .dropdown-toggle::after { vertical-align: .1em; margin-left: .25em; }
.mk-nav-dd .dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(13,21,48,.14); padding: .4rem; margin-top: .4rem; }
.mk-nav-dd .dropdown-item { border-radius: 8px; font-size: .9rem; font-weight: 600; color: #334155; padding: .5rem .7rem; }
.mk-nav-dd .dropdown-item:hover { background: var(--brand-soft); color: var(--brand-dark); }
@media (max-width: 991.98px) {
    .mk-nav-dd { width: 100%; }
    .mk-nav-dd .dropdown-menu { position: static !important; transform: none !important; box-shadow: none; border: 0; padding-left: .8rem; }
    .mk-nav-cta { display: block; text-align: center; margin-top: .6rem; }
}

/* Footer social icons */
.mk-footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.mk-footer-social a { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #cbd2e0 !important; font-size: 1rem; }
.mk-footer-social a:hover { background: var(--brand); color: #fff !important; }

/* ============================================================
   Uniform sections — every content section shares ONE light
   surface (no beige, no navy bands). Cards stay white to pop.
   ============================================================ */
.mk-section--alt,
.mk-results,
.mk-process-section,
.mk-cta-band { background: transparent; color: var(--ink); }

.mk-results-head h2,
.mk-process-section .mk-h2,
.mk-process-section .mk-step h4,
.mk-cta-band h2 { color: var(--ink); }
.mk-results-head p,
.mk-cta-band p,
.mk-process-section .mk-step p { color: var(--muted); }

.mk-casestudy { background: #fff; border: 1px solid var(--line); }
.mk-casestudy-title { color: var(--ink); }
.mk-casestudy-detail { color: var(--muted); }
.mk-casestudy-stats .n { color: var(--brand); }
.mk-casestudy-stats .l { color: var(--muted); }
.mk-casestudy-link { color: var(--brand-ink); }
.mk-quote-card { border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(13,21,48,.06); }
