/* ============================================================================
   PostPilot — landing.css · the landing page's bands (Home/Index only)
   ----------------------------------------------------------------------------
   The page alternates paper and navy: a lit-navy hero (the headline and the product in a window), a strip of four facts on paper, six feature
   cards on the lighter canvas, "how it works" on a second lit-navy band, the plans on paper, the questions on canvas, and a closing band.
   Loaded after marketing.css through the layout's Head section; everything shared (wrap, eyebrow, headings, nav, footer) is there.

   Colour notes
   - Inside a .pp-on-ink band the ink tokens are re-aliased to their light values (base.css), so a WHITE card placed in one (the floating tags)
     sets its own dark colours explicitly.
   - Text over a gradient cannot be measured by the contrast scanner, so a gradient surface declares --pp-contrast-bg, the LIGHTEST colour
     behind its text (it does nothing at run time; lib/contrast-scan.mjs reads it).
   ============================================================================ */

.mk-sec { padding-block: var(--sp-section); }
.mk-sec--canvas { background: var(--pp-canvas); }
.mk-sec__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }

/* ===========================================================================
   1. Hero — lit navy, the headline, and the product in a window
   =========================================================================== */
.mk-hero { padding-block: clamp(3rem, 7vw, 5.75rem) clamp(3.25rem, 7vw, 6rem); }
.mk-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }

@media (min-width: 992px) {
    .mk-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3.5rem; }
}

.mk-headline {
    margin: 0;
    font-family: var(--pp-font-display);
    font-size: clamp(2.5rem, 5.2vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--pp-heading);
    text-wrap: balance;
}

/* While the headline is being split into words the clipped gradient is switched off (it cannot follow moving pieces); marketing.js puts it back. */
.mk-headline.is-splitting .mk-emph { background: none; -webkit-text-fill-color: currentColor; }

.mk-lead { max-width: 54ch; margin: 1.25rem 0 0; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.65; color: rgba(255, 255, 255, 0.82); }

.mk-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

@media (max-width: 575.98px) {
    .mk-actions .btn { width: 100%; }
}

/* A ghost button on navy: a white hairline and a whisper of white, not the app's dark-on-paper outline. */
.mk-hero .btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.04); color: #fff; }
.mk-hero .btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.1); color: #fff; }

.mk-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin: 1.75rem 0 0; padding: 0; list-style: none; font-size: var(--fs-sm); font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.mk-trust li { display: inline-flex; align-items: center; gap: 0.5rem; }
.mk-trust .bi-check-circle-fill { color: var(--pp-accent-on-ink); }

/* The networks' own glyphs, lightened for a navy ground (#1877F2 on #0B1A26 is 2.6:1): the hue is kept, so each is still recognisable. */
.mk-nets { display: inline-flex; gap: 0.7rem; font-size: 1.2rem; }
.mk-nets .bi-facebook, .mk-queue__icon .bi-facebook { color: #7cb0f7; }
.mk-nets .bi-instagram, .mk-queue__icon .bi-instagram { color: #f79ab8; }
.mk-nets .bi-linkedin, .mk-queue__icon .bi-linkedin { color: #6cb2ee; }

/* The stage: the window, with a band above and below it for the tags that float around it (none of them ever sits over the window's words). */
.mk-stage { position: relative; padding-block: 2.9rem; }

.mk-window {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.mk-window__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.mk-dots { display: inline-flex; gap: 6px; }
.mk-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.24); }
.mk-window__title { font-family: var(--pp-font-display); font-size: var(--fs-sm); font-weight: 700; color: #fff; }
.mk-window__pill { margin-left: auto; padding: 0.2rem 0.65rem; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; color: rgba(255, 255, 255, 0.82); white-space: nowrap; }

.mk-queue { margin: 0; padding: 0.4rem; list-style: none; }
.mk-queue__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.8rem; padding: 0.75rem 0.8rem; border-radius: 12px; }
.mk-queue__row:nth-child(odd) { background: rgba(255, 255, 255, 0.04); }
.mk-queue__icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, 0.08); font-size: 1rem; }
.mk-queue__main { min-width: 0; display: grid; gap: 0.1rem; }
.mk-queue__caption { overflow: hidden; font-size: var(--fs-sm); font-weight: 700; color: #fff; text-overflow: ellipsis; white-space: nowrap; }
.mk-queue__when { font-size: var(--fs-xs); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.72); }

