/* ==========================================================================
   MiDOTs marketing site
   Shared design system for the splash page (/) and product overview (/product).
   Self-contained: no CDN fonts, no framework — the two marketing pages are the
   only consumers, and they are served as static HTML outside the app shell.
   ========================================================================== */

/* Handwriting face for the DOTBoard mock only. Vendored woff2 (see
   assets/fonts/OFL-PatrickHand.txt); path is root-absolute-safe from both
   "/" and "/product". */
@font-face {
    font-family: 'Patrick Hand';
    src: url('../fonts/PatrickHand-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Ink + surfaces (Tailwind gray/slate, matching the app's card interiors) */
    --mk-ink: #111827;
    --mk-ink-strong: #0f172a;
    --mk-ink-soft: #475569;
    --mk-ink-mute: #64748b;
    --mk-surface: #ffffff;
    --mk-surface-alt: #f8fafc;
    --mk-surface-tint: #f1f5f9;
    --mk-line: #e5e7eb;
    --mk-line-soft: #eef1f6;

    /* Brand */
    --mk-accent: #667eea;
    --mk-accent-hover: #5568d3;
    --mk-accent-dark: #4c63d2;
    --mk-accent-light: #8b9eff;
    --mk-accent-wash: rgba(102, 126, 234, 0.25);
    --mk-secondary: #764ba2;
    --mk-dot: #ffc01e;          /* the wordmark's dot — the bullseye centre */

    /* Board surface (the canvas the product actually renders on) */
    --mk-board: #334155;
    --mk-board-deep: #0f172a;
    --mk-board-ink: #f8fafc;

    /* Status */
    --mk-success: #059669;

    --mk-radius: 14px;
    --mk-radius-lg: 22px;
    --mk-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.04);
    --mk-shadow-md: 0 8px 28px rgba(15, 23, 42, 0.10);
    --mk-shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.22);

    --mk-wrap: 1160px;
    --mk-gutter: 24px;

    --mk-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--mk-surface);
    color: var(--mk-ink);
    font-family: var(--mk-font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--mk-accent-dark); }

:focus-visible {
    outline: 3px solid var(--mk-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.mk-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: #fff;
    color: var(--mk-ink);
    padding: 10px 16px;
    border-radius: 0 0 8px 0;
    font-weight: 600;
}
.mk-skip:focus { left: 0; }

.mk-wrap {
    width: 100%;
    max-width: var(--mk-wrap);
    margin: 0 auto;
    padding: 0 var(--mk-gutter);
}

.mk-wrap--narrow { max-width: 900px; }

/* --------------------------------------------------------------------------
   Type scale
   -------------------------------------------------------------------------- */

.mk-display {
    font-size: clamp(2.4rem, 5.6vw, 4.05rem);
    line-height: 1.04;
    letter-spacing: -0.028em;
    font-weight: 700;
    margin: 0 0 20px;
}

.mk-h2 {
    font-size: clamp(1.85rem, 3.4vw, 2.7rem);
    line-height: 1.12;
    letter-spacing: -0.022em;
    font-weight: 690;
    margin: 0 0 18px;
}

.mk-h3 {
    font-size: clamp(1.2rem, 1.9vw, 1.45rem);
    line-height: 1.25;
    letter-spacing: -0.012em;
    font-weight: 660;
    margin: 0 0 10px;
}

.mk-lead {
    font-size: clamp(1.05rem, 1.35vw, 1.24rem);
    line-height: 1.55;
    color: var(--mk-ink-soft);
    margin: 0 0 28px;
}

.mk-body { margin: 0 0 20px; color: var(--mk-ink-soft); }
.mk-body:last-child { margin-bottom: 0; }

.mk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.775rem;
    font-weight: 680;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--mk-accent-dark);
    margin: 0 0 16px;
}

.mk-eyebrow::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--mk-dot);
    box-shadow: 0 0 0 4px rgba(255, 192, 30, 0.22);
}

/* Emphasis inside headlines: the italic "your" that carries the positioning. */
.mk-em {
    font-style: italic;
    color: var(--mk-accent-dark);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.mk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 999px;
    font-size: 1.005rem;
    font-weight: 640;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease,
                border-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.mk-btn--primary {
    background: linear-gradient(135deg, var(--mk-accent) 0%, var(--mk-secondary) 100%);
    color: #fff;
    box-shadow: 0 10px 26px rgba(102, 126, 234, 0.34);
}
.mk-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(102, 126, 234, 0.42);
}

