/* The public marketing page at "/" (templates/marketing/home.html).
 *
 * Loaded AFTER style.css and built only from its :root tokens (ADR-045), so the
 * page is the same warm teal-on-paper as the product it describes. Every rule
 * is scoped under an `mk-` class: nothing here can reach an application screen.
 * No web fonts, no gradients, no icons beyond the one inline brand mark.
 */

.mk {
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

.mk-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .mk-wrap { padding: 0 28px; }
}

.mk h1, .mk h2, .mk h3 {
    color: var(--text);
    letter-spacing: -0.01em;
}

/* --- header ---------------------------------------------------------------- */
.mk-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.mk-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.mk-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
}

.mk-brand-mark { color: var(--primary-strong); flex: none; }

.mk-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.mk-nav-section {
    color: var(--muted);
    text-decoration: none;
    padding: 8px 10px;
    font-weight: 500;
}

.mk-nav-section:hover { color: var(--text); }

/* On a phone the in-page anchors give way to the three things a visitor came
   for; the sections are a short scroll away regardless. */
@media (max-width: 719px) {
    .mk-nav-section { display: none; }
    .mk-nav { width: 100%; }
    .mk-nav .mk-btn { flex: 1 1 auto; }
}

/* --- buttons --------------------------------------------------------------- */
.mk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;          /* touch target */
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
}

.mk-btn-lg { min-height: 50px; padding: 0 22px; font-size: 1rem; }

/* --primary-strong, not --primary: white on --primary is 3.91:1. */
.mk-btn-solid { background: var(--primary-strong); color: #fff; }
.mk-btn-solid:hover { background: var(--primary-stronger); color: #fff; }

.mk-btn-outline {
    background: var(--surface);
    border-color: var(--primary-strong);
    color: var(--primary-strong);
}
.mk-btn-outline:hover { background: var(--primary-light); }

.mk-btn-quiet {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
.mk-btn-quiet:hover { background: var(--light-gray); color: var(--text); }

/* --- hero ------------------------------------------------------------------ */
.mk-hero { padding: 40px 0 48px; }

.mk-hero-inner {
    display: grid;
    gap: 36px;
    align-items: center;
}

.mk-eyebrow {
    margin: 0 0 12px;
    color: var(--primary-strong);
    font-weight: 600;
    font-size: 0.9rem;
}

.mk-hero h1 {
    font-size: clamp(1.9rem, 5.2vw, 2.9rem);
    line-height: 1.12;
    margin: 0 0 18px;
}

.mk-lead {
    font-size: 1.1rem;
    color: var(--muted);
    margin: 0 0 26px;
    max-width: 36em;
}

.mk-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mk-cta-center { justify-content: center; }

.mk-small {
    margin: 16px 0 0;
    font-size: 0.9rem;
    color: var(--muted);
}

@media (min-width: 960px) {
    .mk-hero { padding: 64px 0 72px; }
    .mk-hero-inner { grid-template-columns: 5fr 6fr; gap: 48px; }
}

/* --- screenshots ----------------------------------------------------------- */
.mk-shot {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    min-width: 0;
}

.mk-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.mk-shot-narrow { max-width: 340px; justify-self: center; width: 100%; }
.mk-shot-phone { max-width: 280px; justify-self: center; width: 100%; border-radius: 22px; border-width: 6px; border-color: var(--dark); }

/* --- sections -------------------------------------------------------------- */
.mk-section { padding: 56px 0; }

.mk-section-alt {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.mk-section h2 {
    font-size: clamp(1.5rem, 3.6vw, 2rem);
    line-height: 1.2;
    margin: 0 0 10px;
}

.mk-section-lead {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0 0 32px;
}

/* --- feature list ---------------------------------------------------------- */
.mk-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 28px 32px;
}

.mk-features li {
    border-top: 2px solid var(--primary);
    padding-top: 14px;
}

.mk-features h3 { font-size: 1.05rem; margin: 0 0 6px; }
.mk-features p { margin: 0; color: var(--muted); }

@media (min-width: 640px) {
    .mk-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
    .mk-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- screenshot rows ------------------------------------------------------- */
.mk-row {
    display: grid;
    gap: 24px;
    align-items: center;
    margin-top: 40px;
}

.mk-row-copy h3 { font-size: 1.3rem; margin: 0 0 10px; }
.mk-row-copy p { color: var(--muted); margin: 0 0 12px; max-width: 34em; }

@media (min-width: 860px) {
    .mk-row { grid-template-columns: 7fr 5fr; gap: 48px; margin-top: 56px; }
    .mk-row-flip { grid-template-columns: 5fr 7fr; }
    .mk-row-flip .mk-shot { order: 2; }
}

/* --- devices --------------------------------------------------------------- */
.mk-devices {
    display: grid;
    gap: 32px;
    align-items: center;
}

.mk-checks {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.mk-checks li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
}

/* A drawn tick, not an icon font or an emoji. */
.mk-checks li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.35em;
    width: 6px;
    height: 11px;
    border: solid var(--primary-strong);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

@media (min-width: 860px) {
    .mk-devices { grid-template-columns: 3fr 2fr; gap: 64px; }
}

/* --- pricing --------------------------------------------------------------- */
.mk-pricing { text-align: center; }

.mk-price-card {
    max-width: 620px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 28px 22px;
}

.mk-price-card p { margin: 0 0 16px; }
.mk-price-card .mk-small { margin: 14px 0 0; }

/* --- closing + footer ------------------------------------------------------ */
.mk-closing { text-align: center; }

.mk-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 28px 0;
}

.mk-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
}

.mk-footer-brand { margin: 0; font-weight: 700; }

.mk-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.mk-footer-links a { text-decoration: none; }
.mk-footer-links a:hover { text-decoration: underline; }
.mk-footer-note { margin: 0; color: var(--muted); font-size: 0.9rem; width: 100%; }

/* --- "coming soon" ---------------------------------------------------------- */
.mk-feature-soon { border-top-style: dashed; }
/* The lead tile (documents + immunizations): the one daycares ask about first. */
.mk-feature-lead { border-top-width: 4px; border-top-color: var(--primary); }

/* Amber as TEXT is --warning-text, never --warning (2.31:1). */
.mk-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: var(--warning-text);
    font-size: 0.75rem;
    font-weight: 600;
    vertical-align: 2px;
    white-space: nowrap;
}

/* --- pricing cards ---------------------------------------------------------- */
.mk-plans {
    list-style: none;
    margin: 0 auto 20px;
    padding: 0;
    display: grid;
    gap: 16px;
    max-width: 960px;
}

.mk-plan {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mk-plan h3 { font-size: 1.05rem; margin: 0 0 8px; }
.mk-price { margin: 0; color: var(--muted); }
.mk-price-amount { font-size: 2.2rem; font-weight: 700; color: var(--text); }
.mk-plan-note { margin: 4px 0 18px; color: var(--muted); font-size: 0.9rem; }
.mk-plan .mk-btn { margin-top: auto; width: 100%; }

@media (min-width: 720px) {
    .mk-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- contact page ----------------------------------------------------------- */
.mk-contact { max-width: 640px; }
.mk-contact h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); margin: 0 0 12px; }

.mk-notice {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--success-strong);
    border-radius: var(--border-radius);
    padding: 14px 18px;
    margin: 0 0 24px;
}
.mk-notice p { margin: 0 0 6px; }
.mk-notice p:last-child { margin-bottom: 0; }
.mk-notice-warn { border-left-color: var(--warning-strong); }