.mk-tag { padding: 0.28rem 0.6rem; border-radius: var(--r-pill); font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.mk-tag--ok { color: #86efac; background: rgba(134, 239, 172, 0.14); }
.mk-tag--queued { color: var(--pp-accent-on-ink); background: rgba(234, 106, 77, 0.18); }
.mk-tag--draft { color: rgba(255, 255, 255, 0.82); background: rgba(255, 255, 255, 0.1); }

.mk-window__foot { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; padding: 0.9rem 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.74); }
.mk-window__foot strong { margin-right: 0.25rem; font-family: var(--pp-font-display); font-size: var(--fs-sm); font-weight: 800; color: #fff; }

/* A phone has no band to spare: the tags become a row of chips under the window. */
.mk-floats { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.mk-float {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    border-radius: 14px;
    background: #fff;
    color: #0b1a26;
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
}
.mk-float i { color: #b6432a; }

@media (max-width: 575.98px) {
    .mk-stage { padding-block: 0; }
}

@media (min-width: 576px) {
    .mk-floats { display: block; margin: 0; }
    .mk-float { position: absolute; z-index: 2; }
    .mk-float--a { top: 0.35rem; left: 0; }
    .mk-float--b { top: 0.35rem; right: 0; }
    .mk-float--c { bottom: 0.35rem; left: 8%; }
}

@media (prefers-reduced-motion: no-preference) {
    /* Each tag floats up and settles ONCE, the three staggered, in under five seconds in all: nothing on the page keeps moving by itself
       (WCAG 2.2.2 asks for a way to pause anything that does, and a decoration is not worth a control). */
    html:not([data-fx-tier="static"]) .mk-float { animation: mk-drift 4s ease-in-out 1 both; }
    html:not([data-fx-tier="static"]) .mk-float--b { animation-delay: 0.4s; }
    html:not([data-fx-tier="static"]) .mk-float--c { animation-delay: 0.8s; }
}

@keyframes mk-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ===========================================================================
   2. The strip — four facts
   =========================================================================== */
.mk-strip { background: var(--pp-canvas); border-bottom: 1px solid var(--pp-hairline); }
.mk-strip__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.25rem), 1fr)); gap: 1.75rem 1.5rem; margin-block: 0; padding: clamp(1.75rem, 4vw, 2.75rem) 0; list-style: none; }
.mk-strip__item { display: grid; gap: 0.25rem; align-content: start; }
.mk-strip__n { font-family: var(--pp-font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--pp-heading); }
.mk-strip__l { font-size: var(--fs-sm); font-weight: 600; color: var(--pp-ink-muted); }

/* ===========================================================================
   3. Features — six cards, the tiles alternating coral and teal
   =========================================================================== */
.mk-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19.5rem), 1fr)); margin: 0; padding: 0; list-style: none; }

.mk-card {
    position: relative;
    padding: clamp(1.5rem, 2.4vw, 2rem);
    border: 1px solid var(--pp-hairline);
    border-radius: var(--r-lg);
    background: var(--pp-surface);
    /* The hover lift uses `translate`, not `transform`: the reveal tweens `transform` on this same card, and a CSS transition on the property
       GSAP is moving would re-target it on every frame (the card would lag and sink before it rises). */
    transition: translate var(--pp-dur-3) var(--pp-ease-soft), border-color var(--pp-dur-2) var(--pp-ease-soft);
}

/* The lift's shadow is a layer of its own that fades in: animating box-shadow itself repaints the card every frame. */
.mk-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--e-3); opacity: 0; pointer-events: none; transition: opacity var(--pp-dur-3) var(--pp-ease-soft); }

@media (hover: hover) {
    .mk-card:hover { translate: 0 -6px; border-color: var(--pp-hairline-strong); }
    .mk-card:hover::after { opacity: 1; }
}

