/* =============================================================================
   Checklist Landing  (page-checklist.php)
   Uses global header/footer. CSS tokens scoped to .cl-page (body class).
   All component classes prefixed cl- to avoid conflicts with Bootstrap/global.
   ============================================================================= */

/* ─── TOKENS ─── */
.cl-page {
    --lime:        #c2f971;
    --lime-dark:   #5c7a00;
    --lime-glow:   rgba(194,249,113,.28);
    --ink:         #111111;
    --ink-2:       #3d3d3d;
    --sub:         #5a5a5a;
    --muted:       #767676;
    --ghost:       #9a9a9a;
    --bg:          #ffffff;
    --surface:     #f7f7f5;
    --surface-2:   #f0f0ed;
    --line:        #e4e4e0;
    --line-strong: #d0d0cb;
    --error:       #c0392b;
    --sh-xs:  0 1px 3px rgba(0,0,0,.06);
    --sh-sm:  0 2px 8px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.04);
    --sh-md:  0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.05);
    --sh-form: 0 8px 32px rgba(0,0,0,.09), 0 2px 8px rgba(0,0,0,.05);
    --ease-out:  cubic-bezier(.22,1,.36,1);
    --ease-snap: cubic-bezier(.34,1.56,.64,1);
}

/* Apply checklist font/color only to our sections, not global header/footer */
.cl-hero, .cl-inside, .cl-testi-wrap, .cl-bottom-wrap, .cl-divider {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

/* ─── RESET (template sections only — never touch global header/footer) ─── */
.cl-hero *, .cl-hero *::before, .cl-hero *::after,
.cl-inside *, .cl-inside *::before, .cl-inside *::after,
.cl-testi-wrap *, .cl-testi-wrap *::before, .cl-testi-wrap *::after,
.cl-bottom-wrap *, .cl-bottom-wrap *::before, .cl-bottom-wrap *::after,
.cl-divider *, .cl-divider *::before, .cl-divider *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
    .cl-hero *, .cl-hero *::before, .cl-hero *::after,
    .cl-inside *, .cl-inside *::before, .cl-inside *::after,
    .cl-testi-wrap *, .cl-testi-wrap *::before, .cl-testi-wrap *::after,
    .cl-bottom-wrap *, .cl-bottom-wrap *::before, .cl-bottom-wrap *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ─── FOCUS ─── */
.cl-page :focus-visible {
    outline: 2px solid var(--lime-dark);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ─── HERO ─── */
.cl-hero {
    padding: 136px 56px 80px;
    display: grid;
    grid-template-columns: 1fr 432px;
    gap: 88px;
    align-items: start;
    max-width: 1280px;
    margin: 0 auto;
}
.cl-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 28px;
}
.cl-kicker-pip { width: 20px; height: 1.5px; background: var(--lime); border-radius: 1px; }

.cl-hero h1 {
    font-size: clamp(42px, 5.6vw, 68px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.04;
    color: var(--ink);
    margin-bottom: 24px;
}
.cl-hl {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}
.cl-hl::after {
    content: '';
    position: absolute;
    bottom: 3px; left: 0; right: 0;
    height: 7px;
    background: var(--lime);
    z-index: -1;
    border-radius: 2px;
}
.cl-hero-body {
    font-size: 16px;
    color: var(--sub);
    max-width: 460px;
    line-height: 1.75;
    font-weight: 400;
    margin-bottom: 44px;
}

/* Stats */
.cl-stats {
    display: flex;
    max-width: 480px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--sh-xs);
}
.cl-stat {
    flex: 1;
    padding: 18px 22px;
    border-right: 1px solid var(--line);
    transition: background .18s;
}
.cl-stat:last-child { border-right: none; }
.cl-stat:hover { background: var(--surface); }
.cl-stat-num {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.05em;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    gap: 1px;
}
.cl-stat-num sup { font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--lime-dark); }
.cl-stat-lbl { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .02em; }

/* ─── FORM CARD ─── */
.cl-form-sticky { position: sticky; top: 112px; }
.cl-form-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--sh-form);
    border: 1px solid var(--line);
}
.cl-form-header {
    background: var(--ink);
    padding: 26px 30px;
    position: relative;
    overflow: hidden;
}
.cl-form-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--lime);
}
.cl-form-header-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.035em;
    color: var(--bg);
    margin-bottom: 3px;
}
.cl-form-header-sub {
    font-size: 13px;
    color: rgba(255,255,255,.55);
    font-weight: 400;
}
.cl-form-body { padding: 26px 30px 30px; background: var(--bg); }

