/* =============================================================
   landing-marketing.css — every landing section below the hero.

   Depends on landing-tokens.css. All classes are prefixed `lp-`
   so nothing here can collide with Bootstrap 4 or the existing
   `mz-` component layer.
   ============================================================= */

/* ── 1. Section scaffolding ──────────────────────────────── */
.lp-section {
    position: relative;
    padding-block: var(--lp-section-y);
    isolation: isolate;
}

/*
 * Subtle blend at the bottom of each section.
 *
 * A gentle gradient that fades from transparent to the page canvas colour
 * creates a soft visual handoff to the next section without a hard line.
 * It sits behind the content (z-index: -1) so it never obscures text or
 * interactive elements.
 */
.lp-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 8vh;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--bg-base) 60%,
        var(--bg-base) 100%
    );
}

.lp-container {
    width: 100%;
    max-width: var(--lp-maxw);
    margin-inline: auto;
    padding-inline: var(--lp-gutter);
}

.lp-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

.lp-h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-primary);
    margin: 0.5rem 0 1rem;
}

.lp-lede {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

/* Smaller heading for use *inside* a block that already has an h2, such as
   the FAQ list beside the closing statement. Was an inline style. */
.lp-h2-sm {
    font-size: 1.5rem;
    margin: 0 0 var(--mz-space-4);
}

/* FAQ question heading without the button chrome — used inside the accordion
   button. Was an inline style "margin:0;". */
.lp-faq-heading {
    margin: 0;
}

.lp-head {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.lp-head .lp-lede {
    margin-inline: auto;
}

/*
 * No alternating section backgrounds.
 *
 * .lp-tint painted --bg-subtle across two full-width bands (capability grid
 * and social proof). Full-bleed banding is what made the page look like
 * stacked sections rather than one surface, and it forced the cards inside
 * those bands onto a third surface colour to stay visible. Sections are now
 * separated by vertical rhythm alone, and every card sits on the single
 * --bg-elevated surface.
 */

/* Shared button styles — mirrors the hero's CTAs so the page
   has exactly one button language. */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.9rem;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 0.975rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    transition: transform var(--dur-sm) var(--ease),
                box-shadow var(--dur-sm) var(--ease),
                background-color var(--dur-sm) var(--ease),
                color var(--dur-sm) var(--ease);
}

.lp-btn-primary {
    position: relative;
    overflow: hidden;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 25px -8px var(--primary-glow);
}

.lp-btn-primary:hover,
.lp-btn-primary:focus-visible {
    color: #fff;
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -8px var(--primary-glow);
}

/* Sheen sweep, same as the hero */
.lp-btn-primary::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.55s ease;
}

.lp-btn-primary:hover::before {
    left: 100%;
}

.lp-btn-ghost {
    background: transparent;
    color: var(--text-primary);
    box-shadow: inset 0 0 0 1px var(--border-light);
}

.lp-btn-ghost:hover,
.lp-btn-ghost:focus-visible {
    color: var(--text-primary);
    background: var(--bg-elevated);
    box-shadow: inset 0 0 0 1px var(--primary);
    transform: translateY(-2px);
}

.lp-btn-sm {
    padding: 0.6rem 1.15rem;
    font-size: 0.875rem;
    border-radius: 10px;
}

/* ── 2. Platform preview (bell curve + module tabs) ─────── */

/*
 * No background of its own.
 *
 * The hero and this section used to each own a data grid, which restarted
 * the texture at the boundary and made the seam obvious. The grid now lives
 * once on .lp-page and spans both. The hero's funnel overhangs into this
 * section, so the two genuinely share one surface.
 */
.lp-preview {
    position: relative;
    padding-top: 0;
}

.lp-preview-head {
    position: relative;
    padding: clamp(2.5rem, 5vw, 4rem) var(--lp-gutter) clamp(5.5rem, 10vw, 8rem);
    text-align: center;
}

/*
 * Convergence glow, centred on the funnel's vanishing point.
 *
 * Deliberately a radial gradient rather than the reference's filled SVG
 * path: a filled path has hard diagonals that read as a separate shape
 * pasted onto the page. A gradient has no boundary, so it reads as light
 * rather than as an object.
 *
 * Reaches up past the top of this section on purpose — it is the thing that
 * has to bridge the seam, so it needs to occupy the hero's closing pixels
 * rather than start neatly inside its own section.
 */
