/*
Theme Name:  PatrykBosek SEO
Theme URI:   https://patrykbosek.pl
Author:      Patryk Bosek
Author URI:  https://www.linkedin.com/in/patryk-bosek/
Description: Autorski motyw personal-brand dla konsultanta SEO — ciemny, nowoczesny, nastawiony na konwersję B2B. Strona główna, blog oraz własny typ treści "Case study".
Version:     1.14.1
Requires at least: 6.0
Requires PHP: 7.4
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: patrykbosek
*/

/* ============================================================
   Patryk Bosek — SEO Consultant
   Dark, modern, B2B-conversion-focused theme
   ============================================================ */

:root {
    --bg: #0B0F1A;              /* softened base: graphite-navy, not pure black */
    --bg-elevated: #101524;     /* contrast sections (usługi, jak pracuję) */
    --surface: #141A28;         /* cards — lifted off the background */
    --surface-2: #1a2236;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f4f5f7;
    --text-muted: #9ba1ad;
    --text-dim: #6b7280;
    --accent: #38bdf8;
    --accent-2: #818cf8;
    --accent-glow: rgba(56, 189, 248, 0.35);
    --gradient: linear-gradient(120deg, #38bdf8, #818cf8);
    --success: #34d399;
    --radius: 18px;
    --radius-sm: 12px;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container: 1180px;
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    background-image: radial-gradient(1200px 800px at 70% -10%, #121a2e 0%, var(--bg) 55%);
    background-repeat: no-repeat;
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    /* clip (not hidden): stops horizontal overflow WITHOUT creating a scroll
       container — otherwise iOS Safari breaks the fixed header (it scrolls
       away / leaves a gap instead of sticking to the top). */
    overflow-x: clip;
}

::selection { background: var(--accent); color: #04121c; }

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }

.container {
    width: min(var(--container), 92%);
    margin: 0 auto;
}

/* ------------------------------------------------------------
   Typography
------------------------------------------------------------ */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.section-label::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    margin-bottom: 18px;
}

.section-title .grad {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-lead {
    color: var(--text-muted);
    font-size: 1.06rem;
    max-width: 640px;
}

section { padding: clamp(52px, 6.5vw, 96px) 0; position: relative; }

/* ------------------------------------------------------------
   Buttons
------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    will-change: transform;
}

.btn-primary {
    background: var(--gradient);
    color: #051018;
    box-shadow: 0 8px 30px -8px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px -8px var(--accent-glow);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-3px);
}

/* ------------------------------------------------------------
   Header / Nav
------------------------------------------------------------ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
    border-bottom: 1px solid transparent;
    padding: 22px 0;
}

.site-header.scrolled {
    background: rgba(11, 15, 26, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border);
    padding: 14px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo span { color: var(--accent); }

/* Handwritten signature logo (bundled white PNG). */
.logo-img { display: inline-flex; align-items: center; }
.logo-img img { height: 42px; width: auto; display: block; }
@media (max-width: 680px) { .logo-img img { height: 34px; } }

/* Uploaded custom logo sizing (Customizer → Tożsamość witryny). */
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo-link img { height: 42px; width: auto; display: block; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 14.5px;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    padding: 11px 22px;
    font-size: 14px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    /* Adequate touch target (≥44px). */
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-right: -8px;
}

/* ------------------------------------------------------------
   Hero
------------------------------------------------------------ */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 160px 0 90px;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.85;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    width: 560px;
    height: 560px;
    background: rgba(56, 189, 248, 0.13);
    top: -180px;
    right: -120px;
    animation: float 14s ease-in-out infinite;
}

.hero::after {
    width: 480px;
    height: 480px;
    background: rgba(129, 140, 248, 0.10);
    bottom: -200px;
    left: -140px;
    animation: float 18s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 30px) scale(1.08); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px;
    border-radius: 100px;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.25);
    color: var(--success);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 26px;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
    50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
}

