/* Public site styles (Reference Phase 4) — hand-written CSS, oklch palette
 * matching the app, light + dark via prefers-color-scheme, no framework.
 * Domain-neutral shells: business apps reuse these classes from their own
 * template overrides. Icon font is Unfold's locally-bundled Material Symbols
 * (no third-party CDN). */

@font-face {
    font-family: "Material Symbols Outlined";
    font-style: normal;
    font-weight: 100 700;
    font-display: block;
    src: url("../unfold/fonts/material-symbols/Material-Symbols-Outlined.woff2") format("woff2");
}

.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
}

:root {
    --lp-bg: oklch(98.3% 0.005 230);
    --lp-surface: #fff;
    --lp-border: oklch(92% 0.010 230);
    --lp-text: oklch(37% 0.018 255);
    --lp-heading: oklch(21% 0.014 255);
    --lp-subtle: oklch(50% 0.016 255);
    --lp-primary: oklch(50% 0.150 230);
    --lp-primary-strong: oklch(42% 0.135 230);
    --lp-hero-a: oklch(97% 0.020 230);
    --lp-hero-b: oklch(93% 0.045 230);
    --lp-dark: oklch(20% 0.030 240);
    --lp-dark-text: oklch(96% 0.005 230);
    /* One radius + shadow scale */
    --lp-r-sm: 8px;
    --lp-r-md: 12px;
    --lp-r-lg: 16px;
    --lp-shadow-sm: 0 1px 2px rgba(15, 23, 32, 0.05);
    --lp-shadow-md: 0 10px 28px rgba(15, 23, 32, 0.09);
    /* Spacing scale (Phase 4): every section/component rhythm value comes
     * from here — no ad-hoc rem soup. */
    --lp-sp-1: 0.5rem;
    --lp-sp-2: 0.875rem;
    --lp-sp-3: 1.25rem;
    --lp-sp-4: 2rem;
    --lp-sp-5: 3.25rem;
    --lp-sp-6: 5rem;
    --lp-max: 1040px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --lp-bg: oklch(13% 0.012 255);
        --lp-surface: oklch(21% 0.014 255);
        --lp-border: oklch(28% 0.016 255);
        --lp-text: oklch(86% 0.01 255);
        --lp-heading: oklch(96.5% 0.004 255);
        --lp-subtle: oklch(71% 0.014 255);
        --lp-hero-a: oklch(18% 0.060 230);
        --lp-hero-b: oklch(13% 0.012 255);
        --lp-dark: oklch(17% 0.025 240);
    }
}

* { box-sizing: border-box; }

/* Solid neutral canvas (Phase 4): the blueprint grid texture is gone — both
 * reference sites carry their structure with type and section contrast, not
 * a drafting-paper background. */
.lp {
    margin: 0;
    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

.lp a { color: var(--lp-primary); text-decoration: none; }
.lp a:hover { text-decoration: underline; }

/* Visible keyboard focus everywhere on the public site. */
.lp a:focus-visible,
.lp button:focus-visible,
.lp input:focus-visible,
.lp textarea:focus-visible {
    outline: 2px solid var(--lp-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

.lp-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--lp-heading);
    color: var(--lp-surface) !important;
    border-radius: 0 0 var(--lp-r-sm) 0;
}
.lp-skip:focus-visible { left: 0; }

/* --- Header + navigation ---------------------------------------------------- */
/* backdrop-filter lives on ::before, not .lp-header itself: a backdrop-filter
   (like transform/filter/will-change:transform) on an ancestor makes it the
   containing block for any position:fixed descendant — the mobile nav drawer
   nests inside .lp-header, so putting the filter there collapsed the fixed
   drawer to the header's own 68px height instead of the full viewport. */
/* z-index:50, not 10: .lp-header is position:sticky with an explicit z-index,
   so it establishes its own stacking context for everything nested inside it
   — including .lp-nav (z-index:40 internally). That inner z-index only ranks
   against siblings WITHIN .lp-header; at the page level, .lp-header itself
   (not .lp-nav) is what competes against .lp-nav-backdrop (z-index:30, a
   sibling OUTSIDE the header). With header at 10, the whole header — drawer
   included — rendered below the backdrop, so every drawer link was visually
   present but received zero clicks (the backdrop hit-tested first). Header
   must outrank the backdrop for the nested drawer to be clickable at all. */
.lp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--lp-border);
}
/* z-index:-1: without it, this positioned pseudo-element painted ABOVE the
   header's own static-positioned children (the brand link, the hamburger
   toggle) — CSS paints positioned elements over non-positioned ones
   regardless of DOM order, so the frosted-glass layer silently absorbed
   every click on the toggle button and brand link. */
