/*
 * The public website.
 *
 * Layered on Bootstrap rather than replacing it, and on brand.css rather than
 * holding a palette of its own — see that file for why there is only one.
 *
 * The site and the product are now the same colour. That is the point: a
 * visitor who reads the pricing page, signs up, and lands in the workspace
 * should not feel they have arrived somewhere else. What separates the two is
 * not hue but *density* — the website is set large, loose and slow, because a
 * stranger is deciding; the application is set small and tight, because
 * somebody is working.
 *
 * Everything here is unconditional CSS. No JavaScript decides a layout, so the
 * page is correct in the first paint and for a crawler that never runs a
 * script. marketing.js adds a scroll shadow and a reveal animation on top, and
 * the page is complete without it.
 */

/*
 * Local aliases onto the shared tokens. The --mk-* vocabulary is kept so the
 * rules below still read as this site's own, but every value now resolves to
 * brand.css rather than to a second palette maintained here.
 */
:root {
    --mk-ink:        var(--ink);
    --mk-body:       var(--ink-body);
    --mk-muted:      var(--ink-faint);
    --mk-dim:        var(--ink-dim);
    --mk-line:       var(--line);
    --mk-surface:    var(--surface);
    --mk-tint:       var(--surface-2);
    --mk-brand:      var(--brand);
    --mk-brand-dark: var(--brand-600);
    --mk-brand-tint: var(--brand-50);
    --mk-accent:     var(--accent);

    /* The website breathes more than the application does. */
    --mk-section:    clamp(3.5rem, 7vw, 6rem);
    --mk-radius:     var(--r-lg);
}

/* ---------------------------------------------------------------- base */

body.marketing {
    color: var(--mk-body);
    background: var(--mk-surface);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.marketing h1,
body.marketing h2,
body.marketing h3,
body.marketing h4 {
    color: var(--mk-ink);
    font-weight: 700;
    /*
     * Headings tighten as they grow. Default tracking is set for body copy; at
     * display sizes the same spacing reads as a gap between every letter, which
     * is the most common reason a competent layout still looks amateur.
     */
    letter-spacing: -0.028em;
    line-height: 1.15;
    text-wrap: balance;
}

body.marketing p { text-wrap: pretty; }

/*
 * Note for anything added below that puts a heading on a dark background: this
 * selector is (0,1,2), so a bare `.something h2` (0,1,1) loses to it and the
 * heading silently renders near-black on near-black. Prefix such rules with
 * `body.marketing` too. The CTA band and the footer both do.
 */

/* A word or two of a headline in the brand gradient — never a whole one. */
.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* A browser that cannot clip a background to text would render nothing at all. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .text-gradient { color: var(--brand); -webkit-text-fill-color: currentColor; }
}

/*
 * Visible only once focused. A keyboard user should not have to tab through the
 * whole navigation on every page to reach the content.
 */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1080;
    padding: .75rem 1.25rem;
    background: var(--mk-ink);
    color: #fff;
    border-radius: 0 0 var(--r) 0;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus { left: 0; }

/* Never remove the focus ring; make it worth seeing. */
body.marketing a:focus-visible,
body.marketing button:focus-visible,
body.marketing input:focus-visible,
body.marketing select:focus-visible,
body.marketing textarea:focus-visible {
    outline: 3px solid var(--mk-brand);
    outline-offset: 2px;
    border-radius: 6px;
}

.container.narrow { max-width: 760px; }

/* ---------------------------------------------------------------- buttons
 *
 * Bootstrap's buttons, re-tokenised rather than re-implemented. The lift on
 * hover is 1px: enough to feel like a press when it returns, small enough that
 * a row of them does not jump.
 */

body.marketing .btn {
    border-radius: var(--r-pill);
    font-weight: 600;
    letter-spacing: -.01em;
    padding-inline: 1.35rem;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease,
                border-color .16s ease, color .16s ease;
}

body.marketing .btn-lg {
    padding: .8rem 1.75rem;
    font-size: 1rem;
}