/* Hero badge when not accepting new projects (availability switch off). */
.hero-badge-closed {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.28);
    color: #fbbf24;
}
.hero-badge-closed .dot { background: #fbbf24; animation: none; }

/* Deactivate all consultation buttons while not accepting. */
body.pb-unavailable .pb-open-lead,
body.pb-unavailable a.btn[href$="#kontakt"],
body.pb-unavailable .btn.pb-open-lead {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.4);
}

.hero h1 {
    font-size: clamp(2.4rem, 5.4vw, 4.1rem);
    font-weight: 700;
    margin-bottom: 24px;
}

.hero h1 .grad {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: 1.13rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 38px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero-mail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 15px;
    transition: color 0.2s ease;
}

.hero-mail i { color: var(--accent); }
.hero-mail:hover { color: var(--text); }

/* Hero photo */
.hero-visual { position: relative; display: flex; justify-content: center; }

.hero-photo-wrap {
    position: relative;
    width: min(410px, 94%);
    aspect-ratio: 4 / 4.7;
}

/* Soft glow behind the cut-out subject (no hard frame). */
.hero-photo-wrap::before {
    content: '';
    position: absolute;
    inset: 6% 4% 2%;
    border-radius: 48% 48% 42% 42%;
    background: radial-gradient(56% 48% at 50% 40%, rgba(56, 189, 248, 0.34), rgba(129, 140, 248, 0.16) 52%, transparent 74%);
    filter: blur(38px);
    z-index: 0;
    animation: glow-pulse 7s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.hero-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    /* Cut-out fades softly into the page background at the bottom. */
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 98%);
    mask-image: linear-gradient(to bottom, #000 78%, transparent 98%);
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

.hero-card {
    position: absolute;
    z-index: 3;
    background: rgba(14, 15, 19, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: card-float 6s ease-in-out infinite;
}

.hero-card i {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent);
    font-size: 16px;
}

.hero-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.2;
}

.hero-card small { color: var(--text-muted); font-size: 11.5px; }

.hero-card-1 { top: 8%; left: -14%; }
.hero-card-2 { bottom: 10%; right: -12%; animation-delay: -3s; }

@keyframes card-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Hero stats strip */
.hero-stats {
    display: flex;
    gap: 42px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: 28px;
    margin-top: 10px;
}

.hero-stat strong {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    display: block;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-stat span { color: var(--text-muted); font-size: 13.5px; }

.scroll-hint {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-dim);
    font-size: 20px;
    animation: bounce-hint 2.2s ease-in-out infinite;
    z-index: 2;
}

@keyframes bounce-hint {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
    50% { transform: translate(-50%, 10px); opacity: 1; }
}

/* ------------------------------------------------------------
   Reveal on scroll
------------------------------------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ------------------------------------------------------------
   Cards (spotlight hover effect)
------------------------------------------------------------ */
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 34px 30px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), rgba(56, 189, 248, 0.09), transparent 45%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: var(--accent);
    font-size: 21px;
    margin-bottom: 22px;
}

.card h3 { font-size: 1.28rem; margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 15px; }

/* ------------------------------------------------------------
   Why me
------------------------------------------------------------ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 56px;
}

.counters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 26px;
}

.counter-box {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
}

.counter-box strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.counter-box span { color: var(--text-muted); font-size: 13.5px; line-height: 1.4; display: block; }

/* ------------------------------------------------------------
   Services
------------------------------------------------------------ */
.services { background: var(--bg-elevated); border-block: 1px solid var(--border); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 56px;
}

.service-card { display: flex; flex-direction: column; }

.service-card ul {
    list-style: none;
    margin: 20px 0 26px;
    flex: 1;
}

.service-card ul li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-muted);
    font-size: 14px;
    padding: 6px 0;
}

.service-card ul li i {
    color: var(--success);
    font-size: 12px;
    margin-top: 5px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14.5px;
    color: var(--accent);
    transition: gap 0.25s ease;
}