.lp-preview-glow {
    position: absolute;
    left: 50%;
    top: -46%;
    width: min(1500px, 165vw);
    height: clamp(460px, 66vw, 820px);
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse 50% 50% at 50% 50%,
        color-mix(in srgb, var(--primary) 20%, transparent) 0%,
        color-mix(in srgb, var(--primary) 9%, transparent) 32%,
        color-mix(in srgb, var(--primary) 3%, transparent) 55%,
        transparent 78%
    );
}

/* Icon tabs.
   No horizontal padding here: this element already sits inside
   .lp-container, which applies --lp-gutter. The reference had the tabs
   outside a padded container and needed its own; keeping both doubled the
   inset to 40px and squeezed the seven tabs onto three rows at 390px. */
.lp-tabs {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: -5rem auto 3rem;
    max-width: 820px;
}

.lp-tab {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.35rem;
    transition: transform 0.25s var(--ease-back),
                background var(--dur-sm) var(--ease),
                color var(--dur-sm) var(--ease),
                border-color var(--dur-sm) var(--ease),
                box-shadow var(--dur-md) var(--ease);
}

.lp-tab:hover {
    transform: translateY(-3px);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.lp-tab[aria-selected="true"] {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -8px var(--primary),
                0 0 0 6px var(--primary-glow);
}

/* Hover label. The attribute is mirrored from data-label so the
   text stays in the HTML for crawlers and screen readers. */
.lp-tab::after {
    content: attr(data-label);
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--text-primary);
    color: var(--bg-base);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-sm) var(--ease), transform var(--dur-sm) var(--ease);
}

.lp-tab:hover::after,
.lp-tab:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* An already-active tab doesn't need to advertise itself. */
.lp-tab[aria-selected="true"]::after {
    display: none;
}

/* Preview card */
.lp-preview-card {
    max-width: 1100px;
    margin-inline: auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--card-radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow-lg);
}

/*
 * One panel per module. All seven are in the DOM so the content is
 * crawlable and readable without JS; the controller toggles `hidden`.
 * The `!important` guard stops any future `display` rule on this class
 * from defeating the hidden attribute.
 */
.lp-preview-panel[hidden] {
    display: none !important;
}

.lp-preview-body {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
    align-items: center;
    transition: opacity var(--dur-sm) var(--ease), transform var(--dur-sm) var(--ease);
}

.lp-preview-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.lp-preview-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 25px -8px var(--primary);
}

.lp-preview-intro h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.lp-preview-intro p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 1.5rem;
}

/*
 * Image container for the module screenshot.
 *
 * The frame is a fixed 3:2 landscape box; any source image is
 * normalized with object-fit so it always fills the frame without
 * distortion, regardless of the original dimensions. Items can opt
 * into `contain` (letterbox the whole image) via the img-contain
 * modifier.
 */
.lp-preview-media {
    position: relative;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    display: flex;
}

.lp-preview-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Per-item opt-in: fit the whole image instead of cropping. */
.lp-preview-media.img-contain img {
    object-fit: contain;
}

/* Uploaded PNG icons inside tabs and the intro badge. */
.lp-tab-icon-img,
.lp-preview-badge-img {
    display: block;
    max-width: 100%;
    object-fit: contain;
}

.lp-tab-icon-img {
    width: 24px;
    height: 24px;
}

.lp-preview-badge-img {
    width: 32px;
    height: 32px;
}

/* Shown only while data-placeholder is present. */
.lp-preview-media[data-placeholder]::after {
    content: attr(data-placeholder);
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.5rem 0.75rem;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-light);
    color: var(--text-tertiary);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
}

/* Capability strip under the preview */
.lp-preview-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border-light);
    transition: opacity var(--dur-sm) var(--ease), transform var(--dur-sm) var(--ease);
}

.lp-preview-feature {
    padding: 1.75rem 2rem;
    border-right: 1px solid var(--border-light);
}