.mk-form { display: grid; gap: 18px; }
.mk-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.mk-optional { font-weight: 400; color: var(--muted); }
.mk-field input,
.mk-field textarea {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
}
.mk-field-error input,
.mk-field-error textarea { border-color: var(--danger-strong); }
.mk-error { margin: 6px 0 0; color: var(--danger-strong); font-size: 0.9rem; }
.mk-form .mk-btn { justify-self: start; }

/* The honeypot: off-screen rather than display:none, which some bots skip. */
.mk-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- trust pages: /privacy, /terms, /security --------------------------------- */
/* Long-form reading: one narrow column, the body text at full contrast. */
.mk-legal { max-width: 720px; }
.mk-legal h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); margin: 0 0 8px; }
.mk-legal h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.mk-legal p, .mk-legal li { line-height: 1.6; }
.mk-legal ul { padding-left: 1.2em; margin: 0 0 14px; }
.mk-legal li { margin: 0 0 6px; }
.mk-legal-meta { margin: 0 0 24px; color: var(--muted); font-size: 0.95rem; }
.mk-legal-toc { margin: 0 0 8px; color: var(--muted); font-size: 0.95rem; }
.mk-legal table { border-collapse: collapse; width: 100%; margin: 0 0 14px; font-size: 0.95rem; }
.mk-legal th, .mk-legal td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.mk-legal th { font-weight: 600; }
.mk-legal-table-wrap { overflow-x: auto; }

/* Two program types (Family, Group family): two wider cards, centred. */
@media (min-width: 720px) {
    .mk-plans.mk-plans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
}
.mk-plan-name { font-size: 1.05rem; margin: 0 0 8px; }
.mk-addon { text-align: center; color: var(--muted); margin: 0 0 20px; }
/* "plus applicable sales tax", small, under each price (2026-10-20). */
.mk-price-tax { margin: 2px 0 0; color: var(--muted); font-size: 0.8rem; }