.service-link:hover { gap: 14px; }

.service-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-2);
    background: rgba(129, 140, 248, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.25);
    padding: 5px 12px;
    border-radius: 100px;
}

/* ------------------------------------------------------------
   Clients / case studies
------------------------------------------------------------ */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 56px;
}

.case-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    color: var(--text);
}

.case-chart {
    height: 190px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.case-chart img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    filter: saturate(0.85);
    transition: transform 0.5s ease;
}

.case-card:hover .case-chart img { transform: scale(1.05); }

.case-chart::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, var(--surface));
}

.case-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }

.case-industry {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.case-body h3 { font-size: 1.45rem; margin-bottom: 12px; }

.case-body p { color: var(--text-muted); font-size: 14.5px; flex: 1; }

.case-metrics {
    display: flex;
    gap: 24px;
    margin: 20px 0 22px;
}

.case-metrics div strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--success);
}

.case-metrics div span { font-size: 12px; color: var(--text-dim); }

/* Logo marquee */
.marquee-wrap {
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-title {
    text-align: center;
    color: var(--text-dim);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 34px;
    font-weight: 600;
}

.marquee-track {
    display: flex;
    gap: 64px;
    width: max-content;
    animation: marquee 36s linear infinite;
}

.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
    to { transform: translateX(-50%); }
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--text-dim);
    white-space: nowrap;
    opacity: 0.65;
    filter: grayscale(1);
    transition: opacity 0.3s ease, filter 0.3s ease, color 0.3s ease;
}

.marquee-item:hover { opacity: 1; filter: grayscale(0); color: var(--text); }

.marquee-item i { color: var(--accent); font-size: 1.05rem; }

/* Clickable logo (when a link URL is set on the logo). */
a.marquee-link { text-decoration: none; cursor: pointer; }
a.marquee-link:hover { opacity: 1; filter: grayscale(0); }

/* „Zobacz wszystkie realizacje" button + case-study archive. */
.cases-cta { text-align: center; margin-top: clamp(32px, 5vw, 56px); }

.cases-archive { padding: clamp(56px, 8vw, 104px) 0; }
.cases-archive .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.cases-archive .pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.cases-archive .pagination .page-numbers:hover,
.cases-archive .pagination .page-numbers.current {
    color: #051018;
    background: var(--gradient);
    border-color: transparent;
}

/* ------------------------------------------------------------
   Process — how I work
------------------------------------------------------------ */
.process { background: var(--bg-elevated); border-block: 1px solid var(--border); }

.process-steps {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 27px;
    left: 6%;
    right: 6%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-strong) 15%, var(--border-strong) 85%, transparent);
    z-index: 0;
}

.step { position: relative; z-index: 1; text-align: left; }

.step-num {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--accent);
    margin-bottom: 20px;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.step:hover .step-num {
    background: var(--gradient);
    color: #051018;
    border-color: transparent;
    box-shadow: 0 0 30px -4px var(--accent-glow);
}

.step h3 { font-size: 1.05rem; margin-bottom: 9px; }
.step p { color: var(--text-muted); font-size: 13.5px; }