body.marketing .btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-600);
    --bs-btn-hover-border-color: var(--brand-600);
    --bs-btn-active-bg: var(--brand-700);
    --bs-btn-active-border-color: var(--brand-700);
    box-shadow: var(--shadow-brand);
}

body.marketing .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px -12px rgba(var(--brand-rgb), .7);
}

/*
 * The quiet second action beside a primary: a bordered neutral, not a ghost.
 * A borderless secondary next to a solid primary reads as disabled.
 */
body.marketing .btn-outline-secondary {
    --bs-btn-color: var(--mk-ink);
    --bs-btn-border-color: var(--mk-line);
    --bs-btn-bg: rgba(255, 255, 255, .8);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-color: var(--brand);
    --bs-btn-hover-border-color: var(--brand-300);
    --bs-btn-active-bg: var(--mk-tint);
    --bs-btn-active-color: var(--brand);
    --bs-btn-active-border-color: var(--brand-300);
    backdrop-filter: blur(6px);
}

body.marketing .btn-outline-secondary:hover { transform: translateY(-1px); }

body.marketing .btn-outline-primary {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand-300);
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-bg: var(--brand-600);
    --bs-btn-active-border-color: var(--brand-600);
}

/* ---------------------------------------------------------------- eyebrow */

/*
 * The eyebrow is a pill rather than bare uppercase text. At this size, tracked
 * out and in a colour, loose capitals look like a mistake; inside a tinted
 * capsule they look deliberate, and they give the top of the page an object to
 * start on rather than a floating line.
 */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-transform: uppercase;
    letter-spacing: .11em;
    font-size: .72rem;
    font-weight: 700;
    color: var(--acc, var(--brand-700));
    background: var(--acc-soft, var(--brand-50));
    border: 1px solid rgba(var(--brand-rgb), .14);
    border-radius: var(--r-pill);
    padding: .4rem .9rem;
    margin-bottom: 1.15rem;
}

.hero-eyebrow .dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ---------------------------------------------------------------- header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

/*
 * The border and the shadow arrive only once the page has scrolled under the
 * bar. At rest the header should look like part of the hero, not like a toolbar
 * bolted to the top of it. marketing.js sets the class; a visitor without
 * JavaScript simply keeps the resting state at every scroll position, which is
 * a weaker effect rather than a broken one.
 */
.site-header.is-stuck {
    background: rgba(255, 255, 255, .92);
    border-bottom-color: var(--mk-line);
    box-shadow: 0 1px 24px -8px rgba(15, 23, 42, .18);
}

.site-header .navbar { padding-block: .8rem; }

.site-header .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: -.025em;
    color: var(--mk-ink);
}

/*
 * The mark is an <img>, not an icon-font glyph: it is the one piece of the page
 * a visitor should recognise again later, and it must survive being the
 * favicon, the sharing card and a 16px tab icon without being redrawn each time.
 */
.site-header .navbar-brand img,
.footer-brand img {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 9px;
}

.footer-brand img { width: 34px; height: 34px; flex: 0 0 34px; }

.site-header .nav-link {
    position: relative;
    color: var(--mk-body);
    font-weight: 550;
    font-size: .97rem;
    padding-inline: .9rem;
    transition: color .15s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--mk-ink); }

/*
 * The active marker is a short rule under the word, not a colour change alone:
 * on a nav where hover also recolours, colour cannot tell you which page you
 * are already on.
 */
.site-header .nav-link.active::after {
    content: "";
    position: absolute;
    left: .9rem;
    right: .9rem;
    bottom: .1rem;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-gradient);
}

@media (max-width: 991.98px) {
    .site-header .nav-link.active::after { left: 0; right: auto; width: 18px; }
    .site-header .navbar-collapse { padding-bottom: .75rem; }
    .site-header .navbar-nav .btn { margin-top: .5rem; }
}

.navbar-toggler {
    border-color: var(--mk-line);
    border-radius: var(--r-sm);
    padding: .4rem .6rem;
}

.navbar-toggler:focus { box-shadow: none; }

