/* ===========================================================
   Costino — landing + auth (premium, restauratorski)
   Paleta spójna z wnętrzem apki.
   =========================================================== */
svg.icon { display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
.cl-hero-note span { display: inline-flex; align-items: center; gap: 6px; }
:root {
    --cl-green: #285A42;
    --cl-green-dark: #244d3a;
    --cl-beige: #F2EAD7;
    --cl-beige-2: #E8DAC0;
    --cl-gold: #EAD6A7;
    --cl-ink: #151515;
    --cl-muted: #6b6b6b;
    --cl-line: #ece7da;
}

/* Landing/auth muszą się przewijać — nadpisujemy globalny overflow:hidden z app.css */
html, body { overflow-y: auto !important; height: auto !important; }
html { scroll-behavior: smooth; }
section[id], footer[id] { scroll-margin-top: 88px; }

.cl-root {
    color: var(--cl-ink);
    background: #fff;
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
}
.cl-root * { box-sizing: border-box; }

/* ikony SVG */
.cl-value-icon { color: var(--cl-green); }
.cl-value-icon svg { width: 26px; height: 26px; }
.cl-feature svg { width: 22px; height: 22px; color: var(--cl-green); flex: 0 0 auto; }
.cl-step-num svg { width: 22px; height: 22px; color: #fff; }

.cl-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- HEADER ---------- */
.cl-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cl-line);
}
.cl-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 18px;
}
.cl-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.cl-brand img { height: 38px; width: auto; display: block; }
.cl-nav { display: flex; align-items: center; gap: 28px; }
.cl-nav a {
    text-decoration: none;
    color: var(--cl-ink);
    font-weight: 600;
    font-size: 15px;
    opacity: .8;
    transition: opacity .15s ease;
}
.cl-nav a:hover { opacity: 1; }
.cl-header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- BUTTONS ---------- */
.cl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform .06s ease, filter .15s ease, background .15s ease, color .15s ease;
    white-space: nowrap;
}
.cl-btn:active { transform: translateY(1px); }
.cl-btn-primary { background: var(--cl-green); color: #fff; }
.cl-btn-primary:hover { background: var(--cl-green-dark); }
.cl-btn-ghost { background: transparent; color: var(--cl-green); border-color: rgba(46,97,73,.35); }
.cl-btn-ghost:hover { background: rgba(46,97,73,.06); }
.cl-btn-lg { height: 54px; padding: 0 30px; font-size: 16.5px; }
.cl-btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- HERO ---------- */
.cl-hero {
    background:
        radial-gradient(1100px 480px at 78% -8%, rgba(46,97,73,.10), transparent 60%),
        linear-gradient(180deg, var(--cl-beige), #fff 78%);
    padding: 84px 0 72px;
}
.cl-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
}
.cl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(46,97,73,.10);
    color: var(--cl-green);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .02em;
    margin-bottom: 20px;
}
.cl-hero h1 {
    margin: 0 0 18px;
    font-size: 52px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.02em;
}
.cl-hero h1 .accent { color: var(--cl-green); }
.cl-hero-sub {
    font-size: 19px;
    line-height: 1.5;
    color: var(--cl-muted);
    max-width: 540px;
    margin: 0 0 28px;
}
.cl-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.cl-hero-note { font-size: 14px; color: var(--cl-muted); display: flex; gap: 18px; flex-wrap: wrap; }
.cl-hero-note span { display: inline-flex; align-items: center; gap: 6px; }