/* ------------------------------------------------------------
   Blog
------------------------------------------------------------ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 56px;
}

.post-card { padding: 30px 28px; display: flex; flex-direction: column; color: var(--text); }

.post-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.post-tag {
    color: var(--accent);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 3px 12px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 11.5px;
}

.post-card h3 { font-size: 1.22rem; margin-bottom: 12px; }
.post-card p { color: var(--text-muted); font-size: 14.5px; flex: 1; margin-bottom: 20px; }

.section-foot { text-align: center; margin-top: 48px; }

/* ------------------------------------------------------------
   FAQ
------------------------------------------------------------ */
.faq-list { max-width: 780px; margin: 56px auto 0; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    background: var(--surface);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item[open] { border-color: rgba(56, 189, 248, 0.35); }

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 26px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.02rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary i { color: var(--accent); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item[open] summary i { transform: rotate(45deg); }

.faq-item .faq-body {
    padding: 0 26px 24px;
    color: var(--text-muted);
    font-size: 14.5px;
}

/* ------------------------------------------------------------
   CTA / contact
------------------------------------------------------------ */
.cta-section { padding: clamp(64px, 8vw, 108px) 0; }

.cta-box {
    position: relative;
    border-radius: 28px;
    border: 1px solid var(--border-strong);
    background:
        radial-gradient(900px circle at 20% -10%, rgba(56, 189, 248, 0.14), transparent 50%),
        radial-gradient(700px circle at 85% 110%, rgba(129, 140, 248, 0.12), transparent 50%),
        var(--surface);
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
}

.cta-box h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 18px; }

.cta-box p { color: var(--text-muted); max-width: 560px; margin: 0 auto 38px; font-size: 1.07rem; }

.cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

/* ------------------------------------------------------------
   Footer
------------------------------------------------------------ */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 56px 0 34px;
    background: var(--bg-elevated);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 44px;
}

.footer-grid p { color: var(--text-muted); font-size: 14px; max-width: 320px; margin-top: 14px; }

.footer-col h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 18px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul a {
    color: var(--text-muted);
    font-size: 14.5px;
    transition: color 0.2s ease;
}

.footer-col ul a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-dim);
    font-size: 13px;
}

.footer-social { display: flex; gap: 12px; }

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 15px;
    transition: all 0.25s ease;
}

.footer-social a:hover {
    color: #051018;
    background: var(--gradient);
    border-color: transparent;
    transform: translateY(-3px);
}

/* ------------------------------------------------------------
   Subpages (blog / case study)
------------------------------------------------------------ */
.page-hero {
    padding: 190px 0 80px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(800px circle at 75% -20%, rgba(56, 189, 248, 0.1), transparent 55%),
        var(--bg);
    border-bottom: 1px solid var(--border);
}

.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); margin-bottom: 18px; max-width: 820px; }

.breadcrumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text-dim);
    font-size: 13.5px;
    margin-bottom: 26px;
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }

.cs-stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: -46px auto 0;
    position: relative;
    z-index: 5;
}

.cs-stat {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 26px 22px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cs-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 4px;
}

.cs-stat span { color: var(--text-muted); font-size: 12.5px; line-height: 1.35; display: block; }

.cs-content { padding: clamp(56px, 7vw, 96px) 0; }

.cs-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 56px;
    align-items: start;
}

.cs-main h2 {
    font-size: 1.7rem;
    margin: 44px 0 18px;
}

.cs-main h2:first-child { margin-top: 0; }

.cs-main p { color: var(--text-muted); margin-bottom: 16px; font-size: 15.5px; }

.cs-main ul { margin: 8px 0 22px; padding-left: 4px; list-style: none; }

.cs-main ul li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text-muted);
    padding: 7px 0;
    font-size: 15px;
}

.cs-main ul li i { color: var(--accent); margin-top: 5px; font-size: 13px; }

.cs-figure {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    margin: 30px 0;
}

.cs-figure figcaption {
    background: var(--surface);
    color: var(--text-dim);
    font-size: 12.5px;
    padding: 12px 18px;
    border-top: 1px solid var(--border);
}

