/*
Theme Name:        LeadGen Theme
Theme URI:         https://leadgenpro.pl
Author:            LeadGen Pro
Description:       Minimalistyczny motyw Apple-style dla agencji webowych. Współpracuje z pluginem LeadGen Pro.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
License:           GPL v2 or later
Text Domain:       leadgen-theme
*/

/* ── Design Tokens ── */
:root {
    --blue:       #007AFF;
    --blue-dark:  #0051D5;
    --green:      #34C759;
    --orange:     #FF9500;
    --red:        #FF3B30;
    --purple:     #AF52DE;

    --bg:         #F2F2F7;
    --bg-card:    #FFFFFF;
    --bg-section: #FAFAFA;

    --text-primary:   #1D1D1F;
    --text-secondary: #6E6E73;
    --text-tertiary:  #AEAEB2;
    --text-white:     #FFFFFF;

    --border:     rgba(0,0,0,.08);
    --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:  0 4px 24px rgba(0,0,0,.08);
    --shadow-lg:  0 12px 48px rgba(0,0,0,.12);

    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  18px;
    --radius-xl:  24px;

    --max-w: 1120px;
    --header-h: 64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ── */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -.3px;
    line-height: 1.2;
    color: var(--text-primary);
}
h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -1.5px; }
h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.8px; }
h3 { font-size: 22px; }
h4 { font-size: 17px; }
p  { color: var(--text-secondary); line-height: 1.7; }

/* ── Container ── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 36px; height: 36px;
    background: var(--blue);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}

.logo-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -.3px;
}

.site-nav { display: flex; align-items: center; gap: 8px; }

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    transition: all .15s;
    text-decoration: none;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg); text-decoration: none; }

.nav-cta {
    background: var(--blue);
    color: white !important;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    transition: all .15s;
}
.nav-cta:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,122,255,.3); text-decoration: none; }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 600px;
    background: radial-gradient(ellipse at center, rgba(0,122,255,.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,122,255,.08);
    color: var(--blue);
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
    border: 1px solid rgba(0,122,255,.15);
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #1D1D1F 0%, #3a3a3f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue);
    color: white;
    font-size: 17px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all .2s;
    box-shadow: 0 4px 20px rgba(0,122,255,.3);
}
.btn-hero-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,122,255,.4); text-decoration: none; color: white; }

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,.04);
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all .2s;
    border: 1px solid var(--border);
}
.btn-hero-secondary:hover { background: var(--bg); text-decoration: none; color: var(--text-primary); }

/* ── App preview ── */
.hero-preview {
    margin-top: 60px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.hero-preview-wrap {
    background: linear-gradient(135deg, #e8f0fe 0%, #f0e8ff 100%);
    border-radius: var(--radius-xl);
    padding: 3px;
    box-shadow: var(--shadow-lg);
}

.preview-inner {
    background: #1D1D1F;
    border-radius: calc(var(--radius-xl) - 3px);
    overflow: hidden;
}

.preview-topbar {
    background: #2d2d2d;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-dot { width: 12px; height: 12px; border-radius: 50%; }
.preview-dot.red    { background: #FF5F57; }
.preview-dot.yellow { background: #FFBD2E; }
.preview-dot.green  { background: #28C940; }

.preview-url {
    flex: 1;
    background: rgba(255,255,255,.08);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    color: rgba(255,255,255,.5);
    margin: 0 12px;
    text-align: center;
}

.preview-content {
    padding: 20px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    min-height: 360px;
}

.preview-sidebar {
    background: rgba(255,255,255,.05);
    border-radius: 12px;
    padding: 16px 12px;
}

.preview-logo-row {
    display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
}
.preview-logo-icon {
    width: 28px; height: 28px;
    background: var(--blue);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.preview-logo-text { font-size: 12px; font-weight: 700; color: white; }

.preview-nav-item {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px; border-radius: 8px;
    font-size: 12px; color: rgba(255,255,255,.5);
    margin-bottom: 2px;
}
.preview-nav-item.active {
    background: rgba(0,122,255,.2);
    color: #60a5fa;
}

.preview-main { display: flex; flex-direction: column; gap: 14px; }

.preview-stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.preview-stat {
    background: rgba(255,255,255,.05);
    border-radius: 10px;
    padding: 12px;
}
.preview-stat-val { font-size: 20px; font-weight: 700; color: white; margin-bottom: 2px; }
.preview-stat-lbl { font-size: 10px; color: rgba(255,255,255,.4); }

.preview-search {
    background: rgba(255,255,255,.05);
    border-radius: 10px;
    padding: 14px;
}
.preview-search-title { font-size: 13px; font-weight: 700; color: white; margin-bottom: 10px; }
.preview-search-row   { display: flex; gap: 8px; }
.preview-search-input {
    flex: 1;
    background: rgba(255,255,255,.08);
    border-radius: 6px;
    height: 32px;
    display: flex; align-items: center;
    padding: 0 10px;
    font-size: 11px;
    color: rgba(255,255,255,.3);
}
.preview-search-btn {
    background: var(--blue);
    border-radius: 6px;
    height: 32px;
    padding: 0 14px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    display: flex; align-items: center;
}

.preview-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.preview-card {
    background: rgba(255,255,255,.06);
    border-radius: 8px;
    padding: 10px;
}
.preview-card-name  { font-size: 11px; font-weight: 700; color: white; margin-bottom: 2px; }
.preview-card-cat   { font-size: 10px; color: rgba(255,255,255,.4); margin-bottom: 6px; }
.preview-card-badge {
    display: inline-block;
    background: rgba(255,59,48,.2);
    color: #ff6b6b;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 100px;
}

/* ═══════════════════════════════════════
   FEATURES
═══════════════════════════════════════ */
.features { padding: 100px 0; background: var(--bg-card); }

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue);
    margin-bottom: 12px;
}

.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 18px; max-width: 560px; margin: 0 auto; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    transition: all .2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); background: var(--bg-card); }

.feature-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}
.feature-icon.blue   { background: rgba(0,122,255,.1); }
.feature-icon.green  { background: rgba(52,199,89,.1); }
.feature-icon.orange { background: rgba(255,149,0,.1); }
.feature-icon.purple { background: rgba(175,82,222,.1); }
.feature-icon.red    { background: rgba(255,59,48,.1); }
.feature-icon.teal   { background: rgba(90,200,250,.1); }

.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p  { font-size: 15px; line-height: 1.7; }

/* ═══════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════ */
.how-it-works { padding: 100px 0; background: var(--bg); }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 32px; left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    opacity: .2;
}

.step-card { text-align: center; padding: 8px; }

.step-num {
    width: 64px; height: 64px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--blue);
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.step-card h4 { margin-bottom: 8px; }
.step-card p  { font-size: 14px; }

/* ═══════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════ */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #007AFF 0%, #AF52DE 100%);
    text-align: center;
}
.cta-section h2, .cta-section p { color: white; }
.cta-section p { color: rgba(255,255,255,.8); font-size: 18px; margin-top: 16px; margin-bottom: 40px; }

