/* Honesty Software marketing pages. Uses the theme variables from base.html. */
.mk {
    --mk-green: var(--brand-green, #1f8a4c);
    --mk-green-dark: #176b3a;
    --mk-green-tint: rgba(31, 138, 76, .1);
    --mk-gold: var(--brand-gold, #d3a62f);
    --mk-gold-dark: #b98f22;
    --mk-charcoal: #0f172a;
    --mk-charcoal-2: #1e293b;
    --mk-ink: var(--text, #0f172a);
    --mk-body: var(--text-secondary, #334155);
    --mk-muted: var(--muted, #64748b);
    --mk-line: var(--border, #e2e8f0);
    --mk-soft: var(--bg-soft, #f1f5f9);
    --mk-radius: var(--radius-lg, 16px);
    color: var(--mk-ink);
    font-size: 1.0625rem;
}
.mk .container { max-width: 1120px; }
.mk h1, .mk h2, .mk h3 { font-family: 'Manrope', 'Inter', sans-serif; letter-spacing: -0.02em; }

/* Sections */
.mk-section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.mk-section--soft { background: var(--mk-soft); }
.mk-section--tight { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.mk-eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mk-green);
    margin-bottom: .85rem;
}
.mk-title {
    font-weight: 800;
    font-size: clamp(1.7rem, 3.4vw, 2.35rem);
    line-height: 1.15;
    margin-bottom: .85rem;
}
.mk-sub { font-size: 1.1rem; line-height: 1.65; color: var(--mk-body); max-width: 44rem; }
.mk-center { text-align: center; }
.mk-center .mk-sub { margin-left: auto; margin-right: auto; }
.mk-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Buttons */
.mk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    padding: .7rem 1.4rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
    cursor: pointer;
}
.mk-btn:focus-visible { outline: 3px solid var(--mk-green); outline-offset: 3px; }
.mk-btn--gold { background: var(--mk-gold); color: var(--mk-charcoal); border-color: var(--mk-gold); }
.mk-btn--gold:hover { background: var(--mk-gold-dark); border-color: var(--mk-gold-dark); color: var(--mk-charcoal); transform: translateY(-1px); }
.mk-btn--green { background: var(--mk-green); color: #fff; border-color: var(--mk-green); }
.mk-btn--green:hover { background: var(--mk-green-dark); border-color: var(--mk-green-dark); color: #fff; }
.mk-btn--outline { background: #fff; color: var(--mk-ink); border-color: var(--mk-line); }
.mk-btn--outline:hover { border-color: var(--mk-green); color: var(--mk-green); }
.mk-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.mk-btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); color: #fff; }
.mk-link { color: var(--mk-green); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.mk-link:hover { color: var(--mk-green-dark); text-decoration: underline; }
.mk-link:focus-visible { outline: 3px solid var(--mk-green); outline-offset: 2px; border-radius: 4px; }

/* Hero */
.mk-hero {
    background: var(--mk-charcoal);
    background-image: radial-gradient(1200px 500px at 85% -10%, rgba(31, 138, 76, .22), transparent 60%);
    color: #e2e8f0;
    padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}
.mk-hero .mk-eyebrow { color: var(--mk-gold); }
.mk-hero h1 {
    font-weight: 800;
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    line-height: 1.08;
    color: #fff;
    margin-bottom: 1.25rem;
}
.mk-hero h1 .mk-accent { color: var(--mk-gold); }
.mk-hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.65; color: #cbd5e1; max-width: 40rem; margin-bottom: 2rem; }
.mk-hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.75rem; }
.mk-hero-human {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    color: #cbd5e1;
    font-size: .98rem;
}
.mk-hero-human a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(211, 166, 47, .6); white-space: nowrap; }
.mk-hero-human a:hover { color: var(--mk-gold); }
.mk-hero-human i { color: var(--mk-gold); }
.mk-hero-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: var(--mk-radius);
    padding: 1.6rem;
}
.mk-hero-card h2 { font-size: 1.05rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
.mk-checks { list-style: none; padding: 0; margin: 0; }
.mk-checks li { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .8rem; line-height: 1.5; }
.mk-checks li:last-child { margin-bottom: 0; }
.mk-checks i { color: var(--mk-green); font-size: 1.1rem; line-height: 1.4; flex-shrink: 0; }
.mk-hero .mk-checks i { color: var(--mk-gold); }
.mk-hero .mk-checks li { color: #e2e8f0; }

/* Page hero (inner pages) */
.mk-page-hero { background: #fff; border-bottom: 1px solid var(--mk-line); padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.75rem); }
.mk-page-hero h1 { font-weight: 800; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.1; margin-bottom: 1rem; }
.mk-breadcrumb { font-size: .9rem; margin-bottom: 1rem; color: var(--mk-muted); }
.mk-breadcrumb a { color: var(--mk-muted); text-decoration: none; }
.mk-breadcrumb a:hover { color: var(--mk-green); text-decoration: underline; }

/* Cards */
.mk-card {
    background: #fff;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
    padding: 1.6rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.mk-card:hover { border-color: rgba(31, 138, 76, .45); box-shadow: 0 14px 34px rgba(15, 23, 42, .07); }
.mk-card h3 { font-size: 1.15rem; font-weight: 800; line-height: 1.3; margin-bottom: .6rem; }
.mk-card p { color: var(--mk-body); line-height: 1.6; font-size: .98rem; }
.mk-card .mk-link { margin-top: auto; padding-top: .5rem; }
.mk-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--mk-green-tint);
    color: var(--mk-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.1rem;
    flex-shrink: 0;
}
.mk-icon--gold { background: rgba(211, 166, 47, .14); color: #8a6a12; }
.mk-card--link { position: relative; }
.mk-card--link .mk-stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--mk-radius); }

/* Benefits */
.mk-benefit { display: flex; gap: 1rem; align-items: flex-start; }
.mk-benefit h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .4rem; }
.mk-benefit p { color: var(--mk-body); margin: 0; line-height: 1.6; }

/* Steps */
.mk-steps { counter-reset: mk-step; }
.mk-step { position: relative; padding-top: 3.6rem; }
.mk-step::before {
    counter-increment: mk-step;
    content: counter(mk-step);
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--mk-charcoal);
    color: var(--mk-gold);
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mk-step h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .5rem; }
.mk-step p { color: var(--mk-body); line-height: 1.6; margin: 0; }

/* Portfolio */
.mk-case { padding: 0; overflow: hidden; }
.mk-case-media { aspect-ratio: 16 / 9; background: var(--mk-charcoal); overflow: hidden; }
.mk-case-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.mk-case-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.mk-case-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.mk-case-kind { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mk-muted); }
.mk-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .75rem;
    font-weight: 700;
    border-radius: 999px;
    padding: .2rem .65rem;
    border: 1px solid var(--mk-line);
    color: var(--mk-muted);
    background: #fff;
}
.mk-badge--live { border-color: rgba(31, 138, 76, .35); color: var(--mk-green); background: var(--mk-green-tint); }
.mk-badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mk-green); }
.mk-psb { margin: .4rem 0 1rem; padding: 0; list-style: none; }
.mk-psb li { margin-bottom: .6rem; line-height: 1.55; color: var(--mk-body); font-size: .96rem; }
.mk-psb strong { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mk-ink); margin-bottom: .1rem; }
.mk-details { border-top: 1px solid var(--mk-line); padding-top: .75rem; margin-top: auto; }
.mk-details summary { cursor: pointer; font-weight: 700; color: var(--mk-ink); font-size: .92rem; list-style: none; display: flex; align-items: center; gap: .4rem; }
.mk-details summary::-webkit-details-marker { display: none; }
.mk-details summary::before { content: "+"; display: inline-flex; width: 1.2rem; justify-content: center; color: var(--mk-green); font-weight: 800; }
.mk-details[open] summary::before { content: "\2212"; }
.mk-details summary:focus-visible { outline: 3px solid var(--mk-green); outline-offset: 2px; border-radius: 4px; }
.mk-details p { margin: .6rem 0 0; font-size: .92rem; color: var(--mk-body); }
.mk-case-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }

/* Trust */
.mk-trust { display: flex; gap: .9rem; align-items: flex-start; }
.mk-trust i { color: var(--mk-green); font-size: 1.35rem; line-height: 1.2; flex-shrink: 0; }
.mk-trust h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: .25rem; }
.mk-trust p { color: var(--mk-body); margin: 0; font-size: .95rem; line-height: 1.55; }

/* Consultation */
.mk-consult { background: var(--mk-charcoal); color: #e2e8f0; }
.mk-consult .mk-title { color: #fff; }
.mk-consult .mk-sub { color: #cbd5e1; }
.mk-consult .mk-eyebrow { color: var(--mk-gold); }
.mk-form-card {
    background: #fff;
    color: var(--mk-ink);
    border-radius: var(--mk-radius);
    padding: clamp(1.4rem, 3vw, 2.2rem);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.mk-form-card .form-label { font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.mk-form-card .form-control,
.mk-form-card .form-select { border-radius: 10px; min-height: 48px; border-color: #cbd5e1; font-size: 1rem; }
.mk-form-card textarea.form-control { min-height: 130px; resize: vertical; }
.mk-form-card .form-control:focus,
.mk-form-card .form-select:focus { border-color: var(--mk-green); box-shadow: 0 0 0 .2rem rgba(31, 138, 76, .2); }
.mk-reassure {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    background: var(--mk-green-tint);
    border-radius: 10px;
    padding: .8rem 1rem;
    font-size: .95rem;
    color: var(--mk-ink);
    margin-bottom: 1.25rem;
}
.mk-reassure i { color: var(--mk-green); font-size: 1.1rem; line-height: 1.35; }
.mk-form-status { font-weight: 600; margin-top: 1rem; }
.mk-form-status.is-ok { color: var(--mk-green); }
.mk-form-status.is-error { color: #b91c1c; }
.mk-side-contact { list-style: none; padding: 0; margin: 1.75rem 0 0; }
.mk-side-contact li { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1.1rem; }
.mk-side-contact i { color: var(--mk-gold); font-size: 1.25rem; line-height: 1.3; }
.mk-side-contact a { color: #fff; font-weight: 700; text-decoration: none; }
.mk-side-contact a:hover { color: var(--mk-gold); text-decoration: underline; }
.mk-side-contact span { display: block; color: #94a3b8; font-size: .9rem; }

/* CTA band */
.mk-cta-band {
    background: var(--mk-soft);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}
.mk-cta-band h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 800; margin: 0 0 .35rem; }
.mk-cta-band p { margin: 0; color: var(--mk-body); }
.mk-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Pricing */
.mk-path { border-top: 4px solid var(--mk-green); }
.mk-path--gold { border-top-color: var(--mk-gold); }
.mk-path h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: .5rem; }
.mk-cost-table { width: 100%; border-collapse: collapse; }
.mk-cost-table th, .mk-cost-table td { padding: 1rem; border-bottom: 1px solid var(--mk-line); vertical-align: top; text-align: left; }
.mk-cost-table th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mk-muted); }
.mk-cost-table td:first-child { font-weight: 800; white-space: nowrap; }
.mk-cost-table td { color: var(--mk-body); }

/* FAQ */
.mk-faq details { border-bottom: 1px solid var(--mk-line); padding: 1.1rem 0; }
.mk-faq summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after { content: "+"; color: var(--mk-green); font-weight: 800; }
.mk-faq details[open] summary::after { content: "\2212"; }
.mk-faq summary:focus-visible { outline: 3px solid var(--mk-green); outline-offset: 2px; border-radius: 4px; }
.mk-faq p { margin: .65rem 0 0; color: var(--mk-body); line-height: 1.6; }

/* Support brand note */
.mk-support-note { font-size: .95rem; color: var(--mk-muted); }
.mk-support-note a { color: var(--mk-green); font-weight: 700; }

/* Keep the chat rail available but quiet so the consultation button leads. */
body.mk-page #hs-rail-chat.is-tip::before,
body.mk-page #hs-rail-chat.is-tip::after { display: none; }

@media (prefers-reduced-motion: reduce) {
    .mk-btn, .mk-card { transition: none; }
    .mk-btn--gold:hover { transform: none; }
}
@media (max-width: 575.98px) {
    .mk-hero-actions .mk-btn, .mk-cta-actions .mk-btn { width: 100%; }
    .mk-cost-table td:first-child { white-space: normal; }
}