.lp-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: color-mix(in oklab, var(--lp-bg) 88%, transparent);
    backdrop-filter: blur(10px);
}

.lp-header__inner {
    max-width: var(--lp-max);
    margin: 0 auto;
    padding: 0.75rem var(--lp-sp-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--lp-sp-3);
}

.lp-brand { display: flex; align-items: center; gap: 0.625rem; min-width: 0; }
.lp-brand__logo { height: 34px; width: auto; border-radius: 7px; }
.lp-brand__name {
    font-weight: 700;
    color: var(--lp-heading) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lp-brand__name:hover { text-decoration: none; }

.lp-nav {
    display: flex;
    align-items: center;
    gap: var(--lp-sp-3);
}
.lp-nav a {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--lp-text);
    padding: 0.375rem 0.125rem;
}
.lp-nav a:hover { color: var(--lp-primary); text-decoration: none; }
/* Staff access: reachable, deliberately quiet next to customer links. */
.lp-nav__staff {
    color: var(--lp-subtle) !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    border-left: 1px solid var(--lp-border);
    padding-left: var(--lp-sp-3) !important;
}
.lp-nav__staff:hover { color: var(--lp-primary) !important; }

/* Drawer chrome (head + close + backdrop) — mobile-only; hidden on desktop. */
.lp-nav__head, .lp-nav__close, .lp-nav-backdrop { display: none; }

/* Mobile nav toggle (hamburger) — hidden on desktop. */
.lp-nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-r-sm);
    padding: 0.5rem 0.75rem;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lp-heading);
    cursor: pointer;
    min-height: 44px;
}

.lp-nav-toggle__bars,
.lp-nav-toggle__bars::before,
.lp-nav-toggle__bars::after {
    content: "";
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    position: relative;
}
.lp-nav-toggle__bars::before { position: absolute; top: -5px; }
.lp-nav-toggle__bars::after { position: absolute; top: 5px; }

@media (max-width: 759px) {
    .lp-nav-toggle { display: inline-flex; }

    /* Slide-in drawer from the right — a real overlay panel, not a dropdown. */
    .lp-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(20rem, 84vw);
        z-index: 40;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--lp-surface);
        border-left: 1px solid var(--lp-border);
        box-shadow: -12px 0 32px rgba(15, 23, 32, 0.16);
        padding: 0 var(--lp-sp-3) var(--lp-sp-3);
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(100%);
        transition: transform 0.22s ease;
    }
    .lp-nav--open { transform: translateX(0); }
    @media (prefers-reduced-motion: reduce) { .lp-nav { transition: none; } }

    .lp-nav__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        background: var(--lp-surface);
        padding: var(--lp-sp-2) 0;
        margin-bottom: var(--lp-sp-1);
        border-bottom: 1px solid var(--lp-border);
    }
    .lp-nav__head-title { font-weight: 700; color: var(--lp-heading); }
    .lp-nav__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        color: var(--lp-heading);
        font-size: 1.75rem;
        line-height: 1;
        cursor: pointer;
        border-radius: var(--lp-r-sm);
    }
    .lp-nav__close:hover { background: var(--lp-bg); }

    .lp-nav a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 0.75rem 0.25rem;
        border-bottom: 1px solid var(--lp-border);
        font-size: 1.0625rem;
    }
    .lp-nav a:last-child { border-bottom: none; }
    .lp-nav__staff { border-left: none; padding-left: 0.25rem !important; }

    /* Dimmed backdrop behind the drawer. Only shown while the drawer is open
       (JS toggles the `hidden` attribute) — [hidden] must win over the plain
       class rule below or the backdrop blocks every click on the page. */
    .lp-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 30;
        background: rgba(15, 23, 32, 0.42);
    }
    .lp-nav-backdrop[hidden] { display: none; }
    /* Lock the page behind the open drawer. */
    body.lp-nav-lock { overflow: hidden; }

    :where(.lp-nav a, .lp-nav__close):focus-visible {
        outline: 2px solid var(--lp-primary);
        outline-offset: 2px;
    }
}