.cl-field { margin-bottom: 14px; }
.cl-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}
.cl-field input {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    background: var(--bg);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
    -webkit-appearance: none;
    min-height: 48px;
}
.cl-field input:hover:not(:focus) { border-color: var(--line-strong); }
.cl-field input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,17,17,.07); }
.cl-field input.cl-has-error { border-color: var(--error); box-shadow: 0 0 0 3px rgba(192,57,43,.08); }
.cl-field input::placeholder { color: #c8c8c8; font-weight: 400; }
.cl-field-error {
    display: none;
    font-size: 12px;
    color: var(--error);
    margin-top: 5px;
    font-weight: 500;
}
.cl-field-error.cl-on { display: block; }

.cl-btn-send {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px 13px 20px;
    background: var(--lime);
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.01em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow .2s, transform .15s;
    margin-top: 6px;
    min-height: 48px;
}
.cl-btn-send:hover { box-shadow: 0 6px 24px var(--lime-glow); transform: translateY(-1px); }
.cl-btn-send:active { transform: translateY(0); box-shadow: none; }
.cl-btn-send-icon {
    width: 28px; height: 28px;
    background: rgba(0,0,0,.12);
    border-radius: 6px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: background .15s, transform .2s;
}
.cl-btn-send:hover .cl-btn-send-icon { background: rgba(0,0,0,.18); transform: translateX(2px); }

.cl-form-privacy {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.5;
}
.cl-form-privacy svg { flex-shrink: 0; color: var(--ghost); }

/* Success */
.cl-success { display: none; text-align: center; padding: 12px 0 8px; }
.cl-success.cl-on { display: block; }
.cl-success-mark {
    width: 52px; height: 52px;
    background: var(--lime);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    animation: clPop .4s var(--ease-snap) both;
}
@keyframes clPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cl-success-mark svg { color: var(--lime-dark); }
.cl-success h3 { font-size: 18px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); margin-bottom: 6px; }
.cl-success p { font-size: 13px; color: var(--sub); line-height: 1.6; }

/* Trust row */
.cl-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.cl-trust-avatars { display: flex; }
.cl-ta {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    margin-left: -8px;
    background: var(--surface-2);
    display: grid;
    place-items: center;
    font-size: 9px;
    font-weight: 700;
    color: var(--sub);
    box-shadow: var(--sh-xs);
    letter-spacing: .01em;
}
.cl-ta:first-child { margin-left: 0; }
.cl-trust-copy { font-size: 12px; color: var(--sub); line-height: 1.45; }
.cl-trust-copy strong { color: var(--ink); font-weight: 700; }

/* ─── DIVIDER ─── */
.cl-divider {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 56px;
    border-top: 1px solid var(--line);
}

/* ─── INSIDE ─── */
.cl-inside {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 56px 96px;
}
.cl-inside-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    gap: 32px;
}
.cl-inside-head h2 {
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.1;
    color: var(--ink);
}
.cl-inside-head h2 span { color: var(--sub); font-weight: 400; }
.cl-inside-meta {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
    padding-bottom: 5px;
    flex-shrink: 0;
    letter-spacing: .01em;
}

/* Chapters */
.cl-chapters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}
.cl-chapter {
    padding: 30px 26px;
    border-right: 1px solid var(--line);
    transition: background .18s var(--ease-out);
    position: relative;
}
.cl-chapter:last-child { border-right: none; }
.cl-chapter::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px; height: 100%;
    background: var(--lime);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .22s var(--ease-out);
}
.cl-chapter:hover { background: var(--surface); }
.cl-chapter:hover::before { transform: scaleY(1); }

.cl-ch-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.cl-ch-num {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.cl-ch-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--lime-dark);
    background: var(--lime);
    padding: 2px 8px;
    border-radius: 100px;
}
.cl-ch-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--ink);
    margin-bottom: 18px;
    line-height: 1.3;
}
.cl-ch-list { list-style: none; display: flex; flex-direction: column; }
.cl-ch-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--sub);
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    line-height: 1.4;
}
.cl-ch-list li:last-child { border-bottom: none; }
.cl-ch-bullet {
    flex-shrink: 0;
    width: 16px; height: 16px;
    border-radius: 4px;
    background: var(--surface-2);
    display: grid;
    place-items: center;
}
.cl-ch-bullet svg { color: var(--lime-dark); }
.cl-ch-more {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 500;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}
.cl-ch-more svg { flex-shrink: 0; color: var(--ghost); }