.lp-preview-feature:last-child {
    border-right: none;
}

.lp-preview-feature h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.lp-preview-feature p {
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

/* Cross-fade while swapping tabs. Applied by the controller. */
.lp-preview-card.is-switching .lp-preview-body,
.lp-preview-card.is-switching .lp-preview-features {
    opacity: 0;
    transform: translateY(6px);
}

/* ── 3. Capability grid ─────────────────────────────────── */
.lp-capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.lp-capability {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--card-radius);
    transition: border-color var(--dur-md) var(--ease),
                box-shadow var(--dur-md) var(--ease),
                transform var(--dur-md) var(--ease);
}

.lp-capability:hover {
    border-color: var(--primary);
    box-shadow: 0 18px 40px -18px var(--primary-glow);
    transform: translateY(-4px);
}

.lp-capability-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid var(--primary-tint);
    margin-bottom: 1.5rem;
}

.lp-capability h3 {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

/*
 * Scope label sits directly above the heading and must not participate
 * in the flex grow, or each card's heading is pushed down by a different
 * amount and the row stops aligning.
 *
 * Specificity note: this must out-rank `.lp-capability > p`, which is
 * (0,1,1). A bare `.lp-capability-scope` is only (0,1,0) and loses, which
 * silently applied `flex: 1` to the label. Hence the two-class selector.
 */
.lp-capability .lp-capability-scope {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 0.875rem;
    flex: 0 0 auto;
}

/* Body copy — the element allowed to absorb spare height. */
.lp-capability > p:not(.lp-capability-scope) {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 1.25rem;
    flex: 1;
}

.lp-capability ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.lp-capability li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.lp-capability li::before {
    content: "\F26E"; /* bi-check-lg */
    font-family: bootstrap-icons;
    color: var(--positive);
    font-size: 0.9375rem;
    line-height: 1.5;
    flex-shrink: 0;
}

/* ── 4. Workflow steps ──────────────────────────────────── */
.lp-workflow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

/* Connector line between the step markers. */
.lp-workflow::before {
    content: "";
    position: absolute;
    top: 2.875rem;
    left: calc((100% - 4rem) / 6);
    right: calc((100% - 4rem) / 6);
    height: 1px;
    background: var(--border-light);
}

.lp-step {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--card-radius);
    transition: border-color var(--dur-md) var(--ease),
                box-shadow var(--dur-md) var(--ease),
                transform var(--dur-md) var(--ease);
}

.lp-step:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 32px -12px var(--primary-glow);
    transform: translateY(-3px);
}

.lp-step-marker {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 0 6px var(--bg-base);
}

.lp-step h3 {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.lp-step p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
}

.lp-step-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-tertiary);
}

.lp-workflow-cta {
    text-align: center;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* ── 5. Social proof ────────────────────────────────────── */

/*
 * No divider under the stat bar. A full-width rule that separates nothing
 * structural — both sides are the same canvas — is a line the eye chases
 * across the viewport for no reason. The spacing below it does the job.
 */
.lp-proof-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    flex-wrap: wrap;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.lp-proof-stat {
    text-align: center;
}

.lp-proof-stat dt {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
}

.lp-proof-stat dd {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.lp-quote-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.lp-quote {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--bg-elevated);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/*
 * No decorative quote glyph. The reference set a 10rem ghost mark behind
 * every testimonial; a restrained 2.5rem version was still decoration that
 * pushed the quote text down and competed with it for attention. The
 * <blockquote> element already carries the semantics, so the mark added
 * nothing a screen reader or a sighted reader wasn't getting.
 */

.lp-quote blockquote {
    margin: 0 0 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--text-secondary);
    flex: 1;
}

.lp-quote figcaption {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}

.lp-quote-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 800;
    flex-shrink: 0;
}

.lp-quote-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.lp-quote-role {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin: 0;
}

/* ── 6. Pricing ─────────────────────────────────────────── */
/*
 * auto-fit rather than a fixed 3-up: the plan list comes from the
 * database, so it is rarely exactly three. Empty tracks collapse, meaning
 * three plans stretch to fill and four plans become a 4-up row instead of
 * leaving a single orphan stranded on a second row.
 *
 * 225px is chosen so four plans fit inside the container's *inner* width
 * (--lp-maxw minus the horizontal gutter — 1140 - 80 = 1060px at desktop).
 * At 250px four tracks would need 1072px and silently drop back to 3-up.
 */