/* --- CTA buttons ------------------------------------------------------------ */
.lp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.375rem;
    min-height: 44px;
    border: 0;
    border-radius: var(--lp-r-sm);
    background: var(--lp-primary);
    color: #fff !important;
    font: inherit;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 120ms ease, transform 120ms ease;
}
.lp-cta:hover { background: var(--lp-primary-strong); }
.lp-cta:active { transform: translateY(1px); }
.lp-cta--ghost {
    background: transparent;
    color: var(--lp-primary) !important;
    box-shadow: inset 0 0 0 2px var(--lp-primary);
}
.lp-cta--ghost:hover { background: color-mix(in oklab, var(--lp-primary) 10%, transparent); }
/* On the dark CTA band: a light button so contrast stays strong. */
.lp-cta--light {
    background: #fff;
    color: var(--lp-heading) !important;
}
.lp-cta--light:hover { background: oklch(92% 0.01 230); }

/* --- Hero -------------------------------------------------------------------- */
.lp-hero {
    background:
        radial-gradient(60% 100% at 50% 0%, color-mix(in oklab, var(--lp-primary) 10%, transparent), transparent),
        linear-gradient(160deg, var(--lp-hero-a), color-mix(in oklab, var(--lp-hero-b) 55%, transparent));
    padding: var(--lp-sp-6) var(--lp-sp-3) var(--lp-sp-5);
    border-bottom: 1px solid var(--lp-border);
}

.lp-hero__inner { max-width: var(--lp-max); margin: 0 auto; }

.lp-hero__shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--lp-sp-4);
    align-items: center;
    text-align: center;
}

.lp-hero__copy--center { text-align: center; max-width: 720px; margin: 0 auto; }

@media (min-width: 900px) {
    .lp-hero__shell {
        grid-template-columns: minmax(320px, 1.15fr) minmax(300px, 0.85fr);
        text-align: left;
    }
    .lp-hero__shell .lp-hero__actions { justify-content: flex-start; }
    .lp-hero__shell .lp-hero__title,
    .lp-hero__shell .lp-hero__tagline,
    .lp-hero__shell .lp-hero__intro { margin-left: 0; margin-right: 0; }
}

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--lp-primary);
    margin-bottom: var(--lp-sp-2);
}
.lp-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--lp-primary);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--lp-primary) 20%, transparent);
}

.lp-hero__title {
    margin: 0 auto;
    max-width: 780px;
    font-size: clamp(2.25rem, 5.4vw, 3.4rem);
    line-height: 1.08;
    color: var(--lp-heading);
    letter-spacing: -0.03em;
}

.lp-hero__tagline {
    margin: var(--lp-sp-2) auto 0;
    max-width: 640px;
    font-size: clamp(1.05rem, 2.4vw, 1.3rem);
    color: var(--lp-subtle);
}

.lp-hero__intro { margin: var(--lp-sp-2) auto 0; max-width: 640px; font-size: 0.975rem; }

.lp-hero__actions {
    margin-top: var(--lp-sp-4);
    display: flex;
    gap: var(--lp-sp-2);
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Status preview card (hero right panel; generic shell) ------------------ */
.lp-hero__preview { display: flex; justify-content: center; }

.lp-preview {
    position: relative;
    width: min(360px, 100%);
    padding: 1.25rem 1.375rem 1.125rem;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-r-lg);
    box-shadow: var(--lp-shadow-md);
    text-align: left;
}

.lp-preview__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.875rem;
    border-bottom: 1px solid var(--lp-border);
}

.lp-preview__title { font-weight: 700; color: var(--lp-heading); font-size: 0.9375rem; }

.lp-preview__ref {
    font-size: 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--lp-subtle);
    letter-spacing: 0.04em;
}

.lp-preview__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }

.lp-preview__step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.4375rem 0;
    font-size: 0.875rem;
    color: var(--lp-subtle);
}

.lp-preview__dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    border: 2px solid var(--lp-border);
    background: var(--lp-surface);
    flex-shrink: 0;
}

.lp-preview__step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 4px;
    top: calc(50% + 8px);
    width: 2px;
    height: 55%;
    background: var(--lp-border);
}

.lp-preview__step--done { color: var(--lp-text); }
.lp-preview__step--done .lp-preview__dot {
    background: var(--lp-primary);
    border-color: var(--lp-primary);
}
.lp-preview__step--done:not(:last-child)::before { background: color-mix(in oklab, var(--lp-primary) 55%, transparent); }