.mk-btn--ghost {
    background: transparent;
    color: var(--mk-ink-strong);
    border-color: var(--mk-line);
    background-color: #fff;
}
.mk-btn--ghost:hover {
    border-color: var(--mk-accent-light);
    color: var(--mk-accent-dark);
    transform: translateY(-2px);
}

/* On photography / dark board sections */
.mk-btn--onDark {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.mk-btn--onDark:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #fff;
    transform: translateY(-2px);
}

.mk-btn--sm { padding: 10px 18px; font-size: 0.93rem; }

.mk-btnRow {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.mk-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 16px 0;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease,
                border-color 0.25s ease;
    border-bottom: 1px solid transparent;
}

.mk-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.mk-nav__brand {
    display: inline-flex;
    align-items: center;
    color: #fff;             /* over the hero photo */
    text-decoration: none;
    flex: 0 0 auto;
}
.mk-nav__brand svg { width: 132px; height: auto; display: block; }

.mk-nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mk-nav__link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 560;
    font-size: 0.96rem;
    padding: 9px 14px;
    border-radius: 999px;
    transition: background-color 0.18s ease, color 0.18s ease;
}
.mk-nav__link:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.mk-nav__link[aria-current='page'] {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

/* Scrolled state, and the default for pages whose header sits on a light band */
.mk-nav.is-stuck,
.mk-nav--light {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(150%) blur(12px);
    -webkit-backdrop-filter: saturate(150%) blur(12px);
    border-bottom-color: var(--mk-line);
    box-shadow: 0 1px 16px rgba(15, 23, 42, 0.06);
}

.mk-nav.is-stuck .mk-nav__brand,
.mk-nav--light .mk-nav__brand { color: var(--mk-ink-strong); }

.mk-nav.is-stuck .mk-nav__link,
.mk-nav--light .mk-nav__link { color: var(--mk-ink-soft); }

.mk-nav.is-stuck .mk-nav__link:hover,
.mk-nav--light .mk-nav__link:hover { background: var(--mk-surface-tint); color: var(--mk-ink-strong); }

.mk-nav.is-stuck .mk-nav__link[aria-current='page'],
.mk-nav--light .mk-nav__link[aria-current='page'] {
    color: var(--mk-accent-dark);
    background: rgba(102, 126, 234, 0.10);
}

.mk-nav.is-stuck .mk-btn--onDark,
.mk-nav--light .mk-btn--onDark {
    background: linear-gradient(135deg, var(--mk-accent) 0%, var(--mk-secondary) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.30);
}

/* --------------------------------------------------------------------------
   Hero (photo + slate scrim)
   -------------------------------------------------------------------------- */

.mk-hero {
    position: relative;
    isolation: isolate;
    margin-top: -73px;          /* slide under the transparent sticky nav */
    padding: 168px 0 104px;
    color: #fff;
    overflow: hidden;
}

.mk-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.mk-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
}

.mk-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(105deg, rgba(15, 23, 42, 0.93) 0%, rgba(15, 23, 42, 0.80) 42%,
                                rgba(51, 65, 85, 0.62) 72%, rgba(118, 75, 162, 0.48) 100%),
        radial-gradient(120% 90% at 8% 20%, rgba(76, 99, 210, 0.42) 0%, transparent 60%);
}

.mk-hero__inner { max-width: 760px; }

.mk-hero .mk-eyebrow { color: var(--mk-accent-light); }

.mk-hero__sub {
    font-size: clamp(1.06rem, 1.5vw, 1.3rem);
    line-height: 1.55;
    color: rgba(248, 250, 252, 0.88);
    margin: 0 0 34px;
    max-width: 640px;
}

.mk-hero__sub em { color: #fff; font-style: italic; }

.mk-hero__note {
    margin: 26px 0 0;
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.7);
}

/* Decorative bullseye, hero right */
.mk-hero__target {
    position: absolute;
    right: -110px;
    top: 50%;
    transform: translateY(-50%);
    width: min(560px, 48vw);
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.mk-section { padding: clamp(64px, 8vw, 104px) 0; }
.mk-section--alt { background: var(--mk-surface-alt); }
.mk-section--tint { background: var(--mk-surface-tint); }
.mk-section--tight { padding-top: clamp(44px, 5vw, 64px); }

.mk-sectionHead {
    max-width: 760px;
    margin: 0 0 clamp(36px, 4vw, 56px);
}
.mk-sectionHead--center { margin-left: auto; margin-right: auto; text-align: center; }

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */

.mk-cards {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
}

.mk-card {
    background: var(--mk-surface);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-lg);
    padding: 30px 28px 32px;
    box-shadow: var(--mk-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.mk-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mk-shadow-md);
    border-color: var(--mk-accent-light);
}

