/* Concept A — shared LP base stylesheet.
   Scoped under .lp-page so nothing bleeds into the rest of the theme. */

.lp {
    --navy: var(--color-brand-corporate-blue, #00447c);
    --navy-dark: #003156;
    --ink: #112337;
    --body: var(--color-brand-dark-grey, #565a5c);
    --sky: #b2dbed;
    --sky-tint: #eaf4fa;
    --paper: var(--color-primary-white, #fff);
    --mist: var(--color-brand-light-grey, #f5f5f5);
    --line: #dfe5ea;
    --font-sans: var(--font-family-main, 'Clarity City', 'Inter', -apple-system, 'Segoe UI', sans-serif);
    --font-mono: 'Clarity City', ui-monospace, monospace;
    --maxw: 1280px;
}

.lp-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

/* The theme's skip-link CSS is queued by the component after wp_head(), so
   restate the hiding rules here to avoid a flash of the link on first paint. */
.lp>.skip-link {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden;
    height: 1px;
    width: 1px;
    word-wrap: normal;
    color: var(--color-primary-black)
}

.lp>.skip-link:focus-visible {
    overflow: visible;
    position: unset !important;
    height: unset;
    width: unset;
    clip: unset
}

.lp {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--paper);
    font-size: 16.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased
}

.lp-page img {
    display: block;
    max-width: 100%;
    height: auto
}

.lp-page :where(a:not(.btn)) {
    color: var(--navy)
}

.lp-page h1,
.lp-page h2,
.lp-page h3 {
    line-height: 1.15;
    letter-spacing: -.015em;
    text-wrap: balance
}

.lp-page :focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 2px;
    border-radius: 2px
}

#quote,
#main-content,
#samples {
    scroll-margin-top: 96px
}

.topbar :focus-visible,
.lp-page .final :focus-visible,
.sticky-cta :focus-visible,
footer.lp-page :focus-visible {
    outline-color: #fff
}

/* ============ LP BASE (Concept A) ============ */
/* ---------- utility bar ---------- */
.topbar {
    background: var(--navy);
    color: #fff
}

.topbar-in {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 7px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px
}

.topbar .tag {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .92
}

.topbar a {
    color: #fff;
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex: none
}

.topbar a:hover {
    text-decoration: underline
}

/* ---------- header ---------- */
.admin-bar .lp header.site {
    top: 32px
}

.admin-bar .lp .rail {
    top: 124px
}

header.site {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line)
}

.header-in {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy)
}

.logo svg path {
    fill: currentColor
}

.logo .mark svg {
    width: 32px;
    height: 32px;
    display: block
}

.logo .word svg {
    height: 22px;
    width: auto;
    display: block
}

.header-cta {
    display: flex;
    gap: 12px;
    align-items: center
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 15.5px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: 3px;
    padding: 13px 26px;
    min-height: 48px;
    transition: background .15s, color .15s, border-color .15s
}

.btn-primary {
    background: var(--navy);
    color: #fff
}

.btn-primary:hover {
    background: var(--navy-dark)
}

.btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--navy)
}

.btn-ghost:hover {
    background: var(--sky-tint)
}

.btn-inverse {
    background: #fff;
    color: var(--navy)
}

.btn-inverse:hover {
    background: var(--sky-tint)
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16.5px
}

/* ---------- layout ---------- */
.layout {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 396px;
    gap: 56px;
    align-items: start
}

.rail {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 92px
}

.content {
    grid-column: 1;
    grid-row: 1;
    min-width: 0
}

/* ---------- form rail ---------- */
.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 10px 34px rgba(17, 35, 55, .09);
    overflow: hidden
}

.form-head {
    background: var(--navy);
    color: #fff;
    padding: 18px 22px
}

.lp-page .form-head h2 {
    font-size: 20px;
    font-weight: 500;
    color: #fff
}

.form-head p {
    font-size: 13px;
    opacity: .85;
    margin-top: 2px
}

.form-body {
    padding: 20px 22px 22px
}

.form-alt {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 14px;
    color: var(--body)
}

.form-alt a {
    font-weight: 400;
    color: var(--navy);
    text-decoration: none;
    white-space: nowrap
}

.form-alt a:hover {
    text-decoration: underline
}

.micro-trust {
    margin-top: 12px;
    text-align: center;
    font-size: 12.5px;
    color: var(--body)
}

/* ---------- content sections ---------- */
.lp-page section {
    padding: 64px 0;
    border-bottom: 1px solid var(--line)
}

.lp-page section:last-of-type {
    border-bottom: none
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 14px
}

.lp-page h1 {
    font-size: clamp(34px, 4.2vw, 50px);
    font-weight: 400;
    color: var(--ink)
}

.lede {
    font-size: 19px;
    color: var(--body);
    margin-top: 18px;
    max-width: 56ch
}

.lp-page h2 {
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 500;
    color: var(--ink)
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 48px;
    align-items: center
}

.split.rev {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr)
}

.split p {
    color: var(--body);
    margin-top: 16px
}

.split p strong {
    color: var(--ink);
    font-weight: 500
}

.frame {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 14px 38px rgba(17, 35, 55, .10)
}

.textlink {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 400;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 2px solid var(--sky);
    padding-bottom: 2px;
    margin-top: 18px
}

.textlink:hover {
    border-color: var(--navy)
}

/* stats */
.callout {
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    margin: 34px 0 8px
}

.callout-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line)
}

.callout-grid .cell {
    background: var(--mist);
    padding: 20px 18px
}

.callout-grid .num {
    font-family: var(--font-mono);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 400;
    color: var(--navy);
    letter-spacing: -.02em
}