/* ---------------------------------------------------------------- hero
 *
 * Four layers, cheapest first: two soft colour pools so the page is not flat
 * white, a faint grid that gives it a surface, and a fade to white so the
 * section below starts clean. All CSS — no image request, nothing to load
 * before the first paint.
 */

.hero {
    position: relative;
    padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
    background:
        radial-gradient(52rem 30rem at 8% -12%, var(--brand-50) 0%, transparent 60%),
        radial-gradient(42rem 26rem at 96% 2%, var(--accent-50) 0%, transparent 58%),
        linear-gradient(180deg, #fcfdff 0%, #fff 72%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(var(--brand-rgb), .06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(var(--brand-rgb), .06) 1px, transparent 1px);
    background-size: 52px 52px;
    /* Fades out before it reaches the text, so it is texture and never noise. */
    -webkit-mask-image: radial-gradient(74% 62% at 50% 28%, #000 0%, transparent 100%);
            mask-image: radial-gradient(74% 62% at 50% 28%, #000 0%, transparent 100%);
    pointer-events: none;
}

/*
 * One out-of-focus accent pool behind the illustration. It is what stops the
 * right-hand column from being a white card on a white page, and it is cheaper
 * than the background image it replaces.
 */
.hero::after {
    content: "";
    position: absolute;
    right: -12%;
    top: 8%;
    width: 46rem;
    height: 36rem;
    background: radial-gradient(closest-side, rgba(var(--accent-rgb), .16), transparent 70%);
    filter: blur(18px);
    pointer-events: none;
}

.hero > .container { position: relative; z-index: 1; }

.hero-title {
    font-size: clamp(2.25rem, 4.6vw, 3.6rem);
    margin-bottom: 1.15rem;
}

.hero-lead {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    max-width: 34em;
    margin-bottom: 1.9rem;
    color: var(--mk-body);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.9rem;
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.4rem;
    font-size: .93rem;
    color: var(--mk-muted);
}

.hero-points li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-points i { color: var(--ok); font-size: 1rem; }

/* The product illustration. Sized by its own aspect ratio, never cropped. */
.hero-art {
    display: block;
    width: 100%;
    height: auto;
    max-width: 640px;
    margin-inline: auto;
    filter: drop-shadow(0 30px 60px rgba(15, 23, 42, .12));
}

/* --- the trust strip under the hero -------------------------------------- */

/*
 * Four plain facts in a row, under a hairline. It exists because the hero makes
 * a claim and the eye wants something concrete immediately beneath it — and
 * because these are facts about the licence model, which is the argument the
 * whole site is making.
 */
.trust-strip {
    position: relative;
    z-index: 1;
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-top: 2rem;
    border-top: 1px solid var(--mk-line);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.5rem 1rem;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.trust-item > i {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--brand-50);
    color: var(--brand);
    font-size: 1.05rem;
}

/* The text column, so a long label wraps instead of shoving the icon around. */
.trust-item > span { min-width: 0; }

.trust-item strong {
    display: block;
    color: var(--mk-ink);
    font-size: .95rem;
    font-weight: 650;
    letter-spacing: -.015em;
}

.trust-item strong + span {
    display: block;
    font-size: .85rem;
    color: var(--mk-muted);
    line-height: 1.5;
}

/* ---------------------------------------------------------------- page hero */

/*
 * On a module page this inherits that module's --acc-soft, so Payroll opens in
 * green and Leave in violet while the header, the buttons and the CTA stay
 * brand indigo. The module owns the page; it does not own the product.
 */
.page-hero {
    position: relative;
    padding: clamp(3rem, 5.5vw, 4.5rem) 0 clamp(2rem, 3vw, 2.75rem);
    background:
        radial-gradient(40rem 22rem at 12% -20%, var(--acc-soft, var(--brand-50)) 0%, transparent 65%),
        linear-gradient(180deg, var(--acc-soft, var(--brand-50)) 0%, #fff 100%);
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, .035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, .035) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: radial-gradient(60% 70% at 30% 0%, #000 0%, transparent 100%);
            mask-image: radial-gradient(60% 70% at 30% 0%, #000 0%, transparent 100%);
    pointer-events: none;
}

.page-hero > .container { position: relative; z-index: 1; }

/* The module glyph, floated behind the heading at low opacity. */
.page-hero-art {
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: auto;
    opacity: .5;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .page-hero-art { display: none; }
}

.page-hero.compact { padding-bottom: 1.25rem; }

.page-hero h1 {
    font-size: clamp(2rem, 3.6vw, 3rem);
    margin-bottom: .9rem;
}

.page-hero .lead {
    max-width: 42em;
    color: var(--mk-body);
    font-size: clamp(1.03rem, 1.4vw, 1.15rem);
}

.breadcrumb-bar {
    border-bottom: 1px solid var(--mk-line);
    padding: .7rem 0;
    font-size: .88rem;
    background: var(--mk-tint);
}

.breadcrumb-bar a { color: var(--mk-muted); text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--brand); }

/* ---------------------------------------------------------------- sections */

.section { padding: var(--mk-section) 0; }

/*
 * A hero already ends in generous space of its own, so the section directly
 * under it does not need a full opening pad as well — together they left a
 * band of dead white taller than the heading that followed it.
 */
.hero + .section,
.page-hero + .section,
.breadcrumb-bar + .page-hero + .section {
    padding-top: clamp(2.25rem, 4vw, 3.5rem);
}

.narrow-section { padding: clamp(4rem, 8vw, 7rem) 0; }

/*
 * The alternating band is a very slight tint between hairlines, not a grey
 * block. A heavy band chops the page into unrelated slabs; this one only says
 * "a different subject starts here".
 */
.section-alt {
    background: linear-gradient(180deg, var(--mk-tint) 0%, #fff 100%);
    border-block: 1px solid var(--mk-line);
}

.section-head {
    max-width: 44em;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(1.7rem, 2.9vw, 2.35rem);
    margin-bottom: .7rem;
}

.section-head p {
    margin-bottom: 0;
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    color: var(--mk-muted);
}

/* A small tracked label above a section heading. */
.section-kicker {
    display: block;
    text-transform: uppercase;
    letter-spacing: .11em;
    font-size: .72rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: .6rem;
}

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

.feature-card,
.module-card,
.plan-card {
    position: relative;
    height: 100%;
    background: var(--mk-surface);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
    padding: 1.75rem;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

/*
 * A hairline of the module's own colour across the top edge, drawn only on
 * hover. It is what makes the lift feel like it belongs to this card rather
 * than like a generic shadow applied to everything.
 */
.feature-card::before,
.module-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    border-radius: var(--mk-radius) var(--mk-radius) 0 0;
    background: linear-gradient(90deg, var(--acc, var(--brand)), transparent 85%);
    opacity: 0;
    transition: opacity .2s ease;
}

.feature-card:hover,
.module-card:hover {
    box-shadow: var(--shadow-md);
    /* Flat value first, so a browser without color-mix still gets a visible edge. */
    border-color: var(--brand-300);
    border-color: color-mix(in srgb, var(--acc, var(--brand)) 34%, #fff);
    transform: translateY(-3px);
}

.feature-card:hover::before,
.module-card:hover::before { opacity: 1; }

/*
 * The icon tile. A tinted square holding the module's glyph — and on hover it
 * fills with the module's colour, which is the cheapest way to make a grid of
 * six cards feel responsive without animating anything expensive.
 */
.feature-card > i,
.module-card > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--acc-soft, var(--brand-50));
    color: var(--acc, var(--brand));
    font-size: 1.35rem;
    margin-bottom: 1.1rem;
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .03);
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.feature-card:hover > i,
.module-card:hover > i {
    background: var(--acc, var(--brand));
    color: #fff;
    transform: scale(1.04);
}

.feature-card h3,
.module-card h3,
.module-card h2 {
    font-size: 1.15rem;
    margin-bottom: .5rem;
    letter-spacing: -.02em;
}

.feature-card p,
.module-card p {
    margin-bottom: 0;
    font-size: .97rem;
    color: var(--mk-muted);
}

.module-card a {
    color: var(--mk-ink);
    text-decoration: none;
}

/*
 * The whole card becomes the click target, not just the heading. The heading
 * keeps the real href — this only stretches it — so it is still a link to a
 * crawler and still reachable by somebody tabbing through.
 *
 * The overlay is positioned against the card, which means the heading must NOT
 * be a positioned element: a `position: relative` on the <h2>/<h3> would make
 * *it* the containing block and the stretch would cover the heading alone. That
 * is why the z-index lift below deliberately skips headings.
 */
.module-card h3 a::after,
.module-card h2 a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}

.module-card:hover a { color: var(--acc, var(--brand)); }

.module-card.tall {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/*
 * The glyph sits in the corner behind the text, cropped by the card. Low
 * opacity and no pointer events: it is there to make six cards distinguishable
 * at a glance, not to be looked at directly.
 */
.module-card-art {
    position: absolute;
    right: -1.75rem;
    bottom: -1.5rem;
    width: 168px;
    height: auto;
    opacity: .4;
    pointer-events: none;
    z-index: 0;
    transition: opacity .25s ease, transform .25s ease;
}

.module-card.tall:hover .module-card-art { opacity: .55; transform: scale(1.04); }

/*
 * Lift the text above the corner glyph. Headings are excluded on purpose — see
 * the stretched-link note above — and they do not need it: the glyph sits in the
 * bottom-right corner and the heading is at the top left, so they never meet.
 */
.module-card.tall > *:not(.module-card-art):not(h2):not(h3) {
    position: relative;
    z-index: 1;
}

@media (max-width: 575.98px) {
    .module-card-art { display: none; }
}

.module-card-more {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: 1.1rem;
    font-weight: 650;
    font-size: .92rem;
    color: var(--acc, var(--brand));
}

.module-card-more i { transition: transform .2s ease; }
.module-card:hover .module-card-more i { transform: translateX(3px); }

/* ---------------------------------------------------------------- lists */

.tick-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .65rem;
}

.tick-list.large { gap: .9rem; font-size: 1.05rem; }
.tick-list.compact { font-size: .93rem; gap: .45rem; margin-top: .9rem; }

.tick-list li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
}

/*
 * The tick is a filled disc rather than a bare glyph. A column of loose check
 * marks has no left edge; a column of discs does, and the list then reads as a
 * list instead of as several sentences that happen to start with a symbol.
 */
.tick-list i {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 1.35em;
    height: 1.35em;
    margin-top: .15em;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ok) 13%, #fff);
    color: var(--ok-deep);
    font-size: .8em;
}

.feature-row {
    padding: 2rem 0;
    border-bottom: 1px solid var(--mk-line);
}

.feature-row:last-child { border-bottom: 0; }

.feature-row-head {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    margin-bottom: 1.1rem;
}

.feature-row-head > i {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--acc-soft, var(--brand-50));
    color: var(--acc, var(--brand));
    font-size: 1.35rem;
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .03);
}