/* hero visual: mock pulpitu */
.cl-mock {
    background: #fff;
    border: 1px solid var(--cl-line);
    border-radius: 22px;
    box-shadow: 0 30px 60px rgba(46,97,73,.16);
    padding: 18px;
    transform: rotate(.6deg);
}
.cl-mock-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.cl-mock-bar i { width: 11px; height: 11px; border-radius: 999px; background: var(--cl-beige-2); display: block; }
.cl-mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.cl-mock-kpi { background: var(--cl-beige); border-radius: 14px; padding: 12px; }
.cl-mock-kpi.green { background: rgba(46,97,73,.08); }
.cl-mock-kpi-l { font-size: 11px; color: var(--cl-muted); font-weight: 600; }
.cl-mock-kpi-v { font-size: 20px; font-weight: 900; margin-top: 4px; }
.cl-mock-kpi-v.green { color: var(--cl-green); }
.cl-mock-chart { height: 120px; border-radius: 14px; background: var(--cl-beige); padding: 12px; display: flex; align-items: flex-end; gap: 8px; }
.cl-mock-chart i { flex: 1; background: linear-gradient(180deg, var(--cl-green), #4e8268); border-radius: 6px 6px 0 0; display: block; opacity: .85; }

/* ---------- SECTIONS ---------- */
.cl-section { padding: 76px 0; }
.cl-section.alt { background: var(--cl-beige); }
.cl-section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.cl-section-head h2 { font-size: 36px; font-weight: 900; letter-spacing: -.02em; margin: 0 0 12px; }
.cl-section-head p { font-size: 17px; color: var(--cl-muted); margin: 0; line-height: 1.5; }

/* value cards */
.cl-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cl-value {
    background: #fff;
    border: 1px solid var(--cl-line);
    border-radius: 18px;
    padding: 26px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.cl-value:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(46,97,73,.10); }
.cl-value-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; background: rgba(46,97,73,.10); margin-bottom: 16px;
}
.cl-value h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.cl-value p { margin: 0; color: var(--cl-muted); font-size: 15px; line-height: 1.5; }

/* steps */
.cl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cl-step { text-align: center; padding: 10px; }
.cl-step-num {
    width: 46px; height: 46px; margin: 0 auto 14px;
    border-radius: 999px; background: var(--cl-green); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 19px;
}
.cl-step h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.cl-step p { margin: 0; color: var(--cl-muted); font-size: 15px; line-height: 1.5; }

/* features chips */
.cl-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cl-feature {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid var(--cl-line);
    border-radius: 14px; padding: 16px 18px; font-weight: 700; font-size: 15px;
}
.cl-feature span { font-size: 22px; }

/* pricing */
.cl-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.cl-plan {
    background: #fff; border: 1px solid var(--cl-line); border-radius: 22px;
    padding: 30px 26px; display: flex; flex-direction: column;
}
.cl-plan.featured { border-color: var(--cl-green); box-shadow: 0 20px 50px rgba(46,97,73,.14); position: relative; }
.cl-plan-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--cl-green); color: #fff; font-size: 12px; font-weight: 800;
    padding: 5px 14px; border-radius: 999px;
}
.cl-plan h3 { margin: 0 0 6px; font-size: 20px; font-weight: 900; }
.cl-plan-desc { color: var(--cl-muted); font-size: 14px; margin: 0 0 18px; }
.cl-plan-price { font-size: 40px; font-weight: 900; letter-spacing: -.02em; }
.cl-plan-price small { font-size: 15px; font-weight: 600; color: var(--cl-muted); }
.cl-plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.cl-plan li { display: flex; gap: 10px; font-size: 14.5px; color: #333; }
.cl-plan li::before { content: "✓"; color: var(--cl-green); font-weight: 900; }
.cl-plan .cl-btn { margin-top: auto; width: 100%; }
.cl-pricing-note { text-align: center; color: var(--cl-muted); font-size: 13px; margin-top: 18px; }

/* Cennik „wkrótce" (czas pilotażu) */
.cl-soon {
    max-width: 620px; margin: 0 auto; text-align: center;
    background: #fff; border: 1px solid var(--cl-line); border-radius: 18px;
    padding: 36px 32px; box-shadow: 0 1px 2px rgba(31,31,31,.04), 0 14px 34px rgba(46,97,73,.05);
}
.cl-soon-badge {
    display: inline-block; background: var(--cl-green); color: #fff;
    font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    padding: 6px 16px; border-radius: 999px; margin-bottom: 16px;
}
.cl-soon-text { color: var(--cl-muted); font-size: 16px; line-height: 1.6; margin: 0; }
.cl-soon-text strong { color: var(--cl-ink); }
.cl-soon-mail { margin-top: 22px; font-size: 16px; letter-spacing: .01em; }
.cl-foot-mail {
    display: inline-block; margin-top: 4px; color: var(--cl-green);
    font-weight: 700; text-decoration: none;
}
.cl-foot-mail:hover { text-decoration: underline; }

/* CTA band */
.cl-ctaband { background: var(--cl-green); color: #fff; padding: 64px 0; text-align: center; }
.cl-ctaband h2 { font-size: 34px; font-weight: 900; margin: 0 0 12px; letter-spacing: -.02em; }
.cl-ctaband p { font-size: 17px; opacity: .9; margin: 0 0 26px; }
.cl-ctaband .cl-btn-primary { background: #fff; color: var(--cl-green); }
.cl-ctaband .cl-btn-primary:hover { background: var(--cl-beige); }

/* footer */
.cl-footer { background: #fff; border-top: 1px solid var(--cl-line); padding: 48px 0 28px; }
.cl-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.cl-footer img { height: 34px; margin-bottom: 12px; }
.cl-footer p { color: var(--cl-muted); font-size: 14px; line-height: 1.6; margin: 0; }
.cl-footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--cl-muted); margin: 0 0 12px; }
.cl-footer a { display: block; color: var(--cl-ink); text-decoration: none; font-size: 14.5px; margin-bottom: 8px; opacity: .85; }
.cl-footer a:hover { opacity: 1; color: var(--cl-green); }
.cl-foot-bottom { border-top: 1px solid var(--cl-line); margin-top: 34px; padding-top: 18px; text-align: center; color: var(--cl-muted); font-size: 13px; }

/* ---------- AUTH ---------- */
.cl-auth {
    min-height: calc(100vh - 72px);
    display: flex; align-items: center; justify-content: center;
    padding: 48px 24px;
    background:
        radial-gradient(900px 420px at 50% -10%, rgba(46,97,73,.10), transparent 60%),
        var(--cl-beige);
}
.cl-auth-card {
    width: 100%; max-width: 440px;
    background: #fff; border: 1px solid var(--cl-line);
    border-radius: 24px; padding: 36px 34px;
    box-shadow: 0 30px 60px rgba(46,97,73,.14);
}
.cl-auth-card.wide { max-width: 480px; }
.cl-auth-logo { display: block; height: 40px; margin: 0 auto 18px; }
.cl-auth-title { text-align: center; font-size: 26px; font-weight: 900; margin: 0 0 6px; }
.cl-auth-subtitle { text-align: center; color: var(--cl-muted); font-size: 15px; margin: 0 0 24px; }
.cl-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.cl-field label { font-size: 13.5px; font-weight: 700; color: #333; }
.cl-input {
    height: 46px; padding: 0 14px; border-radius: 12px;
    border: 1px solid rgba(46,97,73,.28); font-size: 15px; outline: none; width: 100%;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.cl-input:focus { border-color: var(--cl-green); box-shadow: 0 0 0 3px rgba(46,97,73,.12); }
.cl-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cl-auth-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 18px; font-size: 14px; }
.cl-auth-row a { color: var(--cl-green); text-decoration: none; font-weight: 600; }
.cl-check { display: inline-flex; align-items: center; gap: 8px; color: var(--cl-muted); cursor: pointer; }
.cl-auth-submit { width: 100%; }
.cl-auth-alt { text-align: center; margin-top: 20px; font-size: 14.5px; color: var(--cl-muted); }
.cl-auth-alt a { color: var(--cl-green); font-weight: 700; text-decoration: none; }
.cl-auth-error {
    background: #fdecea; border: 1px solid #f5c2bd; color: #9b2c20;
    border-radius: 12px; padding: 11px 14px; font-size: 14px; margin-bottom: 16px;
}

.cl-auth-ok {
    background: #eaf6ee; border: 1px solid #bfe3cb; color: #1f6b52;
    border-radius: 12px; padding: 11px 14px; font-size: 14px; margin-bottom: 16px;
}

.cl-auth-info {
    background: var(--cl-beige); border: 1px solid var(--cl-line); color: #5a544a;
    border-radius: 12px; padding: 13px 16px; font-size: 14.5px; line-height: 1.55;
    margin-bottom: 18px;
}

.cl-field-hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--cl-muted); }

/* ---------- Dokumenty prawne (regulamin / polityka / DPA) ---------- */
.cl-legal { background: var(--cl-beige); padding: 48px 16px; min-height: 100vh; }
.cl-legal-card {
    max-width: 820px; margin: 0 auto; background: #fff;
    border: 1px solid var(--cl-line); border-radius: 18px; padding: 44px 48px;
    box-shadow: 0 1px 2px rgba(31,31,31,.04), 0 14px 34px rgba(46,97,73,.05);
    color: #33352f; line-height: 1.65; font-size: 15.5px;
}
.cl-legal-card h1 { font-size: 28px; font-weight: 900; color: var(--cl-ink); margin: 0 0 8px; }
.cl-legal-card h2 { font-size: 19px; font-weight: 800; color: var(--cl-green); margin: 30px 0 10px; }
.cl-legal-card p { margin: 0 0 12px; }
.cl-legal-card ul { margin: 0 0 14px; padding-left: 22px; }
.cl-legal-card li { margin: 0 0 6px; }
.cl-legal-card a { color: var(--cl-green); font-weight: 600; }
.cl-legal-card table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 14px; }
.cl-legal-card th, .cl-legal-card td {
    border: 1px solid var(--cl-line); padding: 9px 12px; text-align: left; vertical-align: top;
}
.cl-legal-card th { background: var(--cl-beige); font-weight: 800; }
.cl-legal-card blockquote {
    margin: 0 0 16px; padding: 12px 16px; background: #fbf3e6;
    border-left: 3px solid var(--cl-gold); color: #6b5e3a; border-radius: 8px; font-size: 14px;
}
.cl-legal-back { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--cl-line); }