.cs-aside {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Blog single — tighter reading measure so text isn't stretched,
   and a fixed 16:9 frame for the featured image (keeps HD-image proportions). */
.blog-single .container { width: min(1040px, 92%); }
.blog-single .cs-content { padding: 72px 0 100px; }
.blog-single .cs-figure {
    background: var(--surface);
    margin: 0 0 34px;
}
.blog-single .cs-figure > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
/* In-content images keep their own proportions, just never overflow. */
.blog-single .entry-content img { max-width: 100%; height: auto; }

/* „Add me to Google preferred sources" card (top of blog posts, under the title). */
.pb-gfollow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 30px;
    padding: 15px 18px;
    background: rgba(56, 189, 248, 0.055);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 14px;
}
.pb-gfollow-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.pb-gfollow-body { min-width: 0; }
.pb-gfollow-title {
    margin: 0 0 3px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.35;
    color: var(--text);
}
.pb-gfollow-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--accent);
    transition: gap 0.2s ease, color 0.2s ease;
}
.pb-gfollow-link:hover { color: var(--accent-2); gap: 10px; }
@media (max-width: 480px) { .pb-gfollow { flex-direction: row; align-items: flex-start; } }

.aside-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}

.aside-box h4 { font-size: 1rem; margin-bottom: 14px; }

.aside-box .meta-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
}

.aside-box .meta-row strong { text-align: right; }

.aside-box .meta-row:last-child { border-bottom: none; }

.aside-box .meta-row span { color: var(--text-dim); }
.aside-box .meta-row strong { color: var(--text); font-weight: 600; }

.quote-box {
    background: linear-gradient(160deg, rgba(56, 189, 248, 0.07), rgba(129, 140, 248, 0.05));
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius);
    padding: 26px;
    font-size: 14.5px;
    color: var(--text-muted);
}

.quote-box i { color: var(--accent); font-size: 20px; margin-bottom: 12px; display: block; }

/* Blog listing page */
.blog-listing { padding: 90px 0 110px; }

.blog-listing .blog-grid { margin-top: 0; }

.blog-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.blog-filters button {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 500;
    padding: 9px 20px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.blog-filters button:hover,
.blog-filters button.active {
    background: var(--gradient);
    color: #051018;
    border-color: transparent;
}

/* ------------------------------------------------------------
   Mobile
------------------------------------------------------------ */
@media (max-width: 1020px) {
    /* base section padding uses clamp() — no override needed here. */

    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { order: -1; }
    .hero-photo-wrap { width: min(300px, 76%); }
    .hero-card-1 { left: -4%; }
    .hero-card-2 { right: -4%; }

    .why-grid, .services-grid, .cases-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
    .counters { grid-template-columns: 1fr 1fr; }
    .process-steps { grid-template-columns: 1fr 1fr; gap: 34px; }
    .process-steps::before { display: none; }
    .cs-layout { grid-template-columns: 1fr; }
    .cs-aside { position: static; }
    .cs-stats-band { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    /* Solid header on phones so page content never bleeds through it */
    .site-header.scrolled { background: rgba(11, 15, 26, 0.96); }

    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(11, 15, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        font-size: 1.2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, visibility 0.3s;
        z-index: 99;
    }

    .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
    .nav-links a { font-size: 1.15rem; padding: 8px 12px; }
    .nav-toggle { display: flex; position: relative; z-index: 101; }
    .nav-cta { display: none; }

    /* Photo + floating cards are hidden on phones — keeps the top clean and
       avoids the sticky header overlapping them. */
    .hero-visual { display: none; }
    .hero { padding-top: 120px; min-height: auto; }
    .hero-stats { gap: 26px; }

    .why-grid, .services-grid, .cases-grid, .blog-grid,
    .process-steps, .footer-grid { grid-template-columns: 1fr; }

    .cta-box { padding: 60px 24px; }
}

/* ------------------------------------------------------------
   Reduced motion
------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; }
    #hero-canvas { display: none; }
}

/* No-JS fallback: if the reveal animation can't run, show content immediately. */
.no-js .reveal { opacity: 1; transform: none; }

/* Constellation canvas is desktop-only (perf on mobile). */
@media (max-width: 767px) { #hero-canvas { display: none; } }


/* ------------------------------------------------------------
   WordPress specifics
------------------------------------------------------------ */
.entry-content { color: var(--text-muted); font-size: 15.5px; }

.entry-content > * + * { margin-top: 18px; }

.entry-content h2 {
    font-size: 1.7rem;
    color: var(--text);
    margin-top: 44px;
}

.entry-content h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin-top: 34px;
}

.entry-content a { text-decoration: underline; text-underline-offset: 3px; }

.entry-content ul,
.entry-content ol { padding-left: 22px; }

.entry-content li { margin-bottom: 8px; }

.entry-content img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.entry-content blockquote {
    border-left: 3px solid var(--accent);
    background: rgba(56, 189, 248, 0.05);
    padding: 18px 24px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

.entry-content pre {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    overflow-x: auto;
    font-size: 13.5px;
}

.entry-content .wp-block-image figcaption,
.entry-content figcaption {
    color: var(--text-dim);
    font-size: 12.5px;
    text-align: center;
    margin-top: 8px;
}

.alignwide { width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* Pagination */
.pagination,
.wp-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 56px;
}

.pagination .page-numbers {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--gradient);
    color: #051018;
    border-color: transparent;
}

/* Blog filters as links */
.blog-filters a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
    padding: 9px 20px;
    border-radius: 100px;
    transition: all 0.25s ease;
}

.blog-filters a:hover,
.blog-filters a.active {
    background: var(--gradient);
    color: #051018;
    border-color: transparent;
}

/* Post meta on single */
.single-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    color: var(--text-dim);
    font-size: 13.5px;
    flex-wrap: wrap;
}