.lp-preview__step--active { color: var(--lp-heading); font-weight: 600; }
.lp-preview__step--active .lp-preview__dot {
    border-color: var(--lp-primary);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--lp-primary) 22%, transparent);
}

.lp-preview__now {
    margin-left: auto;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.01em;
    color: var(--lp-primary);
    background: color-mix(in oklab, var(--lp-primary) 12%, transparent);
    border-radius: 9999px;
    padding: 0.125rem 0.5rem;
    white-space: nowrap;
}

.lp-preview__foot {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px dashed var(--lp-border);
}

.lp-preview__qr { font-size: 34px; color: var(--lp-heading); flex-shrink: 0; }
.lp-preview__hint { font-size: 0.75rem; color: var(--lp-subtle); line-height: 1.45; }

.lp-preview__example {
    position: absolute;
    bottom: 0.5rem;
    right: 0.75rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lp-subtle);
    opacity: 0.75;
}

/* --- Sections ----------------------------------------------------------------- */
.lp-section {
    max-width: var(--lp-max);
    margin: 0 auto;
    padding: var(--lp-sp-5) var(--lp-sp-3) var(--lp-sp-1);
}

.lp-section__head { margin-bottom: var(--lp-sp-4); }
.lp-section__head .lp-eyebrow { margin-bottom: var(--lp-sp-1); }

.lp-section__title {
    font-size: clamp(1.6rem, 3.4vw, 2.1rem);
    color: var(--lp-heading);
    margin: 0 0 0.4rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.lp-section__lead {
    margin: 0;
    max-width: 46rem;
    color: var(--lp-subtle);
    font-size: 1rem;
}

/* Full-bleed white band: section contrast comes from alternating surfaces,
 * not from boxing every piece of content (Phase 4). */
.lp-section--band {
    max-width: none;
    background: var(--lp-surface);
    border-top: 1px solid var(--lp-border);
    border-bottom: 1px solid var(--lp-border);
    padding: var(--lp-sp-5) var(--lp-sp-3);
    margin-top: var(--lp-sp-5);
}
.lp-section__band-inner { max-width: var(--lp-max); margin: 0 auto; }

/* --- Services: open composition, no card boxes (Phase 4) -------------------- */
.lp-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--lp-sp-4) var(--lp-sp-4);
}

.lp-service {
    display: flex;
    align-items: flex-start;
    gap: var(--lp-sp-2);
}

.lp-service__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    font-size: 26px;
    color: var(--lp-primary);
    background: color-mix(in oklab, var(--lp-primary) 12%, transparent);
    border-radius: var(--lp-r-md);
}

.lp-service__body { min-width: 0; }
.lp-service__title { margin: 0 0 0.25rem; font-size: 1.0625rem; font-weight: 650; color: var(--lp-heading); }
.lp-service__desc { margin: 0; font-size: 0.925rem; color: var(--lp-subtle); line-height: 1.55; }

/* --- Lifecycle rail (generic "process stages" shell) ------------------------ */
.lp-rail__track {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lp-rail__card {
    position: relative;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-r-md);
    padding: 1rem 1.125rem;
    box-shadow: var(--lp-shadow-sm);
}

.lp-rail__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    background: var(--lp-primary);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.lp-rail__title { margin: 0.625rem 0 0.375rem; font-weight: 600; color: var(--lp-heading); font-size: 0.9375rem; }
.lp-rail__desc { margin: 0; font-size: 0.8125rem; color: var(--lp-subtle); line-height: 1.5; }

/* Mobile: a CONNECTED vertical trail — every stage visible, one continuous
 * line running through the numbered markers (Phase 4: the stage cards no
 * longer float as disconnected boxes). Number + line carry the progression,
 * never color alone. */
@media (max-width: 759px) {
    .lp-rail__track { padding-left: 14px; }
    .lp-rail__card {
        display: grid;
        grid-template-columns: 28px 1fr;
        column-gap: 0.875rem;
        align-items: center;
        border: none;
        box-shadow: none;
        background: transparent;
        padding: 0 0 var(--lp-sp-4);
        margin: 0;
    }
    .lp-rail__title { margin: 0; font-size: 1rem; }
    .lp-rail__desc { grid-column: 2; margin-top: 0.25rem; }
    /* the trail line: runs from each marker to the next card's marker */
    .lp-rail__card:not(:last-child)::before {
        content: "";
        position: absolute;
        left: 13px;
        top: 30px;
        bottom: -2px;
        width: 2px;
        background: color-mix(in oklab, var(--lp-primary) 40%, var(--lp-border));
    }
}