.feature-row-head h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.feature-row-head a { color: var(--mk-ink); text-decoration: none; }
.feature-row-head a:hover { color: var(--acc, var(--brand)); }
.feature-row-head p { margin: 0; color: var(--mk-muted); }

/* ---------------------------------------------------------------- steps */

.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.step {
    position: relative;
    background: var(--mk-surface);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
    padding: 1.75rem 1.5rem 1.5rem;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.step:hover {
    box-shadow: var(--shadow);
    border-color: var(--brand-300);
    transform: translateY(-2px);
}

/*
 * The number is a filled brand chip overlapping the card's top edge. Set inside
 * the card it was just another line of small text; half outside, it is a marker,
 * and four of them read as a sequence at a glance.
 */
.step-number {
    position: absolute;
    top: -.85rem;
    left: 1.5rem;
    display: inline-grid;
    place-items: center;
    min-width: 2rem;
    height: 2rem;
    padding-inline: .5rem;
    border-radius: var(--r-pill);
    background: var(--brand-gradient);
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: var(--shadow-brand);
}

.step h3 { font-size: 1.08rem; margin: .5rem 0 .45rem; }
.step p { margin: 0; font-size: .95rem; color: var(--mk-muted); }

/* ---------------------------------------------------------------- plans */

.plan-card {
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--brand-300);
    transform: translateY(-3px);
}