.mk-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.14), rgba(118, 75, 162, 0.14));
    color: var(--mk-accent-dark);
}
.mk-card__icon svg { width: 26px; height: 26px; }

.mk-card p { margin: 0; color: var(--mk-ink-soft); font-size: 0.98rem; }

/* --------------------------------------------------------------------------
   Split rows (copy + photo)
   -------------------------------------------------------------------------- */

.mk-split {
    display: grid;
    gap: clamp(32px, 5vw, 72px);
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.mk-split--media-first .mk-split__copy { order: 2; }
.mk-split--media-first .mk-split__media { order: 1; }

.mk-split__media {
    position: relative;
    border-radius: var(--mk-radius-lg);
    overflow: hidden;
    box-shadow: var(--mk-shadow-lg);
    background: var(--mk-surface-tint);
}
.mk-split__media img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: cover;
}

/* A soft brand tint over photography keeps the palette coherent. */
.mk-split__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, rgba(102, 126, 234, 0.16) 0%, transparent 45%,
                                rgba(118, 75, 162, 0.14) 100%);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Chips + callouts
   -------------------------------------------------------------------------- */

.mk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
}

.mk-chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--mk-line);
    font-size: 0.9rem;
    font-weight: 570;
    color: var(--mk-ink-soft);
}
.mk-chips li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mk-accent);
}

.mk-callout {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 28px 0 0;
    padding: 18px 22px;
    background: rgba(102, 126, 234, 0.08);
    border-left: 3px solid var(--mk-accent);
    border-radius: 0 12px 12px 0;
    color: var(--mk-ink-strong);
    font-size: 1.02rem;
    font-weight: 580;
    line-height: 1.5;
}
.mk-callout svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; color: var(--mk-accent-dark); }

.mk-callout--onDark {
    background: rgba(248, 250, 252, 0.08);
    border-left-color: var(--mk-dot);
    color: #fff;
}
.mk-callout--onDark svg { color: var(--mk-dot); }

/* --------------------------------------------------------------------------
   Dark board band (the product's own canvas surface)
   -------------------------------------------------------------------------- */

.mk-board {
    position: relative;
    isolation: isolate;
    color: var(--mk-board-ink);
    background: var(--mk-board-deep);
    overflow: hidden;
}

.mk-board__photo {
    position: absolute;
    inset: 0;
    z-index: -3;
}
.mk-board__photo img { width: 100%; height: 100%; object-fit: cover; }

.mk-board__scrim {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.93) 55%,
                                rgba(76, 99, 210, 0.72) 100%);
}

/* Grid dots, the canvas signature */
.mk-board__grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(248, 250, 252, 0.16) 1.4px, transparent 1.5px);
    background-size: 26px 26px;
    mask-image: radial-gradient(120% 100% at 50% 40%, #000 35%, transparent 78%);
    -webkit-mask-image: radial-gradient(120% 100% at 50% 40%, #000 35%, transparent 78%);
}

.mk-board .mk-h2 { color: #fff; }
.mk-board .mk-body { color: rgba(248, 250, 252, 0.82); }
.mk-board .mk-eyebrow { color: var(--mk-dot); }
.mk-board .mk-eyebrow::before { background: var(--mk-dot); }

/* --------------------------------------------------------------------------
   DOTBoard mock — three note cards resting on the canvas
   -------------------------------------------------------------------------- */

.mk-mock {
    display: grid;
    gap: 16px;
    max-width: 430px;
    margin: 0 auto;
}

.mk-mock__card {
    background: #fff;
    color: #111827;
    border: 1px solid var(--mk-line);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: var(--mk-shadow-lg);
}

.mk-mock__card:nth-child(1) { transform: rotate(-1.6deg); }
.mk-mock__card:nth-child(2) { transform: rotate(1.1deg) translateX(18px); }
.mk-mock__card:nth-child(3) { transform: rotate(-0.7deg) translateX(-10px); }

.mk-mock__tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--mk-accent-dark);
    background: rgba(102, 126, 234, 0.12);
    border-radius: 6px;
    padding: 3px 8px;
    margin-bottom: 10px;
}