@media (min-width: 760px) {
    .lp-rail__track { flex-direction: row; gap: var(--lp-sp-3); }
    .lp-rail__card { flex: 1 1 0; padding: 1.25rem 1.125rem; }
    .lp-rail__card:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 2.1rem;
        right: calc(-1 * var(--lp-sp-3));
        width: var(--lp-sp-3);
        height: 2px;
        background: color-mix(in oklab, var(--lp-primary) 35%, var(--lp-border));
    }
}

/* --- News: list rows on the white band, not boxes (Phase 4) ------------------ */
.lp-news { display: flex; flex-direction: column; max-width: 46rem; }

.lp-news__item {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: var(--lp-sp-3);
    padding: var(--lp-sp-3) 0;
    border-top: 1px solid var(--lp-border);
}
.lp-news__item:first-child { border-top: none; padding-top: 0; }

.lp-news__meta { display: flex; flex-direction: column; gap: 0.375rem; align-items: flex-start; }
.lp-news__date { color: var(--lp-subtle); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.lp-news__pin {
    background: color-mix(in oklab, var(--lp-primary) 14%, transparent);
    color: var(--lp-primary);
    border-radius: 999px;
    padding: 0.1rem 0.625rem;
    font-weight: 600;
    font-size: 0.75rem;
}
.lp-news__title { margin: 0 0 0.25rem; font-size: 1.0625rem; color: var(--lp-heading); }
.lp-news__excerpt { margin: 0; font-size: 0.9rem; color: var(--lp-subtle); }

@media (max-width: 559px) {
    .lp-news__item { grid-template-columns: 1fr; gap: 0.375rem; }
    .lp-news__meta { flex-direction: row; align-items: center; gap: 0.625rem; }
}

/* --- Contact CTA band (homepage; dark surface, one clear action) ------------- */
.lp-cta-band {
    margin-top: var(--lp-sp-6);
    background: var(--lp-dark);
    color: var(--lp-dark-text);
    padding: var(--lp-sp-5) var(--lp-sp-3);
}

.lp-cta-band__inner {
    max-width: var(--lp-max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--lp-sp-4);
}

.lp-cta-band__title {
    margin: 0 0 0.375rem;
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    letter-spacing: -0.02em;
    color: #fff;
}
.lp-cta-band__lead { margin: 0; color: color-mix(in oklab, var(--lp-dark-text) 78%, transparent); }

.lp-cta-band__actions { display: flex; align-items: center; gap: var(--lp-sp-3); flex-wrap: wrap; }
.lp-cta-band__phone {
    color: #fff !important;
    font-weight: 600;
    font-size: 1.0625rem;
    font-variant-numeric: tabular-nums;
}

/* --- Contact page ------------------------------------------------------------- */
.lp-page-head { padding-bottom: 0; }
.lp-page-head__title { font-size: clamp(1.9rem, 4vw, 2.5rem); }

.lp-contact-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(280px, 1.15fr);
    gap: var(--lp-sp-3);
    align-items: start;
}
@media (max-width: 720px) {
    .lp-contact-grid { grid-template-columns: 1fr; }
}

.lp-contact {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-r-lg);
    padding: 1.5rem 1.375rem;
    display: flex;
    flex-direction: column;
    gap: var(--lp-sp-2);
    box-shadow: var(--lp-shadow-sm);
}

.lp-contact__title { margin: 0 0 0.125rem; font-size: 1.1rem; font-weight: 600; color: var(--lp-heading); }

.lp-contact__row {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin: 0;
    font-size: 0.95rem;
}
.lp-contact__row .material-symbols-outlined { color: var(--lp-primary); font-size: 22px; }

.lp-contact-form {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-r-lg);
    padding: 1.625rem 1.5rem;
    box-shadow: var(--lp-shadow-md);
    display: flex;
    flex-direction: column;
}

.lp-contact-form__title { margin: 0 0 0.75rem; font-size: 1.1rem; font-weight: 600; color: var(--lp-heading); }

.lp-contact-form label {
    display: block;
    margin: 0.75rem 0 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--lp-heading);
}
.lp-contact-form label:first-of-type { margin-top: 0; }