.mk-tile { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.25rem; border-radius: 14px; background: var(--pp-tile-coral); color: #fff; font-size: 1.35rem; }
.mk-card:nth-child(even) .mk-tile { background: var(--pp-tile-teal); }
.mk-card h3 { margin: 0 0 0.5rem; font-family: var(--pp-font-display); font-size: var(--fs-lg); font-weight: 700; line-height: 1.25; letter-spacing: -0.012em; color: var(--pp-heading); }
.mk-card p { margin: 0; font-size: var(--fs-base); line-height: 1.65; color: var(--pp-ink-muted); }

/* ===========================================================================
   4. How it works — a second lit-navy band, four glass cards on a line that fills as you scroll
   =========================================================================== */
.mk-how { padding-block: var(--sp-section); }
.mk-how .mk-h2 { color: var(--pp-heading); }
.mk-how .mk-sub { color: rgba(255, 255, 255, 0.78); }

.mk-steps { position: relative; display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }

.mk-step { position: relative; padding: 1.85rem 1.5rem 1.6rem; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.06); }
.mk-step__n { position: absolute; top: 0.6rem; right: 1.15rem; height: 1em; font-family: var(--pp-font-display); font-size: 3.25rem; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, 0.1); user-select: none; pointer-events: none; overflow: hidden; }   /* a box of its own size: a reader's line-height must not push the watermark's line over the text below it */
.mk-step h3 { margin: 0 0 0.5rem; font-family: var(--pp-font-display); font-size: var(--fs-lg); font-weight: 700; line-height: 1.25; color: #fff; }
/* The watermark numeral hangs top-right. A spacer the size of its box makes the first lines of the title wrap AROUND it (and the rest run full width),
   whatever the text size or letter spacing: a fixed padding on the title could be narrower than the numeral once the reader enlarges the text. */
.mk-step h3::before { content: ""; float: right; width: 5rem; height: 2.15rem; }
.mk-step p { margin: 0; font-size: var(--fs-sm); line-height: 1.65; color: rgba(255, 255, 255, 0.8); }

@media (min-width: 992px) {
    .mk-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 2.25rem; }
    /* The rail above the cards, and the coral that fills it (--mk-progress is set by marketing.js as the section scrolls; without it the rail is full). */
    .mk-steps::before, .mk-steps::after { content: ""; position: absolute; top: 0.45rem; left: 0; height: 2px; border-radius: 2px; }
    .mk-steps::before { right: 0; background: rgba(255, 255, 255, 0.16); }
    .mk-steps::after { width: calc(100% * var(--mk-progress, 1)); background: linear-gradient(90deg, #ea6a4d, #f4a78e); }
    .mk-step::before { content: ""; position: absolute; top: -1.95rem; left: 1.5rem; width: 12px; height: 12px; border-radius: 50%; background: var(--pp-accent-on-ink); box-shadow: 0 0 0 4px #0f2230; }
}

/* ===========================================================================
   5. Plans — live from the catalogue; the popular one is navy
   =========================================================================== */
.mk-plans { display: grid; gap: 1.25rem; align-items: stretch; padding-top: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); }

.mk-plan { position: relative; display: flex; flex-direction: column; padding: 2rem 1.75rem; border: 1px solid var(--pp-hairline); border-radius: var(--r-lg); background: var(--pp-surface); }
.mk-plan__name { margin: 0 0 0.3rem; font-family: var(--pp-font-display); font-size: var(--fs-lg); font-weight: 700; line-height: 1.2; color: var(--pp-heading); }
.mk-plan__desc { margin: 0 0 1.25rem; font-size: var(--fs-sm); line-height: 1.5; color: var(--pp-ink-muted); }
.mk-plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.35rem; margin-bottom: 1.25rem; }
.mk-plan__amount { font-family: var(--pp-font-display); font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--pp-heading); }
.mk-plan__per { font-size: var(--fs-sm); color: var(--pp-ink-muted); }
.mk-plan ul { display: grid; gap: 0.6rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.mk-plan li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: var(--fs-sm); font-weight: 600; color: var(--pp-ink); }
.mk-plan li i { flex: 0 0 auto; margin-top: 0.15em; color: var(--pp-accent-ink); }
.mk-plan .btn { width: 100%; margin-top: auto; }

/* The popular plan carries the lit navy itself (not .pp-lit, whose clipping would cut off its tag). */
.mk-plan--popular { border-color: rgba(234, 106, 77, 0.6); background: var(--pp-lit-bg); box-shadow: var(--e-3); }
.mk-plan--popular .btn-ghost { border-color: rgba(255, 255, 255, 0.34); color: #fff; }

.mk-plan__tag { position: absolute; top: -13px; left: 50%; padding: 0.32rem 0.9rem; border-radius: var(--r-pill); background: var(--pp-accent-fill); color: var(--pp-on-accent); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; white-space: nowrap; transform: translateX(-50%); box-shadow: var(--e-1); }

/* ===========================================================================
   6. Questions — native disclosure, one open at a time where the browser can
   =========================================================================== */
.mk-faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }

@media (min-width: 992px) {
    .mk-faq { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 4rem; align-items: start; }
    .mk-faq__intro { position: sticky; top: calc(var(--mk-nav-h) + 2rem); }
}

.mk-faq__intro a { color: var(--pp-link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mk-faq__intro p { margin: 1.25rem 0 0; font-size: var(--fs-base); color: var(--pp-ink-muted); }

.mk-faq__list { display: grid; gap: 0.75rem; }
.mk-q { border: 1px solid var(--pp-hairline); border-radius: var(--r-md); background: var(--pp-surface); }
.mk-q[open] { border-color: var(--pp-hairline-strong); }

.mk-q summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 56px;
    padding: 1rem 1.25rem;
    border-radius: inherit;
    cursor: pointer;
    list-style: none;
    font-family: var(--pp-font-display);
    font-size: var(--fs-md);
    font-weight: 700;
    line-height: 1.35;
    color: var(--pp-heading);
}

.mk-q summary::-webkit-details-marker { display: none; }
.mk-q summary:focus-visible { outline: 2px solid var(--pp-focus); outline-offset: -2px; }

/* The marker: a plus that turns into a cross. Drawn from two gradients so it follows the text colour and needs no icon font. */
.mk-q summary::after {
    content: "";
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    color: var(--pp-accent-ink);
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
    transition: transform var(--pp-dur-2) var(--pp-ease-soft);
}

.mk-q[open] summary::after { transform: rotate(45deg); }
.mk-q__a { margin: 0; padding: 0 1.25rem 1.25rem; font-size: var(--fs-base); line-height: 1.7; color: var(--pp-ink-muted); }

/* ===========================================================================
   7. The closing band — deep enough throughout to carry white type
   =========================================================================== */
.mk-cta-sec { padding-bottom: var(--sp-section); }

.mk-cta {
    position: relative;
    isolation: isolate;
    overflow: clip;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
    border-radius: var(--r-xl);
    background: linear-gradient(120deg, #c94a2b 0%, #a93a20 46%, #13526a 118%);
    --pp-contrast-bg: #c94a2b;
    color: #fff;
    text-align: center;
}

/* A faint grid, dissolving downwards — the same one the navy bands carry. */
.mk-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: radial-gradient(100% 90% at 50% 0%, #000, transparent 80%);
            mask-image: radial-gradient(100% 90% at 50% 0%, #000, transparent 80%);
}

.mk-cta h2 { margin: 0 0 0.85rem; font-family: var(--pp-font-display); font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
.mk-cta p { max-width: 46ch; margin: 0 auto 1.75rem; font-size: var(--fs-md); line-height: 1.6; color: #fff; }
.mk-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; }

/* White on the gradient — a coral button on a coral band has no edge. */
.mk-cta .btn-light { border-color: #fff; background: #fff; color: #0b1a26; }
.mk-cta .btn-light:hover { border-color: #f7f5f1; background: #f7f5f1; color: #0b1a26; }
.mk-cta .btn-light:focus-visible, .mk-cta .btn-ghost:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.mk-cta .btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.7); background: transparent; color: #fff; }
.mk-cta .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.14); color: #fff; }

.mk-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.mk-chips li { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.9rem; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: var(--r-pill); background: rgba(11, 26, 38, 0.28); font-size: var(--fs-sm); font-weight: 700; color: #fff; }

@media (max-width: 575.98px) {
    .mk-cta__actions .btn { width: 100%; }
}

/* ===========================================================================
   8. Forced colours, print
   =========================================================================== */
@media (forced-colors: active) {
    .mk-window, .mk-step, .mk-card, .mk-plan, .mk-q, .mk-float, .mk-cta { border: 1px solid CanvasText; }
    .mk-tile, .mk-tag { forced-color-adjust: none; }
}

@media print {
    .mk-hero, .mk-how, .mk-cta { background: none !important; color: #000 !important; }
    .mk-stage, .mk-floats, .mk-cta-sec, .mk-strip { display: none !important; }
}