.mk-mock__hand {
    font-family: 'Patrick Hand', 'Segoe Print', 'Bradley Hand', cursive;
    font-size: 1.13rem;
    line-height: 1.42;
    color: #1f2937;
    margin: 0;
}

.mk-mock__q { font-weight: 640; margin: 0 0 10px; font-size: 0.97rem; }

.mk-mock__opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.mk-mock__opts li {
    font-size: 0.9rem;
    color: var(--mk-ink-soft);
    padding: 7px 11px;
    border: 1px solid var(--mk-line);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.mk-mock__opts li.is-right {
    border-color: rgba(5, 150, 105, 0.45);
    background: rgba(16, 185, 129, 0.09);
    color: var(--mk-success);
    font-weight: 600;
}
.mk-mock__opts li::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    flex: 0 0 auto;
}
.mk-mock__opts li.is-right::before {
    border-color: var(--mk-success);
    background: var(--mk-success);
    box-shadow: inset 0 0 0 2px #fff;
}

.mk-mock__meter {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--mk-ink-mute);
}
.mk-mock__bar {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: var(--mk-surface-tint);
    overflow: hidden;
}
.mk-mock__bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--mk-accent), var(--mk-secondary));
}

/* --------------------------------------------------------------------------
   Loop / steps strip
   -------------------------------------------------------------------------- */

.mk-steps {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    list-style: none;
    margin: 0 0 42px;
    padding: 0;
    counter-reset: mkstep;
}

.mk-steps li {
    position: relative;
    padding: 22px 22px 24px;
    border-radius: var(--mk-radius);
    background: rgba(248, 250, 252, 0.06);
    border: 1px solid rgba(248, 250, 252, 0.14);
    counter-increment: mkstep;
}

.mk-steps li::before {
    content: counter(mkstep);
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--mk-dot);
    color: #3b2f00;
    font-weight: 720;
    font-size: 0.85rem;
}

.mk-steps b {
    display: block;
    font-size: 1.08rem;
    font-weight: 660;
    color: #fff;
    margin-bottom: 5px;
}

.mk-steps span { color: rgba(248, 250, 252, 0.78); font-size: 0.94rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.mk-footer {
    background: var(--mk-board-deep);
    color: rgba(248, 250, 252, 0.72);
    padding: 54px 0 40px;
    font-size: 0.93rem;
}

.mk-footer__top {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(248, 250, 252, 0.13);
}

.mk-footer__brand { display: block; color: #fff; }
.mk-footer__brand svg { width: 138px; height: auto; }

.mk-footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.mk-footer__links a { color: rgba(248, 250, 252, 0.8); text-decoration: none; }
.mk-footer__links a:hover { color: #fff; text-decoration: underline; }

.mk-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    justify-content: space-between;
    padding-top: 22px;
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.55);
}
.mk-footer__legal a { color: inherit; }

/* --------------------------------------------------------------------------
   Reveal-on-scroll (opt-in via JS adding .is-in)
   -------------------------------------------------------------------------- */

.mk-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.mk-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .mk-reveal { opacity: 1; transform: none; transition: none; }
    .mk-btn, .mk-card { transition: none; }
    .mk-btn:hover, .mk-card:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .mk-split { grid-template-columns: 1fr; }
    .mk-split--media-first .mk-split__copy,
    .mk-split--media-first .mk-split__media { order: initial; }
    .mk-split__media img { max-height: 340px; }
    .mk-hero__target { display: none; }
}

@media (max-width: 720px) {
    body { font-size: 16px; }
    .mk-hero { padding: 132px 0 76px; }
    .mk-hero .mk-display br { display: none; }  /* let the headline wrap naturally */
    .mk-nav__brand svg { width: 108px; }
    .mk-nav__links { gap: 2px; }
    .mk-nav__link { padding: 8px 10px; font-size: 0.9rem; }
    .mk-btnRow .mk-btn { width: 100%; }
    .mk-mock__card:nth-child(n) { transform: none; }
    .mk-footer__top { flex-direction: column; align-items: flex-start; }
}

/* Very small screens: keep only the primary action in the header. */
@media (max-width: 560px) {
    .mk-nav__link--overview { display: none; }
}