.lp-contact-form input[type="text"],
.lp-contact-form input[type="email"],
.lp-contact-form textarea {
    width: 100%;
    padding: 0.5625rem 0.75rem;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-r-sm);
    background: var(--lp-bg);
    color: var(--lp-heading);
    font: inherit;
}
.lp-contact-form input:focus-visible, .lp-contact-form textarea:focus-visible {
    outline: 2px solid var(--lp-primary);
    outline-offset: -1px;
}
.lp-contact-form textarea { resize: vertical; min-height: 8rem; }

.lp-contact-form button[type="submit"] { margin-top: 1.125rem; align-self: flex-start; }

.lp-contact-form__note {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    color: var(--lp-subtle);
}

.lp-contact-form .errorlist {
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.8125rem;
}
.lp-form-error {
    color: #b91c1c;
    background: #fee2e2;
    border-radius: var(--lp-r-sm);
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}
.lp-form-error p { margin: 0; }

/* Honeypot — visually hidden (not display:none, which some bots detect and
 * skip filling; off-screen positioning still gets crawled by simple bots). */
.lp-hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- Thank-you state ----------------------------------------------------------- */
.lp-thanks { display: flex; justify-content: center; padding-bottom: var(--lp-sp-5); }

.lp-thanks__card {
    max-width: 520px;
    width: 100%;
    text-align: center;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-r-lg);
    box-shadow: var(--lp-shadow-md);
    padding: var(--lp-sp-5) var(--lp-sp-4);
}

.lp-thanks__icon {
    font-size: 44px;
    color: var(--lp-primary);
    background: color-mix(in oklab, var(--lp-primary) 12%, transparent);
    border-radius: 9999px;
    padding: 0.75rem;
}

.lp-thanks__title {
    margin: var(--lp-sp-3) 0 0.5rem;
    font-size: clamp(1.5rem, 3.5vw, 1.9rem);
    letter-spacing: -0.02em;
    color: var(--lp-heading);
    line-height: 1.2;
}

.lp-thanks__lead { margin: 0; color: var(--lp-subtle); }

.lp-thanks__actions {
    margin-top: var(--lp-sp-4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--lp-sp-2);
}
.lp-thanks__phone { margin: 0; font-size: 0.9rem; color: var(--lp-subtle); }

/* --- Cookie notice ------------------------------------------------------------ */
.lp-cookie-notice {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem var(--lp-sp-3);
    background: var(--lp-surface);
    border-top: 1px solid var(--lp-border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}
.lp-cookie-notice__text { margin: 0; font-size: 0.875rem; color: var(--lp-text); max-width: 720px; }
.lp-cookie-notice__form { margin: 0; flex-shrink: 0; }

/* --- Footer --------------------------------------------------------------------------- */
.lp-footer {
    margin-top: var(--lp-sp-6);
    border-top: 1px solid var(--lp-border);
    background: color-mix(in oklab, var(--lp-heading) 4%, var(--lp-bg));
    padding: var(--lp-sp-4) var(--lp-sp-3) var(--lp-sp-3);
    font-size: 0.875rem;
    color: var(--lp-subtle);
}
/* the dark CTA band already closes the homepage — footer follows tight
 * (graceful without :has(): the default top margin simply remains) */
.lp:has(.lp-cta-band) .lp-footer { margin-top: 0; }

.lp-footer__inner {
    max-width: var(--lp-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--lp-sp-3) var(--lp-sp-4);
}
.lp-footer__col { display: flex; flex-direction: column; gap: 0.375rem; align-items: flex-start; }
.lp-footer__name { font-weight: 700; color: var(--lp-heading); }
.lp-footer__tagline { color: var(--lp-subtle); font-size: 0.85rem; }
.lp-footer__head {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lp-subtle);
    margin-bottom: 0.25rem;
}
.lp-footer__line { color: var(--lp-text); font-size: 0.875rem; }
.lp-footer__col a { color: var(--lp-text); }
.lp-footer__col a:hover { color: var(--lp-primary); text-decoration: none; }
.lp-footer__legal {
    max-width: var(--lp-max);
    margin: var(--lp-sp-3) auto 0;
    padding-top: var(--lp-sp-2);
    border-top: 1px solid var(--lp-border);
    font-size: 0.8rem;
}

@media (max-width: 560px) {
    .lp-hero { padding: var(--lp-sp-5) 1rem var(--lp-sp-4); }
    .lp-section { padding-top: var(--lp-sp-4); }
    .lp-footer__inner { grid-template-columns: 1fr; gap: var(--lp-sp-3); }
}