/* ─── TESTIMONIAL ─── */
.cl-testi-wrap {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}
.cl-testi-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 52px 56px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
}
.cl-testi-mark {
    font-size: 64px;
    line-height: .8;
    font-weight: 800;
    color: var(--lime);
    letter-spacing: -.05em;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: -8px;
}
.cl-testi-quote {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -.02em;
    color: var(--ink-2);
    line-height: 1.6;
    margin-bottom: 18px;
    max-width: 680px;
}
.cl-testi-author { display: flex; align-items: center; gap: 12px; }
.cl-testi-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--line-strong);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--sub);
    flex-shrink: 0;
}
.cl-testi-name { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.cl-testi-role { font-size: 12px; color: var(--muted); margin-top: 1px; }

/* ─── BOTTOM CTA ─── */
.cl-bottom-wrap { border-bottom: 1px solid var(--line); }
.cl-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 88px 56px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 64px;
}
.cl-bottom h2 {
    font-size: clamp(30px, 3.8vw, 50px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.1;
    color: var(--ink);
}
.cl-bottom h2 em { font-style: normal; color: var(--sub); font-weight: 400; }
.cl-bottom-note { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.6; }
.cl-btn-bottom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ink);
    color: var(--bg);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.01em;
    padding: 13px 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow .2s, transform .15s;
    white-space: nowrap;
    min-height: 48px;
}
.cl-btn-bottom:hover { box-shadow: 0 6px 24px rgba(17,17,17,.18); transform: translateY(-1px); }
.cl-btn-bottom:active { transform: translateY(0); }
.cl-btn-lime { color: var(--lime); }

/* ─── FOOTER ─── */
.cl-footer {
    padding: 22px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--muted);
}
.cl-footer a { color: var(--muted); text-decoration: none; transition: color .15s; }
.cl-footer a:hover { color: var(--ink); }
.cl-footer-links { display: flex; align-items: center; gap: 6px; }
.cl-footer-sep { color: var(--line-strong); }

/* ─── RESPONSIVE ─── */
/* ≤ 1100px — hero stacks, chapters go 2-col */
@media (max-width: 1100px) {
    .cl-hero { grid-template-columns: 1fr; padding: 136px 40px 72px; gap: 52px; }
    .cl-form-sticky { position: static; }
    .cl-form-wrap { max-width: 480px; }
    .cl-chapters { grid-template-columns: 1fr 1fr; }
    .cl-chapter:nth-child(2) { border-right: none; }
    .cl-chapter:nth-child(3) { border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
    .cl-chapter:nth-child(4) { border-top: 1px solid var(--line); border-right: none; }
    .cl-testi-inner { padding: 40px; }
    .cl-bottom { padding: 72px 40px; }
    .cl-inside { padding: 72px 40px 88px; }
    .cl-divider, .cl-footer { padding-left: 40px; padding-right: 40px; }
}

/* ≤ 768px — fully mobile: chapters 1-col, testi stacks, bottom CTA stacks */
@media (max-width: 768px) {
    .cl-hero { padding: 120px 24px 64px; gap: 44px; }
    .cl-stats { max-width: 100%; }
    .cl-stat { padding: 16px 18px; }
    .cl-form-wrap { max-width: 100%; }
    .cl-form-header, .cl-form-body { padding: 22px; }
    .cl-chapters { grid-template-columns: 1fr; border-radius: 12px; }
    .cl-chapter { border-right: none !important; border-top: none !important; border-bottom: 1px solid var(--line); }
    .cl-chapter:last-child { border-bottom: none; }
    .cl-chapter::before { width: 100%; height: 2px; transform: scaleX(0); transform-origin: left; }
    .cl-chapter:hover::before { transform: scaleX(1); }
    .cl-inside-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .cl-testi-inner { grid-template-columns: 1fr; gap: 20px; padding: 36px 24px; }
    .cl-testi-mark { font-size: 48px; margin-top: 0; }
    .cl-bottom { grid-template-columns: 1fr; gap: 28px; padding: 64px 24px; }
    .cl-inside { padding: 60px 24px 80px; }
    .cl-divider { padding: 0 24px; }
    .cl-footer { padding: 20px 24px; flex-direction: column; gap: 10px; }
}

/* ≤ 480px — stat numbers shrink, tighten form padding */
@media (max-width: 480px) {
    .cl-stats { flex-direction: column; border-radius: 10px; }
    .cl-stat { border-right: none; border-bottom: 1px solid var(--line); padding: 14px 18px; }
    .cl-stat:last-child { border-bottom: none; }
    .cl-stat-num { font-size: 24px; }
}

/* ≤ 420px — smallest phones */
@media (max-width: 420px) {
    .cl-hero { padding: 110px 16px 56px; }
    .cl-form-header, .cl-form-body { padding: 20px 18px; }
}