.single-meta .post-tag { font-size: 11.5px; }

/* Screen reader text (WP a11y) */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    word-wrap: normal !important;
}

/* Admin bar offset */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
}


/* ------------------------------------------------------------
   Gutenberg front page additions (v1.2)
------------------------------------------------------------ */
/* Fallback: neutralize the legacy Group inner wrapper so grid/flex
   sections treat blocks as direct children (see functions.php). */
.wp-block-group__inner-container {
    display: contents;
}

.grad {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Check list (service cards and anywhere in content) */
.check-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0 26px;
    flex: 1;
}

.check-list li,
.service-card .check-list li {
    display: block;
    position: relative;
    padding: 6px 0 6px 26px;
    color: var(--text-muted);
    font-size: 14px;
}

.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 9px;
    font-size: 12px;
    color: var(--success);
}

/* FAQ as native details block */
.wp-block-details.faq-item summary::after {
    content: '+';
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1;
    color: var(--accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.wp-block-details.faq-item[open] summary::after {
    transform: rotate(45deg);
}


/* ------------------------------------------------------------
   Lead popup (v1.4)
------------------------------------------------------------ */
.pb-modal[hidden] { display: none !important; }

.pb-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 22px;
    pointer-events: none;
}

.pb-modal.open { pointer-events: auto; }

.pb-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 4, 7, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pb-modal.open .pb-modal-backdrop { opacity: 1; }

.pb-modal-box {
    position: relative;
    width: min(480px, 100%);
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    padding: 38px 34px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(22px) scale(0.97);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.pb-modal.open .pb-modal-box { opacity: 1; transform: none; }

.pb-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
}

.pb-modal-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }

.pb-modal-box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    padding-right: 30px;
}

.pb-modal-lead {
    color: var(--text-muted);
    font-size: 14.5px;
    margin-bottom: 24px;
}

.pb-field { margin-bottom: 16px; }

.pb-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-family: var(--font-display);
    letter-spacing: 0.3px;
}

.pb-field input,
.pb-field select,
.pb-field textarea {
    width: 100%;
    padding: 13px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14.5px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.pb-field textarea { resize: vertical; min-height: 46px; line-height: 1.5; }

.pb-optional { font-weight: 400; color: var(--text-dim); letter-spacing: 0; }

.pb-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-dim);
}

.pb-field select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ba1ad' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.pb-field select option { background: #15161c; color: #f4f5f7; }