.lp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.lp-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
    background: var(--bg-elevated);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    transition: border-color var(--dur-md) var(--ease),
                box-shadow var(--dur-md) var(--ease),
                transform var(--dur-md) var(--ease);
}

.lp-plan:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 20px 44px -18px var(--primary-glow);
}

.lp-plan-featured {
    border-color: var(--primary);
    box-shadow: 0 20px 44px -18px var(--primary-glow);
}

/* Accent rail instead of a glow halo. */
.lp-plan-featured::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--primary);
    border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.lp-plan-flag {
    align-self: flex-start;
    margin-bottom: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--primary-tint);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lp-plan-name {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.lp-plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    margin-bottom: 0.25rem;
}

.lp-plan-currency {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.lp-plan-amount {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
}

.lp-plan-amount-was {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-decoration: line-through;
    margin-right: 0.35rem;
}

.lp-plan-note {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin: 0 0 1.5rem;
}

.lp-plan-features {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--border-light);
    display: grid;
    gap: 0.625rem;
    flex: 1;
}

.lp-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.lp-plan-features li::before {
    content: "\F26E";
    font-family: bootstrap-icons;
    color: var(--positive);
    font-size: 0.9375rem;
    line-height: 1.5;
    flex-shrink: 0;
}

.lp-plan-features strong {
    color: var(--text-primary);
    font-weight: 700;
}

.lp-plan .lp-btn {
    width: 100%;
    padding-inline: 1.25rem;
    white-space: normal;
    overflow-wrap: break-word;
}

.lp-pricing-footnote {
    text-align: center;
    margin: 2rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* ── 7. Closing CTA ─────────────────────────────────────── */

/*
 * Sits directly above the shared site footer (mz-footer). Its
 * bottom edge matches --bg-base so the hand-off to the footer
 * reads as one continuous surface.
 */
.lp-closing {
    position: relative;
    padding-block: clamp(4.5rem, 9vw, 7.5rem);
    background: var(--bg-base);
    overflow: hidden;
}

/*
 * No glow. The sections flow into each other via the .lp-section::after
 * gradient fades. An artificial red radial here fought the rest of the page
 * and read as a separate component pasted on top.
 */

.lp-closing-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: start;
}

.lp-closing h2 {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-primary);
    margin: 0.5rem 0 1.25rem;
}

.lp-closing h2 em {
    font-style: normal;
    color: var(--primary);
    background-image: linear-gradient(var(--primary-glow), var(--primary-glow));
    background-repeat: no-repeat;
    background-size: 100% 0.22em;
    background-position: 0 0.86em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.lp-closing-lede {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 2rem;
    max-width: 460px;
}

.lp-closing-assurances {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.lp-closing-assurances li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.lp-closing-assurances li::before {
    content: "\F26E";
    font-family: bootstrap-icons;
    color: var(--positive);
    font-size: 0.9rem;
}

/* FAQ accordion shares the closing block's right column. */
.lp-faq {
    border: 1px solid var(--border-light);
    border-radius: var(--card-radius);
    background: var(--bg-elevated);
    overflow: hidden;
}

.lp-faq-item {
    border-bottom: 1px solid var(--border-light);
}

.lp-faq-item:last-child {
    border-bottom: none;
}

.lp-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: start;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: background var(--dur-sm) var(--ease);
}

.lp-faq-q::after {
    content: "\F4FE"; /* bi-plus */
    font-family: bootstrap-icons;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    flex-shrink: 0;
    transition: transform var(--dur-md) var(--ease);
}

.lp-faq-q[aria-expanded="true"]::after {
    transform: rotate(45deg);
}

.lp-faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--dur-md) var(--ease);
}

.lp-faq-a[data-open="true"] {
    grid-template-rows: 1fr;
}

/*
 * animating grid-template-rows needs a single child that can be
 * collapsed; padding lives on the inner so the row height reaches 0.
 */