/*
 * The recommended plan, lifted out of the row: a brand border, a deeper shadow
 * and a ribbon. Exactly one card may carry this — two "recommended" plans is
 * the same as none.
 */
.plan-card.featured {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand), var(--shadow-md);
}

.plan-ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--brand-gradient);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
    padding: .3rem .85rem;
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-brand);
    white-space: nowrap;
}

.plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .75rem;
}

.plan-name { font-size: 1.15rem; margin: 0; }

.plan-trial {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--brand-700);
    background: var(--brand-50);
    border-radius: var(--r-pill);
    padding: .25rem .6rem;
    white-space: nowrap;
}

.plan-price { margin-bottom: .85rem; }

.plan-amount {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--mk-ink);
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
}

.plan-amount-quote { font-size: 1.45rem; }

.plan-cycle { color: var(--mk-muted); font-size: .95rem; }
.plan-blurb { font-size: .95rem; color: var(--mk-muted); }

.plan-limits,
.plan-modules {
    list-style: none;
    padding: 0;
    margin: 0 0 1.1rem;
    font-size: .93rem;
    display: grid;
    gap: .4rem;
}

.plan-limits {
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--mk-line);
}

.plan-limits li,
.plan-modules li { display: flex; align-items: center; gap: .55rem; }
.plan-limits i { color: var(--mk-dim); }
.plan-modules i { color: var(--ok-deep); }