.callout-grid .lbl {
    font-size: 13.5px;
    color: var(--body);
    margin-top: 6px;
    line-height: 1.4
}

/* sample offer */
.offer {
    background: var(--sky-tint);
    padding: 56px 0
}

.offer-in {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap
}

.offer h2 {
    font-size: clamp(24px, 2.6vw, 31px);
    max-width: 24ch
}

.offer p {
    color: var(--body);
    margin-top: 10px;
    max-width: 52ch
}

/* ---------- formats strip ---------- */
.fmt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 34px
}

.fmt {
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column
}

.fmt img {
    width: 100%;
    aspect-ratio: 505/547;
    height: auto;
    object-fit: cover;
    display: block
}

.fmt .cap {
    padding: 13px 16px;
    font-weight: 400;
    font-size: 15px;
    color: var(--ink)
}

@media (max-width:1020px) {
    .fmt-grid {
        grid-template-columns: 1fr 1fr
    }
}

/* testimonial */
.quote-block {
    max-width: 820px
}

.quote-block .mark {
    font-size: 64px;
    line-height: .6;
    color: var(--sky);
    font-family: Georgia, serif
}

.quote-block blockquote {
    font-size: clamp(20px, 2.3vw, 25px);
    line-height: 1.5;
    color: var(--ink);
    font-weight: 400;
    margin-top: 18px
}

.quote-block cite {
    display: block;
    margin-top: 16px;
    font-style: normal;
    font-size: 14.5px;
    color: var(--body)
}

.quote-block cite strong {
    color: var(--ink)
}

/* FAQ */
.faq details {
    border-bottom: 1px solid var(--line)
}

.faq details:first-of-type {
    border-top: 1px solid var(--line)
}

.faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 19px 4px;
    font-weight: 500;
    font-size: 16.5px;
    color: var(--ink)
}

.faq summary::-webkit-details-marker {
    display: none
}

.faq summary::after {
    content: "+";
    font-family: var(--font-mono);
    font-size: 20px;
    color: var(--navy);
    flex: none;
    transition: transform .15s
}

.faq details[open] summary::after {
    transform: rotate(45deg)
}

.faq .a {
    padding: 0 40px 20px 0;
    color: var(--body);
    font-size: 15.5px
}

/* final cta */
.final {
    background: var(--ink);
    color: #fff;
    padding: 72px 0
}

.final-in {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center
}

.final h2 {
    color: #fff
}

.final p {
    color: rgba(255, 255, 255, .78);
    margin-top: 14px
}

/* The phone link sits on the dark CTA band. Without this it inherits the
   default navy link colour and disappears against the background. */
.lp-page .final p a {
    color: var(--sky);
    text-decoration: none;
    border-bottom: 1px solid rgba(178, 219, 237, .45)
}

.lp-page .final p a:hover {
    color: #fff;
    border-bottom-color: #fff
}

.final .btn {
    margin-top: 26px
}

/* footer */
footer.lp-page {
    background: var(--navy);
    color: rgba(255, 255, 255, .85);
    padding: 44px 0
}

.foot-in {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    align-items: flex-start
}

footer.lp-page .logo {
    color: #fff
}

.foot-meta {
    font-size: 12.5px;
    line-height: 1.7;
    opacity: .75
}

.foot-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px
}

.foot-links a {
    color: #fff;
    text-decoration: none;
    opacity: .88
}

.foot-links a:hover {
    opacity: 1;
    text-decoration: underline
}

/* mobile sticky bar */
.mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: none;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(17, 35, 55, .10)
}

.mobile-bar .btn {
    min-height: 48px;
    padding: 10px 10px;
    font-size: 14.5px;
    white-space: nowrap
}

@media (max-width:1020px) {

    /* On tablet/mobile the form is the SECOND section (right after the hero)
     instead of the first. .content uses display:contents so its sections and
     the form rail become siblings in one flex column and can be ordered. */
    .layout {
        display: flex;
        flex-direction: column;
        gap: 0
    }

    .content {
        display: contents
    }

    .content>section:nth-of-type(1) {
        order: 1
    }

    /* hero */
    .content>section:nth-of-type(2) {
        order: 2
    }

    /* first-section callout row */
    .rail {
        order: 3;
        position: static;
        max-width: none;
        grid-column: auto;
        grid-row: auto;
        padding: 6px 0 34px;
        border-bottom: 1px solid var(--line)
    }

    .content>section:nth-of-type(n+3) {
        order: 4
    }

    /* all later sections */
    .content>.offer {
        order: 4
    }

    .content>.final {
        order: 5
    }

    .split,
    .split.rev {
        grid-template-columns: 1fr;
        gap: 26px
    }

    .split.rev .frame {
        order: -1
    }

    .callout-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:782px) {
    .admin-bar .lp header.site {
        top: 46px
    }
}

@media (max-width:760px) {
    .topbar .tag {
        font-size: 10px;
        letter-spacing: .08em;
        line-height: 1.25;
        max-width: 52%
    }

    .topbar a {
        font-size: 13px;
        gap: 6px
    }

    .topbar-in {
        padding: 8px 14px
    }

    .mobile-bar {
        display: grid
    }

    .lp {
        padding-bottom: 74px
    }

    .header-in {
        padding: 12px 16px
    }

    .topbar-in {
        padding: 7px 16px
    }

    .header-cta .btn-ghost {
        display: none
    }

    .layout,
    .offer-in {
        padding-left: 16px;
        padding-right: 16px
    }

    .lp-page section {
        padding: 48px 0
    }
}