/* CupLab Premium — design system extensions */

:root {
    --cl-surface: #ffffff;
    --cl-surface-muted: #f8fafc;
    --cl-radius-lg: 20px;
    --cl-radius-pill: 100px;
    --cl-shadow-sm: 0 4px 20px rgba(15, 23, 42, .06);
    --cl-shadow-md: 0 12px 40px rgba(15, 23, 42, .1);
    --cl-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
}

/* Sticky header */
.site-header,
#masthead.site-header {
    position: sticky !important;
    top: 0;
    z-index: 9990;
    transition: box-shadow .25s ease, padding .25s ease;
}
body.cl-header-scrolled .site-header,
body.cl-header-scrolled #masthead.site-header {
    box-shadow: 0 4px 24px rgba(15, 23, 42, .08);
}

/* ── Premium homepage hero (split) ── */
.cl-hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: clamp(420px, 52vh, 560px);
    background: var(--cl-surface);
    overflow: hidden;
}
.cl-hero-split-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px);
    max-width: 640px;
    margin-left: auto;
}
.cl-hero-split-copy .cl-eyebrow {
    margin-bottom: 16px;
}
.cl-hero-split-title {
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.08;
    color: var(--cl-ink);
    margin: 0 0 16px;
}
.cl-hero-split-lead {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--cl-muted);
    margin: 0 0 28px;
    max-width: 460px;
}
.cl-hero-split-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 32px;
}
.cl-btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cl-gradient);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: var(--cl-radius-pill);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(99, 102, 241, .35);
    transition: transform .2s, box-shadow .2s;
    border: none;
    cursor: pointer;
}
.cl-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(99, 102, 241, .42);
    color: #fff;
}
.cl-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--cl-radius-pill);
    border: 1.5px solid var(--cl-line);
    color: var(--cl-ink);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
    transition: border-color .2s, background .2s;
}
.cl-btn-outline:hover {
    border-color: var(--cl-ink);
    color: var(--cl-ink);
}
.cl-hero-split-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--cl-line);
}
.cl-hero-split-stats strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--cl-ink);
    letter-spacing: -.03em;
}
.cl-hero-split-stats span {
    font-size: .72rem;
    color: var(--cl-faint);
    font-weight: 500;
}
.cl-hero-split-visual {
    position: relative;
    background: #0a1628;
    min-height: 280px;
}
.cl-hero-split-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Pathway cards */
.cl-path-wrap {
    padding: 56px 0;
    background: var(--cl-surface-muted);
}
.cl-path-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.cl-path-card {
    display: block;
    background: #fff;
    border: 1px solid var(--cl-line);
    border-radius: var(--cl-radius-lg);
    padding: 32px 28px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cl-path-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cl-shadow-md);
    border-color: #c7d2fe;
}
.cl-path-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 1.4rem;
}
.cl-path-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--cl-ink);
    margin: 0 0 8px;
    letter-spacing: -.02em;
}
.cl-path-card p {
    font-size: .88rem;
    color: var(--cl-muted);
    line-height: 1.7;
    margin: 0 0 16px;
}
.cl-path-link {
    font-size: .82rem;
    font-weight: 700;
    color: var(--cl-accent);
}

/* Promo band */
.cl-promo-band {
    padding: 0;
    background: #fff;
}
.cl-promo-inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 0;
    align-items: stretch;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border-radius: 0;
    padding: 0;
    color: #fff;
    overflow: hidden;
    position: relative;
}
.cl-promo-inner::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
}
.cl-promo-inner h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 0 0 12px;
    position: relative;
}
.cl-promo-inner p {
    font-size: .92rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, .72);
    margin: 0 0 24px;
    position: relative;
}
.cl-promo-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* Final CTA */
.cl-final-cta {
    padding: 64px 0 80px;
    text-align: center;
    background: var(--cl-surface-muted);
}
.cl-final-cta h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--cl-ink);
}
.cl-final-cta p {
    color: var(--cl-muted);
    margin: 0 0 24px;
    font-size: .92rem;
}

/* Product page premium */
.cl-purchase-box {
    background: var(--cl-surface-muted);
    border: 1px solid var(--cl-line);
    border-radius: var(--cl-radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}
.cl-live-price {
    display: none;
    margin: 12px 0 4px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--cl-line);
    border-radius: 12px;
    font-size: .88rem;
    color: var(--cl-muted);
}
.cl-live-price.show { display: block; }
.cl-live-price strong {
    color: var(--cl-ink);
    font-size: 1.05rem;
}
.cl-pos-extra {
    font-size: .68rem;
    font-weight: 700;
    color: var(--cl-accent);
    margin-top: 4px;
}

/* Sticky mobile add-to-cart */
.cl-sticky-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9980;
    background: #fff;
    border-top: 1px solid var(--cl-line);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 32px rgba(0, 0, 0, .1);
    transform: translateY(110%);
    transition: transform .3s ease;
}
.cl-sticky-bar.is-visible {
    transform: translateY(0);
}
.cl-sticky-bar-inner {
    max-width: var(--cl-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cl-sticky-price {
    flex: 1;
    font-weight: 800;
    font-size: 1rem;
    color: var(--cl-ink);
}
.cl-sticky-price .woocommerce-Price-amount { font-weight: 800; }
.cl-sticky-btn {
    flex-shrink: 0;
    background: var(--cl-ink);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 22px;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
@media (max-width: 768px) {
    .cl-sticky-bar { display: block; }
    body.single-product { padding-bottom: 80px; }
}

/* Checkout — firma / bireysel */
.cl-customer-type .woocommerce-input-wrapper {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.cl-customer-type input[type="radio"] {
    margin-right: 6px;
}
.cl-firma-field { display: none; }
body.cl-checkout-firma .cl-firma-field { display: block; }

/* ── Homepage mobile (front-page.php ile uyumlu) ── */
@media (max-width: 768px) {
    .cl-hero-split { grid-template-columns: 1fr; min-height: 0; }
    .cl-hero-split-visual {
        order: -1;
        height: clamp(168px, 42vw, 220px);
        min-height: 0;
        max-height: none;
        overflow: hidden;
    }
    .cl-hero-split-visual img {
        min-height: 0;
        height: 100%;
        object-position: 72% center;
    }
    .cl-hero-split-copy { padding: 20px 18px 24px; margin: 0; max-width: none; }
    .cl-hero-split-title { font-size: clamp(1.45rem, 6.5vw, 1.85rem); }
    .cl-hero-split-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
    .cl-btn-premium, .cl-btn-outline { width: 100%; justify-content: center; padding: 12px 14px; font-size: .78rem; }
    .cl-hero-split-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 14px; }
    .cl-path-wrap, .cl-prods-wrap, .cl-how-wrap, .cl-feats-wrap, .cl-revs-wrap { padding: 36px 0; }
    .cl-promo-inner { padding: 0; }
    .cl-path-grid, .cl-how-grid, .cl-feats-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        gap: 12px;
        padding: 0 16px 4px;
    }
    .cl-path-grid::-webkit-scrollbar,
    .cl-how-grid::-webkit-scrollbar,
    .cl-feats-grid::-webkit-scrollbar { display: none; }
    .cl-path-card, .cl-how-card, .cl-feat-card { flex: 0 0 min(78%, 280px); scroll-snap-align: start; }
    .cl-how-grid::before { display: none; }
    .cl-final-cta { padding: 36px 0 48px; }
}

@media (max-width: 900px) {
    .cl-hero-split { grid-template-columns: 1fr; }
    .cl-path-grid { grid-template-columns: 1fr; }
}
