/* Landing programu partnerskiego - identyfikacja CalmSite
   Wartości pobrane z arkuszy calmsite.pl:
   - font: Poppins (nagłówki 600, tekst 300/400)
   - gradient przycisków: 90deg #15A7FA -> #B644FB (elementor-button)
   - gradient pomocniczy: 90deg #2C83B5 -> #15A7FA
   - akcent zielony: #61CE70, tekst: #716C80, radius przycisków 10px, kart 15-20px */

:root {
    --cs-blue: #15A7FA;
    --cs-blue-dark: #2C83B5;
    --cs-violet: #B644FB;
    --cs-green: #61CE70;
    --cs-text: #716C80;
    --cs-dark: #1A1A1A;
    --cs-bg: #F6F7FA;
    --cs-grad: linear-gradient(90deg, #15A7FA 0%, #B644FB 100%);
    --cs-grad-soft: linear-gradient(90deg, #2C83B5 0%, #15A7FA 100%);
}

body.landing {
    font-family: "Poppins", -apple-system, Sans-serif;
    color: var(--cs-text);
    background: #fff;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    display: block;
    padding: 0;
}
.landing h1, .landing h2, .landing h3 {
    font-family: "Poppins", Sans-serif;
    color: var(--cs-dark);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
}
.landing .wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Przyciski w stylu elementor-button calmsite.pl */
.landing .cs-btn {
    display: inline-block;
    background-image: var(--cs-grad);
    color: #fff !important;
    font-family: "Poppins", Sans-serif;
    font-weight: 300;
    font-size: 18px;
    padding: 14px 36px;
    border-radius: 10px;
    border: 0;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 8px 22px rgba(21, 167, 250, .25);
}
.landing .cs-btn:hover { transform: scale(1.04); box-shadow: 0 10px 28px rgba(182, 68, 251, .3); }
.landing .cs-btn-outline {
    background-image: none;
    background: transparent;
    color: var(--cs-dark) !important;
    border: 2px solid var(--cs-blue);
    box-shadow: none;
    font-size: 16px;
    padding: 9px 26px;
}
.landing .cs-btn-outline:hover { background: rgba(21, 167, 250, .08); transform: none; box-shadow: none; }

/* Górny pasek - przyklejony, CTA zawsze pod ręką */
.landing .cs-topbar {
    padding: 14px 0;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 14px rgba(26, 26, 26, .07);
}
.landing .cs-topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.landing .cs-topbar img { height: 30px; width: auto; display: block; }
.landing .cs-topbar-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.landing .cs-btn-top { font-size: 16px; padding: 10px 26px; }
.landing .cs-topbar-actions .cs-btn { white-space: nowrap; }
.landing .cs-label-short { display: none; }

/* Hero */
.landing .cs-hero {
    background: var(--cs-bg);
    padding: 72px 0 64px;
    text-align: center;
}
.landing .cs-hero h1 {
    font-size: 44px;
    margin: 0 auto 18px;
    max-width: 820px;
}
.landing .cs-hero h1 .grad {
    background: var(--cs-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.landing .cs-hero p { max-width: 640px; margin: 0 auto 30px; font-size: 18px; font-weight: 300; }
.landing .cs-hero .cs-hero-note { font-size: 14px; margin-top: 14px; color: var(--cs-text); }

/* Sekcje */
.landing section { padding: 64px 0; }
.landing .cs-sec-title { text-align: center; font-size: 32px; margin: 0 0 10px; }
.landing .cs-sec-sub { text-align: center; max-width: 620px; margin: 0 auto 40px; font-weight: 300; }
.landing .cs-alt { background: var(--cs-bg); }

/* Zaufanie */
.landing .cs-trust-claim { text-align: center; font-size: 22px; font-weight: 600; color: var(--cs-dark); margin: 40px 0 20px; }
.landing .cs-trust-claim .num {
    background: var(--cs-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 28px;
}
.landing .cs-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 34px 44px; padding: 10px 0 0; }
.landing .cs-logos img { height: 44px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: all .25s; }
.landing .cs-logos img:hover { filter: none; opacity: 1; }

/* Karty */
.landing .cs-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.landing .cs-card {
    background: #fff;
    border-radius: 20px;
    padding: 34px 28px;
    box-shadow: 0 10px 34px rgba(26, 26, 26, .08);
    text-align: center;
}
.landing .cs-card img.ico { width: 84px; height: 84px; margin: 0 auto 14px; display: block; }
.landing .cs-card .cs-rate {
    font-size: 40px;
    font-weight: 700;
    background: var(--cs-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}
.landing .cs-card.cs-card-green .cs-rate { background: linear-gradient(90deg, #2fa757 0%, #61CE70 100%); -webkit-background-clip: text; background-clip: text; }
.landing .cs-card h3 { font-size: 19px; margin: 6px 0 10px; }
.landing .cs-card p { font-size: 14.5px; font-weight: 300; margin: 0; }
.landing .cs-card .cs-badge {
    display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .5px;
    background: rgba(21, 167, 250, .1); color: var(--cs-blue-dark);
    border-radius: 20px; padding: 3px 12px; margin-bottom: 12px; text-transform: uppercase;
}

/* Kroki */
.landing .cs-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.landing .cs-step { text-align: center; padding: 10px 16px; }
.landing .cs-step img { width: 96px; height: 96px; margin: 0 auto 8px; display: block; }
.landing .cs-step .n {
    display: inline-block; background: var(--cs-grad); color: #fff; font-weight: 600;
    width: 30px; height: 30px; line-height: 30px; border-radius: 50%; margin-bottom: 10px; font-size: 14px;
}
.landing .cs-step h3 { font-size: 18px; margin: 0 0 8px; }
.landing .cs-step p { font-size: 14.5px; font-weight: 300; margin: 0; }

/* Kalkulator - karta i dopasowanie stylów symulatora do Poppins */
.landing .cs-calc-card { background: #fff; border-radius: 20px; box-shadow: 0 10px 34px rgba(26, 26, 26, .08); padding: 34px; }
.landing #simulator label { font-family: "Poppins", Sans-serif; color: var(--cs-dark); font-weight: 500; }
.landing #simulator .sim-out .so-value { font-family: "Poppins", Sans-serif; }
.landing #simulator .radio-card:has(input:checked) { border-color: var(--cs-blue); background: rgba(21, 167, 250, .07); }
.landing #simulator input[type=range] { accent-color: var(--cs-blue); }
.landing #simulator .sim-val { color: var(--cs-blue-dark); }
.landing .sim-summary strong {
    background: var(--cs-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* CTA końcowe */
.landing .cs-cta {
    background: var(--cs-grad-soft);
    text-align: center;
    color: #fff;
    padding: 72px 0;
}
.landing .cs-cta h2 { color: #fff; font-size: 32px; margin: 0 0 12px; }
.landing .cs-cta p { font-weight: 300; margin: 0 auto 28px; max-width: 560px; }
.landing .cs-cta .cs-btn { background-image: none; background: #fff; color: var(--cs-blue-dark) !important; box-shadow: 0 8px 26px rgba(0, 0, 0, .18); }

/* Stopka */
.landing .cs-footer { background: #1A1A1A; color: #b9b5c3; padding: 44px 0 30px; font-size: 14px; font-weight: 300; }
.landing .cs-footer .wrap { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.landing .cs-footer img { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 10px; }
.landing .cs-footer a { color: #fff; text-decoration: none; }
.landing .cs-footer a:hover { text-decoration: underline; }
.landing .cs-footer .cs-foot-col { min-width: 200px; }
.landing .cs-footer .cs-foot-bottom { text-align: center; margin-top: 30px; padding-top: 18px; border-top: 1px solid #333; font-size: 12.5px; color: #8d8899; }

/* Trustindex - oryginalny widget z calmsite.pl (hydratacja loader.js + CSS wtyczki).
   Zadnych wlasnych stylow opinii - wyglad 1:1 jak na stronie glownej. */
/* Loader dokleja na koncu body goly div z komunikatem "Widget not found!"
   (probuje potraktowac parametr ?wp-widget jak ID widgetu). To jedyny
   bezklasowy div bezposrednio w body - chowamy go. */
body.landing > div:not([class]) { display: none !important; }

/* RWD */
@media (max-width: 900px) {
    .landing .cs-cards, .landing .cs-steps { grid-template-columns: 1fr; }
    .landing .cs-hero h1 { font-size: 32px; }
    .landing .cs-sec-title { font-size: 26px; }
    .landing section { padding: 48px 0; }
    .landing .cs-calc-card { padding: 20px; }
}
@media (max-width: 520px) {
    .landing .cs-hero h1 { font-size: 27px; }
    .landing .cs-hero { padding: 48px 0 40px; }
    .landing .cs-logos img { height: 34px; }
    .landing .cs-btn { font-size: 16px; padding: 12px 28px; }
    /* pasek: wszystko w jednej linii, kompaktowo */
    .landing .cs-topbar { padding: 10px 0; }
    .landing .cs-topbar .wrap { flex-wrap: nowrap; gap: 8px; padding: 0 12px; }
    .landing .cs-topbar img { height: 20px; }
    .landing .cs-topbar-actions { gap: 6px; flex-wrap: nowrap; }
    .landing .cs-topbar-actions .cs-btn-outline { font-size: 12.5px; padding: 8px 12px; border-width: 1px; }
    .landing .cs-topbar-actions .cs-btn-top { font-size: 12.5px; padding: 9px 16px; }
    .landing .cs-label-full { display: none; }
    .landing .cs-label-short { display: inline; }
}
