/* Scoped to KI-Miete's landing page; existing legal pages retain their styles. */
body.landing-refined {
    --refine-border: #dfe5ec;
    --refine-muted: #536174;
}
.landing-refined .hero-section {
    padding: 144px 0 64px;
}
.landing-refined .hero-section > .container > .py-5 { padding-block: 0 !important; }
body.landing-refined .hero-centered .hero-headline {
    min-height: 0;
    padding: 0;
}
.landing-refined .hero-copy { max-width: 720px; }
.landing-refined .hero-copy h1 {
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
body.landing-refined .hero-copy .lead {
    max-width: 650px;
    margin-inline: auto;
    line-height: 1.65;
    text-align: center !important;
}
body.landing-refined .hero-animation { margin-top: 40px; max-width: 640px; }
body.landing-refined .content-section,
body.landing-refined .vision-section {
    border: 1px solid var(--refine-border);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(23, 53, 84, 0.035) !important;
    padding-block: 64px !important;
}
body.landing-refined .vision-section { margin-top: 0; padding-block: 40px !important; }
.landing-refined .section-title {
    font-size: clamp(1.75rem, 2.7vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
body.landing-refined #why-different .difference-copy-column,
body.landing-refined #why-different .difference-copy-column + .difference-copy-column {
    padding: 24px 0;
}
.landing-refined #why-different .difference-copy-grid { column-gap: 40px; }
.landing-refined #why-different .difference-copy-column header { align-items: flex-start; }
.landing-refined #why-different .difference-copy-column h3 { line-height: 1.3; text-wrap: balance; }
body.landing-refined #how-it-works .text-block p:first-child {
    font-size: 1.125rem;
    line-height: 1.4;
    font-weight: 700;
    color: #173554;
    margin-bottom: 8px !important;
}
body.landing-refined main .btn {
    min-height: 48px;
    padding: 12px 20px !important;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}
body.landing-refined main .btn-outline-dark {
    background: transparent !important;
    border: 1px solid #a8b5c5 !important;
    color: #173554 !important;
}
body.landing-refined :is(a, button):focus-visible {
    outline: 3px solid #00509d !important;
    outline-offset: 4px;
}
.landing-refined #pilot .pricing-card {
    border: 1px solid var(--refine-border);
    border-radius: 16px;
    box-shadow: none;
}
body.landing-refined .footer > .container { max-width: 1080px; width: 90%; padding: 0 12px; }
body.landing-refined .footer-content { padding: 24px 0; gap: 8px; }
body.landing-refined .footer-legal-links a { padding-block: 8px; }
@media (min-width: 768px) and (max-width: 991.98px) {
    body.landing-refined #how-it-works .how-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: 'text visual';
        gap: 24px;
    }
    body.landing-refined #how-it-works .visual-card { aspect-ratio: auto; min-height: 240px; overflow: visible; }
    body.landing-refined #how-it-works .visual-canvas { min-height: 240px; overflow: visible; }
    body.landing-refined #how-it-works .document-proof { transform: scale(.85); transform-origin: center; }
    body.landing-refined #pilot .row { display: grid; grid-template-columns: 1fr; gap: 16px; }
    body.landing-refined #pilot .row > div { width: 100%; margin-bottom: 0 !important; }
    body.landing-refined #pilot .pricing-features ul { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
    body.landing-refined #pilot .pricing-features li { margin: 0; }
    body.landing-refined #pilot .row + div { margin-top: 24px !important; }
}
@media (max-width: 767.98px) {
    body.landing-refined .hero-section { padding: 120px 0 40px; }
    body.landing-refined .hero-copy .lead { text-align: left !important; }
    body.landing-refined .content-section { padding-block: 40px !important; }
    body.landing-refined .vision-section { padding-block: 32px !important; }
    body.landing-refined .section-title,
    body.landing-refined #integration .section-title,
    body.landing-refined #pilot .section-title,
    body.landing-refined #control .control-title-lockup .section-title {
        font-size: 1.75rem;
        line-height: 1.2;
        text-align: left !important;
    }
    body.landing-refined .mobile-title-line { display: inline !important; white-space: normal !important; }
    body.landing-refined #control .control-title-lockup { display: block; }
    body.landing-refined #control .control-title-icon { margin-bottom: 16px; }
    body.landing-refined #control > .container > .text-muted { padding-left: 0; }
    body.landing-refined #how-it-works .section-title-icon { display: none; }
    body.landing-refined #why-different .difference-copy-column { padding-block: 20px; }
    body.landing-refined #contact { padding-block: 32px !important; }
}

/* Correction pass: inherited height/list constraints and anchor clearance. */
body.landing-refined .hero-section { min-height: 0; }
body.landing-refined .content-section[id] { scroll-margin-top: 104px; }
body.landing-refined .footer > .container {
    width: calc(90% - 1.8px);
    max-width: 1078.2px;
}
@media (min-width: 768px) and (max-width: 991.98px) {
    body.landing-refined #pilot .pricing-features ul { max-width: none; }
}

/* Fresh round 1, pass 1: six bounded refinements (see evidence issue list). */
body.landing-refined main .btn.btn {
    font-size: 1rem !important;
    padding: 12px 20px !important;
}
body.landing-refined .hero-section .cta-buttons .btn.btn {
    padding: 12px 20px !important;
}
body.landing-refined #contact .btn.btn,
body.landing-refined #preise .btn.btn {
    padding: 12px 20px !important;
}
body.landing-refined #preise .price-line {
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
}
body.landing-refined #contact h2 {
    font-size: clamp(1.75rem, 2.7vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
@media (max-width: 991.98px) {
    body.landing-refined #control .suite-flow { grid-template-columns: 1fr; gap: 24px; }
    body.landing-refined #control .suite-product-card {
        grid-template-columns: 38px minmax(0, 1fr);
        grid-template-rows: auto auto;
        row-gap: 0;
    }
    body.landing-refined #control .suite-product-icon { grid-row: 1 / 3; }
}
@media (max-width: 767.98px) {
    body.landing-refined #integration .text-block { padding: 0; }
}
@media (min-width: 992px) {
    body.landing-refined #how-it-works .how-grid { row-gap: 40px; }
    body.landing-refined #how-it-works .visual-card { aspect-ratio: auto; height: 260px; }
}

/* Fresh round 1, correction pass: complete static table and closing line measure. */
body.landing-refined #contact h2 { max-width: 720px; margin-inline: auto; }
@media (prefers-reduced-motion: reduce) and (min-width: 768px) {
    body.landing-refined #how-it-works .excel-rows { height: auto; overflow: visible; }
    body.landing-refined #how-it-works .excel-rows-container { animation: none; }
}

/* Fresh round 2, pass 1: closing rhythm and stacked control alignment. */
body.landing-refined #contact .container > .py-5 { padding-block: 0 !important; }
@media (max-width: 991.98px) {
    body.landing-refined #control .suite-product-card { padding-inline: 0; }
}
@media (max-width: 767.98px) {
    /* The long closing question needs a smaller measure than short section titles. */
    body.landing-refined #contact h2 { font-size: 1.5rem; }
}

/* Keep the closing mobile Demo CTA centered within its section. */
@media (max-width: 767.98px) {
    body.landing-refined #contact a.btn {
        display: flex;
        width: fit-content !important;
        margin-inline: auto;
    }
}