.compare-table { --bs-table-border-color: var(--mk-line); }
.compare-table th[scope="row"] { font-weight: 600; color: var(--mk-ink); }

.compare-table thead th {
    border-bottom-width: 2px;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--mk-muted);
}

.compare-table td,
.compare-table th { padding: .8rem .75rem; }

/* ---------------------------------------------------------------- FAQ */

.faq-accordion .accordion-item {
    border: 1px solid var(--mk-line);
    border-radius: var(--r) !important;
    margin-bottom: .7rem;
    overflow: hidden;
    background: var(--mk-surface);
    transition: border-color .18s ease, box-shadow .18s ease;
}

/* Progressive: browsers without :has() simply keep the resting border. */
.faq-accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
    border-color: var(--brand-300);
    box-shadow: var(--shadow-sm);
}

.faq-accordion .accordion-button {
    font-weight: 650;
    font-size: 1rem;
    color: var(--mk-ink);
    padding: 1.15rem 1.3rem;
    background: transparent;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--brand-50);
    color: var(--brand-700);
    box-shadow: none;
}

.faq-accordion .accordion-button:focus { box-shadow: none; }
.faq-accordion .accordion-button::after { transition: transform .2s ease; }

.faq-accordion .accordion-body {
    color: var(--mk-body);
    padding: 1.1rem 1.3rem 1.3rem;
}

/* ---------------------------------------------------------------- forms */

.enquiry-form {
    background: var(--mk-surface);
    border: 1px solid var(--mk-line);
    border-radius: var(--r-xl);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: var(--shadow-md);
}

.enquiry-form .form-label,
.enquiry-form legend.form-label {
    font-weight: 650;
    color: var(--mk-ink);
    font-size: .92rem;
    margin-bottom: .4rem;
}

.enquiry-form .form-control,
.enquiry-form .form-select {
    border-color: var(--mk-line);
    border-radius: var(--r-sm);
    padding: .65rem .85rem;
    font-size: .97rem;
}

.enquiry-form .form-control:focus,
.enquiry-form .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .12);
}

.enquiry-form .form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.module-checks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: .4rem .75rem;
}

/*
 * Off-canvas rather than display:none. A bot that reads the DOM still finds the
 * field; a screen reader is kept away from it by aria-hidden on the wrapper.
 */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.thankyou-icon {
    display: inline-grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ok) 12%, #fff);
    color: var(--ok-deep);
    font-size: 2.5rem;
}