.btn-cta-white {
    display: inline-flex; align-items: center; gap: 8px;
    background: white;
    color: var(--blue);
    font-size: 17px; font-weight: 700;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    transition: all .2s;
}
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.25); text-decoration: none; color: var(--blue-dark); }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
    background: var(--text-primary);
    color: rgba(255,255,255,.6);
    padding: 48px 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo .logo-icon { background: rgba(255,255,255,.1); }
.footer-logo-name { font-size: 15px; font-weight: 700; color: white; }
.footer-copy { font-size: 13px; }
.footer-hosted { font-size: 12px; color: rgba(255,255,255,.35); margin-top: 4px; }
.footer-hosted a { color: rgba(255,255,255,.45); text-decoration: none; }
.footer-hosted a:hover { color: rgba(255,255,255,.75); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.5); text-decoration: none; }
.footer-links a:hover { color: white; }

/* ═══════════════════════════════════════
   LOGIN PAGE (WP)
═══════════════════════════════════════ */
body.login {
    background: linear-gradient(145deg, #f0f4ff 0%, #e8f0fe 50%, #f5f0ff 100%) !important;
}

body.login #login {
    padding: 0;
    margin-top: 0;
    width: 100%;
    max-width: 400px;
}

body.login #login h1 a {
    background-image: none !important;
    text-indent: 0 !important;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    height: auto;
    width: auto;
    line-height: 1;
}

body.login #login h1 a::before { content: '🎯 '; }

body.login .login-action-login #loginform,
body.login .login-action-lostpassword #lostpasswordform {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px !important;
    margin-top: 0;
}

body.login #loginform label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }

body.login #loginform input[type="text"],
body.login #loginform input[type="password"] {
    background: var(--bg) !important;
    border: 1.5px solid transparent !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: none !important;
    font-size: 15px !important;
    height: 44px !important;
    padding: 0 14px !important;
    transition: all .15s !important;
    color: var(--text-primary) !important;
}
body.login #loginform input[type="text"]:focus,
body.login #loginform input[type="password"]:focus {
    background: white !important;
    border-color: var(--blue) !important;
    box-shadow: 0 0 0 3px rgba(0,122,255,.12) !important;
    outline: none !important;
}

body.login #wp-submit {
    background: var(--blue) !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    height: 44px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: all .15s !important;
}
body.login #wp-submit:hover { background: var(--blue-dark) !important; box-shadow: 0 4px 12px rgba(0,122,255,.3) !important; }

body.login #nav, body.login #backtoblog {
    background: transparent;
    border: none;
    box-shadow: none;
}
body.login #nav a, body.login #backtoblog a { color: var(--blue); font-size: 13px; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid    { grid-template-columns: 1fr 1fr; }
    .steps-grid::before { display: none; }
    .preview-content { grid-template-columns: 1fr; }
    .preview-sidebar { display: none; }
}

@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid    { grid-template-columns: 1fr; }
    .preview-stat-row { grid-template-columns: 1fr 1fr; }
    .preview-cards { grid-template-columns: 1fr; }
    .site-nav .nav-link { display: none; }
}