.lp-faq-a > div {
    overflow: hidden;
}

.lp-faq-a p {
    margin: 0;
    padding: 0 1.25rem 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.lp-faq-more {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ── 8. Scroll reveal ───────────────────────────────────────
   Mirrors the .mz-reveal pattern already used elsewhere on the
   site, but namespaced. Falls back to visible when JS is off or
   IntersectionObserver is missing — see the `no-js` guard in the
   view layer. */
.lp-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity var(--dur-lg) var(--ease), transform var(--dur-lg) var(--ease);
}

.lp-reveal.is-in {
    opacity: 1;
    transform: none;
}

.lp-reveal-d1 { transition-delay: 0.08s; }
.lp-reveal-d2 { transition-delay: 0.16s; }
.lp-reveal-d3 { transition-delay: 0.24s; }
.lp-reveal-d4 { transition-delay: 0.32s; }

/* Safety net: if the observer never runs, nothing stays invisible. */
.no-js .lp-reveal {
    opacity: 1;
    transform: none;
}

/* ── 9. Responsive ──────────────────────────────────────── */

/* Tablet */
@media (max-width: 1023.98px) {
    .lp-preview-body {
        grid-template-columns: 260px 1fr;
        gap: 1.5rem;
        padding: 2rem;
    }

    .lp-preview-feature {
        padding: 1.5rem 1.25rem;
    }

    .lp-closing-inner {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .lp-preview-head {
        padding: 2.5rem var(--lp-gutter) 5rem;
    }

    /*
     * A radial gradient this tight would read as a visible disc on a narrow
     * viewport. Widen it so it stays diffuse, and drop the opacity.
     */
    .lp-preview-glow {
        top: -30%;
        width: 230vw;
        height: 420px;
        opacity: 0.6;
    }

    .lp-tabs {
        margin-top: -4rem;
        gap: 0.5rem;
    }

    /*
     * 40px + 0.5rem gap keeps all seven tabs on a single row at 390px:
     * 7 x 40 + 6 x 8 = 328px, inside the 350px content width. At 44px
     * the seventh tab wraps and sits alone on its own row.
     */
    .lp-tab {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 1.05rem;
    }

    /* Tooltips collide on small screens — the heading below the
       card names the active module anyway. */
    .lp-tab::after {
        display: none;
    }

    .lp-preview-body {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    /* Below ~500px the two-column callout text and media stop
       fitting side by side. */
    .lp-preview-features {
        grid-template-columns: 1fr;
    }

    .lp-preview-feature {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 1.25rem 1.5rem;
    }

    .lp-preview-feature:last-child {
        border-bottom: none;
    }

    .lp-capability-grid,
    .lp-quote-grid,
    .lp-pricing-grid {
        grid-template-columns: 1fr;
    }

    /* The connector line only makes sense across a single row. */
    .lp-workflow {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .lp-workflow::before {
        display: none;
    }

    .lp-step-marker {
        box-shadow: 0 0 0 6px var(--bg-subtle);
    }

    .lp-quote {
        padding: 1.5rem;
    }

    .lp-plan {
        padding: 1.75rem;
    }

    .lp-proof-bar {
        gap: 1.5rem 2rem;
    }

    .lp-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* Coarse pointers: hover lifts are a mouse affordance. */
@media (hover: none) {
    .lp-capability:hover,
    .lp-plan:hover,
    .lp-tab:hover,
    .lp-btn-primary:hover,
    .lp-btn-ghost:hover {
        transform: none;
    }
}

/* ── 10. Reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .lp-reveal {
        opacity: 1;
        transform: none;
    }

    /* Freeze tab cross-fades; content still switches instantly. */
    .lp-preview-card.is-switching .lp-preview-body,
    .lp-preview-card.is-switching .lp-preview-features {
        opacity: 1;
        transform: none;
    }

    .lp-tab:hover,
    .lp-tab[aria-selected="true"] {
        transform: none;
    }
}

/* ── 11. Print ──────────────────────────────────────────── */
@media print {
    .lp-tabs,
    .lp-preview-media,
    .lp-closing::before {
        display: none;
    }

    .lp-section {
        padding-block: 1.5rem;
    }
}