/* linki prawne w stopce */
.cl-foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.cl-foot-legal { display: inline-flex; flex-wrap: wrap; gap: 16px; }
.cl-foot-legal a { color: inherit; opacity: .8; text-decoration: none; font-size: 13px; }
.cl-foot-legal a:hover { opacity: 1; text-decoration: underline; }

/* checkbox akceptacji (rejestracja) */
.cl-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; font-size: 14px; line-height: 1.5; color: #55605a; cursor: pointer; }
.cl-check input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--cl-green); flex: 0 0 auto; }
.cl-check a { color: var(--cl-green); font-weight: 600; text-decoration: none; }
.cl-check a:hover { text-decoration: underline; }

/* ---------- ONBOARDING ---------- */
.cl-onb-dots { display: flex; justify-content: center; gap: 8px; margin: 0 0 24px; }
.cl-onb-dots span { width: 30px; height: 6px; border-radius: 999px; background: rgba(46,97,73,.16); transition: background .15s ease; }
.cl-onb-dots span.on { background: var(--cl-green); }
.cl-onb-step { min-height: 160px; }
.cl-onb-h { font-size: 19px; font-weight: 800; margin: 0 0 14px; text-align: center; }
.cl-onb-hint { font-size: 13.5px; color: var(--cl-muted); margin: 6px 0; text-align: center; }
.cl-onb-opt { color: var(--cl-muted); font-weight: 400; font-size: 12.5px; }
.cl-onb-choices { display: flex; flex-direction: column; gap: 12px; }
.cl-onb-choice {
    text-align: left; border: 1.5px solid var(--cl-line); border-radius: 14px;
    padding: 16px; background: #fff; cursor: pointer;
    transition: border-color .12s ease, background .12s ease;
}
.cl-onb-choice:hover { border-color: rgba(46,97,73,.4); }
.cl-onb-choice.active { border-color: var(--cl-green); background: rgba(46,97,73,.05); }
.cl-onb-choice-t { font-weight: 800; font-size: 15.5px; margin-bottom: 4px; }
.cl-onb-choice-d { font-size: 13.5px; color: var(--cl-muted); line-height: 1.45; }
.cl-onb-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 12px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 920px) {
    .cl-hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .cl-hero h1 { font-size: 40px; }
    .cl-mock { transform: none; }
    .cl-values, .cl-steps, .cl-pricing { grid-template-columns: 1fr; }
    .cl-features { grid-template-columns: repeat(2, 1fr); }
    .cl-foot-grid { grid-template-columns: 1fr 1fr; }
    .cl-nav { display: none; }
}
@media (max-width: 520px) {
    .cl-features { grid-template-columns: 1fr; }
    .cl-field-row { grid-template-columns: 1fr; }
    .cl-hero h1 { font-size: 33px; }

    /* Nagłówek: żeby przyciski nie wychodziły poza ekran */
    .cl-container { padding: 0 16px; }
    .cl-header-inner { gap: 10px; }
    .cl-header-actions { gap: 8px; }
    .cl-header-actions .cl-btn-sm { padding: 0 12px; font-size: 13px; }
    .cl-brand img { height: 32px; }
}

/* ===== Formularz zgłoszenia do pilotażu (landing) ===== */
.cl-pilot-form { display:flex; flex-direction:column; gap:10px; max-width:440px; margin:6px auto 0; text-align:left; }
.cl-input { width:100%; box-sizing:border-box; padding:12px 14px; border:1px solid #D3D7DD; border-radius:12px; font-size:15px; background:#fff; font-family:inherit; }
.cl-input:focus { outline:none; border-color:#285A42; box-shadow:0 0 0 3px rgba(40,90,66,.12); }
.cl-pilot-textarea { min-height:90px; resize:vertical; }
.cl-pilot-err { color:#b91c1c; font-size:14px; }
.cl-pilot-ok { padding:16px; border-radius:12px; background:#dcfce7; color:#166534; font-weight:800; text-align:center; }
