/* Public marketing pages (home, templates) - David's design: navy, lime, big tight headlines, purple step labels. */

.mk { max-width: 1240px; margin: 0 auto; }
.mk-lime { color: var(--app-accent); }
.mk-label { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--app-text-muted); }

.mk-h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 800; line-height: .98; letter-spacing: -0.045em; margin: 0; }
.mk-h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; margin: 0; }
.mk-h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.mk-lead { font-size: 1.12rem; line-height: 1.75; color: #b8c2d6; max-width: 34rem; }
.mk-lead a { white-space: nowrap; }
.mk-btn { padding: .85rem 1.6rem; font-weight: 700; border-radius: .55rem; }
.mk .btn-outline-light { border-color: var(--app-border); color: var(--app-text); }
.mk .btn-outline-light:hover { background: var(--app-surface-2); border-color: var(--app-text-muted); color: var(--app-text); }

/* ---- hero */
.mk-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; align-items: center; padding: 3.5rem 0 4rem; }
.mk-hero-text .mk-lead { margin-top: 1.75rem; }

.mk-studio-wrap { position: relative; transform: rotate(-1.2deg); }
.mk-studio { background: #263048; border: 1px solid #3a4560; border-radius: 1rem; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.mk-studio-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: .8rem 1.1rem; border-bottom: 1px solid #3a4560; font-size: .9rem; }
.mk-studio-bar > span:nth-child(2) { text-align: center; color: var(--app-text); }
.mk-dots { display: inline-flex; gap: .35rem; }
.mk-dots i { width: .5rem; height: .5rem; border-radius: 50%; background: #56627d; display: block; }
.mk-studio-body { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 1rem; }
.mk-components { display: flex; flex-direction: column; gap: .55rem; }
.mk-components .mk-label { margin: .4rem 0 .3rem; color: var(--app-text); }
.mk-comp { display: flex; align-items: center; gap: .45rem; background: #2c3650; border: 1px solid #43506d; border-radius: .45rem; color: var(--app-text);
    font-size: .82rem; padding: .55rem .65rem; text-align: left; transition: border-color .15s, transform .15s; }
.mk-comp i { color: var(--app-text-muted); }
.mk-comp span { margin-left: auto; color: var(--app-text-muted); }
.mk-comp:hover, .mk-comp:focus-visible { border-color: var(--app-accent); outline: none; }
.mk-comp.pulse { transform: scale(.96); border-color: var(--app-accent); }
.mk-hint { font-size: .75rem; color: #9fb0d4; margin: .5rem 0 0; }
.mk-preview { background: #1d2538; border-radius: .7rem; padding: .8rem .9rem 1.1rem; }
.mk-preview-head { display: flex; justify-content: space-between; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: #9fb0d4; margin-bottom: .8rem; }
.mk-live { text-transform: none; letter-spacing: 0; }
.mk-live i { display: inline-block; width: .4rem; height: .4rem; border-radius: 50%; background: var(--app-accent); margin-right: .3rem; vertical-align: middle; }

.mk-phone { width: min(15.5rem, 100%); margin: 0 auto; background: #e9ecf2; border: .45rem solid #38425b; border-radius: 1.6rem; padding: .7rem .8rem .9rem; color: #1c2434; }
.mk-phone-bar { width: 2.6rem; height: .3rem; border-radius: 1rem; background: #38425b; margin: 0 auto .9rem; }
.mk-phone-screen { min-height: 15rem; }
.mk-ph-eyebrow { font-size: .55rem; letter-spacing: .08em; text-transform: uppercase; color: #8a7bd8; }
.mk-ph-title { font-weight: 700; font-size: 1rem; margin-top: .15rem; }
.mk-ph-sub { font-size: .66rem; color: #6b7a99; margin-bottom: .6rem; }
#mkFields { height: 15.5rem; overflow-y: auto; scrollbar-width: none; }
#mkFields::-webkit-scrollbar { display: none; }
.mk-ph-field { margin-bottom: .55rem; }
.mk-ph-field.added { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.mk-ph-field.added.in { opacity: 1; transform: none; }
.mk-ph-field label { display: block; font-size: .66rem; font-weight: 600; margin-bottom: .2rem; }
.mk-ph-input { background: #f6f7fa; border: 1px solid #dde2ea; border-radius: .35rem; font-size: .66rem; color: #7d879b; padding: .35rem .5rem; }
.mk-ph-input span { color: #a0a8b8; }
.mk-ph-pills { display: flex; gap: .35rem; }
.mk-ph-pills span { font-size: .6rem; border: 1px solid #dde2ea; border-radius: .35rem; padding: .3rem .5rem; background: #f6f7fa; color: #5b6680; }
.mk-ph-pills span.on { background: #eef8d6; border-color: #b9de6a; color: #3d5a0b; }
.mk-ph-photos { display: flex; gap: .35rem; }
.mk-ph-photos span { width: 2.2rem; height: 2.2rem; border-radius: .35rem; background: #d6dbe5; display: flex; align-items: center; justify-content: center; color: #6b7a99; font-size: .8rem; }
.mk-ph-photos span.add { background: transparent; border: 1px dashed #b7bfcd; }
.mk-ph-check { font-size: .62rem; display: grid; gap: .15rem; }
.mk-ph-check i { margin-right: .3rem; }
.mk-ph-check .ok { color: #5f9a10; }
.mk-ph-check .bad { color: #d6402d; }
.mk-ph-sign { background: #f6f7fa; border: 1px solid #dde2ea; border-radius: .35rem; height: 2.2rem; display: flex; align-items: center; padding: 0 .5rem; }
.mk-ph-sign svg { width: 6rem; height: 1.6rem; }
.mk-ph-sign path { fill: none; stroke: #1c2434; stroke-width: 2; stroke-linecap: round; }
.mk-ph-submit { margin-top: .7rem; background: #263048; color: #fff; border-radius: .35rem; text-align: center; font-size: .66rem; font-weight: 600; padding: .55rem; }

.mk-toast { position: absolute; right: -1rem; bottom: -1.2rem; background: #233226; border: 1px solid #4a6a2c; color: var(--app-text); font-size: .85rem;
    border-radius: .55rem; padding: .6rem .95rem; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); transform: rotate(1.2deg); }
.mk-toast i { color: var(--app-accent); margin-right: .45rem; }

/* ---- strip */
.mk-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.5rem 0;
    border-top: 1px solid var(--app-border); border-bottom: 1px solid var(--app-border); }
.mk-strip a { color: var(--app-text); text-decoration: none; font-size: 1.02rem; }
.mk-strip a i { font-size: .75rem; margin-left: .2rem; }
.mk-strip a:hover { color: var(--app-accent); }

/* ---- sections */
.mk-section { padding: 5rem 0 1rem; }
.mk-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.mk-card { background: var(--app-surface); border: 1px solid var(--app-border); border-radius: .8rem; padding: 1.8rem; }
.mk-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.mk-step { color: var(--app-label); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.4rem; }
.mk-card h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: .7rem; }
.mk-card p { color: #b8c2d6; line-height: 1.7; margin: 0; }

/* ---- use cases */
.mk-panel { margin-top: 5rem; background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 1rem; padding: 3rem;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.mk-panel-text .mk-lead { margin-top: 1.25rem; }
.mk-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.mk-tab { background: transparent; border: 1px solid var(--app-border); color: var(--app-text); border-radius: .4rem; padding: .55rem 1rem; font-size: .92rem; }
.mk-tab:hover { border-color: var(--app-text-muted); }
.mk-tab.active { background: var(--app-accent); border-color: var(--app-accent); color: var(--app-accent-ink); font-weight: 600; }
.mk-workflow { border: 1px solid #44506b; border-radius: .8rem; padding: 1.8rem; background: var(--app-bg); }
.mk-workflow h3 { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; margin: 1.2rem 0 1.4rem; }
.mk-workflow dl { margin: 0 0 1.2rem; }
.mk-workflow dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--app-border); font-size: .95rem; }
.mk-workflow dt { font-weight: 400; color: var(--app-text-muted); }
.mk-workflow dd { margin: 0; text-align: right; color: var(--app-text); }
.mk-workflow a { color: var(--app-accent); text-decoration: none; }

/* ---- features */
.mk-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.mk-feature { border-top: 1px solid var(--app-border); padding-top: 1.3rem; }
.mk-feature i { font-size: 1.5rem; color: var(--app-accent); }
.mk-feature h3 { font-size: 1.05rem; font-weight: 700; margin: .8rem 0 .45rem; }
.mk-feature p { color: #b8c2d6; font-size: .94rem; line-height: 1.65; margin: 0; }

/* ---- template categories */
.mk-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.mk-cat { padding: 1.4rem 1.6rem; }
.mk-cat-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.mk-cat-head i { color: var(--app-accent); font-size: 1.2rem; }
.mk-cat-head h3 { font-size: 1.05rem; margin: 0; }
.mk-cat-head span { margin-left: auto; color: var(--app-label); font-weight: 600; font-size: .85rem; }
.mk-cat ul { list-style: none; padding: 0; margin: 0; }
.mk-cat li { padding: .3rem 0; }
.mk-cat a { color: var(--app-text); text-decoration: none; }
.mk-cat a:hover { color: var(--app-accent); }
.mk-cat .mk-more a { color: var(--app-text-muted); font-size: .9rem; }

/* ---- closing call to action (also on the templates page) */
.mk-cta { margin: 5rem 0 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
    background: linear-gradient(120deg, #26324a, #23301f); border: 1px solid var(--app-border); border-radius: 1rem; padding: 2.5rem 3rem; }

/* ---- templates page header */
.mk-page-head { max-width: 52rem; margin: 1.5rem 0 1.75rem; }

/* ---- small screens */
@media (max-width: 991.98px) {
    .mk-hero, .mk-panel { grid-template-columns: minmax(0, 1fr); }
    .mk-hero { padding-top: 2rem; }
    .mk-studio-wrap { transform: none; margin: 0 .5rem 1.5rem; }
    .mk-toast { right: .5rem; }
    .mk-split { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .mk-steps, .mk-cats { grid-template-columns: minmax(0, 1fr); }
    .mk-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mk-panel { padding: 2rem 1.5rem; }
}
@media (max-width: 575.98px) {
    .mk-studio-body { grid-template-columns: minmax(0, 1fr); }
    .mk-components { flex-direction: row; flex-wrap: wrap; }
    .mk-components .mk-label, .mk-hint { width: 100%; }
    .mk-features { grid-template-columns: minmax(0, 1fr); }
    .mk-strip { justify-content: flex-start; }
    .mk-cta { padding: 2rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .mk-ph-field.added, .mk-comp { transition: none; }
}