.pb-field input:focus,
.pb-field select:focus,
.pb-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.pb-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.45;
    margin: 4px 0 20px;
    cursor: pointer;
}

.pb-consent input {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--accent);
}

.pb-form-error {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
    font-size: 13px;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.pb-submit { width: 100%; }

.pb-modal-success { text-align: center; padding: 20px 0 10px; }

.pb-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 26px;
    color: #051018;
    background: linear-gradient(135deg, var(--success), #6ee7b7);
    box-shadow: 0 10px 30px -8px rgba(52, 211, 153, 0.5);
}

.pb-modal-success h3 { margin-bottom: 8px; }

.pb-modal-success p { color: var(--text-muted); font-size: 14.5px; }


/* ------------------------------------------------------------
   Data-driven chart (v1.5)
------------------------------------------------------------ */
.pb-chart {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 20px 16px;
}

.pb-chart[data-empty] { display: none; }

.pb-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.pb-chart-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pb-chart-chip:hover { color: var(--text); border-color: var(--border-strong); }

.pb-chart-chip .pb-chip-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c);
    flex-shrink: 0;
}

.pb-chart-chip.off { opacity: 0.4; }
.pb-chart-chip.off .pb-chip-dot { background: var(--text-dim); }

.pb-chart-svg { position: relative; width: 100%; }

.pb-chart-svg svg { width: 100%; height: auto; display: block; overflow: visible; }

.pb-axis-label {
    fill: var(--text-dim);
    font-family: var(--font-body);
    font-size: 15px;
}

.pb-event-label {
    fill: #fca5a5;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
}

.pb-chart-tip {
    position: absolute;
    top: 8px;
    z-index: 5;
    pointer-events: none;
    background: rgba(10, 11, 15, 0.95);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 10px 13px;
    box-shadow: var(--shadow-lg);
    min-width: 130px;
}

.pb-tip-date {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 7px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.pb-tip-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--text-muted);
    padding: 2px 0;
}

.pb-tip-row strong { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; }

.pb-tip-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

.pb-chart-figure { margin: 30px 0; }
.pb-chart-figure figcaption {
    color: var(--text-dim);
    font-size: 12.5px;
    padding: 12px 4px 0;
}

@media (max-width: 600px) {
    .pb-axis-label { font-size: 18px; }
    .pb-event-label { font-size: 17px; }
}

/* Mini chart in case-study cards (replaces static thumbnail) */
.case-chart .pb-chart-mini {
    position: absolute;
    inset: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}
.case-chart .pb-mini-svg { width: 100%; height: 100%; display: block; }
.case-chart { display: flex; align-items: stretch; }

/* ------------------------------------------------------------
   Fixes & additions (v1.6)
------------------------------------------------------------ */
/* Chart figure must NOT use the white bg meant for Senuto screenshots */
.cs-figure.pb-chart-figure {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

/* Client logos in the marquee (uploaded via CMS) */
.marquee-item img {
    height: 42px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(1) brightness(0) invert(0.72);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.marquee-item:hover img {
    filter: none;
    opacity: 1;
}

/* Admin: logo thumbnail column */
.column-pb_logo_thumb img { max-height: 44px; width: auto; background: #1b1c22; padding: 4px 8px; border-radius: 6px; }

/* ------------------------------------------------------------
   v1.7 — gradient list arrows (Kluczowe działania) + mobile chart
------------------------------------------------------------ */
.cs-main ul { list-style: none; }
.cs-main ul li { position: relative; }
.cs-main ul li::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    background: var(--gradient);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* If a list item already ships its own icon, hide the generated arrow. */
.cs-main ul li i:first-child { display: none; }

/* Chart: a touch more breathing room on phones */
@media (max-width: 600px) {
    .pb-chart { padding: 16px 12px 12px; }
    .pb-chart-legend { gap: 6px; }
    .pb-chart-chip { font-size: 12px; padding: 5px 11px; }
}