/* ---------------------------------------------------------------- prose */

.prose { font-size: 1.06rem; }
.prose h2 { font-size: 1.45rem; margin: 2.5rem 0 .8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.1rem; }

.prose a {
    color: var(--brand);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- CTA */

/*
 * The one dark band on the page. Deep indigo into cyan, with two blurred pools
 * laid over it so the gradient has somewhere to go instead of being a flat ramp
 * from corner to corner.
 */
.cta {
    position: relative;
    padding: clamp(3.5rem, 6vw, 5.5rem) 0;
    background: var(--brand-gradient-deep);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(28rem 20rem at 15% 0%, rgba(255, 255, 255, .16), transparent 62%),
        radial-gradient(30rem 22rem at 88% 100%, rgba(var(--accent-rgb), .3), transparent 60%);
    pointer-events: none;
}

.cta > .container { position: relative; z-index: 1; }

body.marketing .cta h2 {
    color: #fff;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    margin-bottom: .85rem;
}

.cta p {
    max-width: 38em;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, .86);
    font-size: 1.08rem;
}

.cta-actions {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
}

body.marketing .cta .btn-light {
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-color: var(--brand-700);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-color: var(--brand);
    --bs-btn-hover-border-color: #fff;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5);
}

body.marketing .cta .btn-outline-light {
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgba(255, 255, 255, .5);
    --bs-btn-hover-bg: rgba(255, 255, 255, .12);
    --bs-btn-hover-border-color: #fff;
    --bs-btn-hover-color: #fff;
    backdrop-filter: blur(4px);
}

body.marketing .cta .btn:hover { transform: translateY(-1px); }

/* ---------------------------------------------------------------- footer */

.site-footer {
    position: relative;
    background: var(--brand-900);
    color: #e4dbea;
    padding: clamp(3rem, 5vw, 4.5rem) 0 1.5rem;
    font-size: .95rem;
}

/* A gradient hairline on the top edge, tying the footer to the CTA above it. */
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--brand-gradient);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: -.025em;
    color: #fff;
    margin-bottom: .85rem;
}

.footer-blurb { max-width: 32em; color: #b3a5bc; }

body.marketing .footer-heading {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .11em;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .55rem;
}

.footer-links a,
.footer-bottom a {
    color: #e4dbea;
    text-decoration: none;
    transition: color .15s ease;
}

.footer-links a:hover,
.footer-bottom a:hover { color: #fff; }

body.marketing .site-footer .btn-outline-light {
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgba(255, 255, 255, .35);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-color: var(--brand-900);
    --bs-btn-hover-border-color: #fff;
}

.footer-bottom {
    margin-top: 2.75rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    justify-content: space-between;
    color: #b3a5bc;
    font-size: .88rem;
}

/* ---------------------------------------------------------------- reveal
 *
 * Progressive enhancement, deliberately inverted: the hidden state applies only
 * once marketing.js has set .js-reveal on <html>. Without JavaScript — or
 * before it runs — every section is simply visible, so the page can never end
 * up blank because a script failed to load.
 */

.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s cubic-bezier(.22, .61, .36, 1),
                transform .55s cubic-bezier(.22, .61, .36, 1);
}

.js-reveal [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ---------------------------------------------------------------- motion, print */

@media (prefers-reduced-motion: reduce) {
    body.marketing *,
    body.marketing *::before,
    body.marketing *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    /* Not merely a faster fade — no movement, and nothing left hidden. */
    .js-reveal [data-reveal] { opacity: 1; transform: none; }

    body.marketing .btn:hover,
    .feature-card:hover,
    .module-card:hover,
    .plan-card:hover,
    .step:hover { transform: none; }
}

@media print {
    .site-header,
    .site-footer,
    .cta,
    .skip-link { display: none !important; }

    .hero::before,
    .hero::after { display: none !important; }

    body.marketing { font-size: 11pt; }
    .section, .hero { padding-block: 1rem; }

    .feature-card,
    .module-card,
    .plan-card,
    .step { box-shadow: none; break-inside: avoid; }
}
